{"size":17045,"ext":"aug","lang":"Augeas","max_stars_count":415.0,"content":"(*\nModule: Build\n Generic functions to build lenses\n\nAuthor: Raphael Pinson \n\nAbout: License\n This file is licensed under the LGPL v2+, like the rest of Augeas.\n\nAbout: Reference\n This file provides generic functions to build Augeas lenses\n*)\n\n\nmodule Build =\n\nlet eol = Util.eol\n\n(************************************************************************\n * Group: GENERIC CONSTRUCTIONS\n ************************************************************************)\n\n(************************************************************************\n * View: brackets\n * Put a lens inside brackets\n *\n * Parameters:\n * l:lens - the left bracket lens\n * r: lens - the right bracket lens\n * lns:lens - the lens to put inside brackets\n ************************************************************************)\nlet brackets (l:lens) (r:lens) (lns:lens) = l . lns . r\n\n\n(************************************************************************\n * Group: LIST CONSTRUCTIONS\n ************************************************************************)\n\n(************************************************************************\n * View: list\n * Build a list of identical lenses separated with a given separator\n * (at least 2 elements)\n *\n * Parameters:\n * lns:lens - the lens to repeat in the list\n * sep:lens - the separator lens, which can be taken from the module\n ************************************************************************)\nlet list (lns:lens) (sep:lens) = lns . ( sep . lns )+\n\n\n(************************************************************************\n * View: opt_list\n * Same as , but there might be only one element in the list\n *\n * Parameters:\n * lns:lens - the lens to repeat in the list\n * sep:lens - the separator lens, which can be taken from the module\n ************************************************************************)\nlet opt_list (lns:lens) (sep:lens) = lns . ( sep . lns )*\n\n\n(************************************************************************\n * Group: LABEL OPERATIONS\n ************************************************************************)\n\n(************************************************************************\n * View: xchg\n * Replace a pattern with a different label in the tree,\n * thus emulating a key but allowing to replace the keyword\n * with a different value than matched\n *\n * Parameters:\n * m:regexp - the pattern to match\n * d:string - the default value when a node in created\n * l:string - the label to apply for such nodes\n ************************************************************************)\nlet xchg (m:regexp) (d:string) (l:string) = del m d . label l\n\n(************************************************************************\n * View: xchgs\n * Same as , but the pattern is the default string\n *\n * Parameters:\n * m:string - the string to replace, also used as default\n * l:string - the label to apply for such nodes\n ************************************************************************)\nlet xchgs (m:string) (l:string) = xchg m m l\n\n\n(************************************************************************\n * Group: SUBNODE CONSTRUCTIONS\n ************************************************************************)\n\n(************************************************************************\n * View: key_value_line\n * A subnode with a keyword, a separator and a storing lens,\n * and an end of line\n *\n * Parameters:\n * kw:regexp - the pattern to match as key\n * sep:lens - the separator lens, which can be taken from the module\n * sto:lens - the storing lens\n ************************************************************************)\nlet key_value_line (kw:regexp) (sep:lens) (sto:lens) =\n [ key kw . sep . sto . eol ]\n\n(************************************************************************\n * View: key_value_line_comment\n * Same as , but allows to have a comment in the end of a line\n * and an end of line\n *\n * Parameters:\n * kw:regexp - the pattern to match as key\n * sep:lens - the separator lens, which can be taken from the module\n * sto:lens - the storing lens\n * comment:lens - the comment lens, which can be taken from \n ************************************************************************)\nlet key_value_line_comment (kw:regexp) (sep:lens) (sto:lens) (comment:lens) =\n [ key kw . sep . sto . (eol|comment) ]\n\n(************************************************************************\n * View: key_value\n * Same as , but does not end with an end of line\n *\n * Parameters:\n * kw:regexp - the pattern to match as key\n * sep:lens - the separator lens, which can be taken from the module\n * sto:lens - the storing lens\n ************************************************************************)\nlet key_value (kw: regexp) (sep:lens) (sto:lens) =\n [ key kw . sep . sto ]\n\n(************************************************************************\n * View: key_ws_value\n *\n * Store a key\/value pair where key and value are separated by whitespace\n * and the value goes to the end of the line. Leading and trailing\n * whitespace is stripped from the value. The end of line is consumed by\n * this lens\n *\n * Parameters:\n * kw:regexp - the pattern to match as key\n ************************************************************************)\nlet key_ws_value (kw:regexp) =\n key_value_line kw Util.del_ws_spc (store Rx.space_in)\n\n(************************************************************************\n * View: flag\n * A simple flag subnode, consisting of a single key\n *\n * Parameters:\n * kw:regexp - the pattern to match as key\n ************************************************************************)\nlet flag (kw:regexp) = [ key kw ]\n\n(************************************************************************\n * View: flag_line\n * A simple flag line, consisting of a single key\n *\n * Parameters:\n * kw:regexp - the pattern to match as key\n ************************************************************************)\nlet flag_line (kw:regexp) = [ key kw . eol ]\n\n\n(************************************************************************\n * Group: BLOCK CONSTRUCTIONS\n ************************************************************************)\n\n(************************************************************************\n * View: block_generic\n * A block enclosed in brackets\n *\n * Parameters:\n * entry:lens - the entry to be stored inside the block.\n * This entry should include \n * or its equivalent if necessary.\n * entry_noindent:lens - the entry to be stored inside the block,\n * without indentation.\n * This entry should not include \n * entry_noeol:lens - the entry to be stored inside the block,\n * without eol.\n * This entry should not include \n * entry_noindent_noeol:lens - the entry to be stored inside the block,\n * without indentation or eol.\n * This entry should not include \n * comment:lens - the comment lens used in the block\n * comment_noindent:lens - the comment lens used in the block,\n * without indentation.\n * ldelim_re:regexp - regexp for the left delimiter\n * rdelim_re:regexp - regexp for the right delimiter\n * ldelim_default:string - default value for the left delimiter\n * rdelim_default:string - default value for the right delimiter\n ************************************************************************)\nlet block_generic\n (entry:lens) (entry_noindent:lens)\n (entry_noeol:lens) (entry_noindent_noeol:lens)\n (comment:lens) (comment_noindent:lens)\n (ldelim_re:regexp) (rdelim_re:regexp)\n (ldelim_default:string) (rdelim_default:string) =\n let block_single = entry_noindent_noeol | comment_noindent\n in let block_start = entry_noindent | comment_noindent\n in let block_middle = (entry | comment)*\n in let block_end = entry_noeol | comment\n in del ldelim_re ldelim_default\n . ( ( block_start . block_middle . block_end )\n | block_single )\n . del rdelim_re rdelim_default\n\n(************************************************************************\n * View: block_setdefault\n * A block enclosed in brackets\n *\n * Parameters:\n * entry:lens - the entry to be stored inside the block.\n * This entry should not include ,\n * or ,\n * should not be indented or finish with an eol.\n * ldelim_re:regexp - regexp for the left delimiter\n * rdelim_re:regexp - regexp for the left delimiter\n * ldelim_default:string - default value for the left delimiter\n * rdelim_default:string - default value for the right delimiter\n ************************************************************************)\nlet block_setdelim (entry:lens)\n (ldelim_re:regexp)\n (rdelim_re:regexp)\n (ldelim_default:string)\n (rdelim_default:string) =\n block_generic (Util.empty | Util.indent . entry . eol)\n (entry . eol) (Util.indent . entry) entry\n Util.comment Util.comment_noindent\n ldelim_re rdelim_re\n ldelim_default rdelim_default\n\n(* Variable: block_ldelim_re *)\nlet block_ldelim_re = \/[ \\t\\n]+\\{[ \\t\\n]*\/\n\n(* Variable: block_rdelim_re *)\nlet block_rdelim_re = \/[ \\t\\n]*\\}\/\n\n(* Variable: block_ldelim_default *)\nlet block_ldelim_default = \" {\\n\"\n\n(* Variable: block_rdelim_default *)\nlet block_rdelim_default = \"}\"\n\n(************************************************************************\n * View: block\n * A block enclosed in brackets\n *\n * Parameters:\n * entry:lens - the entry to be stored inside the block.\n * This entry should not include ,\n * or ,\n * should not be indented or finish with an eol.\n ************************************************************************)\nlet block (entry:lens) = block_setdelim entry\n block_ldelim_re block_rdelim_re\n block_ldelim_default block_rdelim_default\n\n(* Variable: block_ldelim_newlines_re *)\nlet block_ldelim_newlines_re = \/[ \\t\\n]*\\{([ \\t\\n]*\\n)?\/\n\n(* Variable: block_rdelim_newlines_re *)\nlet block_rdelim_newlines_re = \/[ \\t]*\\}\/\n\n(* Variable: block_ldelim_newlines_default *)\nlet block_ldelim_newlines_default = \"\\n{\\n\"\n\n(* Variable: block_rdelim_newlines_default *)\nlet block_rdelim_newlines_default = \"}\"\n\n(************************************************************************\n * View: block_newline\n * A block enclosed in brackets, with newlines forced\n * and indentation defaulting to a tab.\n *\n * Parameters:\n * entry:lens - the entry to be stored inside the block.\n * This entry should not include ,\n * or ,\n * should be indented and finish with an eol.\n ************************************************************************)\nlet block_newlines (entry:lens) (comment:lens) =\n del block_ldelim_newlines_re block_ldelim_newlines_default\n . ((entry | comment) . (Util.empty | entry | comment)*)?\n . del block_rdelim_newlines_re block_rdelim_newlines_default\n\n(************************************************************************\n * View: block_newlines_spc\n * A block enclosed in brackets, with newlines forced\n * and indentation defaulting to a tab. The opening brace\n * must be preceded by whitespace\n *\n * Parameters:\n * entry:lens - the entry to be stored inside the block.\n * This entry should not include ,\n * or ,\n * should be indented and finish with an eol.\n ************************************************************************)\nlet block_newlines_spc (entry:lens) (comment:lens) =\n del (\/[ \\t\\n]\/ . block_ldelim_newlines_re) block_ldelim_newlines_default\n . ((entry | comment) . (Util.empty | entry | comment)*)?\n . del block_rdelim_newlines_re block_rdelim_newlines_default\n\n(************************************************************************\n * View: named_block\n * A named enclosed in brackets\n *\n * Parameters:\n * kw:regexp - the regexp for the block name\n * entry:lens - the entry to be stored inside the block\n * this entry should not include \n ************************************************************************)\nlet named_block (kw:regexp) (entry:lens) = [ key kw . block entry . eol ]\n\n\n(************************************************************************\n * Group: COMBINATORICS\n ************************************************************************)\n\n(************************************************************************\n * View: combine_two_ord\n * Combine two lenses, ensuring first lens is first\n *\n * Parameters:\n * a:lens - the first lens\n * b:lens - the second lens\n ************************************************************************)\nlet combine_two_ord (a:lens) (b:lens) = a . b\n\n(************************************************************************\n * View: combine_two\n * Combine two lenses\n *\n * Parameters:\n * a:lens - the first lens\n * b:lens - the second lens\n ************************************************************************)\nlet combine_two (a:lens) (b:lens) =\n combine_two_ord a b | combine_two_ord b a\n\n(************************************************************************\n * View: combine_two_opt_ord\n * Combine two lenses optionally, ensuring first lens is first\n * (a, and optionally b)\n *\n * Parameters:\n * a:lens - the first lens\n * b:lens - the second lens\n ************************************************************************)\nlet combine_two_opt_ord (a:lens) (b:lens) = a . b?\n\n(************************************************************************\n * View: combine_two_opt\n * Combine two lenses optionally\n * (either a, b, or both, in any order)\n *\n * Parameters:\n * a:lens - the first lens\n * b:lens - the second lens\n ************************************************************************)\nlet combine_two_opt (a:lens) (b:lens) =\n combine_two_opt_ord a b | combine_two_opt_ord b a\n\n(************************************************************************\n * View: combine_three_ord\n * Combine three lenses, ensuring first lens is first\n * (a followed by either b, c, in any order)\n *\n * Parameters:\n * a:lens - the first lens\n * b:lens - the second lens\n * c:lens - the third lens\n ************************************************************************)\nlet combine_three_ord (a:lens) (b:lens) (c:lens) =\n combine_two_ord a (combine_two b c)\n\n(************************************************************************\n * View: combine_three\n * Combine three lenses\n *\n * Parameters:\n * a:lens - the first lens\n * b:lens - the second lens\n * c:lens - the third lens\n ************************************************************************)\nlet combine_three (a:lens) (b:lens) (c:lens) =\n combine_three_ord a b c\n | combine_three_ord b a c\n | combine_three_ord c b a\n\n\n(************************************************************************\n * View: combine_three_opt_ord\n * Combine three lenses optionally, ensuring first lens is first\n * (a followed by either b, c, or any of them, in any order)\n *\n * Parameters:\n * a:lens - the first lens\n * b:lens - the second lens\n * c:lens - the third lens\n ************************************************************************)\nlet combine_three_opt_ord (a:lens) (b:lens) (c:lens) =\n combine_two_opt_ord a (combine_two_opt b c)\n\n(************************************************************************\n * View: combine_three_opt\n * Combine three lenses optionally\n * (either a, b, c, or any of them, in any order)\n *\n * Parameters:\n * a:lens - the first lens\n * b:lens - the second lens\n * c:lens - the third lens\n ************************************************************************)\nlet combine_three_opt (a:lens) (b:lens) (c:lens) =\n combine_three_opt_ord a b c\n | combine_three_opt_ord b a c\n | combine_three_opt_ord c b a\n","avg_line_length":40.486935867,"max_line_length":82,"alphanum_fraction":0.4614843062} {"size":2079,"ext":"aug","lang":"Augeas","max_stars_count":1.0,"content":"module Oned =\n autoload xfm\n\n(* Version: 1.2 *)\n\n(* Change log: *)\n(* 1.2: Include \/etc\/one\/monitord.conf *)\n\n(* primitives *)\nlet sep = del \/[ \\t]*=[ \\t]*\/ \" = \"\nlet eol = del \/\\n\/ \"\\n\"\nlet opt_space = del \/[ \\t]*\/ \"\"\nlet opt_space_nl = del \/[ \\t\\n]*\/ \"\\n\"\nlet opt_nl_indent = del \/[ \\t\\n]*\/ \"\\n \"\nlet comma = del \/,\/ \",\"\nlet left_br = del \/\\[\/ \"[\"\nlet right_br = del \/\\]\/ \"]\"\n\n(* Regexes *)\n(* Match everyhting within quotes *)\nlet re_quoted_str = \/\"[^\\\"]*\"\/\n\n(* Match everything except spaces, quote(\"), l-bracket([) and num-sign(#) *)\nlet re_value_str = \/[^ \\t\\n\"\\[#]+\/\n\n(* Match everything except spaces, quote(\"), num-sign(#) and comma(,) *)\nlet re_section_value_str = \/[^ \\t\\n\"#,]+\/\n\n(* Store either after-value comment or full-line comment *)\nlet comment = [ label \"#comment\" . store \/#[^\\n]*\/ ]\nlet comment_eol = comment . eol\n\n\n(* Simple words *)\nlet name = key \/[A-Za-z_0-9]+\/\nlet re_simple_value = re_quoted_str | re_value_str\n\n\n(* Top level entry like `PORT = 2633` *)\nlet top_level_entry = name . sep . store re_simple_value\nlet top_level_line = opt_space\n . [ top_level_entry . opt_space . (comment)? ]\n . eol\n\n\n(* Section lens for section like `LOG = [ ... ]` *)\nlet section_value = re_quoted_str | re_section_value_str\nlet section_entry = [ name . sep . store section_value ]\nlet section_entry_list =\n ( section_entry . opt_space . comma . opt_nl_indent\n | comment_eol . opt_space )*\n . section_entry . opt_space_nl\n . ( comment_eol )*\n\nlet section = opt_space\n . [ name . sep\n . left_br\n . opt_nl_indent\n . section_entry_list\n . right_br ]\n . eol\n\nlet empty_line = [ del \/[ \\t]*\\n\/ \"\\n\" ]\n\n(* Main lens *)\nlet lns = ( top_level_line | comment_eol | section | empty_line )*\n\n\n(* Variable: filter *)\nlet filter = incl \"\/etc\/one\/oned.conf\"\n . incl \"\/etc\/one\/sched.conf\"\n . incl \"\/etc\/one\/monitord.conf\"\n . incl \"\/etc\/one\/vmm_exec\/vmm_exec_kvm.conf\"\n\nlet xfm = transform lns filter\n","avg_line_length":27.3552631579,"max_line_length":76,"alphanum_fraction":0.5805675806} {"size":5076,"ext":"aug","lang":"Augeas","max_stars_count":1.0,"content":"(* Apache HTTPD lens for Augeas\n\nAuthors:\n David Lutterkort \n Francis Giraldeau \n Raphael Pinson \n\nAbout: Reference\n Online Apache configuration manual: http:\/\/httpd.apache.org\/docs\/trunk\/\n\nAbout: License\n This file is licensed under the LGPL v2+.\n\nAbout: Lens Usage\n Sample usage of this lens in augtool\n\n Apache configuration is represented by two main structures, nested sections\n and directives. Sections are used as labels, while directives are kept as a\n value. Sections and directives can have positional arguments inside values\n of \"arg\" nodes. Arguments of sections must be the firsts child of the\n section node.\n\n This lens doesn't support automatic string quoting. Hence, the string must\n be quoted when containing a space.\n\n Create a new VirtualHost section with one directive:\n > clear \/files\/etc\/apache2\/sites-available\/foo\/VirtualHost\n > set \/files\/etc\/apache2\/sites-available\/foo\/VirtualHost\/arg \"172.16.0.1:80\"\n > set \/files\/etc\/apache2\/sites-available\/foo\/VirtualHost\/directive \"ServerAdmin\"\n > set \/files\/etc\/apache2\/sites-available\/foo\/VirtualHost\/*[self::directive=\"ServerAdmin\"]\/arg \"admin@example.com\"\n\nAbout: Configuration files\n This lens applies to files in \/etc\/httpd and \/etc\/apache2. See .\n\n*)\n\n\nmodule Httpd =\n\nautoload xfm\n\n(******************************************************************\n * Utilities lens\n *****************************************************************)\nlet dels (s:string) = del s s\n\n(* deal with continuation lines *)\nlet sep_spc = del \/([ \\t]+|[ \\t]*\\\\\\\\\\r?\\n[ \\t]*)+\/ \" \"\nlet sep_osp = del \/([ \\t]*|[ \\t]*\\\\\\\\\\r?\\n[ \\t]*)*\/ \"\"\nlet sep_eq = del \/[ \\t]*=[ \\t]*\/ \"=\"\n\nlet nmtoken = \/[a-zA-Z:_][a-zA-Z0-9:_.-]*\/\nlet word = \/[a-z][a-z0-9._-]*\/i\n\nlet comment = Util.comment\nlet eol = Util.doseol\nlet empty = Util.empty_dos\nlet indent = Util.indent\n\n(* borrowed from shellvars.aug *)\nlet char_arg_dir = \/([^\\\\ '\"{\\t\\r\\n]|[^ '\"{\\t\\r\\n]+[^\\\\ \\t\\r\\n])|\\\\\\\\\"|\\\\\\\\'|\\\\\\\\ \/\nlet char_arg_sec = \/([^\\\\ '\"\\t\\r\\n>]|[^ '\"\\t\\r\\n>]+[^\\\\ \\t\\r\\n>])|\\\\\\\\\"|\\\\\\\\'|\\\\\\\\ \/\nlet char_arg_wl = \/([^\\\\ '\"},\\t\\r\\n]|[^ '\"},\\t\\r\\n]+[^\\\\ '\"},\\t\\r\\n])\/\n\nlet cdot = \/\\\\\\\\.\/\nlet cl = \/\\\\\\\\\\n\/\nlet dquot =\n let no_dquot = \/[^\"\\\\\\r\\n]\/\n in \/\"\/ . (no_dquot|cdot|cl)* . \/\"\/\nlet dquot_msg =\n let no_dquot = \/([^ \\t\"\\\\\\r\\n]|[^\"\\\\\\r\\n]+[^ \\t\"\\\\\\r\\n])\/\n in \/\"\/ . (no_dquot|cdot|cl)*\nlet squot =\n let no_squot = \/[^'\\\\\\r\\n]\/\n in \/'\/ . (no_squot|cdot|cl)* . \/'\/\nlet comp = \/[<>=]?=\/\n\n(******************************************************************\n * Attributes\n *****************************************************************)\n\nlet arg_dir = [ label \"arg\" . store (char_arg_dir+|dquot|squot) ]\n(* message argument starts with \" but ends at EOL *)\nlet arg_dir_msg = [ label \"arg\" . store dquot_msg ]\nlet arg_sec = [ label \"arg\" . store (char_arg_sec+|comp|dquot|squot) ]\nlet arg_wl = [ label \"arg\" . store (char_arg_wl+|dquot|squot) ]\n\n(* comma-separated wordlist as permitted in the SSLRequire directive *)\nlet arg_wordlist =\n let wl_start = Util.del_str \"{\" in\n let wl_end = Util.del_str \"}\" in\n let wl_sep = del \/[ \\t]*,[ \\t]*\/ \", \"\n in [ label \"wordlist\" . wl_start . arg_wl . (wl_sep . arg_wl)* . wl_end ]\n\nlet argv (l:lens) = l . (sep_spc . l)*\n\nlet directive =\n (* arg_dir_msg may be the last or only argument *)\n let dir_args = (argv (arg_dir|arg_wordlist) . (sep_spc . arg_dir_msg)?) | arg_dir_msg\n in [ indent . label \"directive\" . store word . (sep_spc . dir_args)? . eol ]\n\nlet section (body:lens) =\n (* opt_eol includes empty lines *)\n let opt_eol = del \/([ \\t]*#?\\r?\\n)*\/ \"\\n\" in\n let inner = (sep_spc . argv arg_sec)? . sep_osp .\n dels \">\" . opt_eol . ((body|comment) . (body|empty|comment)*)? .\n indent . dels \"<\/\" in\n let kword = key (word - \/perl\/i) in\n let dword = del (word - \/perl\/i) \"a\" in\n [ indent . dels \"<\" . square kword inner dword . del \/>[ \\t\\n\\r]*\/ \">\\n\" ]\n\nlet perl_section = [ indent . label \"Perl\" . del \/\/i \"\"\n . store \/[^<]*\/\n . del \/<\\\/perl>\/i \"<\/Perl>\" . eol ]\n\n\nlet rec content = section (content|directive)\n | perl_section\n\nlet lns = (content|directive|comment|empty)*\n\nlet filter = (incl \"\/etc\/apache2\/apache2.conf\") .\n (incl \"\/etc\/apache2\/httpd.conf\") .\n (incl \"\/etc\/apache2\/ports.conf\") .\n (incl \"\/etc\/apache2\/conf.d\/*\") .\n (incl \"\/etc\/apache2\/conf-available\/*.conf\") .\n (incl \"\/etc\/apache2\/mods-available\/*\") .\n (incl \"\/etc\/apache2\/sites-available\/*\") .\n (incl \"\/etc\/apache2\/vhosts.d\/*.conf\") .\n (incl \"\/etc\/httpd\/conf.d\/*.conf\") .\n (incl \"\/etc\/httpd\/httpd.conf\") .\n (incl \"\/etc\/httpd\/conf\/httpd.conf\") .\n Util.stdexcl\n\nlet xfm = transform lns filter\n","avg_line_length":37.3235294118,"max_line_length":115,"alphanum_fraction":0.5443262411} {"size":6274,"ext":"aug","lang":"Augeas","max_stars_count":18.0,"content":"module Krb5 =\n\nautoload xfm\n\nlet comment = Inifile.comment IniFile.comment_re \"#\"\nlet empty = Inifile.empty\nlet eol = Inifile.eol\nlet dels = Util.del_str\n\nlet indent = del \/[ \\t]*\/ \"\"\nlet comma_or_space_sep = del \/[ \\t,]{1,}\/ \" \"\nlet eq = del \/[ \\t]*=[ \\t]*\/ \" = \"\nlet eq_openbr = del \/[ \\t]*=[ \\t\\n]*\\{[ \\t]*\\n\/ \" = {\\n\"\nlet closebr = del \/[ \\t]*\\}\/ \"}\"\n\n(* These two regexps for realms and apps are not entirely true\n - strictly speaking, there's no requirement that a realm is all upper case\n and an application only uses lowercase. But it's what's used in practice.\n\n Without that distinction we couldn't distinguish between applications\n and realms in the [appdefaults] section.\n*)\n\nlet realm_re = \/[A-Z0-9][.a-zA-Z0-9-]*\/\nlet realm_anycase_re = \/[A-Za-z0-9][.a-zA-Z0-9-]*\/\nlet app_re = \/[a-z][a-zA-Z0-9_]*\/\nlet name_re = \/[.a-zA-Z0-9_-]+\/\n\nlet value_br = store \/[^;# \\t\\r\\n{}]+\/\nlet value = store \/[^;# \\t\\r\\n]+\/\nlet entry (kw:regexp) (sep:lens) (value:lens) (comment:lens)\n = [ indent . key kw . sep . value . (comment|eol) ] | comment\n\nlet subsec_entry (kw:regexp) (sep:lens) (comment:lens)\n = ( entry kw sep value_br comment ) | empty\n\nlet simple_section (n:string) (k:regexp) =\n let title = Inifile.indented_title n in\n let entry = entry k eq value comment in\n Inifile.record title entry\n\nlet record (t:string) (e:lens) =\n let title = Inifile.indented_title t in\n Inifile.record title e\n\nlet v4_name_convert (subsec:lens) = [ indent . key \"v4_name_convert\" .\n eq_openbr . subsec* . closebr . eol ]\n\n(*\n For the enctypes this appears to be a list of the valid entries:\n c4-hmac arcfour-hmac aes128-cts rc4-hmac\n arcfour-hmac-md5 des3-cbc-sha1 des-cbc-md5 des-cbc-crc\n*)\nlet enctype_re = \/[a-zA-Z0-9-]{3,}\/\nlet enctypes = \/permitted_enctypes|default_tgs_enctypes|default_tkt_enctypes\/i\n\n(* An #eol label prevents ambiguity between \"k = v1 v2\" and \"k = v1\\n k = v2\" *)\nlet enctype_list (nr:regexp) (ns:string) =\n indent . del nr ns . eq\n . Build.opt_list [ label ns . store enctype_re ] comma_or_space_sep\n . (comment|eol) . [ label \"#eol\" ]\n\nlet libdefaults =\n let option = entry (name_re - (\"v4_name_convert\" |enctypes)) eq value comment in\n let enctype_lists = enctype_list \/permitted_enctypes\/i \"permitted_enctypes\"\n | enctype_list \/default_tgs_enctypes\/i \"default_tgs_enctypes\"\n | enctype_list \/default_tkt_enctypes\/i \"default_tkt_enctypes\" in\n let subsec = [ indent . key \/host|plain\/ . eq_openbr .\n (subsec_entry name_re eq comment)* . closebr . eol ] in\n record \"libdefaults\" (option|enctype_lists|v4_name_convert subsec)\n\nlet login =\n let keys = \/krb[45]_get_tickets|krb4_convert|krb_run_aklog\/\n |\/aklog_path|accept_passwd\/ in\n simple_section \"login\" keys\n\nlet appdefaults =\n let option = entry (name_re - (\"realm\" | \"application\")) eq value_br comment in\n let realm = [ indent . label \"realm\" . store realm_re .\n eq_openbr . (option|empty)* . closebr . eol ] in\n let app = [ indent . label \"application\" . store app_re .\n eq_openbr . (realm|option|empty)* . closebr . eol] in\n record \"appdefaults\" (option|realm|app)\n\nlet realms =\n let simple_option = \/kdc|admin_server|database_module|default_domain\/\n |\/v4_realm|auth_to_local(_names)?|master_kdc|kpasswd_server\/\n |\/admin_server|ticket_lifetime|pkinit_anchors|krb524_server\/ in\n let subsec_option = \/v4_instance_convert\/ in\n let option = subsec_entry simple_option eq comment in\n let subsec = [ indent . key subsec_option . eq_openbr .\n (subsec_entry name_re eq comment)* . closebr . eol ] in\n let v4subsec = [ indent . key \/host|plain\/ . eq_openbr .\n (subsec_entry name_re eq comment)* . closebr . eol ] in\n let realm = [ indent . label \"realm\" . store realm_anycase_re .\n eq_openbr . (option|subsec|(v4_name_convert v4subsec))* .\n closebr . eol ] in\n record \"realms\" (realm|comment)\n\nlet domain_realm =\n simple_section \"domain_realm\" name_re\n\nlet logging =\n let keys = \/kdc|admin_server|default\/ in\n let xchg (m:regexp) (d:string) (l:string) =\n del m d . label l in\n let xchgs (m:string) (l:string) = xchg m m l in\n let dest =\n [ xchg \/FILE[=:]\/ \"FILE=\" \"file\" . value ]\n |[ xchgs \"STDERR\" \"stderr\" ]\n |[ xchgs \"CONSOLE\" \"console\" ]\n |[ xchgs \"DEVICE=\" \"device\" . value ]\n |[ xchgs \"SYSLOG\" \"syslog\" .\n ([ xchgs \":\" \"severity\" . store \/[A-Za-z0-9]+\/ ].\n [ xchgs \":\" \"facility\" . store \/[A-Za-z0-9]+\/ ]?)? ] in\n let entry = [ indent . key keys . eq . dest . (comment|eol) ] | comment in\n record \"logging\" entry\n\nlet capaths =\n let realm = [ indent . key realm_re .\n eq_openbr .\n (entry realm_re eq value_br comment)* . closebr . eol ] in\n record \"capaths\" (realm|comment)\n\nlet dbdefaults =\n let keys = \/database_module|ldap_kerberos_container_dn|ldap_kdc_dn\/\n |\/ldap_kadmind_dn|ldap_service_password_file|ldap_servers\/\n |\/ldap_conns_per_server\/ in\n simple_section \"dbdefaults\" keys\n\nlet dbmodules =\n let keys = \/db_library|ldap_kerberos_container_dn|ldap_kdc_dn\/\n |\/ldap_kadmind_dn|ldap_service_password_file|ldap_servers\/\n |\/ldap_conns_per_server\/ in\n simple_section \"dbmodules\" keys\n\n(* This section is not documented in the krb5.conf manpage,\n but the Fermi example uses it. *)\nlet instance_mapping =\n let value = dels \"\\\"\" . store \/[^;# \\t\\r\\n{}]*\/ . dels \"\\\"\" in\n let map_node = label \"mapping\" . store \/[a-zA-Z0-9\\\/*]+\/ in\n let mapping = [ indent . map_node . eq .\n [ label \"value\" . value ] . (comment|eol) ] in\n let instance = [ indent . key name_re .\n eq_openbr . (mapping|comment)* . closebr . eol ] in\n record \"instancemapping\" instance\n\nlet kdc =\n simple_section \"kdc\" \/profile\/\n\nlet pam =\n simple_section \"pam\" name_re\n\nlet includes = Build.key_value_line \/include(dir)?\/ Sep.space (store Rx.fspath)\n\nlet lns = (comment|empty|includes)* .\n (libdefaults|login|appdefaults|realms|domain_realm\n |logging|capaths|dbdefaults|dbmodules|instance_mapping|kdc|pam)*\n\nlet filter = (incl \"\/etc\/krb5.conf.d\/*.conf\")\n . (incl \"\/etc\/krb5.conf\")\n\nlet xfm = transform lns filter\n","avg_line_length":38.256097561,"max_line_length":86,"alphanum_fraction":0.6526936564} {"size":356,"ext":"aug","lang":"Augeas","max_stars_count":8.0,"content":"(*\nSimple lens, written to be distributed with Puppet unit tests.\n\nAuthor: Dominic Cleal \n\nAbout: License:\n This file is licensed under the Apache 2.0 licence, like the rest of Puppet.\n*)\n\nmodule Test = autoload xfm\nlet lns = [ seq \"line\" . store \/[^\\n]+\/ . del \"\\n\" \"\\n\" ]*\nlet filter = incl \"\/etc\/test\"\nlet xfm = transform lns filter\n","avg_line_length":25.4285714286,"max_line_length":78,"alphanum_fraction":0.6882022472} {"size":1462,"ext":"aug","lang":"Augeas","max_stars_count":1.0,"content":"(* based on the group module for Augeas by Free Ekanayaka \n\n Reference: man 5 gshadow\n\n*)\n\nmodule Gshadow =\n\n autoload xfm\n\n(************************************************************************\n * USEFUL PRIMITIVES\n *************************************************************************)\n\nlet eol = Util.eol\nlet comment = Util.comment\nlet empty = Util.empty\n\nlet colon = Sep.colon\nlet comma = Sep.comma\n\nlet sto_to_spc = store Rx.space_in\n\nlet word = Rx.word\nlet password = \/[A-Za-z0-9_.!*\\\/$-]*\/\nlet integer = Rx.integer\n\n(************************************************************************\n * ENTRIES\n *************************************************************************)\n\nlet user = [ label \"user\" . store word ]\nlet user_list = Build.opt_list user comma\nlet params = [ label \"password\" . store password . colon ]\n . [ label \"admins\" . user_list? . colon ]\n . [ label \"members\" . user_list? ]\nlet entry = Build.key_value_line word colon params\n\n(************************************************************************\n * LENS\n *************************************************************************)\n\nlet lns = (comment|empty|entry) *\n\nlet filter\n = incl \"\/etc\/gshadow\"\n . Util.stdexcl\n\nlet xfm = transform lns filter\n","avg_line_length":29.24,"max_line_length":77,"alphanum_fraction":0.3830369357} {"size":188,"ext":"aug","lang":"Augeas","max_stars_count":6.0,"content":"Gain id1 { gain 2 } [ output ] \nAudioBufferSource id2 { url https:\/\/raw.githubusercontent.com\/borismus\/webaudioapi.com\/master\/content\/posts\/audio-tag\/chrono.mp3 \n, loop true} [ id1 ] \nEnd","avg_line_length":47.0,"max_line_length":129,"alphanum_fraction":0.7446808511} {"size":643,"ext":"aug","lang":"Augeas","max_stars_count":1.0,"content":"module Test_subject_mapping =\n let username = Subject_mapping.username\n let arrow = Subject_mapping.arrow\n let certdn = Subject_mapping.certdn\n let line = Subject_mapping.line\n\n test [ username ] get \"foo\" = { \"foo\" }\n test [ arrow ] get \" -> \" = {}\n test [ arrow ] get \"\\t->\\t\" = {}\n test [ arrow . username ] get \"\\t->\\tfoo\" = { \"foo\" }\n test [ certdn ] get \"foo\" = { = \"foo\" }\n test [ certdn ] get \"foo bar\" = { = \"foo bar\" }\n test line get \"foo -> bar\\n\" = { \"bar\" = \"foo\" }\n test line get \"Really Odd, Certificate Name. \/#$%^&* -> un61\\n\" =\n { \"un61\" = \"Really Odd, Certificate Name. \/#$%^&*\" }\n","avg_line_length":40.1875,"max_line_length":69,"alphanum_fraction":0.5520995334} {"size":1784,"ext":"aug","lang":"Augeas","max_stars_count":null,"content":"(*\nModule: syslog-ng\n Parses syslog-ng configuration files.\n\nAuthor:\n Jhon Honce \n\nAbout: Licence\n This file is licensed under the LGPL v2+, like the rest of Augeas.\n\nAbout: Lens Usage\n Sample usage of this lens in augtool\n * print all\n print \/files\/etc\/syslog-ng.conf\n\nAbout: Configuration files\n This lens applies to \/etc\/syslog-ng.conf and \/etc\/syslog-ng.d\/*.\n See .\n *)\n\nmodule Syslog_ng =\n autoload xfm\n\n (* bits and bobs *)\n let at = Util.del_str \"@\"\n let colon = Util.del_str \":\"\n let semi = Util.del_str \";\"\n let comment = Util.comment\n let empty = Util.empty\n let eol = Util.eol\n let indent = Util.indent\n let quote = Quote.quote\n\n let id = \/[a-zA-Z0-9_.-]+\/\n let name = \/[^#= \\n\\t{}()\\\/]+\/\n\n let lbracket = del \/[ \\t\\n]*\\{([ \\t\\n]*\\n)?\/ \" {\"\n let rbracket = del \/[ \\t]*\\}\/ \"}\"\n let lparan = del \/[ \\t\\n]*\\(\/ \" (\"\n let rparan = del \/[ \\t]*\\)\/ \")\"\n let eq = indent . Util.del_str \"=\" . indent\n\n let value_to_eol = store ( \/[^\\n]*\/ - \/([ \\t][^\\n]*|[^\\n]*[ \\t])\/ )\n let value_quoted = del \"\\\"\" \"\\\"\" . store \/^\"\\n]+\/ . del \"\\\"\" \"\\\"\"\n let option_value = key id . lparan . store \/[^ \\t\\n#;()]+\/ . rparan . semi . eol\n\n\n(* File layout *)\nlet version = [ at . key \"version\" . colon . store \/[0-9.]+\/ . eol ]\nlet include = [ at . key \"include\" . Util.del_ws_spc . Quote.double . eol ]\nlet options = [ key \"options\" . lbracket . [ indent . key id . indent . store Rx.no_spaces . semi . eol ]* . rbracket . eol]\n\n(* Define lens | options | statement | log *)\nlet lns = ( version | include | options | empty | comment )\n\nlet filter = incl \"\/etc\/syslog-ng.conf\"\n . Util.stdexcl\n\nlet xfm = transform lns filter\n","avg_line_length":29.7333333333,"max_line_length":125,"alphanum_fraction":0.5538116592} {"size":1606,"ext":"aug","lang":"Augeas","max_stars_count":11.0,"content":"(*\nModule: Oneserver\nTo parse \/etc\/one\/*-server.conf\n\n(onegate-server.conf still is not supported)\n\nAuthor: Anton Todorov \n*)\n\nmodule Test_oneserver = \n\nlet conf_a =\":key1: value1\n\n:key2: 127.0.0.1\n# comment spaced\n:key3: \/path\/to\/something\/42\n#\n:key_4: http:\/\/dir.bg\/url\n#:key5: 12345\n:key6:\n:key6:\n:key7: \\\"val7\\\"\n\"\ntest Oneserver.lns get conf_a = ?\ntest Oneserver.lns get conf_a =\n { \"key1\" = \"value1\" }\n { \"#empty\" }\n { \"key2\" = \"127.0.0.1\" }\n { \"#comment\" = \"comment spaced\" }\n { \"key3\" = \"\/path\/to\/something\/42\" }\n { \"#comment\" = \"\" }\n { \"key_4\" = \"http:\/\/dir.bg\/url\" }\n { \"#comment\" = \":key5: 12345\" }\n { \"key6\" }\n { \"key6\" }\n { \"key7\" = \"\\\"val7\\\"\" }\n\n\nlet conf_b =\":key1: value1\n\n:key2: 127.0.0.1\n# comment spaced\n:key3: \/path\/to\/something\/42\n#\n# \n:key_4: http:\/\/dir.bg\/url\n#:key5: 12345\n:key6:\n:key6:\n:key7: \\\"kafter\\\"\n:key8:\n - k8v1\n - k8v2\n - k8v3\n\n\"\n\ntest Oneserver.lns get conf_b = ?\ntest Oneserver.lns get conf_b =\n { \"key1\" = \"value1\" }\n { \"#empty\" }\n { \"key2\" = \"127.0.0.1\" }\n { \"#comment\" = \"comment spaced\" }\n { \"key3\" = \"\/path\/to\/something\/42\" }\n { \"#comment\" = \"\" }\n { \"#comment\" = \"\" }\n { \"key_4\" = \"http:\/\/dir.bg\/url\" }\n { \"#comment\" = \":key5: 12345\" }\n { \"key6\" }\n { \"key6\" }\n { \"key7\" = \"\\\"kafter\\\"\" }\n { \"key8\" }\n { \"#option\" = \"k8v1\" }\n { \"#option\" = \"k8v2\" }\n { \"#option\" = \"k8v3\" }\n { \"#empty\" }\n\nlet conf_c =\":element1: value1\n\n:element2: 127.0.0.1\n# comment\n:element3: \/value\/3\n:element_4: http:\/\/dir.bg\n#:element: 12345\n:element5: 1234\n:root:\n :one1:\n :two1:\n :one2:\n :two2:\n\"\ntest Oneserver.lns get conf_c = *\n\n","avg_line_length":17.085106383,"max_line_length":46,"alphanum_fraction":0.5579078456} {"size":15859,"ext":"aug","lang":"Augeas","max_stars_count":415.0,"content":"(*\nModule: IniFile\n Generic module to create INI files lenses\n\nAuthor: Raphael Pinson \n\nAbout: License\n This file is licensed under the LGPL v2+, like the rest of Augeas.\n\nAbout: TODO\n Things to add in the future\n - Support double quotes in value\n\nAbout: Lens usage\n This lens is made to provide generic primitives to construct INI File lenses.\n See , , or for examples of real life lenses using it.\n\nAbout: Examples\n The file contains various examples and tests.\n*)\n\nmodule IniFile =\n\n\n(************************************************************************\n * Group: USEFUL PRIMITIVES\n *************************************************************************)\n\n(* Group: Internal primitives *)\n\n(*\nVariable: eol\n End of line, inherited from \n*)\nlet eol = Util.doseol\n\n\n(* Group: Separators *)\n\n\n\n(*\nVariable: sep\n Generic separator\n\n Parameters:\n pat:regexp - the pattern to delete\n default:string - the default string to use\n*)\nlet sep (pat:regexp) (default:string)\n = Sep.opt_space . del pat default\n\n(*\nVariable: sep_noindent\n Generic separator, no indentation\n\n Parameters:\n pat:regexp - the pattern to delete\n default:string - the default string to use\n*)\nlet sep_noindent (pat:regexp) (default:string)\n = del pat default\n\n(*\nVariable: sep_re\n The default regexp for a separator\n*)\n\nlet sep_re = \/[=:]\/\n\n(*\nVariable: sep_default\n The default separator value\n*)\nlet sep_default = \"=\"\n\n\n(* Group: Stores *)\n\n\n(*\nVariable: sto_to_eol\n Store until end of line\n*)\nlet sto_to_eol = Sep.opt_space . store Rx.space_in\n\n(*\nVariable: to_comment_re\n Regex until comment\n*)\nlet to_comment_re = \/[^\";# \\t\\n][^\";#\\n]*[^\";# \\t\\n]|[^\";# \\t\\n]\/\n\n(*\nVariable: sto_to_comment\n Store until comment\n*)\nlet sto_to_comment = Sep.opt_space . store to_comment_re\n\n(*\nVariable: sto_multiline\n Store multiline values\n*)\nlet sto_multiline = Sep.opt_space\n . store (to_comment_re\n . (\/[ \\t]*\\n\/ . Rx.space . to_comment_re)*)\n\n(*\nVariable: sto_multiline_nocomment\n Store multiline values without an end-of-line comment\n*)\nlet sto_multiline_nocomment = Sep.opt_space\n . store (Rx.space_in . (\/[ \\t]*\\n\/ . Rx.space . Rx.space_in)*)\n\n\n(* Group: Define comment and defaults *)\n\n(*\nView: comment_noindent\n Map comments into \"#comment\" nodes,\n no indentation allowed\n\n Parameters:\n pat:regexp - pattern to delete before commented data\n default:string - default pattern before commented data\n\n Sample Usage:\n (start code)\n let comment = IniFile.comment_noindent \"#\" \"#\"\n let comment = IniFile.comment_noindent IniFile.comment_re IniFile.comment_default\n (end code)\n*)\nlet comment_noindent (pat:regexp) (default:string) =\n Util.comment_generic_seteol (pat . Rx.opt_space) default eol\n\n(*\nView: comment\n Map comments into \"#comment\" nodes\n\n Parameters:\n pat:regexp - pattern to delete before commented data\n default:string - default pattern before commented data\n\n Sample Usage:\n (start code)\n let comment = IniFile.comment \"#\" \"#\"\n let comment = IniFile.comment IniFile.comment_re IniFile.comment_default\n (end code)\n*)\nlet comment (pat:regexp) (default:string) =\n Util.comment_generic_seteol (Rx.opt_space . pat . Rx.opt_space) default eol\n\n(*\nVariable: comment_re\n Default regexp for pattern\n*)\n\nlet comment_re = \/[;#]\/\n\n(*\nVariable: comment_default\n Default value for pattern\n*)\nlet comment_default = \";\"\n\n(*\nView: empty_generic\n Empty line, including empty comments\n\n Parameters:\n indent:regexp - the indentation regexp\n comment_re:regexp - the comment separator regexp\n*)\nlet empty_generic (indent:regexp) (comment_re:regexp) =\n Util.empty_generic_dos (indent . comment_re? . Rx.opt_space)\n\n(*\nView: empty\n Empty line\n*)\nlet empty = empty_generic Rx.opt_space comment_re\n\n(*\nView: empty_noindent\n Empty line, without indentation\n*)\nlet empty_noindent = empty_generic \"\" comment_re\n\n\n(************************************************************************\n * Group: ENTRY\n *************************************************************************)\n\n(* Group: entry includes comments *)\n\n(*\nView: entry_generic_nocomment\n A very generic INI File entry, not including comments\n It allows to set the key lens (to set indentation\n or subnodes linked to the key) as well as the comment\n separator regexp, used to tune the store regexps.\n\n Parameters:\n kw:lens - lens to match the key, including optional indentation\n sep:lens - lens to use as key\/value separator\n comment_re:regexp - comment separator regexp\n comment:lens - lens to use as comment\n\n Sample Usage:\n > let entry = IniFile.entry_generic (key \"setting\") sep IniFile.comment_re comment\n*)\nlet entry_generic_nocomment (kw:lens) (sep:lens)\n (comment_re:regexp) (comment:lens) =\n let bare_re_noquot = (\/[^\" \\t\\r\\n]\/ - comment_re)\n in let bare_re = (\/[^\\r\\n]\/ - comment_re)+\n in let no_quot = \/[^\"\\r\\n]*\/\n in let bare = Quote.do_dquote_opt_nil (store (bare_re_noquot . (bare_re* . bare_re_noquot)?))\n in let quoted = Quote.do_dquote (store (no_quot . comment_re+ . no_quot))\n in [ kw . sep . (Sep.opt_space . bare)? . (comment|eol) ]\n | [ kw . sep . Sep.opt_space . quoted . (comment|eol) ]\n\n(*\nView: entry_generic\n A very generic INI File entry\n It allows to set the key lens (to set indentation\n or subnodes linked to the key) as well as the comment\n separator regexp, used to tune the store regexps.\n\n Parameters:\n kw:lens - lens to match the key, including optional indentation\n sep:lens - lens to use as key\/value separator\n comment_re:regexp - comment separator regexp\n comment:lens - lens to use as comment\n\n Sample Usage:\n > let entry = IniFile.entry_generic (key \"setting\") sep IniFile.comment_re comment\n*)\nlet entry_generic (kw:lens) (sep:lens) (comment_re:regexp) (comment:lens) =\n entry_generic_nocomment kw sep comment_re comment | comment\n\n(*\nView: entry\n Generic INI File entry\n\n Parameters:\n kw:regexp - keyword regexp for the label\n sep:lens - lens to use as key\/value separator\n comment:lens - lens to use as comment\n\n Sample Usage:\n > let entry = IniFile.entry setting sep comment\n*)\nlet entry (kw:regexp) (sep:lens) (comment:lens) =\n entry_generic (key kw) sep comment_re comment\n\n(*\nView: indented_entry\n Generic INI File entry that might be indented with an arbitrary\n amount of whitespace\n\n Parameters:\n kw:regexp - keyword regexp for the label\n sep:lens - lens to use as key\/value separator\n comment:lens - lens to use as comment\n\n Sample Usage:\n > let entry = IniFile.indented_entry setting sep comment\n*)\nlet indented_entry (kw:regexp) (sep:lens) (comment:lens) =\n entry_generic (Util.indent . key kw) sep comment_re comment\n\n(*\nView: entry_multiline_generic\n A very generic multiline INI File entry\n It allows to set the key lens (to set indentation\n or subnodes linked to the key) as well as the comment\n separator regexp, used to tune the store regexps.\n\n Parameters:\n kw:lens - lens to match the key, including optional indentation\n sep:lens - lens to use as key\/value separator\n comment_re:regexp - comment separator regexp\n comment:lens - lens to use as comment\n eol:lens - lens for end of line\n\n Sample Usage:\n > let entry = IniFile.entry_generic (key \"setting\") sep IniFile.comment_re comment comment_or_eol\n*)\nlet entry_multiline_generic (kw:lens) (sep:lens) (comment_re:regexp)\n (comment:lens) (eol:lens) =\n let newline = \/\\r?\\n[ \\t]+\/\n in let bare =\n let word_re_noquot = (\/[^\" \\t\\r\\n]\/ - comment_re)+\n in let word_re = (\/[^\\r\\n]\/ - comment_re)+\n in let base_re = (word_re_noquot . (word_re* . word_re_noquot)?)\n in let sto_re = base_re . (newline . base_re)*\n | (newline . base_re)+\n in Quote.do_dquote_opt_nil (store sto_re)\n in let quoted =\n let no_quot = \/[^\"\\r\\n]*\/\n in let base_re = (no_quot . comment_re+ . no_quot)\n in let sto_re = base_re . (newline . base_re)*\n | (newline . base_re)+\n in Quote.do_dquote (store sto_re)\n in [ kw . sep . (Sep.opt_space . bare)? . eol ]\n | [ kw . sep . Sep.opt_space . quoted . eol ]\n | comment\n \n\n(*\nView: entry_multiline\n Generic multiline INI File entry\n\n Parameters:\n kw:regexp - keyword regexp for the label\n sep:lens - lens to use as key\/value separator\n comment:lens - lens to use as comment\n*)\nlet entry_multiline (kw:regexp) (sep:lens) (comment:lens) =\n entry_multiline_generic (key kw) sep comment_re comment (comment|eol)\n\n(*\nView: entry_multiline_nocomment\n Generic multiline INI File entry without an end-of-line comment\n\n Parameters:\n kw:regexp - keyword regexp for the label\n sep:lens - lens to use as key\/value separator\n comment:lens - lens to use as comment\n*)\nlet entry_multiline_nocomment (kw:regexp) (sep:lens) (comment:lens) =\n entry_multiline_generic (key kw) sep comment_re comment eol\n\n(*\nView: entry_list\n Generic INI File list entry\n\n Parameters:\n kw:regexp - keyword regexp for the label\n sep:lens - lens to use as key\/value separator\n sto:regexp - store regexp for the values\n list_sep:lens - lens to use as list separator\n comment:lens - lens to use as comment\n*)\nlet entry_list (kw:regexp) (sep:lens) (sto:regexp) (list_sep:lens) (comment:lens) =\n let list = counter \"elem\"\n . Build.opt_list [ seq \"elem\" . store sto ] list_sep\n in Build.key_value_line_comment kw sep (Sep.opt_space . list) comment\n\n(*\nView: entry_list_nocomment\n Generic INI File list entry without an end-of-line comment\n\n Parameters:\n kw:regexp - keyword regexp for the label\n sep:lens - lens to use as key\/value separator\n sto:regexp - store regexp for the values\n list_sep:lens - lens to use as list separator\n*)\nlet entry_list_nocomment (kw:regexp) (sep:lens) (sto:regexp) (list_sep:lens) =\n let list = counter \"elem\"\n . Build.opt_list [ seq \"elem\" . store sto ] list_sep\n in Build.key_value_line kw sep (Sep.opt_space . list)\n\n(*\nVariable: entry_re\n Default regexp for keyword\n*)\nlet entry_re = ( \/[A-Za-z][A-Za-z0-9._-]*\/ )\n\n\n(************************************************************************\n * Group: RECORD\n *************************************************************************)\n\n(* Group: Title definition *)\n\n(*\nView: title\n Title for . This maps the title of a record as a node in the abstract tree.\n\n Parameters:\n kw:regexp - keyword regexp for the label\n\n Sample Usage:\n > let title = IniFile.title IniFile.record_re\n*)\nlet title (kw:regexp)\n = Util.del_str \"[\" . key kw\n . Util.del_str \"]\". eol\n\n(*\nView: indented_title\n Title for . This maps the title of a record as a node in the abstract tree. The title may be indented with arbitrary amounts of whitespace\n\n Parameters:\n kw:regexp - keyword regexp for the label\n\n Sample Usage:\n > let title = IniFile.title IniFile.record_re\n*)\nlet indented_title (kw:regexp)\n = Util.indent . title kw\n\n(*\nView: title_label\n Title for . This maps the title of a record as a value in the abstract tree.\n\n Parameters:\n name:string - name for the title label\n kw:regexp - keyword regexp for the label\n\n Sample Usage:\n > let title = IniFile.title_label \"target\" IniFile.record_label_re\n*)\nlet title_label (name:string) (kw:regexp)\n = label name\n . Util.del_str \"[\" . store kw\n . Util.del_str \"]\". eol\n\n(*\nView: indented_title_label\n Title for . This maps the title of a record as a value in the abstract tree. The title may be indented with arbitrary amounts of whitespace\n\n Parameters:\n name:string - name for the title label\n kw:regexp - keyword regexp for the label\n\n Sample Usage:\n > let title = IniFile.title_label \"target\" IniFile.record_label_re\n*)\nlet indented_title_label (name:string) (kw:regexp)\n = Util.indent . title_label name kw\n\n\n(*\nVariable: record_re\n Default regexp for keyword pattern\n*)\nlet record_re = ( \/[^]\\r\\n\\\/]+\/ - \/#comment\/ )\n\n(*\nVariable: record_label_re\n Default regexp for <title_label> keyword pattern\n*)\nlet record_label_re = \/[^]\\r\\n]+\/\n\n\n(* Group: Record definition *)\n\n(*\nView: record_noempty\n INI File Record with no empty lines allowed.\n\n Parameters:\n title:lens - lens to use for title. Use either <title> or <title_label>.\n entry:lens - lens to use for entries in the record. See <entry>.\n*)\nlet record_noempty (title:lens) (entry:lens)\n = [ title\n\t\t . entry* ]\n\n(*\nView: record\n Generic INI File record\n\n Parameters:\n title:lens - lens to use for title. Use either <title> or <title_label>.\n entry:lens - lens to use for entries in the record. See <entry>.\n\n Sample Usage:\n > let record = IniFile.record title entry\n*)\nlet record (title:lens) (entry:lens)\n = record_noempty title ( entry | empty )\n\n\n(************************************************************************\n * Group: GENERIC LENSES\n *************************************************************************)\n\n\n(*\n\nGroup: Lens definition\n\nView: lns_noempty\n Generic INI File lens with no empty lines\n\n Parameters:\n record:lens - record lens to use. See <record_noempty>.\n comment:lens - comment lens to use. See <comment>.\n\n Sample Usage:\n > let lns = IniFile.lns_noempty record comment\n*)\nlet lns_noempty (record:lens) (comment:lens)\n = comment* . record*\n\n(*\nView: lns\n Generic INI File lens\n\n Parameters:\n record:lens - record lens to use. See <record>.\n comment:lens - comment lens to use. See <comment>.\n\n Sample Usage:\n > let lns = IniFile.lns record comment\n*)\nlet lns (record:lens) (comment:lens)\n = lns_noempty record (comment|empty)\n\n\n(************************************************************************\n * Group: READY-TO-USE LENSES\n *************************************************************************)\n\nlet record_anon (entry:lens) = [ label \"section\" . value \".anon\" . ( entry | empty )+ ]\n\n(*\nView: lns_loose\n A loose, ready-to-use lens, featuring:\n - sections as values (to allow '\/' in names)\n - support empty lines and comments\n - support for [#;] as comment, defaulting to \";\"\n - .anon sections\n - don't allow multiline values\n - allow indented titles\n - allow indented entries\n*)\nlet lns_loose = \n let l_comment = comment comment_re comment_default\n in let l_sep = sep sep_re sep_default\n in let l_entry = indented_entry entry_re l_sep l_comment\n in let l_title = indented_title_label \"section\" (record_label_re - \".anon\")\n in let l_record = record l_title l_entry\n in (record_anon l_entry)? . l_record*\n\n(*\nView: lns_loose_multiline\n A loose, ready-to-use lens, featuring:\n - sections as values (to allow '\/' in names)\n - support empty lines and comments\n - support for [#;] as comment, defaulting to \";\"\n - .anon sections\n - allow multiline values\n*)\nlet lns_loose_multiline = \n let l_comment = comment comment_re comment_default\n in let l_sep = sep sep_re sep_default\n in let l_entry = entry_multiline entry_re l_sep l_comment\n in let l_title = title_label \"section\" (record_label_re - \".anon\")\n in let l_record = record l_title l_entry\n in (record_anon l_entry)? . l_record*\n\n","avg_line_length":28.523381295,"max_line_length":149,"alphanum_fraction":0.6369254051} {"size":12121,"ext":"aug","lang":"Augeas","max_stars_count":201.0,"content":"\/\/##69. Returns - 1. return must be possible - simple elifs\n\/\/TODO: switch statement can result in the case of returns being a problem. elif and try\/catch are covered fully though!\ndef s() {5>6 } def fooFail1() int\n{\n\tif(s()){ return 6 }\n}\n\n\ndef fooFail2() int\n{\n\tif(s()){ return 6 }\n\telse { }\n}\n\ndef fooFail3() int\n{\n\tif(s()){ return 6 }\n\telif(s()) {}\n}\n\ndef fooFail4() int\n{\n\tif(s()){ return 6 }\n\telif(s()) {}\n\telse{return 55}\n}\n\ndef fooFail5() int\n{\n\tif(s()){ return 6 }\n\telif(s()) {return 66 }\n}\n\ndef fooOK() int{\n\tif(s()){ return 6 } \n\treturn 7\n}\n\ndef fooOK2() int{\n\tif(s()){ return 6 } else { return 7}\n}\n\ndef fooOK3() int\n{\n\tif(s()){ return 6 }\n\treturn 2\n}\n\n\n~~~~~\n\/\/##69. Returns - 2 - nested blocks\n\ndef foo1() int\n{\n\t {return 6 }\n}\n\ndef foo2() int\n{\n\t{ {return 6 }}\n}\n\ndef ss() {5>6 } def foo3() int {\n\tif(ss()) { {return 6 } }\n\telse { {return 6 } }\n}\n\n~~~~~\n\/\/##69. Returns - 3. return must be possible - simple exceptions\n\ndef fooAhItNoFail1() int\n{\/\/doesnt fail\n\ttry{ return 6 } finally { }\n}\n\n\ndef fooAhItNoFail2() int\n{\/\/doesnt fail\n\ttry{ return 6 }\n\tfinally { }\n}\n\ndef fooFail3() int\n{\n\ttry{ return 6 }\n\tcatch(e Exception) {}\n}\n\ndef fooFail4() int \/\/this doesnt fail because return always in finally block\n{\n\ttry{ return 6 }\n\tcatch(e Exception) {}\n\tfinally{}\treturn 55\n}\n\ndef fooFail5() int\n{\n\ttry{ return 6 }\n\tcatch(e Exception) {return 66 }\n}\n\ndef fooOKFailUnreach() int{\n\ttry{ return 6 } catch(e Exception) {return 66 }\n\treturn 7\n}\n\ndef fooOK() int{\n\ttry{ return 6 } catch(e Exception) {return 66 }\n}\n\ndef fooOK2() int{\n\ttry{ return 6 } finally { }\n}\n\ndef fooOK3FailUnreach() int\n{\n\ttry{ return 6 }catch(e Exception) {return 66 }\n\treturn 2\n}\n\ndef fooOK3() int\n{\n\ttry{ return 6 }catch(e Exception) {return 66 }\n}\n\n\n~~~~~\n\/\/##69. Returns - 4. deadcode analysis 1\n\ndef fail1() int\n{\n\treturn 69;\n\ta = 8;\n}\n\ndef fail2() int\n{\n\t{ return 69; }\n\ta = 8;\n}\n\n\ndef fail3() int\n{\n\tthrow new Exception(\"\");\n\treturn 8;\n}\n\ndef fail4() int\n{\n\t{throw new Exception(\"\");}\n\treturn 8;\n}\n\ndef s() {5>6 } def fail5() int\n{\n\tif(s()){throw new Exception(\"\")}\n\telse {throw new Exception(\"\") }\n\treturn 8;\n}\n\ndef fail6() int\n{\n\tif(s())\n\t{\n\t\tif(s()){throw new Exception(\"\")}\n\t\telse {throw new Exception(\"\") }\n\t}\n\telse{\n\t\tthrow new Exception(\"\");\n\t}\n\t\n\treturn 8;\n}\n\ndef fail7() int\n{\n\ttry\n\t{\n\t\tif(s()){throw new Exception(\"\")}\n\t\telse {throw new Exception(\"\") }\n\t}\n\tfinally\n\t{\n\t\tthrow new Exception(\"\")\n\t}\n\treturn 8;\n}\n\ndef ok1() int\n{\n\ttry\n\t{\n\t\tif(s()){throw new Exception(\"\")}\n\t\telse {throw new Exception(\"\") }\n\t}\n\tcatch(e Exception)\n\t{\n\t\n\t}\n\treturn 8;\n}\n\ndef ok2() int\n{\n\ttry\n\t{\n\t\tif(s()){throw new Exception(\"\")}\n\t\telse {throw new Exception(\"\") }\n\t}\n\tcatch(e Exception)\n\t{\n\t\n\t}\n\treturn 8;\n}\n\n~~~~~\n\/\/##69. Returns - 4. oh yeah, lambdas\ndef s() {5>6 } \nxxx = def () int { if(s()){ return 6 } else { } }\n\n~~~~~\n\/\/##69. Returns - on other special stuff..\n\/\/good enough for now but may need to fix this in the future\ndef aa() int{\n\tfor(a in [1,2,3])\t{\/\/TODO: throws the wrong exception, should be - This method must return a result of type INT, problem with is last thing ret type logic \n\t\treturn a\/\/ERROR as for etc dont complete returns\n\t}\n}\n\ndef ggg() int{\n\ttry(null)\t{\n\t\treturn 6; \/\/with does! complete returs\n\t}\n}\n\ndef ggg2() int{\n\ttry(null)\t{\n\t\t\/\/back to fail\n\t}\n}\n\ndef fail() int\n{\n\ttry(null)\n\t{\n\t\tthrow new Exception(\"\")\n\t}\n\treturn 6\/\/cannot reach this!\n}\n\n\ndef fail2() int\n{\n\t\n\tsync{throw new Exception(\"\")}\n\treturn 6 \/\/no!\n}\n\n~~~~~\n\/\/##69. Returns-deadcode - in classes and also nested functions et al\n\ndef s() {5>6 }class Fail1\n{\n\tdef xx() int\n\t{\n\t\tif(s())\n\t\t{\n\t\t\treturn 6;\n\t\t}\n\t}\/\/fail\n}\n\nclass ok1\n{\n\tdef xx() int\n\t{\n\t\tif(s())\n\t\t{\n\t\t\treturn 6;\n\t\t} return 7\n\t}\n}\n\nclass Fail2\n{\n\tdef xx() int\n\t{\n\t\tdef inner() int\n\t\t{\n\t\t\t\/\/also fail here as inner\n\t\t}\n\t\treturn 6\n\t}\n}\n\nclass ok2\n{\n\tdef xx() int\n\t{\n\t\tdef inner() int\n\t\t{\n\t\t\treturn 7\n\t\t}\n\t\treturn 6\n\t}\n}\n\nclass Fail3\n{\n\tdef xx() int\n\t{\n\t\tfor(a in [1,2,3])\n\t\t{\n\t\t\tthrow new Exception(\"\")\n\t\t\tg = 8\/\/err - deadcode\n\t\t}\n\t\treturn 6\/\/this is not deadcode\n\t}\n}\n\nclass Fail4\n{\n\tdef xx() int\n\t{\n\t\tfor(a in [1,2,3])\n\t\t{\n\t\t\treturn 8\n\t\t\tg = 8\/\/err - deadcode\n\t\t}\n\t\treturn 6\n\t}\n}\n\n~~~~~\n\/\/##69. Returns-deadcode - 2 after break and cotinue\n\ndef Fail1() {\n\tfor(a in [1,2,3]) {\n\t\tbreak;\n\t\tg = 9 \/\/no!\n\t}\n}\n\ndef Fail2() {\n\tfor(a in [1,2,3]) {\n\t\tcontinue;\n\t\tg = 9\n\t}\n}\n\ndef s() {5>6 }def OK() {\n\tfor(a in [1,2,3]) {\n\t\tif(s())\n\t\t{\n\t\t\tbreak;\n\t\t}\n\t\tg = 9 \/\/no!\n\t}\n}\n\ndef Failcomplex3() {\n\tfor(a in [1,2,3]) {\n\t\tif(s())\n\t\t{\n\t\t\tbreak;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcontinue;\n\t\t}\n\t\tg = 9 \/\/no!\n\t}\n}\n\n\n\n~~~~~\n\/\/##69. break etc dont bleed beyond the for block, or while etc\ndef OK() int\n{\n\tfor(a in [1,2,3]) {\n\t\tbreak;\n\t}\n\tg int = 57\n\treturn g\n}\n\n\ndef OK2() int\n{\n\twhile(true) {\n\t\tbreak;\n\t}\n\tg int= 57\n\treturn g\n}\n\ndef FAILreallywillbreak() int\n{\n\tfor(a in [1,2,3]) {\n\t\ttry{ break; } finally { } \n\t\tkk=8\n\t}\n\tg int = 57\n\treturn g\n}\n\n~~~~~\n\/\/##69. exceptions thrown in try catch make stuff unreachable\ndef exceper(n int) String {\n\tret = \"\";\n\t\n\ttry{\n\t\tret = \"mainBlock\";\n\t\t\/\/thrower()\n\t\tthrow new Exception(\"Dd2d\")\n\t\th=9 \/\/unreachable\n\t}\n\tcatch(e Exception)\n\t{\n\t\tret = \"excep\";\n\t}\n\t\n\treturn ret;\n}\n\n~~~~~\n\/\/##70. double check returns inside lambda\n\/\/expected to all be ok\ndef one(a int) int{\n\ta+3; \/\/missing ret\n}\n\nlam = def (a int) int{\n\ta+3; \/\/missing ret\n}\n\ndef retLambda() (int) int{\n\tx = def (a int) int { a + 12;}\n\treturn def (a int) int { a + 12;}\n}\n\n~~~~~\n\/\/##71. unreachable code after exception raised inside catch block\n\nclass A<T> with Cloneable, java.io.Serializable {\n \/\/length int = X ;\n override clone() T[] {\n try {\n return super.clone() as T[]; \/\/ unchecked warning\n } catch (e CloneNotSupportedException) {\n throw new InternalError(e.getMessage());\n }\n return null;\/\/should be tagged as unreachable code\n }\n}\n\nclass B<T> with Cloneable, java.io.Serializable {\/\/this variant is ok\n override clone() T[] {\n try {\n return super.clone() as T[]; \/\/ unchecked warning\n } catch (e CloneNotSupportedException) {\n throw new InternalError(e.getMessage());\n }\n }\n}\n\n~~~~~\n\/\/##72. this is fine\n\ndef doings() String {\t\n\ttry{\n\t\treturn \"\"\n\t}\n\tfinally{\n\t\n\t}\n}\n\n~~~~~\n\/\/##73. this is also fine\ncnt = 0;\ndef s() {5>6 }def mycall(fail boolean) int { \n\tif(fail){\n\t\tthrow new Exception(\"ee\");\n\t}\n\telse{ return ++cnt; }\n}\n\ndef mycall2(fail boolean) int { \/\/if stmt throws an exception, so no ret necisary really\n\tif(fail){\n\t\tthrow new Exception(\"ee\");\n\t}\n\telif(s()){\n\t\treturn 77\n\t}\n\telse{ return ++cnt; }\n}\n\n~~~~~\n\/\/##74. defo returns in all catches means all returns\n\ndef testMethAlwaysThrows1(fail1 boolean) int {\n\ttry{ \n\t\tif(fail1){ throw new Exception(\"\") }\n\t\telse { throw new Exception(\"\") }\n\t}\n\tcatch(e Exception){\n\t\t return 12\n\t}\n\tcatch(e Throwable){\n\t\t return 12\n\t}\n\t\/\/return 99\n}\n\n~~~~~\n\/\/##75. defo returns in some catches not all return\n\ndef testMethAlwaysThrows1(fail1 boolean) int {\n\ttry{ \n\t\tif(fail1){ throw new Exception(\"\") }\n\t\telse { throw new Exception(\"\") }\n\t}\n\tcatch(e Exception){\n\t\t \n\t}\n\tcatch(e Throwable){\n\t\t return 12\n\t}\n\treturn 99\n}\n\n~~~~~\n\/\/##76.1 misc\n\ndef tcFail1() { \/\/synthetic return doesnt trigger inf loop\n\tx=1\n\tfor (;;) { a=1}\n}\n\n~~~~~\n\/\/##76.1.1 inifinite loop - for - on own\n\ndef failola() String{\n\tfor (;;) { a=1}\n\t\"odd\"\/\/never gets here\n}\n\n~~~~~\n\/\/##76.1.2 inifinite loop - for - tcf\n\ndef tcFail1() String{\n\ttry {\n\t for (;;) { a=1}\/\/defo goes here\n\t} catch (e Error) {\n\t System.out.println(e + \", \" + (1==1));\n\t}\n\t\"uh oh\"\n}\n\ndef tcFail2() String{\n\ttry {\n\t x=\"uh oh\"\n\t} catch (e Error) {\n\t f=9\n\t}\n\tfinally{\n\t\tfor (;;) { a=1}\/\/defo goes here\n\t}\n\t\"odd\"\n}\n\ndef tcOk() String{\n\t\n\ttry {\n\t x=\"uh oh\"\n\t} catch (e Error) {\/\/may not go into\n\t for (;;) { a=1}\n\t}\n\t\"odd\"\n}\n\n~~~~~\n\/\/##76.1.3 inifinite loop - for - if\n\n\ndef s() {5>6 }def tcFail1() String{\n\tif( s()){\n\t\t for (;;) { a=1}\/\/defo goes here\n\t}else{\n\t\t for (;;) { a=1}\/\/defo goes here\n\t}\n\t\"uh oh\"\n}\n\n\ndef tcFail2() String{\n\tif( s()){\n\t\t for (;;) { a=1}\/\/defo goes here\n\t}elif( s()){\n\t\t for (;;) { a=1}\/\/defo goes here\n\t}else{\n\t\t for (;;) { a=1}\/\/defo goes here\n\t}\n\t\"uh oh\"\n}\n\n\ndef tcOk() String{\n\tif( s()){\n\t\t for (;;) { a=1}\/\/defo goes here\n\t}\n\t\n\t\"uh oh\"\n}\n\n~~~~~\n\/\/##76.1.4 inifinite loop - for - for old\n\ndef tcFail1() String{\n\n\tfor( n=0; n < 10; n++){\n\t\tfor (;;) { a=1}\/\/defo goes here\n\t}\n\n\t\"uh oh\"\n}\n\n~~~~~\n\/\/##76.1.5 inifinite loop - for - for old \ndef tcFail1() String{\n\tfor( n=0; {for (;;) { a=1}; n < 10}; n++){\n\t\ta=9\/\/defo goes here\n\t}\n\t\"uh oh\"\n}\n\n~~~~~\n\/\/##76.1.5.b inifinite loop - for - for old cond \nn=9\ndef tcFail1() String{\n\tfor( n=0; {for (;2>1;) { a=1}; n < 10}; n++){\n\t\ta=9\/\/defo goes here\n\t}\n\t\"uh oh\"\n}\n \n\n~~~~~\n\/\/##76.1.6 inifinite loop - for - for new \n\ndef tcFail1() String{\n\n\tfor( x in [1,2,3] ){\n\t\tfor (;;) { a=1}\/\/defo goes here\n\t}\n\n\t\"uh oh\"\n}\n\ndef fine() {\n\n\tfor( x in [1,2,3] ){\n\t\tfor (;;) { a=1}\/\/a ok\n\t}\n}\n\n~~~~~\n\/\/##76.1.7 inifinite loop - for - while \n\nf = false\n\ndef aOK() {\n\twhile(f){\n\t\tfor (;;) { a=1}\/\/defo goes here\n\t}\n}\n\ndef fail() {\n\twhile(f){\n\t\tfor (;;) { a=1}\/\/defo goes here\n\t}\n\t\"oh no\"\n}\n\n~~~~~\n\/\/##76.1.8 inifinite loop - for - ananon block \n\ndef failos() String {\n\t{\n\t\tfor (;;) { a=1}\/\/defo goes here\n\t}\n\t\"oh no\"\n\t\/\/return\n}\n\n~~~~~\n\/\/##76.1.9 inifinite loop - for - async block \n\ndef compok1() String {\n\n\t{\n\t\tfor (;;) { a=1}\/\/defo goes here\n\t}!\n\t\"oh no\"\n\t\/\/return\n}\n\n~~~~~\n\/\/##76.1.10 inifinite loop - for - barrier block and with block\n\ndef compok1() String {\n\tsync{\n\t\tfor (;;) { a=1}\/\/defo goes here\n\t}\/\/and same for with but no test so meh! \/\/its not an inf loop though...\n\t\"oh no\"\n\t\/\/return\n}\n\n~~~~~\n\/\/##76.1.1 inifinite loop - while - goes on forever cases\n\n\/\/dont bother testing inside for loops etc, the code is the same\ndef forever1() String {\n\twhile(true) { }\n\t\"oh no\"\/\/goes on forever\n}\n\ndef forever2() String {\n\twhile(true or false) { }\n\t\"oh no\"\/\/goes on forever\n}\n\ndef forever3() String {\n\twhile(not false) { }\n\t\"oh no\"\/\/goes on forever\n}\n\ndef forever4() String {\n\twhile(true and true) { }\n\t\"oh no\"\/\/goes on forever\n}\n\n~~~~~\n\/\/##77. misc bug, last thing ret doesnt have to be an expression\n\nb={[1,1]}!\n\ndef doings() String{\n\tj1 = ++b[0] \/\/not an expression, thus fail\n}\n\n~~~~~\n\/\/##78. onchange return analysis at least one must return here\n\ndef doings() {\n\txs int:\n\tlog := \"\"\n\tres = onchange(xs){\n\t\tlog += xs\n\t\tif(xs==6){\n\t\t\tlog += \" go into so ret\"\n\t\t\tbreak\/\/just escapes with no write to var\n\t\t}\n\t\tlog += \" got ret 9\"\n\t\treturn \n\t}\n\txs=24\n\tawait(log;log==\"24 got ret 9\")\n\txs=6\n\tawait(log;log==\"24 got ret 96 go into so ret\")\n\t\"\" + [res, log]\n}\n\n~~~~~\n\/\/##79. await validation for ret\n\ndef doings() {\n\txs int: = 6\n\tawait(xs;{ if(xs==6) {return 2}; true})\/\/fail\n\t\"\" + xs\n}\n\n~~~~~\n\/\/##80. await validation for ret -2\n\ndef doings() {\n\txs int: = 6\n\tawait(xs;{ if(xs==6) {return }; true})\/\/fail - must define something\n\t\"\" + xs\n}\n\n\n~~~~~\n\/\/##81. this inf loop triggers no deadcode\n\nfrom com.concurnas.runtime.channels import PriorityQueue\n\ndef doings(){\n\tpq = PriorityQueue<String?>()\n\t\n\tisDone:=false\n\tcnt:=0\n\t{\n\t\twhile(true)\n\t\t{\n\t\t\tgot = pq.pop()\n\t\t\tcnt++;\n\t\t\tif(null == got){\n\t\t\t\tisDone = true\n\t\t\t}\n\t\t}\n\t}!\n\t\n\tpq.add(1, \"one\")\n\tpq.add(1, null)\n\t\n\tawait(isDone;isDone)\n\t\n\t\"nice \" + cnt\n}\n\n~~~~~\n\/\/##82. if statement resolves always to true or false\n\ndef something() => false\n\nclass Myc()\n\ndef t1(){\n\tif(true){a=\"\"}\n}\n\ndef t2(){\n\tif(false){a=\"\"}\n}\n\ndef t3(){\n\tif(true){\"\"}elif(something()){\"\"} else{\"\"}\n}\n\ndef t4(){\n\tif(false){\"\"}elif(something()){\"\"} else{\"\"}\n}\n\ndef t5(){\n\tif(something()){a=\"\"}elif(true){a=\"\"}\n}\n\ndef t6(){\n\tif(something()){a=\"\"}elif(false){a=\"\"} \n}\n\ndef t7(){\n\tif(something()){a=\"\"}elif(true){a=\"\"} else{a=\"\"}\n}\n\ndef t8(){\n\tif(something()){a=\"\"}elif(false){a=\"\"} else{a=\"\"}\n}\n\n\ndef doings(){\n\t\"\" \n}\n\n~~~~~\n\/\/##83. if expresssion resolves always to true or false\n\n\ndef d1(){\n\tx = 1 if true else 2\n}\n\ndef d2(){\n\tx = 1 if false else 2\n}\n\ndef doings() => \"ok\"\n\n~~~~~\n\/\/##84. impossible to assign on paths which return dont invalidate\n\ndef fff() => false\n\ndef doings(){\n\n\ta String\n\tif(fff()){\n\t\ta = \"ok\"\n\t}else{\n\t\treturn 'ok'\/\/a is not set but it doesnt matter as if we get to this path \n\t\t\/\/we have returned already\n\t}\n\ta\n}\n","avg_line_length":13.4677777778,"max_line_length":156,"alphanum_fraction":0.5610098177} {"size":1182,"ext":"aug","lang":"Augeas","max_stars_count":1.0,"content":"(*\nModule: Postfix_Transport\n Parses \/etc\/postfix\/transport\n\nAuthor: Raphael Pinson <raphael.pinson@camptocamp.com>\n\nAbout: Reference\n This lens tries to keep as close as possible to `man 5 transport` where possible.\n\nAbout: License\n This file is licenced under the LGPL v2+, like the rest of Augeas.\n\nAbout: Lens Usage\n To be documented\n\nAbout: Configuration files\n This lens applies to \/etc\/postfix\/transport. See <filter>.\n\nAbout: Examples\n The <Test_Postfix_Transport> file contains various examples and tests.\n*)\n\nmodule Postfix_Transport =\n\nautoload xfm\n\n(* View: space_or_eol *)\nlet space_or_eol = del \/([ \\t]*\\n)?[ \\t]+\/ \" \"\n\n(* View: colon *)\nlet colon = Sep.colon\n\n(* View: transport *)\nlet transport = [ label \"transport\" . (store Rx.word)? ]\n\n(* View: nexthop *)\nlet nexthop = [ label \"nexthop\" . (store Rx.space_in)? ]\n\n(* View: record *)\nlet record = [ label \"pattern\" . store \/[A-Za-z0-9@\\*.-]+\/\n . space_or_eol . transport\n . colon . nexthop\n . Util.eol ]\n\n(* View: lns *)\nlet lns = (Util.empty | Util.comment | record)*\n\n(* Variable: filter *)\nlet filter = incl \"\/etc\/postfix\/transport\"\n\nlet xfm = transform lns filter\n","avg_line_length":22.7307692308,"max_line_length":83,"alphanum_fraction":0.6666666667} {"size":1562,"ext":"aug","lang":"Augeas","max_stars_count":1.0,"content":"(* This began as a copy of <Puppet> *)\n\nmodule Tracini =\n autoload xfm\n\n(************************************************************************\n * INI File settings\n *\n * puppet.conf only supports \"# as commentary and \"=\" as separator\n *************************************************************************)\nlet comment = IniFile.comment \"#\" \"#\"\nlet sep = IniFile.sep \"=\" \"=\"\n\n\n(************************************************************************\n * ENTRY\n * puppet.conf uses standard INI File entries\n *************************************************************************)\n(* began with IniFile.entry_re *)\n(* added star as a valid non-first char in entry keys *)\n(* allowed single-character entry keys *)\nlet entry_re = ( \/[A-Za-z][A-Za-z0-9*\\._-]*\/ )\nlet entry = IniFile.indented_entry entry_re sep comment\n\n\n(************************************************************************\n * RECORD\n * puppet.conf uses standard INI File records\n *************************************************************************)\nlet title = IniFile.indented_title IniFile.record_re\nlet record = IniFile.record title entry\n\n\n(************************************************************************\n * LENS & FILTER\n * puppet.conf uses standard INI File records\n *************************************************************************)\nlet lns = IniFile.lns record comment\n\nlet filter = (incl \"\/var\/www\/tracs\/*\/conf\/trac.ini\")\n\nlet xfm = transform lns filter\n","avg_line_length":36.3255813953,"max_line_length":75,"alphanum_fraction":0.3898847631} {"size":1516,"ext":"aug","lang":"Augeas","max_stars_count":22.0,"content":"(*\nModule: Test_Postfix_Transport\n Provides unit tests and examples for the <Postfix_Transport> lens.\n*)\n\nmodule Test_Postfix_Transport =\n\n(* View: conf *)\nlet conf = \"# a comment\nthe.backed-up.domain.tld relay:[their.mail.host.tld]\n.my.domain :\n* smtp:outbound-relay.my.domain\nexample.com uucp:example\nexample.com slow:\nexample.com :[gateway.example.com]\nuser.foo@example.com \n smtp:bar.example:2025\n.example.com error:mail for *.example.com is not deliverable\n\/^bounce\\+.*\/ sympabounce:\n\"\n\n(* Test: Postfix_Transport.lns *)\ntest Postfix_Transport.lns get conf =\n { \"#comment\" = \"a comment\" }\n { \"pattern\" = \"the.backed-up.domain.tld\"\n { \"transport\" = \"relay\" }\n { \"nexthop\" = \"[their.mail.host.tld]\" } }\n { \"pattern\" = \".my.domain\"\n { \"transport\" }\n { \"nexthop\" } }\n { \"pattern\" = \"*\"\n { \"transport\" = \"smtp\" }\n { \"nexthop\" = \"outbound-relay.my.domain\" } }\n { \"pattern\" = \"example.com\"\n { \"transport\" = \"uucp\" }\n { \"nexthop\" = \"example\" } }\n { \"pattern\" = \"example.com\"\n { \"transport\" = \"slow\" }\n { \"nexthop\" } }\n { \"pattern\" = \"example.com\"\n { \"transport\" }\n { \"nexthop\" = \"[gateway.example.com]\" } }\n { \"pattern\" = \"user.foo@example.com\"\n { \"transport\" = \"smtp\" }\n { \"nexthop\" = \"bar.example:2025\" } }\n { \"pattern\" = \".example.com\"\n { \"transport\" = \"error\" }\n { \"nexthop\" = \"mail for *.example.com is not deliverable\" } }\n { \"pattern\" = \"\/^bounce\\+.*\/\"\n { \"transport\" = \"sympabounce\" }\n { \"nexthop\" } }\n\n\n","avg_line_length":28.0740740741,"max_line_length":68,"alphanum_fraction":0.5824538259} {"size":2715,"ext":"aug","lang":"Augeas","max_stars_count":1.0,"content":"module Test_postgresql =\n let empty = Postgresql.empty\n let entry = Postgresql.entry\n let lns = Postgresql.lns\n\n test empty get \"\\n\" = {}\n test entry get \"\\n\" = *\n test lns get \"\n# This is a comment\nsetting = value\n\" = (\n { }\n { \"#comment\" = \"This is a comment\" }\n { \"setting\" = \"value\" }\n)\n\n test lns get \"\nsetting = value # same-line comment\n\" = (\n { }\n { \"setting\" = \"value\"\n { \"#comment\" = \"same-line comment\" }\n }\n)\n\n (* i guess IniFile isn't so smart as to remove and re-add quotes *)\n test lns get \"\nsetting = \\\"value with spaces\\\"\n\" = (\n { }\n { \"setting\" = \"\\\"value with spaces\\\"\" }\n)\n\n (* nor to ignore comment characters inside quotes *)\n test lns get \"\nsetting = \\\"value with # bla\\\" # psyche out\n\" = (\n { }\n { \"setting\" = \"\\\"value with\"\n { \"#comment\" = \"bla\\\" # psyche out\" }\n }\n)\n\n test lns get \"\n\n#------------------------------------------------------------------------------\n# CLIENT CONNECTION DEFAULTS\n#------------------------------------------------------------------------------\n\n# These settings are initialized by initdb, but they can be changed.\nlc_messages = 'en_US.UTF-8' # locale for system error message\n # strings\nlc_monetary = 'en_US.UTF-8' # locale for monetary formatting\nlc_numeric = 'en_US.UTF-8' # locale for number formatting\nlc_time = 'en_US.UTF-8' # locale for time formatting\n\n# default configuration for text search\ndefault_text_search_config = 'pg_catalog.english'\n\n# - Other Defaults -\n\n#dynamic_library_path = '$libdir'\n#local_preload_libraries = ''\n\" = (\n { }\n { }\n { \"#comment\" = \"------------------------------------------------------------------------------\" }\n { \"#comment\" = \"CLIENT CONNECTION DEFAULTS\" }\n { \"#comment\" = \"------------------------------------------------------------------------------\" }\n { }\n { \"#comment\" = \"These settings are initialized by initdb, but they can be changed.\" }\n { \"lc_messages\" = \"'en_US.UTF-8'\"\n { \"#comment\" = \"locale for system error message\" }\n }\n { \"#comment\" = \"strings\" }\n { \"lc_monetary\" = \"'en_US.UTF-8'\"\n { \"#comment\" = \"locale for monetary formatting\" }\n }\n { \"lc_numeric\" = \"'en_US.UTF-8'\"\n { \"#comment\" = \"locale for number formatting\" }\n }\n { \"lc_time\" = \"'en_US.UTF-8'\"\n { \"#comment\" = \"locale for time formatting\" }\n }\n { }\n { \"#comment\" = \"default configuration for text search\" }\n { \"default_text_search_config\" = \"'pg_catalog.english'\" }\n { }\n { \"#comment\" = \"- Other Defaults -\" }\n { }\n { \"#comment\" = \"dynamic_library_path = '$libdir'\" }\n { \"#comment\" = \"local_preload_libraries = ''\" }\n)\n\n","avg_line_length":28.5789473684,"max_line_length":99,"alphanum_fraction":0.5038674033} {"size":1949,"ext":"aug","lang":"Augeas","max_stars_count":null,"content":"module Oned =\n autoload xfm\n\n(* primitives *)\nlet sep = del \/[ \\t]*=[ \\t]*\/ \" = \"\nlet eol = del \/\\n\/ \"\\n\"\nlet opt_space = del \/[ \\t]*\/ \"\"\nlet opt_space_nl = del \/[ \\t\\n]*\/ \"\\n\"\nlet opt_nl_indent = del \/[ \\t\\n]*\/ \"\\n \"\nlet comma = del \/,\/ \",\"\nlet left_br = del \/\\[\/ \"[\"\nlet right_br = del \/\\]\/ \"]\"\n\n(* Regexes *)\n(* Match everyhting within quotes *)\nlet re_quoted_str = \/\"[^\\\"]*\"\/\n\n(* Match everything except spaces, quote(\"), l-bracket([) and num-sign(#) *)\nlet re_value_str = \/[^ \\t\\n\"\\[#]+\/\n\n(* Match everything except spaces, quote(\"), num-sign(#) and comma(,) *)\nlet re_section_value_str = \/[^ \\t\\n\"#,]+\/\n\n(* Store either after-value comment or full-line comment *)\nlet comment = [ label \"#comment\" . store \/#[^\\n]*\/ ]\nlet comment_eol = comment . eol\n\n\n(* Simple words *)\nlet name = key \/[A-Za-z_0-9]+\/\nlet re_simple_value = re_quoted_str | re_value_str\n\n\n(* Top level entry like `PORT = 2633` *)\nlet top_level_entry = name . sep . store re_simple_value\nlet top_level_line = opt_space\n . [ top_level_entry . opt_space . (comment)? ]\n . eol\n\n\n(* Section lens for section like `LOG = [ ... ]` *)\nlet section_value = re_quoted_str | re_section_value_str\nlet section_entry = [ name . sep . store section_value ]\nlet section_entry_list =\n ( section_entry . opt_space . comma . opt_nl_indent\n | comment_eol . opt_space )*\n . section_entry . opt_space_nl\n . ( comment_eol )*\n\nlet section = opt_space\n . [ name . sep\n . left_br\n . opt_space_nl\n . section_entry_list\n . right_br ]\n . eol\n\nlet empty_line = [ del \/[ \\t]*\\n\/ \"\\n\" ]\n\n(* Main lens *)\nlet lns = ( top_level_line | comment_eol | section | empty_line )*\n\n\n(* Variable: filter *)\nlet filter = incl \"\/etc\/one\/oned.conf\"\n . incl \"\/etc\/one\/sched.conf\"\n . incl \"\/etc\/one\/vmm_exec\/vmm_exec_kvm.conf\"\n\nlet xfm = transform lns filter\n","avg_line_length":27.8428571429,"max_line_length":76,"alphanum_fraction":0.5844022576} {"size":19682,"ext":"aug","lang":"Augeas","max_stars_count":7.0,"content":"(*\nModule: FixedSudoers\n Parses \/etc\/sudoers\n\nAuthor: Raphael Pinson <raphink@gmail.com>\n\nAbout: Reference\n This lens tries to keep as close as possible to `man sudoers` where possible.\n\nFor example, recursive definitions such as\n\n > Cmnd_Spec_List ::= Cmnd_Spec |\n > Cmnd_Spec ',' Cmnd_Spec_List\n\nare replaced by\n\n > let cmnd_spec_list = cmnd_spec . ( sep_com . cmnd_spec )*\n\nsince Augeas cannot deal with recursive definitions.\nThe definitions from `man sudoers` are put as commentaries for reference\nthroughout the file. More information can be found in the manual.\n\nAbout: License\n This file is licensed under the LGPLv2+, like the rest of Augeas.\n\n\nAbout: Lens Usage\n Sample usage of this lens in augtool\n\n * Set first Defaults to apply to the \"LOCALNET\" network alias\n > set \/files\/etc\/sudoers\/Defaults[1]\/type \"@LOCALNET\"\n * List all user specifications applying explicitely to the \"admin\" Unix group\n > match \/files\/etc\/sudoers\/spec\/user \"%admin\"\n * Remove the full 3rd user specification\n > rm \/files\/etc\/sudoers\/spec[3]\n\nAbout: Configuration files\n This lens applies to \/etc\/sudoers. See <filter>.\n*)\n\n\n\nmodule FixedSudoers =\n autoload xfm\n\n(************************************************************************\n * Group: USEFUL PRIMITIVES\n *************************************************************************)\n\n(* Group: Generic primitives *)\n(* Variable: eol *)\nlet eol = del \/[ \\t]*\\n\/ \"\\n\"\n\n(* Variable: indent *)\nlet indent = del \/[ \\t]*\/ \"\"\n\n\n(* Group: Separators *)\n\n(* Variable: sep_spc *)\nlet sep_spc = del \/[ \\t]+\/ \" \"\n\n(* Variable: sep_cont *)\nlet sep_cont = del \/([ \\t]+|[ \\t]*\\\\\\\\\\n[ \\t]*)\/ \" \"\n\n(* Variable: sep_cont_opt *)\nlet sep_cont_opt = del \/([ \\t]*|[ \\t]*\\\\\\\\\\n[ \\t]*)\/ \" \"\n\n(* Variable: sep_com *)\nlet sep_com = sep_cont_opt . Util.del_str \",\" . sep_cont_opt\n\n(* Variable: sep_eq *)\nlet sep_eq = sep_cont_opt . Util.del_str \"=\" . sep_cont_opt\n\n(* Variable: sep_col *)\nlet sep_col = sep_cont_opt . Util.del_str \":\" . sep_cont_opt\n\n(* Variable: sep_dquote *)\nlet sep_dquote = Util.del_str \"\\\"\"\n\n\n(* Group: Stores *)\n\n(* Variable: sto_to_com_cmnd\nsto_to_com_cmnd does not begin or end with a space *)\nlet sto_to_com_cmnd = store \/([^,=:#() \\t\\n\\\\\\\\]([^,=:#()\\n\\\\\\\\]|\\\\\\\\[=:,\\\\\\\\])*[^,=:#() \\t\\n\\\\\\\\])|[^,=:#() \\t\\n\\\\\\\\]\/\n\n(* Variable: sto_to_com\n\nThere could be a \\ in the middle of a command *)\nlet sto_to_com = store \/([^,=:#() \\t\\n\\\\\\\\][^,=:#()\\n]*[^,=:#() \\t\\n\\\\\\\\])|[^,=:#() \\t\\n\\\\\\\\]\/\n\n(* Variable: sto_to_com_host *)\nlet sto_to_com_host = store \/[^,=:#() \\t\\n\\\\\\\\]+\/\n\n\n(* Variable: sto_to_com_user\nEscaped spaces are allowed *)\nlet sto_to_com_user = store ( \/([^,=:#() \\t\\n]([^,=:#() \\t\\n]|(\\\\\\\\[ \\t]))*[^,=:#() \\t\\n])|[^,=:#() \\t\\n]\/\n - \/(User|Runas|Host|Cmnd)_Alias|Defaults.*\/ )\n\n(* Variable: sto_to_com_col *)\nlet sto_to_com_col = store \/[^\",=#() \\t\\n\\\\\\\\]+\/ (* \" relax emacs *)\n\n(* Variable: sto_to_eq *)\nlet sto_to_eq = store \/[^,=:#() \\t\\n\\\\\\\\]+\/\n\n(* Variable: sto_to_spc *)\nlet sto_to_spc = store \/[^\", \\t\\n\\\\\\\\]+|\"[^\", \\t\\n\\\\\\\\]+\"\/\n\n(* Variable: sto_to_spc_no_dquote *)\nlet sto_to_spc_no_dquote = store \/[^\",# \\t\\n\\\\\\\\]+\/ (* \" relax emacs *)\n\n(* Variable: sto_integer *)\nlet sto_integer = store \/[0-9]+\/\n\n\n(* Group: Comments and empty lines *)\n\n(* View: comment\nMap comments in \"#comment\" nodes *)\nlet comment =\n let sto_to_eol = store (\/([^ \\t\\n].*[^ \\t\\n]|[^ \\t\\n])\/ - \/include(dir)?.*\/) in\n [ label \"#comment\" . del \/[ \\t]*#[ \\t]*\/ \"# \" . sto_to_eol . eol ]\n\n(* View: comment_eol\nRequires a space before the # *)\nlet comment_eol = Util.comment_generic \/[ \\t]+#[ \\t]*\/ \" # \"\n\n(* View: comment_or_eol\nA <comment_eol> or <eol> *)\nlet comment_or_eol = comment_eol | (del \/([ \\t]+#\\n|[ \\t]*\\n)\/ \"\\n\")\n\n(* View: empty\nMap empty lines *)\nlet empty = [ del \/[ \\t]*#?[ \\t]*\\n\/ \"\\n\" ]\n\n(* View: includedir *)\nlet includedir =\n [ key \/#include(dir)?\/ . Sep.space . store Rx.fspath . eol ]\n\n\n(************************************************************************\n * Group: ALIASES\n *************************************************************************)\n\n(************************************************************************\n * View: alias_field\n * Generic alias field to gather all Alias definitions\n *\n * Definition:\n * > User_Alias ::= NAME '=' User_List\n * > Runas_Alias ::= NAME '=' Runas_List\n * > Host_Alias ::= NAME '=' Host_List\n * > Cmnd_Alias ::= NAME '=' Cmnd_List\n *\n * Parameters:\n * kw:string - the label string\n * sto:lens - the store lens\n *************************************************************************)\nlet alias_field (kw:string) (sto:lens) = [ label kw . sto ]\n\n(* View: alias_list\n List of <alias_fields>, separated by commas *)\nlet alias_list (kw:string) (sto:lens) =\n alias_field kw sto . ( sep_com . alias_field kw sto )*\n\n(************************************************************************\n * View: alias_name\n * Name of an <alias_entry_single>\n *\n * Definition:\n * > NAME ::= [A-Z]([A-Z][0-9]_)*\n *************************************************************************)\nlet alias_name\n = [ label \"name\" . store \/[A-Z][A-Z0-9_]*\/ ]\n\n(************************************************************************\n * View: alias_entry_single\n * Single <alias_entry>, named using <alias_name> and listing <alias_list>\n *\n * Definition:\n * > Alias_Type NAME = item1, item2, ...\n *\n * Parameters:\n * field:string - the field name, passed to <alias_list>\n * sto:lens - the store lens, passed to <alias_list>\n *************************************************************************)\nlet alias_entry_single (field:string) (sto:lens)\n = [ label \"alias\" . alias_name . sep_eq . alias_list field sto ]\n\n(************************************************************************\n * View: alias_entry\n * Alias entry, a list of comma-separated <alias_entry_single> fields\n *\n * Definition:\n * > Alias_Type NAME = item1, item2, item3 : NAME = item4, item5\n *\n * Parameters:\n * kw:string - the alias keyword string\n * field:string - the field name, passed to <alias_entry_single>\n * sto:lens - the store lens, passed to <alias_entry_single>\n *************************************************************************)\nlet alias_entry (kw:string) (field:string) (sto:lens)\n = [ indent . key kw . sep_cont . alias_entry_single field sto\n . ( sep_col . alias_entry_single field sto )* . comment_or_eol ]\n\n(* TODO: go further in user definitions *)\n(* View: user_alias\n User_Alias, see <alias_field> *)\nlet user_alias = alias_entry \"User_Alias\" \"user\" sto_to_com\n(* View: runas_alias\n Run_Alias, see <alias_field> *)\nlet runas_alias = alias_entry \"Runas_Alias\" \"runas_user\" sto_to_com\n(* View: host_alias\n Host_Alias, see <alias_field> *)\nlet host_alias = alias_entry \"Host_Alias\" \"host\" sto_to_com\n(* View: cmnd_alias\n Cmnd_Alias, see <alias_field> *)\nlet cmnd_alias = alias_entry \"Cmnd_Alias\" \"command\" sto_to_com_cmnd\n\n\n(************************************************************************\n * View: alias\n * Every kind of Alias entry,\n * see <user_alias>, <runas_alias>, <host_alias> and <cmnd_alias>\n *\n * Definition:\n * > Alias ::= 'User_Alias' User_Alias (':' User_Alias)* |\n * > 'Runas_Alias' Runas_Alias (':' Runas_Alias)* |\n * > 'Host_Alias' Host_Alias (':' Host_Alias)* |\n * > 'Cmnd_Alias' Cmnd_Alias (':' Cmnd_Alias)*\n *************************************************************************)\nlet alias = user_alias | runas_alias | host_alias | cmnd_alias\n(************************************************************************\n * Group: DEFAULTS\n *************************************************************************)\n\n(************************************************************************\n * View: default_type\n * Type definition for <defaults>\n *\n * Definition:\n * > Default_Type ::= 'Defaults' |\n * > 'Defaults' '@' Host_List |\n * > 'Defaults' ':' User_List |\n * > 'Defaults' '>' Runas_List\n *************************************************************************)\nlet default_type =\n let value = store \/[@:>][^ \\t\\n\\\\\\\\]+\/ in\n [ label \"type\" . value ]\n\n(************************************************************************\n * View: del_negate\n * Delete an even number of '!' signs\n *************************************************************************)\nlet del_negate = del \/(!!)*\/ \"\"\n\n(************************************************************************\n * View: negate_node\n * Negation of boolean values for <defaults>. Accept one optional '!'\n * and produce a 'negate' node if there is one.\n *************************************************************************)\nlet negate_node = [ del \"!\" \"!\" . label \"negate\" ]\n\nlet negate_or_value (key:lens) (value:lens) =\n [ del_negate . (negate_node . key | key . value) ]\n\n(************************************************************************\n * View: parameter_flag\n * A flag parameter for <defaults>\n *\n * Flags are implicitly boolean and can be turned off via the '!' operator.\n * Some integer, string and list parameters may also be used in a boolean\n * context to disable them.\n *************************************************************************)\nlet parameter_flag_kw = \"always_set_home\" | \"authenticate\" | \"env_editor\"\n | \"env_reset\" | \"fqdn\" | \"ignore_dot\"\n | \"ignore_local_sudoers\" | \"insults\" | \"log_host\"\n | \"log_year\" | \"long_otp_prompt\" | \"mail_always\"\n | \"mail_badpass\" | \"mail_no_host\" | \"mail_no_perms\"\n | \"mail_no_user\" | \"noexec\" | \"path_info\"\n | \"passprompt_override\" | \"preserve_groups\"\n | \"requiretty\" | \"root_sudo\" | \"rootpw\" | \"runaspw\"\n | \"set_home\" | \"set_logname\" | \"setenv\"\n | \"shell_noargs\" | \"stay_setuid\" | \"targetpw\"\n | \"tty_tickets\" | \"visiblepw\"\n\nlet parameter_flag = [ del_negate . negate_node?\n . key parameter_flag_kw ]\n\n(************************************************************************\n * View: parameter_integer\n * An integer parameter for <defaults>\n *************************************************************************)\nlet parameter_integer_nobool_kw = \"passwd_tries\"\n\nlet parameter_integer_nobool = [ key parameter_integer_nobool_kw . sep_eq\n . del \/\"?\/ \"\" . sto_integer\n . del \/\"?\/ \"\" ]\n\n\nlet parameter_integer_bool_kw = \"loglinelen\" | \"passwd_timeout\"\n | \"timestamp_timeout\" | \"umask\"\n\nlet parameter_integer_bool =\n negate_or_value\n (key parameter_integer_bool_kw)\n (sep_eq . del \/\"?\/ \"\" . sto_integer . del \/\"?\/ \"\")\n\nlet parameter_integer = parameter_integer_nobool\n | parameter_integer_bool\n\n(************************************************************************\n * View: parameter_string\n * A string parameter for <defaults>\n *\n * An odd number of '!' operators negate the value of the item;\n * an even number just cancel each other out.\n *************************************************************************)\nlet parameter_string_nobool_kw = \"badpass_message\" | \"editor\" | \"mailsub\"\n | \"noexec_file\" | \"passprompt\" | \"runas_default\"\n | \"syslog_badpri\" | \"syslog_goodpri\"\n | \"timestampdir\" | \"timestampowner\" | \"secure_path\"\n\nlet parameter_string_nobool = [ key parameter_string_nobool_kw . sep_eq\n . del \/\"?\/ \"\" . sto_to_com_col\n . del \/\"?\/ \"\" ]\n\nlet parameter_string_bool_kw = \"exempt_group\" | \"lecture\" | \"lecture_file\"\n | \"listpw\" | \"logfile\" | \"mailerflags\"\n | \"mailerpath\" | \"mailto\" | \"exempt_group\"\n | \"syslog\" | \"verifypw\" | \"logfile\"\n | \"mailerflags\" | \"mailerpath\" | \"mailto\"\n | \"syslog\" | \"verifypw\"\n\nlet parameter_string_bool =\n negate_or_value\n (key parameter_string_bool_kw)\n (sep_eq . sto_to_com_col)\n\nlet parameter_string = parameter_string_nobool\n | parameter_string_bool\n\n(************************************************************************\n * View: parameter_lists\n * A single list parameter for <defaults>\n *\n * All lists can be used in a boolean context\n * The argument may be a double-quoted, space-separated list or a single\n * value without double-quotes.\n * The list can be replaced, added to, deleted from, or disabled\n * by using the =, +=, -=, and ! operators respectively.\n * An odd number of '!' operators negate the value of the item;\n * an even number just cancel each other out.\n *************************************************************************)\nlet parameter_lists_kw = \"env_check\" | \"env_delete\" | \"env_keep\"\nlet parameter_lists_value = [ label \"var\" . sto_to_spc_no_dquote ]\nlet parameter_lists_value_dquote = [ label \"var\"\n . del \/\"?\/ \"\" . sto_to_spc_no_dquote\n . del \/\"?\/ \"\" ]\n\nlet parameter_lists_values = parameter_lists_value_dquote\n | ( sep_dquote . parameter_lists_value\n . ( sep_cont . parameter_lists_value )+\n . sep_dquote )\n\nlet parameter_lists_sep = sep_cont_opt\n . ( [ del \"+\" \"+\" . label \"append\" ]\n | [ del \"-\" \"-\" . label \"remove\" ] )?\n . del \"=\" \"=\" . sep_cont_opt\n\nlet parameter_lists =\n negate_or_value\n (key parameter_lists_kw)\n (parameter_lists_sep . parameter_lists_values)\n\n(************************************************************************\n * View: parameter\n * A single parameter for <defaults>\n *\n * Definition:\n * > Parameter ::= Parameter '=' Value |\n * > Parameter '+=' Value |\n * > Parameter '-=' Value |\n * > '!'* Parameter\n *\n * Parameters may be flags, integer values, strings, or lists.\n *\n *************************************************************************)\nlet parameter = parameter_flag | parameter_integer\n | parameter_string | parameter_lists\n\n(************************************************************************\n * View: parameter_list\n * A list of comma-separated <parameters> for <defaults>\n *\n * Definition:\n * > Parameter_List ::= Parameter |\n * > Parameter ',' Parameter_List\n *************************************************************************)\nlet parameter_list = parameter . ( sep_com . parameter )*\n\n(************************************************************************\n * View: defaults\n * A Defaults entry\n *\n * Definition:\n * > Default_Entry ::= Default_Type Parameter_List\n *************************************************************************)\nlet defaults = [ indent . key \"Defaults\" . default_type? . sep_cont\n . parameter_list . comment_or_eol ]\n\n\n\n(************************************************************************\n * Group: USER SPECIFICATION\n *************************************************************************)\n\n(************************************************************************\n * View: runas_spec\n * A runas specification for <spec>, using <alias_list> for listing\n * users and\/or groups used to run a command\n *\n * Definition:\n * > Runas_Spec ::= '(' Runas_List ')' |\n * > '(:' Runas_List ')' |\n * > '(' Runas_List ':' Runas_List ')'\n *************************************************************************)\nlet runas_spec_user = alias_list \"runas_user\" sto_to_com\nlet runas_spec_group = Util.del_str \":\" . indent\n . alias_list \"runas_group\" sto_to_com\n\nlet runas_spec_usergroup = runas_spec_user . indent . runas_spec_group\n\nlet runas_spec = Util.del_str \"(\"\n . (runas_spec_user\n | runas_spec_group\n | runas_spec_usergroup )\n . Util.del_str \")\" . sep_cont_opt\n\n(************************************************************************\n * View: tag_spec\n * Tag specification for <spec>\n *\n * Definition:\n * > Tag_Spec ::= ('NOPASSWD:' | 'PASSWD:' | 'NOEXEC:' | 'EXEC:' |\n * > 'SETENV:' | 'NOSETENV:')\n *************************************************************************)\nlet tag_spec =\n [ label \"tag\" . store \/(NO)?(PASSWD|EXEC|SETENV)\/ . sep_col ]\n\n(************************************************************************\n * View: cmnd_spec\n * Command specification for <spec>,\n * with optional <runas_spec> and any amount of <tag_specs>\n *\n * Definition:\n * > Cmnd_Spec ::= Runas_Spec? Tag_Spec* Cmnd\n *************************************************************************)\nlet cmnd_spec =\n [ label \"command\" . runas_spec? . tag_spec* . sto_to_com_cmnd ]\n\n(************************************************************************\n * View: cmnd_spec_list\n * A list of comma-separated <cmnd_specs>\n *\n * Definition:\n * > Cmnd_Spec_List ::= Cmnd_Spec |\n * > Cmnd_Spec ',' Cmnd_Spec_List\n *************************************************************************)\nlet cmnd_spec_list = cmnd_spec . ( sep_com . cmnd_spec )*\n\n\n(************************************************************************\n * View: spec_list\n * Group of hosts with <cmnd_spec_list>\n *************************************************************************)\nlet spec_list = [ label \"host_group\" . alias_list \"host\" sto_to_com_host\n . sep_eq . cmnd_spec_list ]\n\n(************************************************************************\n * View: spec\n * A user specification, listing colon-separated <spec_lists>\n *\n * Definition:\n * > User_Spec ::= User_List Host_List '=' Cmnd_Spec_List \\\n * > (':' Host_List '=' Cmnd_Spec_List)*\n *************************************************************************)\nlet spec = [ label \"spec\" . indent\n . alias_list \"user\" sto_to_com_user . sep_cont\n . spec_list\n . ( sep_col . spec_list )* . comment_or_eol ]\n\n\n(************************************************************************\n * Group: LENS & FILTER\n *************************************************************************)\n\n(* View: lns\n The sudoers lens, any amount of\n * <empty> lines\n * <comments>\n * <includedirs>\n * <aliases>\n * <defaults>\n * <specs>\n*)\nlet lns = ( empty | comment | includedir | alias | defaults | spec )*\n\n(* View: filter *)\nlet filter = (incl \"\/etc\/sudoers\")\n . (incl \"\/usr\/local\/etc\/sudoers\")\n . (incl \"\/etc\/sudoers.d\/*\")\n . (incl \"\/usr\/local\/etc\/sudoers.d\/*\")\n . (incl \"\/opt\/csw\/etc\/sudoers\")\n . (incl \"\/etc\/opt\/csw\/sudoers\")\n . Util.stdexcl\n\nlet xfm = transform lns filter\n","avg_line_length":37.7773512476,"max_line_length":119,"alphanum_fraction":0.4612844223} {"size":2187,"ext":"aug","lang":"Augeas","max_stars_count":2.0,"content":"(* Augeas module for editing Java properties files\n Author: Craig Dunn <craig@craigdunn.org>\n\n Limitations:\n - doesn't support \\ alone on a line\n - values are not unescaped\n - multi-line properties are broken down by line, and can't be replaced with a single line\n\n See format info: http:\/\/docs.oracle.com\/javase\/6\/docs\/api\/java\/util\/Properties.html#load(java.io.Reader)\n*)\n\n\nmodule Properties =\n (* Define some basic primitives *)\n let empty = Util.empty\n let eol = Util.eol\n let hard_eol = del \"\\n\" \"\\n\"\n let sepch = del \/([ \\t]*(=|:)|[ \\t])\/ \"=\"\n let sepspc = del \/[ \\t]\/ \" \"\n let sepch_ns = del \/[ \\t]*(=|:)\/ \"=\"\n let sepch_opt = del \/[ \\t]*(=|:)?[ \\t]*\/ \"=\"\n let value_to_eol_ws = store \/(:|=)[^\\n]*[^ \\t\\n\\\\]\/\n let value_to_bs_ws = store \/(:|=)[^\\n]*[^\\\\\\n]\/\n let value_to_eol = store \/([^ \\t\\n:=][^\\n]*[^ \\t\\n\\\\]|[^ \\t\\n\\\\:=])\/\n let value_to_bs = store \/([^ \\t\\n:=][^\\n]*[^\\\\\\n]|[^ \\t\\n\\\\:=])\/\n let indent = Util.indent\n let backslash = del \/[\\\\][ \\t]*\\n\/ \"\\\\\\n\"\n let entry = \/([^ \\t\\n:=\\\/!#\\\\]|[\\\\]:|[\\\\]=|[\\\\][\\t ]|[\\\\][^\\\/\\n])+\/\n\n let multi_line_entry =\n [ indent . value_to_bs . backslash ] + .\n [ indent . value_to_eol . eol ] . value \" < multi > \"\n\n let multi_line_entry_ws =\n [ indent . value_to_bs_ws . backslash ] + .\n [ indent . value_to_eol . eol ] . value \" < multi_ws > \"\n\n (* define comments and properties*)\n let bang_comment = [ label \"!comment\" . del \/[ \\t]*![ \\t]*\/ \"! \" . store \/([^ \\t\\n].*[^ \\t\\n]|[^ \\t\\n])\/ . eol ]\n let comment = ( Util.comment | bang_comment )\n let property = [ indent . key entry . sepch . ( multi_line_entry | indent . value_to_eol . eol ) ]\n let property_ws = [ indent . key entry . sepch_ns . ( multi_line_entry_ws | indent . value_to_eol_ws . eol ) ]\n let empty_property = [ indent . key entry . sepch_opt . hard_eol ]\n let empty_key = [ sepch_ns . ( multi_line_entry | indent . value_to_eol . eol ) ]\n\n (* setup our lens and filter*)\n let lns = ( empty | comment | property_ws | property | empty_property | empty_key ) *\n","avg_line_length":45.5625,"max_line_length":120,"alphanum_fraction":0.5381801555} {"size":44324,"ext":"aug","lang":"Augeas","max_stars_count":9.0,"content":"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<!-- This file contains definitions of all system resource replacements to be utilized\n for the game system within the user-interface of Hero Lab. System resources are\n those utilized for general mechanisms within Hero Lab and are not exclusively\n used by elements defined by the data files. The ids for these resources are\n pre-defined for Hero Lab and, by defining them here, the built-in defaults of\n Hero Lab are replaced with the new behaviors.\n\n Custom visual elements used within the user-interface are defined within the file\n \"styles_ui.aug\", and Visual elements utilized for printed output are defined\n within \"styles_output.aug\".\n\n IMPORTANT!!!!\n If you are happy using the stock visual presentation provided within Hero Lab,\n you can freely delete this file from the data files for your game system. This\n file contains definition and mappings for all system resources that simply point\n to all of the built-in, default resources provided by Hero Lab. If you want to\n change the visuals, you can systematically swap out visual elements within this\n file to suit the visual look you want. But if you want the stock visuals, this\n file is extraneous and should be deleted.\n-->\n\n<document signature=\"Hero Lab Structure\">\n\n\n <!-- ********** TILED BACKGROUND TEXTURES AND REFERENCE COLORS ********** -->\n\n\n <!-- tile bitmap used in outer background areas -->\n <resource\n id=\"mainwindow\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"mainwindow.bmp\">\n <\/bitmap>\n <\/resource>\n\n <!-- color used in conjunction with outer background tile bitmap for determining\n suitable colors for raised\/lowered borders\n -->\n <resource\n id=\"refmainwin\"\n issystem=\"yes\">\n <color\n color=\"173766\">\n <\/color>\n <\/resource>\n\n <!-- tile bitmap used in interior background regions -->\n <resource\n id=\"background\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"background.bmp\">\n <\/bitmap>\n <\/resource>\n\n <!-- color used in conjunction with interior background tile bitmap for determining suitable colors for raised\/lowered borders\n -->\n <resource\n id=\"refbackgrd\"\n issystem=\"yes\">\n <color\n color=\"15294e\">\n <\/color>\n <\/resource>\n\n <!-- tile bitmap used within the \"static\" panel across the top -->\n <resource\n id=\"staticpan\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"mainwindow.bmp\">\n <\/bitmap>\n <\/resource>\n\n\n <!-- ********** STANDARD LABEL COLORS ********** -->\n\n\n <!-- color of text within standard labels within Hero Lab -->\n <resource\n id=\"lblnormal\"\n issystem=\"yes\">\n <color\n color=\"dcdce1\">\n <\/color>\n <\/resource>\n\n <!-- color of text within title areas -->\n <resource\n id=\"lbltitle\"\n issystem=\"yes\">\n <color\n color=\"dcdce1\">\n <\/color>\n <\/resource>\n\n <!-- text color used for disabled text, such as choices that fail their pre-requisites -->\n <resource\n id=\"lbldisable\"\n issystem=\"yes\">\n <color\n color=\"646464\">\n <\/color>\n <\/resource>\n\n <!-- text color used for warning and error text, such as to identify invalid selections -->\n <resource\n id=\"lblwarning\"\n issystem=\"yes\">\n <color\n color=\"ee0033\">\n <\/color>\n <\/resource>\n\n <!-- text color used for lighter shaded warnings, such as for the current actor within\n the validation report form -->\n <resource\n id=\"lblwarnlt\"\n issystem=\"yes\">\n <color\n color=\"ff8888\">\n <\/color>\n <\/resource>\n\n <!-- color of text for small font areas where higher contrast is desired -->\n <resource\n id=\"lblsmall\"\n issystem=\"yes\">\n <color\n color=\"dcdceb\">\n <\/color>\n <\/resource>\n\n <!-- color of text for tiny labels beneath edit fields, as used on the Journal tab and within the Editor -->\n <resource\n id=\"lbltiny\"\n issystem=\"yes\">\n <color\n color=\"61b5e7\">\n <\/color>\n <\/resource>\n\n <!-- color used for highlighting special labels -->\n <resource\n id=\"lblbright\"\n issystem=\"yes\">\n <color\n color=\"ffff88\">\n <\/color>\n <\/resource>\n\n <!-- color used for toning down labels that shouldn't be too prominent -->\n <resource\n id=\"lbldim\"\n issystem=\"yes\">\n <color\n color=\"a0a0a0\">\n <\/color>\n <\/resource>\n\n <!-- color used for labels against the alternative \"background\" bitmap texture as seen in the Editor -->\n <resource\n id=\"lblaltern\"\n issystem=\"yes\">\n <color\n color=\"dcdceb\">\n <\/color>\n <\/resource>\n\n <!-- color used for disabled labels against the alternative \"background\" bitmap texture -->\n <resource\n id=\"lblaltdis\"\n issystem=\"yes\">\n <color\n color=\"646464\">\n <\/color>\n <\/resource>\n\n\n <!-- ********** SUMMARY PANEL FACETS ********** -->\n\n\n <!-- bitmap used for the title background within summary panels -->\n <resource\n id=\"sumtitle\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"summary_title.bmp\">\n <\/bitmap>\n <\/resource>\n\n <!-- tile bitmap used as background within summary panels -->\n <resource\n id=\"sumbackgrd\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"background.bmp\">\n <\/bitmap>\n <\/resource>\n\n <!-- bitmap used for the \"hide\" button in the top right of summary panels -->\n <resource\n id=\"sumhide\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"summary_hide.bmp\">\n <\/bitmap>\n <\/resource>\n\n <!-- color used when drawing the title above summary panels -->\n <resource\n id=\"sumtext\"\n issystem=\"yes\">\n <color\n color=\"dcdceb\">\n <\/color>\n <\/resource>\n\n\n <!-- ********** TABS ACROSS THE TOP ********** -->\n\n\n <!-- bitmaps used for the background region of tabs shown at the top\n -one bitmap is one for a selected tab and the other for an unselected tab\n -->\n <resource\n id=\"tabunsel\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"background.bmp\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"tabsel\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"background.bmp\">\n <\/bitmap>\n <\/resource>\n\n <!-- text colors used in conjunction with tabs\n -one for the text color of a selected tab, one for text in an unselected tab,\n and one for a tab with dirty contents in the Editor\n -->\n <resource\n id=\"tabtextsel\"\n issystem=\"yes\">\n <color\n color=\"f0f0f0\">\n <\/color>\n <\/resource>\n <resource\n id=\"tabtextuns\"\n issystem=\"yes\">\n <color\n color=\"82c8f7\">\n <\/color>\n <\/resource>\n <resource\n id=\"tabdirty\"\n issystem=\"yes\">\n <color\n color=\"ffad1f\">\n <\/color>\n <\/resource>\n <resource\n id=\"tabwarning\"\n issystem=\"yes\">\n <color\n color=\"ee0033\">\n <\/color>\n <\/resource>\n\n\n <!-- ********** VALIDATION REPORTING ********** -->\n\n\n <!-- bitmap used to indicate that validation errors exist in the upper right of\n the main window\n -->\n <resource\n id=\"validbigup\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"valid_big_up.bmp\"\n istransparent=\"yes\">\n <\/bitmap>\n <\/resource>\n\n <!-- bitmaps used to indicate that validation errors exist within the validation\n summary bar at the bottom\n -one bitmap for the \"error\" (up) state and one for the \"no error\" (off) state\n -->\n <resource\n id=\"validsmlup\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"valid_small_up.bmp\"\n istransparent=\"yes\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"validsmlof\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"valid_small_off.bmp\"\n istransparent=\"yes\">\n <\/bitmap>\n <\/resource>\n\n <!-- color used for the validation summary text at the bottom of the main window -->\n <resource\n id=\"validtext\"\n issystem=\"yes\">\n <color\n color=\"dcdcf5\">\n <\/color>\n <\/resource>\n\n <!-- color used to indicate errors exist with other heroes in the validation report -->\n <resource\n id=\"validother\"\n issystem=\"yes\">\n <color\n color=\"ffff88\">\n <\/color>\n <\/resource>\n\n\n <!-- ********** TEXT-BASED BUTTONS ********** -->\n\n\n <!-- color of text within buttons -->\n <resource\n id=\"btntext\"\n issystem=\"yes\">\n <color\n color=\"000f9d\">\n <\/color>\n <\/resource>\n\n <!-- color of disabled text within buttons -->\n <resource\n id=\"btndisable\"\n issystem=\"yes\">\n <color\n color=\"505050\">\n <\/color>\n <\/resource>\n\n <!-- color of bright text within buttons (used in the editor for highlighting\n buttons - for example, if a record has one or more scripts, the scripts\n button text will be drawn in this color) -->\n <resource\n id=\"btnbright\"\n issystem=\"yes\">\n <color\n color=\"7a155b\">\n <\/color>\n <\/resource>\n\n <!-- color of text within large oval buttons (\"Load\" button on \"Select Game\" form) -->\n <resource\n id=\"ovlbtntext\"\n issystem=\"yes\">\n <color\n color=\"000f73\">\n <\/color>\n <\/resource>\n\n <!-- bitmaps for the standard \"default\" button used throughout HL, with text\n being overlaid on top of the bitmap to identify the action to perform\n -one bitmap is for the \"up\" state of the button, another for the \"down\"\n state, and a third for the disabled \"off\" state\n -->\n <resource\n id=\"btnbigup\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"button_big_up.bmp\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"btnbigdn\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"button_big_down.bmp\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"btnbigof\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"button_big_off.bmp\">\n <\/bitmap>\n <\/resource>\n\n <!-- bitmaps for the smaller size version of the text-overlaid button used\n throughout HL (such as within the Editor)\n -one bitmap is for the \"up\" state of the button, another for the \"down\" state,\n and a third for the disabled \"off\" state\n -->\n <resource\n id=\"btnsmallup\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"button_small_up.bmp\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"btnsmalldn\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"button_small_down.bmp\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"btnsmallof\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"button_small_off.bmp\">\n <\/bitmap>\n <\/resource>\n\n <!-- bitmaps for the big oval button used on the Select Game form, with text\n being overlaid on top of the bitmap to identify the action to perform\n -one bitmap is for the \"up\" state of the button, another for the \"down\"\n state, and a third for the disabled \"off\" state\n -->\n <resource\n id=\"btnovalup\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"button_oval_up.bmp\"\n istransparent=\"yes\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"btnovaldn\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"button_oval_down.bmp\"\n istransparent=\"yes\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"btnovalof\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"button_oval_off.bmp\"\n istransparent=\"yes\">\n <\/bitmap>\n <\/resource>\n\n\n <!-- ********** MENUS AND CHOOSERS ********** -->\n\n\n <!-- bitmaps used for the \"expand\" arrow at the right of a droplist menu\n -one bitmap is for the \"live\" state and the other is the disabled \"off\" state\n -->\n <resource\n id=\"mnuarrow\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"menu_arrow.bmp\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"mnuarrowof\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"menu_arrow_off.bmp\">\n <\/bitmap>\n <\/resource>\n\n <!-- smaller version of the \"expand\" arrow at the right of a droplist menu,\n as described above\n -->\n <resource\n id=\"mnusmall\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"menu_small_arrow.bmp\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"mnusmallof\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"menu_small_arrow_off.bmp\">\n <\/bitmap>\n <\/resource>\n\n <!-- colors used in conjunction with droplist menus\n -two colors control the foreground\/background of the current selection\n -one color controls the background of the dropped menu\n -two colors control the foreground\/background of the currently highlighted\n item in the dropped menu\n -->\n <resource\n id=\"mnutext\"\n issystem=\"yes\">\n <color\n color=\"84c8f7\">\n <\/color>\n <\/resource>\n <resource\n id=\"mnubackgrd\"\n issystem=\"yes\">\n <color\n color=\"2a2c47\">\n <\/color>\n <\/resource>\n <resource\n id=\"mnulistbck\"\n issystem=\"yes\">\n <color\n color=\"2a2c47\">\n <\/color>\n <\/resource>\n <resource\n id=\"mnuseltext\"\n issystem=\"yes\">\n <color\n color=\"1414f7\">\n <\/color>\n <\/resource>\n <resource\n id=\"mnuselback\"\n issystem=\"yes\">\n <color\n color=\"f0f0f0\">\n <\/color>\n <\/resource>\n\n <!-- bitmaps used for the \"choose\" star icon associated with choosers\n -one bitmap is for the \"live\" state of the \"choose\" star icon and the other\n is for the disabled \"off\" state\n -->\n <resource\n id=\"chsstar\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"chooser_star.bmp\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"chsstarof\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"chooser_star_off.bmp\">\n <\/bitmap>\n <\/resource>\n\n\n <!-- ********** CHECKBOXES AND RADIO BUTTONS ********** -->\n\n\n <!-- bitmaps used for radio buttons\n -one bitmap is for the \"selected\" (or filled) state and the other is for\n the \"unselected\" (or empty) state\n -->\n <resource\n id=\"radsel\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"radio_select.bmp\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"radunsel\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"radio_empty.bmp\">\n <\/bitmap>\n <\/resource>\n\n <!-- color for text displayed within radio button portals -->\n <resource\n id=\"radtext\"\n issystem=\"yes\">\n <color\n color=\"ffffff\">\n <\/color>\n <\/resource>\n\n <!-- bitmaps used for checkboxes\n -one pair of bitmaps is for the \"live\" state and the other is for the disabled\n \"off\" state\n -each pair consists of a \"checked\" state and an \"unchecked\" (or empty) state\n -->\n <resource\n id=\"chksel\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"check_select.bmp\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"chkunsel\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"check_empty.bmp\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"chkselof\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"check_select_off.bmp\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"chkunselof\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"check_empty_off.bmp\">\n <\/bitmap>\n <\/resource>\n\n <!-- color used for text within checkboxes -->\n <resource\n id=\"chktext\"\n issystem=\"yes\">\n <color\n color=\"f0f0f0\">\n <\/color>\n <\/resource>\n\n <!-- color used for text in checkboxes against the alternative \"background\" bitmap texture -->\n <resource\n id=\"chkaltern\"\n issystem=\"yes\">\n <color\n color=\"f0f0f0\">\n <\/color>\n <\/resource>\n\n\n <!-- ********** EDIT PORTALS ********** -->\n\n\n <!-- colors used for text editing portals\n -one for the text color and the other for the background color\n -->\n <resource\n id=\"edttext\"\n issystem=\"yes\">\n <color\n color=\"d2d2d2\">\n <\/color>\n <\/resource>\n <resource\n id=\"edtback\"\n issystem=\"yes\">\n <color\n color=\"000626\">\n <\/color>\n <\/resource>\n\n <!-- colors used for read-only text editing controls\n -one for the text color and the other the background color\n -->\n <resource\n id=\"edttextro\"\n issystem=\"yes\">\n <color\n color=\"d2d2d2\">\n <\/color>\n <\/resource>\n <resource\n id=\"edtbackro\"\n issystem=\"yes\">\n <color\n color=\"173766\">\n <\/color>\n <\/resource>\n\n <!-- colors used for the edit overlay control background\n -->\n <resource\n id=\"edtbackov\"\n issystem=\"yes\">\n <color\n color=\"000626\">\n <\/color>\n <\/resource>\n\n\n <!-- ********** PRINT PREVIEW BUTTONS ********** -->\n\n\n <!-- bitmaps used for the \"print\" button used on the Print Preview form\n -separate bitmaps are for the \"up\" state and \"down\" state\n -->\n <resource\n id=\"printup\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"print_up.bmp\"\n istransparent=\"yes\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"printdn\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"print_down.bmp\"\n istransparent=\"yes\">\n <\/bitmap>\n <\/resource>\n\n <!-- bitmaps used for the \"pdf\" button used on the Print Preview form\n -separate bitmaps are for the \"up\" state and \"down\" state\n -->\n <resource\n id=\"pdfup\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"pdf_up.bmp\"\n istransparent=\"yes\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"pdfdn\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"pdf_down.bmp\"\n istransparent=\"yes\">\n <\/bitmap>\n <\/resource>\n\n <!-- bitmaps used for the \"first page\" button used on the Print Preview form\n -separate bitmaps are for the \"up\" state, \"down\" state, and \"off\" state\n -->\n <resource\n id=\"pgfirstup\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"page_first_up.bmp\"\n istransparent=\"yes\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"pgfirstdn\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"page_first_down.bmp\"\n istransparent=\"yes\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"pgfirstof\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"page_first_off.bmp\"\n istransparent=\"yes\">\n <\/bitmap>\n <\/resource>\n\n <!-- bitmaps used for the \"last page\" button used on the Print Preview form\n -separate bitmaps are for the \"up\" state, \"down\" state, and \"off\" state\n -->\n <resource\n id=\"pglastup\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"page_last_up.bmp\"\n istransparent=\"yes\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"pglastdn\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"page_last_down.bmp\"\n istransparent=\"yes\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"pglastof\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"page_last_off.bmp\"\n istransparent=\"yes\">\n <\/bitmap>\n <\/resource>\n\n <!-- bitmaps used for the \"previous page\" button used on the Print Preview form\n -separate bitmaps are for the \"up\" state, \"down\" state, and \"off\" state\n -->\n <resource\n id=\"pgprevup\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"page_prev_up.bmp\"\n istransparent=\"yes\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"pgprevdn\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"page_prev_down.bmp\"\n istransparent=\"yes\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"pgprevof\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"page_prev_off.bmp\"\n istransparent=\"yes\">\n <\/bitmap>\n <\/resource>\n\n <!-- bitmaps used for the \"next page\" button used on the Print Preview form\n -separate bitmaps are for the \"up\" state, \"down\" state, and \"off\" state\n -->\n <resource\n id=\"pgnextup\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"page_next_up.bmp\"\n istransparent=\"yes\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"pgnextdn\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"page_next_down.bmp\"\n istransparent=\"yes\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"pgnextof\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"page_next_off.bmp\"\n istransparent=\"yes\">\n <\/bitmap>\n <\/resource>\n\n <!-- bitmaps used for the \"zoom in\" button used on the Print Preview form\n -separate bitmaps are for the \"up\" state, \"down\" state, and \"off\" state\n -->\n <resource\n id=\"zoominup\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"zoom_in_up.bmp\"\n istransparent=\"yes\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"zoomindn\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"zoom_in_down.bmp\"\n istransparent=\"yes\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"zoominof\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"zoom_in_off.bmp\"\n istransparent=\"yes\">\n <\/bitmap>\n <\/resource>\n\n <!-- bitmaps used for the \"zoom out\" button used on the Print Preview form\n -separate bitmaps are for the \"up\" state, \"down\" state, and \"off\" state\n -->\n <resource\n id=\"zoomoutup\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"zoom_out_up.bmp\"\n istransparent=\"yes\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"zoomoutdn\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"zoom_out_down.bmp\"\n istransparent=\"yes\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"zoomoutof\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"zoom_out_off.bmp\"\n istransparent=\"yes\">\n <\/bitmap>\n <\/resource>\n\n <!-- bitmaps used for the \"settings info\" button used on the Change Settings form\n -separate bitmaps are for the \"up\" state, \"down\" state, and \"off\" state\n -->\n <resource\n id=\"setinfoup\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"settings_info_up.bmp\"\n istransparent=\"yes\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"setinfodn\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"settings_info_down.bmp\"\n istransparent=\"yes\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"setinfoof\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"settings_info_off.bmp\"\n istransparent=\"yes\">\n <\/bitmap>\n <\/resource>\n\n <!-- color used for the header text on the \"Settings Info\" form, accessed by\n pressing the button above\n -->\n <resource\n id=\"setinfohdr\"\n issystem=\"yes\">\n <color\n color=\"f0f0f0\">\n <\/color>\n <\/resource>\n\n <!-- bitmaps used for the \"live filter\" texture and buttons on all Choose\n forms\n -separate bitmaps for the \"empty\" state, and \"up\" & \"down\" states of the\n clear filter button\n -->\n <resource\n id=\"livefempty\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"live_filter_empty.bmp\"\n istransparent=\"yes\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"livefclrup\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"live_filter_clear_up.bmp\"\n istransparent=\"yes\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"livefclrdn\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"live_filter_clear_down.bmp\"\n istransparent=\"yes\">\n <\/bitmap>\n <\/resource>\n\n\n <!-- ********** MISCELLANEOUS BUTTONS ********** -->\n\n\n <!-- bitmaps for the button used to modify the configuration settings (or rules)\n on the configure character form\n -one bitmap is for the \"up\" state of the button, another is for the \"down\"\n state of the button, and the third is the monochrome mask to be applied\n to both state bitmaps\n -->\n <resource\n id=\"settingup\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"settings_up.bmp\"\n istransparent=\"yes\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"settingdn\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"settings_down.bmp\"\n istransparent=\"yes\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"settingof\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"settings_off.bmp\"\n istransparent=\"yes\">\n <\/bitmap>\n <\/resource>\n\n <!-- bitmaps used for the \"delete\" button that appears in various places\n -separate bitmaps are for the \"up\" state, \"down\" state, and \"disabled\" state\n -->\n <resource\n id=\"deleteup\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"delete_up.bmp\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"deletedn\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"delete_down.bmp\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"deleteof\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"delete_off.bmp\">\n <\/bitmap>\n <\/resource>\n\n <!-- small delete buttons -->\n <resource\n id=\"deletesmup\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"delete_small_up.bmp\"\n istransparent=\"yes\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"deletesmdn\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"delete_small_down.bmp\"\n istransparent=\"yes\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"deletesmof\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"delete_small_off.bmp\"\n istransparent=\"yes\">\n <\/bitmap>\n <\/resource>\n\n <!-- bitmaps used for the \"info\" button that appears in various places\n -separate bitmaps are for the \"up\" state, \"down\" state, and \"disabled\" state\n -->\n <resource\n id=\"infoup\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"info_up.bmp\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"infodn\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"info_down.bmp\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"infoof\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"info_off.bmp\">\n <\/bitmap>\n <\/resource>\n\n <!-- bitmaps used for the \"edit\" button that appears in various places\n -separate bitmaps are for the \"up\" state, \"down\" state, and \"disabled\" state\n -->\n <resource\n id=\"editup\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"edit_up.bmp\"\n istransparent=\"yes\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"editdn\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"edit_down.bmp\"\n istransparent=\"yes\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"editof\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"edit_off.bmp\"\n istransparent=\"yes\">\n <\/bitmap>\n <\/resource>\n\n\n <!-- ********** LISTS AND GRIDS ********** -->\n\n\n <!-- colors used for lists and grids of information, including selection lists for\n the Editor and Updates mechanism\n -->\n <resource\n id=\"listfixed\"\n issystem=\"yes\">\n <color\n color=\"6e7487\">\n <\/color>\n <\/resource>\n <resource\n id=\"listunsel\"\n issystem=\"yes\">\n <color\n color=\"84c8f7\">\n <\/color>\n <\/resource>\n <resource\n id=\"listsel\"\n issystem=\"yes\">\n <color\n color=\"f0f0f0\">\n <\/color>\n <\/resource>\n\n <!-- color of lines used within lists and grids -->\n <resource\n id=\"listlines\"\n issystem=\"yes\">\n <color\n color=\"3c3c3c\">\n <\/color>\n <\/resource>\n\n <!-- color of lines used within tables - table text is usually a different\n (less bright) color from text used in lists \/ grids, so the table line\n color needs to be different than regular list lines -->\n <resource\n id=\"tablelines\"\n issystem=\"yes\">\n <color\n color=\"373737\">\n <\/color>\n <\/resource>\n\n\n <!-- ********** TREE VIEW DISPLAY ********** -->\n\n\n <!-- bitmaps used for the expand and collapse state of nodes within a tree view -->\n <resource\n id=\"trvexpand\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"treeview_expanded.bmp\"\n istransparent=\"yes\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"trvcollaps\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"treeview_collapsed.bmp\"\n istransparent=\"yes\">\n <\/bitmap>\n <\/resource>\n\n <!-- colors used when drawing the nodes and connections for tree views\n -->\n <resource\n id=\"trvnode\"\n issystem=\"yes\">\n <color\n color=\"6eb5e7\">\n <\/color>\n <\/resource>\n <resource\n id=\"trvconnect\"\n issystem=\"yes\">\n <color\n color=\"6eb5e7\">\n <\/color>\n <\/resource>\n\n\n <!-- ********** MESSAGES AND TIP INFORMATION ********** -->\n\n\n <!-- colors used for tooltips and other mouse-over info\n -one for the text color and another for the background color\n -->\n <resource\n id=\"tiptext\"\n issystem=\"yes\">\n <color\n color=\"000000\">\n <\/color>\n <\/resource>\n <resource\n id=\"tipback\"\n issystem=\"yes\">\n <color\n color=\"ede7c5\">\n <\/color>\n <\/resource>\n\n <!-- colors used within alert messages such as error messages\n -one color for message text and the other for small notes text that is\n sometimes included\n -->\n <resource\n id=\"msgtext\"\n issystem=\"yes\">\n <color\n color=\"f0f0f0\">\n <\/color>\n <\/resource>\n <resource\n id=\"msgnotes\"\n issystem=\"yes\">\n <color\n color=\"f0f0f0\">\n <\/color>\n <\/resource>\n\n <!-- color of text used within checkboxes on alert messages, such as the \"don't\n show again\" checkbox)\n -->\n <resource\n id=\"msgchktext\"\n issystem=\"yes\">\n <color\n color=\"f0f0f0\">\n <\/color>\n <\/resource>\n\n <!-- color of the border around alert messages and progress bars -->\n <resource\n id=\"msgborder\"\n issystem=\"yes\">\n <color\n color=\"ffffff\">\n <\/color>\n <\/resource>\n\n <!-- color of the text in progress messages -->\n <resource\n id=\"progtext\"\n issystem=\"no\">\n <color\n color=\"f0f0f0\">\n <\/color>\n <\/resource>\n\n\n <!-- ********** HELP AND DEBUGGING INFORMATION ********** -->\n\n\n <!-- colors used for the various debug info windows\n -one color for information text and the other for header at the top\n -->\n <resource\n id=\"infowintxt\"\n issystem=\"yes\">\n <color\n color=\"dcdceb\">\n <\/color>\n <\/resource>\n <resource\n id=\"infowinhdr\"\n issystem=\"yes\">\n <color\n color=\"67809c\">\n <\/color>\n <\/resource>\n\n <!-- colors used for the various help windows\n -one color for text, one for the background, and one for the title at the top\n -->\n <resource\n id=\"helptext\"\n issystem=\"yes\">\n <color\n color=\"f5f5f5\">\n <\/color>\n <\/resource>\n <resource\n id=\"helpback\"\n issystem=\"yes\">\n <color\n color=\"000732\">\n <\/color>\n <\/resource>\n <resource\n id=\"helptitle\"\n issystem=\"yes\">\n <color\n color=\"ffffff\">\n <\/color>\n <\/resource>\n\n\n <!-- ********** INCREMENTERS ********** -->\n\n\n <!-- bitmaps used in conjunction with the built-in, system incrementer\n -four bitmaps for the various states of the \"+\" button and its mask\n -four bitmaps for the various states of the \"-\" button and its mask\n -the incrementer has *no* background since it is transparent in behavior\n -->\n <resource\n id=\"incplusup\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"incr_simple_plus.bmp\"\n istransparent=\"yes\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"incplusdn\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"incr_simple_plus_down.bmp\"\n istransparent=\"yes\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"incplusof\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"incr_simple_plus_off.bmp\"\n istransparent=\"yes\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"incminusup\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"incr_simple_minus.bmp\"\n istransparent=\"yes\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"incminusdn\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"incr_simple_minus_down.bmp\"\n istransparent=\"yes\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"incminusof\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"incr_simple_minus_off.bmp\"\n istransparent=\"yes\">\n <\/bitmap>\n <\/resource>\n\n\n <!-- ********** ENCOUNTER BUILDER ********** -->\n\n <resource\n id=\"missourdn\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"missing_source_down.bmp\"\n istransparent=\"yes\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"missourup\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"missing_source_up.bmp\"\n istransparent=\"yes\">\n <\/bitmap>\n <\/resource>\n\n <resource\n id=\"misimpdn\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"missing_source_important_down.bmp\"\n istransparent=\"yes\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"misimpup\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"missing_source_important_up.bmp\"\n istransparent=\"yes\">\n <\/bitmap>\n <\/resource>\n\n <resource\n id=\"plus_of\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"plus_of.bmp\"\n istransparent=\"yes\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"plus_dn\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"plus_dn.bmp\"\n istransparent=\"yes\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"plus_up\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"plus_up.bmp\"\n istransparent=\"yes\">\n <\/bitmap>\n <\/resource>\n\n\n <!-- ********** MISCELLANEOUS VISUAL ELEMENTS ********** -->\n\n\n <!-- bitmap used for the button at the top of the dashboard that triggers a re-sort of the dashboard contents -->\n <resource\n id=\"dshsort\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"dashboard_sort.bmp\">\n <\/bitmap>\n <\/resource>\n\n <!-- bitmaps used for bullets to identify validation errors (typically in red)\n and warnings (typically in yellow) within the validation report\n -->\n <resource\n id=\"bullred\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"bullet_red.bmp\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"bullyellow\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"bullet_yellow.bmp\">\n <\/bitmap>\n <\/resource>\n\n <!-- color of the physical bar shown within the progress bar -->\n <resource\n id=\"progbar\"\n issystem=\"yes\">\n <color\n color=\"6eb5e7\">\n <\/color>\n <\/resource>\n\n <!-- colors used by the dice roller\n -one color for the newest roll result and the other for old rolls\n -->\n <resource\n id=\"dicenew\"\n issystem=\"yes\">\n <color\n color=\"ffff88\">\n <\/color>\n <\/resource>\n <resource\n id=\"diceold\"\n issystem=\"yes\">\n <color\n color=\"dcdceb\">\n <\/color>\n <\/resource>\n\n <!-- colors used by the license info text on the configure hero form, and\n button bitmaps used for the \"buy Hero Lab\" button there\n -->\n <resource\n id=\"cnflictext\"\n issystem=\"yes\">\n <color\n color=\"d2d2d2\">\n <\/color>\n <\/resource>\n <resource\n id=\"buygameup\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"purchase_up.bmp\"\n istransparent=\"yes\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"buygamedn\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"purchase_down.bmp\"\n istransparent=\"yes\">\n <\/bitmap>\n <\/resource>\n\n <!-- bitmap used for the 'new update' icon in the updates list\n -->\n <resource\n id=\"updatenew\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"update_new.bmp\">\n <\/bitmap>\n <\/resource>\n\n <!-- bitmap used for the 'change rules' icon on the configure hero form\n -->\n <resource\n id=\"rulesicon\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"rules_icon.bmp\">\n <\/bitmap>\n <\/resource>\n\n <!-- color of the \"change rules\" title text on the configure hero form -->\n <resource\n id=\"rulestext\"\n issystem=\"yes\">\n <color\n color=\"c0c0c0\">\n <\/color>\n <\/resource>\n\n <!-- bitmap used for the 'load actor' button on the validation form -->\n <resource\n id=\"validload\"\n isbuiltin=\"yes\"\n issystem=\"yes\">\n <bitmap\n bitmap=\"load_up.bmp\"\n istransparent=\"yes\">\n <\/bitmap>\n <\/resource>\n\n <!-- color of the title text in wizards like the License Activation Wizard -->\n <resource\n id=\"wiztitle\"\n issystem=\"yes\">\n <color\n color=\"d2d2d2\">\n <\/color>\n <\/resource>\n\n\n <!-- ********** SCROLLERS ********** -->\n\n\n <!-- bitmaps used in conjunction with the vertical scroller\n -two bitmaps define the top end of the scroller and its monochrome mask\n -two bitmaps define the bottom end of the scroller and its monochrome mask\n -two bitmaps define the vertical bar segment and its monochrome mask\n -two bitmaps define the \"thumb\" and its monochrome mask\n -->\n <resource\n id=\"scrvtop\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"vscroller_top.bmp\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"scrvtopmk\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"vscroller_top_mask.bmp\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"scrvbtm\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"vscroller_bottom.bmp\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"scrvbtmmk\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"vscroller_bottom_mask.bmp\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"scrvbar\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"vscroller_bar.bmp\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"scrvbarmk\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"vscroller_bar_mask.bmp\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"scrvthm\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"vscroller_thumb.bmp\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"scrvthmmk\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"vscroller_thumb_mask.bmp\">\n <\/bitmap>\n <\/resource>\n\n <!-- bitmaps used in conjunction with the horizontal scroller\n -two bitmaps define the left end of the scroller and its monochrome mask\n -two bitmaps define the right end of the scroller and its monochrome mask\n -two bitmaps define the horizontal bar segment and its monochrome mask\n -two bitmaps define the \"thumb\" and its monochrome mask\n -->\n <resource\n id=\"scrhtop\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"hscroller_top.bmp\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"scrhtopmk\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"hscroller_top_mask.bmp\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"scrhbtm\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"hscroller_bottom.bmp\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"scrhbtmmk\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"hscroller_bottom_mask.bmp\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"scrhbar\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"hscroller_bar.bmp\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"scrhbarmk\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"hscroller_bar_mask.bmp\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"scrhthm\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"hscroller_thumb.bmp\">\n <\/bitmap>\n <\/resource>\n <resource\n id=\"scrhthmmk\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <bitmap\n bitmap=\"hscroller_thumb_mask.bmp\">\n <\/bitmap>\n <\/resource>\n\n\n <!-- ********** BORDERS ********** -->\n\n\n <!-- border used around forms that don't utilize standard Windows borders\n WARNING! The thickness of this particular border MUST ALWAYS be three pixels.\n -->\n <resource\n id=\"brdform\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <border>\n <topleft bitmap=\"brd_form_topleft.bmp\"\/>\n <topright bitmap=\"brd_form_topright.bmp\"\/>\n <bottomleft bitmap=\"brd_form_bottomleft.bmp\"\/>\n <bottomright bitmap=\"brd_form_bottomright.bmp\"\/>\n <left bitmap=\"brd_form_left.bmp\"\/>\n <top bitmap=\"brd_form_top.bmp\"\/>\n <right bitmap=\"brd_form_right.bmp\"\/>\n <bottom bitmap=\"brd_form_bottom.bmp\"\/>\n <\/border>\n <\/resource>\n\n <!-- border used for various purposes within interior areas -->\n <resource\n id=\"brdsystem\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <border>\n <topleft bitmap=\"brd_system_topleft.bmp\"\/>\n <topright bitmap=\"brd_system_topright.bmp\"\/>\n <bottomleft bitmap=\"brd_system_bottomleft.bmp\"\/>\n <bottomright bitmap=\"brd_system_bottomright.bmp\"\/>\n <left bitmap=\"brd_system_left.bmp\"\/>\n <top bitmap=\"brd_system_top.bmp\"\/>\n <right bitmap=\"brd_system_right.bmp\"\/>\n <bottom bitmap=\"brd_system_bottom.bmp\"\/>\n <\/border>\n <\/resource>\n\n <!-- border used around the edit panel in HL and around the current tab within the Editor -->\n <resource\n id=\"brdedit\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <border>\n <topleft bitmap=\"brd_system_topleft.bmp\"\/>\n <topright bitmap=\"brd_system_topright.bmp\"\/>\n <bottomleft bitmap=\"brd_system_bottomleft.bmp\"\/>\n <bottomright bitmap=\"brd_system_bottomright.bmp\"\/>\n <left bitmap=\"brd_system_left.bmp\"\/>\n <top bitmap=\"brd_system_top.bmp\"\/>\n <right bitmap=\"brd_system_right.bmp\"\/>\n <bottom bitmap=\"brd_system_bottom.bmp\"\/>\n <\/border>\n <\/resource>\n\n <!-- border used around summary panels -->\n <resource\n id=\"brdsummary\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <border>\n <topleft bitmap=\"brd_system_topleft.bmp\"\/>\n <topright bitmap=\"brd_system_topright.bmp\"\/>\n <bottomleft bitmap=\"brd_system_bottomleft.bmp\"\/>\n <bottomright bitmap=\"brd_system_bottomright.bmp\"\/>\n <left bitmap=\"brd_system_left.bmp\"\/>\n <top bitmap=\"brd_system_top.bmp\"\/>\n <right bitmap=\"brd_system_right.bmp\"\/>\n <bottom bitmap=\"brd_system_bottom.bmp\"\/>\n <\/border>\n <\/resource>\n\n <!-- border used around the selected tab -->\n <resource\n id=\"brdtabsel\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <border>\n <topleft bitmap=\"brd_seltab_topleft.bmp\"\/>\n <topright bitmap=\"brd_seltab_topright.bmp\"\/>\n <bottomleft bitmap=\"brd_seltab_bottomleft.bmp\"\/>\n <bottomright bitmap=\"brd_seltab_bottomright.bmp\"\/>\n <left bitmap=\"brd_seltab_left.bmp\"\/>\n <top bitmap=\"brd_seltab_top.bmp\"\/>\n <right bitmap=\"brd_seltab_right.bmp\"\/>\n <bottom bitmap=\"brd_seltab_bottom.bmp\"\/>\n <\/border>\n <\/resource>\n\n <!-- border used around all unselected tabs -->\n <resource\n id=\"brdtabuns\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <border>\n <topleft bitmap=\"brd_unseltab_topleft.bmp\"\/>\n <topright bitmap=\"brd_unseltab_topright.bmp\"\/>\n <bottomleft bitmap=\"brd_unseltab_bottomleft.bmp\"\/>\n <bottomright bitmap=\"brd_unseltab_bottomright.bmp\"\/>\n <left bitmap=\"brd_unseltab_left.bmp\"\/>\n <top bitmap=\"brd_unseltab_top.bmp\"\/>\n <right bitmap=\"brd_unseltab_right.bmp\"\/>\n <bottom bitmap=\"brd_unseltab_bottom.bmp\"\/>\n <\/border>\n <\/resource>\n\n <!-- border used around summary panel titles (as seen in Mutants & Masterminds)\n NOTE! Only define this border if you want to utilize a funky border around the\n titles of summay panels. If no border is defined (it is commented out\n below), then the standard visual presentation of summary titles is used.\n -->\n <!--\n <resource\n id=\"brdsumtitl\"\n issystem=\"yes\"\n isbuiltin=\"yes\">\n <border>\n <topleft bitmap=\"?.bmp\"\/>\n <topright bitmap=\"?.bmp\"\/>\n <bottomleft bitmap=\"?.bmp\"\/>\n <bottomright bitmap=\"?.bmp\"\/>\n <left bitmap=\"?.bmp\"\/>\n <top bitmap=\"?.bmp\"\/>\n <right bitmap=\"?.bmp\"\/>\n <bottom bitmap=\"?.bmp\"\/>\n <\/border>\n <\/resource>\n -->\n\n\n <\/document>\n","avg_line_length":22.7535934292,"max_line_length":128,"alphanum_fraction":0.5927939717} {"size":97,"ext":"aug","lang":"Augeas","max_stars_count":1.0,"content":"module Sos =\n autoload xfm\n let lns = Puppet.lns\n let xfm = transform lns (incl \"\/etc\/sos.conf\")\n","avg_line_length":19.4,"max_line_length":47,"alphanum_fraction":0.6907216495} {"size":9835,"ext":"aug","lang":"Augeas","max_stars_count":415.0,"content":"(*\nModule: Grub\n Parses grub configuration\n\nAuthor: David Lutterkort <lutter@redhat.com>\n\nAbout: License\n This file is licenced under the LGPL v2+, like the rest of Augeas.\n\nAbout: Lens Usage\n To be documented\n*)\n\nmodule Grub =\n autoload xfm\n\n (* This only covers the most basic grub directives. Needs to be *)\n (* expanded to cover more (and more esoteric) directives *)\n (* It is good enough to handle the grub.conf on my Fedora 8 box *)\n\n\n(************************************************************************\n * Group: USEFUL PRIMITIVES\n *************************************************************************)\n\n (* View: value_to_eol *)\n let value_to_eol = store \/[^= \\t\\n][^\\n]*[^= \\t\\n]|[^= \\t\\n]\/\n\n (* View: eol *)\n let eol = Util.eol\n\n (* View: del_to_eol *)\n let del_to_eol = del \/[^ \\t\\n]*\/ \"\"\n\n (* View: spc *)\n let spc = Util.del_ws_spc\n\n (* View: opt_ws *)\n let opt_ws = Util.del_opt_ws \"\"\n\n (* View: dels *)\n let dels (s:string) = Util.del_str s\n\n (* View: eq *)\n let eq = dels \"=\"\n\n (* View: switch *)\n let switch (n:regexp) = dels \"--\" . key n\n\n (* View: switch_arg *)\n let switch_arg (n:regexp) = switch n . eq . store Rx.no_spaces\n\n (* View: value_sep *)\n let value_sep (dflt:string) = del \/[ \\t]*[ \\t=][ \\t]*\/ dflt\n\n (* View: comment_re *)\n let comment_re = \/([^ \\t\\n].*[^ \\t\\n]|[^ \\t\\n])\/\n - \/# ## (Start|End) Default Options ##\/\n\n (* View: comment *)\n let comment =\n [ Util.indent . label \"#comment\" . del \/#[ \\t]*\/ \"# \"\n . store comment_re . eol ]\n\n (* View: empty *)\n let empty = Util.empty\n\n(************************************************************************\n * Group: USEFUL FUNCTIONS\n *************************************************************************)\n\n (* View: command *)\n let command (kw:regexp) (indent:string) =\n Util.del_opt_ws indent . key kw\n\n (* View: kw_arg *)\n let kw_arg (kw:regexp) (indent:string) (dflt_sep:string) =\n [ command kw indent . value_sep dflt_sep . value_to_eol . eol ]\n\n (* View: kw_boot_arg *)\n let kw_boot_arg (kw:regexp) = kw_arg kw \"\\t\" \" \"\n\n (* View: kw_menu_arg *)\n let kw_menu_arg (kw:regexp) = kw_arg kw \"\" \" \"\n\n (* View: password_arg *)\n let password_arg = [ command \"password\" \"\" .\n (spc . [ switch \"md5\" ])? .\n (spc . [ switch \"encrypted\" ])? .\n spc . store (\/[^ \\t\\n]+\/ - \/--[^ \\t\\n]+\/) .\n (spc . [ label \"file\" . store \/[^ \\t\\n]+\/ ])? .\n eol ]\n\n (* View: kw_pres *)\n let kw_pres (kw:string) = [ opt_ws . key kw . del_to_eol . eol ]\n\n(************************************************************************\n * Group: BOOT ENTRIES\n *************************************************************************)\n\n (* View: device\n * This is a shell-only directive in upstream grub; the grub versions\n * in at least Fedora\/RHEL use this to find devices for UEFI boot *)\n let device =\n [ command \"device\" \"\" . Sep.space . store \/\\([A-Za-z0-9_.-]+\\)\/ . spc .\n [ label \"file\" . value_to_eol ] . Util.eol ]\n\n (* View: color *)\n let color =\n (* Should we nail it down to exactly the color names that *)\n (* grub supports ? *)\n let color_name = store \/[A-Za-z-]+\/ in\n let color_spec =\n [ label \"foreground\" . color_name] .\n dels \"\/\" .\n [ label \"background\" . color_name ] in\n [ opt_ws . key \"color\" .\n spc . [ label \"normal\" . color_spec ] .\n (spc . [ label \"highlight\" . color_spec ])? .\n eol ]\n\n (* View: serial *)\n let serial =\n [ command \"serial\" \"\" .\n [ spc . switch_arg \/unit|port|speed|word|parity|stop|device\/ ]* .\n eol ]\n\n (* View: terminal *)\n let terminal =\n [ command \"terminal\" \"\" .\n ([ spc . switch \/dumb|no-echo|no-edit|silent\/ ]\n |[ spc . switch_arg \/timeout|lines\/ ])* .\n [ spc . key \/console|serial|hercules\/ ]* . eol ]\n\n (* View: setkey *)\n let setkey = [ command \"setkey\" \"\" .\n ( spc . [ label \"to\" . store Rx.no_spaces ] .\n spc . [ label \"from\" . store Rx.no_spaces ] )? .\n eol ]\n\n (* View: menu_setting *)\n let menu_setting = kw_menu_arg \"default\"\n | kw_menu_arg \"fallback\"\n | kw_pres \"hiddenmenu\"\n | kw_menu_arg \"timeout\"\n | kw_menu_arg \"splashimage\"\n | kw_menu_arg \"gfxmenu\"\n | kw_menu_arg \"foreground\"\n | kw_menu_arg \"background\"\n | kw_menu_arg \"verbose\"\n | kw_menu_arg \"boot\" (* only for CLI, ignored in conf *)\n | serial\n | terminal\n | password_arg\n | color\n | device\n | setkey\n\n (* View: title *)\n let title = del \/title[ \\t=]+\/ \"title \" . value_to_eol . eol\n\n (* View: multiboot_arg\n * Permits a second form for Solaris multiboot kernels that\n * take a path (with a slash) as their first arg, e.g.\n * \/boot\/multiboot kernel\/unix another=arg *)\n let multiboot_arg = [ label \"@path\" .\n store (Rx.word . \"\/\" . Rx.no_spaces) ]\n\n (* View: kernel_args\n Parse the file name and args on a kernel or module line. *)\n let kernel_args =\n let arg = \/[A-Za-z0-9_.$-]+\/ - \/type|no-mem-option\/ in\n store \/(\\([a-z0-9,]+\\))?\\\/[^ \\t\\n]*\/ .\n (spc . multiboot_arg)? .\n (spc . [ key arg . (eq. store \/([^ \\t\\n])*\/)?])* . eol\n\n (* View: module_line\n Solaris extension adds module$ and kernel$ for variable interpolation *)\n let module_line =\n [ command \/module\\$?\/ \"\\t\" . spc . kernel_args ]\n\n (* View: map_line *)\n let map_line =\n [ command \"map\" \"\\t\" . spc .\n [ label \"from\" . store \/[()A-za-z0-9]+\/ ] . spc .\n [ label \"to\" . store \/[()A-za-z0-9]+\/ ] . eol ]\n\n (* View: kernel *)\n let kernel =\n [ command \/kernel\\$?\/ \"\\t\" .\n (spc .\n ([switch \"type\" . eq . store \/[a-z]+\/]\n |[switch \"no-mem-option\"]))* .\n spc . kernel_args ]\n\n (* View: chainloader *)\n let chainloader =\n [ command \"chainloader\" \"\\t\" .\n [ spc . switch \"force\" ]? . spc . store Rx.no_spaces . eol ]\n\n (* View: savedefault *)\n let savedefault =\n [ command \"savedefault\" \"\\t\" . (spc . store Rx.integer)? . eol ]\n\n (* View: configfile *)\n let configfile =\n [ command \"configfile\" \"\\t\" . spc . store Rx.no_spaces . eol ]\n\n (* View: boot_setting\n <boot> entries *)\n let boot_setting =\n let boot_arg_re = \"root\" | \"initrd\" | \"rootnoverify\" | \"uuid\"\n | \"findroot\" | \"bootfs\" (* Solaris extensions *)\n in kw_boot_arg boot_arg_re\n | kernel\n | chainloader\n | kw_pres \"quiet\" (* Seems to be a Ubuntu extension *)\n | savedefault\n | configfile\n | module_line\n | map_line\n | kw_pres \"lock\"\n | kw_pres \"makeactive\"\n | password_arg\n\n (* View: boot *)\n let boot =\n let line = ((boot_setting|comment)* . boot_setting)? in\n [ label \"title\" . title . line ]\n\n(************************************************************************\n * Group: DEBIAN-SPECIFIC SECTIONS\n *************************************************************************)\n\n (* View: debian_header\n Header for a <debian>-specific section *)\n let debian_header = \"## ## Start Default Options ##\\n\"\n\n (* View: debian_footer\n Footer for a <debian>-specific section *)\n let debian_footer = \"## ## End Default Options ##\\n\"\n\n (* View: debian_comment_re *)\n let debian_comment_re = \/([^ \\t\\n].*[^ \\t\\n]|[^ \\t\\n])\/\n - \"## End Default Options ##\"\n\n (* View: debian_comment\n A comment entry inside a <debian>-specific section *)\n let debian_comment =\n [ Util.indent . label \"#comment\" . del \/##[ \\t]*\/ \"## \"\n . store debian_comment_re . eol ]\n\n (* View: debian_setting_re *)\n let debian_setting_re = \"kopt\"\n | \"groot\"\n | \"alternative\"\n | \"lockalternative\"\n | \"defoptions\"\n | \"lockold\"\n | \"xenhopt\"\n | \"xenkopt\"\n | \"altoptions\"\n | \"howmany\"\n | \"memtest86\"\n | \"updatedefaultentry\"\n | \"savedefault\"\n | \"indomU\"\n\n (* View: debian_entry *)\n let debian_entry = [ Util.del_str \"#\" . Util.indent\n . key debian_setting_re . del \/[ \\t]*=\/ \"=\"\n . value_to_eol? . eol ]\n\n (* View: debian\n A debian-specific section, made of <debian_entry> lines *)\n let debian = [ label \"debian\"\n . del debian_header debian_header\n . (debian_comment|empty|debian_entry)*\n . del debian_footer debian_footer ]\n\n(************************************************************************\n * Group: LENS AND FILTER\n *************************************************************************)\n\n (* View: lns *)\n let lns = (comment | empty | menu_setting | debian)*\n . (boot . (comment | empty | boot)*)?\n\n (* View: filter *)\n let filter = incl \"\/boot\/grub\/grub.conf\"\n . incl \"\/boot\/grub\/menu.lst\"\n . incl \"\/etc\/grub.conf\"\n . incl \"\/boot\/efi\/EFI\/*\/grub.conf\"\n\n let xfm = transform lns filter\n","avg_line_length":33.2263513514,"max_line_length":80,"alphanum_fraction":0.4592780885} {"size":797,"ext":"aug","lang":"Augeas","max_stars_count":null,"content":"<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n<document signature=\"Army Builder Augmentation\">\n <group id=\"unCrew\" width=\"5\" name=\"Undead Crew\" accrue=\"yes\">\n <value id=\"liche\" name=\"Liche\"\/>\n <value id=\"necro\" name=\"Necromancer\"\/>\n <value id=\"skeleton\" name=\"Skeletons\"\/>\n <value id=\"tombking\" name=\"Tomb King\"\/>\n <value id=\"wight\" name=\"Wights\"\/>\n <value id=\"zombie\" name=\"Zombies\"\/>\n <\/group>\n <unitstat id=\"maxCrew\" name=\"Max Crew\" showbase=\"no\" private=\"yes\"><\/unitstat>\n <unitstat id=\"maxCrewS\" name=\"Squadron Max Crew\" showbase=\"no\" private=\"yes\"><\/unitstat>\n <exclusion id=\"admiral\" minimum=\"1\" maximum=\"1\" message=\"Must choose a admiral for the flagship of the fleet\"><\/exclusion>\n <exclusion id=\"unCrew\" minimum=\"0\" maximum=\"@maxCrewS\"><\/exclusion>\n <\/document>\n","avg_line_length":49.8125,"max_line_length":124,"alphanum_fraction":0.6700125471} {"size":1530,"ext":"aug","lang":"Augeas","max_stars_count":1.0,"content":"(* Subversion module for Augeas\n * Author: Marc Fournier <marc.fournier@camptocamp.com>\n *\n * Subversion configuration are regular ini files.\n *)\n\nmodule Subversion =\n autoload xfm\n\n(************************************************************************\n * INI File settings\n *\n * subversion only supports comments starting with \"#\"\n *\n *************************************************************************)\n\nlet comment = IniFile.comment \"#\" \"#\"\nlet sep = IniFile.sep IniFile.sep_default IniFile.sep_default\n\n(************************************************************************\n * ENTRY\n *\n * subversion doesn't support indented entries\n *\n *************************************************************************)\n\nlet entry = IniFile.entry IniFile.entry_re sep comment\n\n(************************************************************************\n * TITLE\n *\n * subversion doesn't allow anonymous entries (outside sections)\n *\n *************************************************************************)\n\nlet title = IniFile.title IniFile.entry_re\nlet record = IniFile.record title entry\n\n(************************************************************************\n * LENS & FILTER\n *************************************************************************)\n\nlet lns = IniFile.lns record comment\n\nlet filter = incl \"\/etc\/subversion\/config\"\n . incl \"\/etc\/subversion\/servers\"\n\nlet xfm = transform lns filter\n","avg_line_length":31.2244897959,"max_line_length":75,"alphanum_fraction":0.3921568627} {"size":2285,"ext":"aug","lang":"Augeas","max_stars_count":163.0,"content":"%TITLE%\n AUG 030630\/1800\n\n LEVEL HGHT TEMP DWPT WDIR WSPD\n __________________________________________________\n %RAW%\n 1004.30,85.60,16.59,16.59,239.47,8.80\n 1001.80,107.50,24.44,16.26,238.33,10.73\n 996.70,152.30,24.14,15.94,237.89,11.70\n 989.20,218.40,23.54,15.61,236.79,12.77\n 979.10,308.10,23.44,15.82,233.45,14.03\n 964.00,443.80,22.74,15.85,228.18,14.86\n 948.90,581.30,21.64,15.68,226.49,15.80\n 933.80,720.50,20.74,15.34,225.47,16.62\n 918.60,862.40,19.74,14.87,225.44,17.72\n 903.50,1005.20,18.44,14.31,228.32,18.99\n 888.40,1149.70,17.14,13.71,230.12,20.00\n 873.30,1296.00,15.74,13.01,232.08,21.18\n 858.20,1444.10,14.44,12.00,234.64,22.15\n 843.10,1594.10,13.04,10.72,238.46,23.02\n 828.00,1746.00,11.74,9.27,242.81,23.80\n 812.90,1899.80,10.34,7.49,245.81,25.13\n 797.70,2056.80,9.04,5.77,248.51,26.51\n 782.60,2214.90,7.54,4.15,251.57,27.64\n 767.50,2375.20,6.04,2.78,253.01,29.25\n 752.40,2537.80,4.64,1.26,251.57,30.10\n 734.90,2729.10,2.94,-0.92,248.00,30.59\n 710.10,3006.80,1.84,-3.67,245.27,32.51\n 675.00,3414.20,-0.26,-6.64,246.80,35.51\n 638.30,3859.60,-2.76,-9.68,250.15,37.18\n 610.00,4218.00,-4.36,-12.69,254.95,37.41\n 585.40,4541.40,-5.76,-15.76,258.81,38.02\n 560.60,4879.60,-7.26,-19.51,262.35,39.40\n 535.30,5238.20,-8.96,-24.02,265.70,41.49\n 504.20,5698.80,-11.76,-29.53,267.37,46.48\n 434.90,6810.60,-20.96,-36.46,266.51,57.41\n 380.70,7778.00,-28.86,-40.01,263.86,67.21\n 330.30,8778.00,-36.36,-43.39,261.87,76.92\n 290.90,9646.80,-42.66,-49.15,260.84,85.40\n 253.50,10561.40,-49.56,-59.43,260.70,90.15\n 227.30,11267.60,-54.46,-67.17,261.41,89.78\n 213.70,11660.90,-56.36,-72.46,262.92,86.71\n 207.70,11841.70,-56.16,-72.65,263.88,82.05\n 204.20,11949.80,-55.36,-72.76,263.90,76.78\n 201.30,12041.20,-54.26,-72.86,263.07,72.40\n 197.40,12166.70,-53.66,-72.99,262.76,69.32\n 190.20,12405.30,-54.06,-73.24,262.85,67.15\n 182.90,12655.90,-54.66,-73.51,264.37,65.39\n 176.30,12891.00,-54.56,-73.75,266.39,61.70\n 168.00,13200.00,-53.86,-74.08,266.48,53.72\n 158.60,13570.10,-53.36,-74.46,262.88,43.85\n 139.80,14381.10,-53.76,-75.29,266.74,37.55\n 124.70,15117.30,-52.46,-76.04,270.82,27.00\n 97.90,16668.00,-55.96,-77.60,252.22,21.62\n 78.80,18049.30,-55.46,-78.98,276.63,8.41\n 58.20,19998.90,-51.26,-73.82,132.51,3.16\n %END%\n\n\n----- Note -----\nOld Title: MRF 030912\/0000\n\n","avg_line_length":36.2698412698,"max_line_length":51,"alphanum_fraction":0.658643326} {"size":1271,"ext":"aug","lang":"Augeas","max_stars_count":68.0,"content":"(* Lens for the mount provider\n\n Fork of the upstream Fstab lens. The main difference is that\n comma-separated options and vfstype are not parsed into individual\n entries, and are rather kept as one string\n*)\n\nmodule Mount_Fstab =\n let sep_tab = Sep.tab\n let sep_spc = Sep.space\n let comma = Sep.comma\n let eol = Util.eol\n\n let comment = Util.comment\n let empty = Util.empty\n\n let file = \/[^# \\t\\n]+\/\n\n (* An option label can't contain comma, comment, equals, or space *)\n let optlabel = \/[^,#= \\n\\t]+\/\n let spec = \/[^,# \\n\\t][^ \\n\\t]*\/\n\n let comma_sep_list (l:string) =\n let value = [ label \"value\" . Util.del_str \"=\" . ( store Rx.neg1 )? ] in\n let lns = [ label l . store optlabel . value? ] in\n Build.opt_list lns comma\n\n let record = [ seq \"mntent\" .\n [ label \"spec\" . store spec ] . sep_tab .\n [ label \"file\" . store file ] . sep_tab .\n [label \"vfstype\" . store file ] .\n (sep_tab . [label \"options\" . store file ] .\n (sep_tab . [ label \"dump\" . store \/[0-9]+\/ ] .\n ( sep_spc . [ label \"passno\" . store \/[0-9]+\/ ])? )? )?\n . Util.comment_or_eol ]\n\n let lns = ( empty | comment | record ) *\n","avg_line_length":33.4473684211,"max_line_length":76,"alphanum_fraction":0.5420928403} {"size":66317,"ext":"aug","lang":"Augeas","max_stars_count":null,"content":"<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\r\n\r\n<!-- This file contains definitions of all custom resources and styles used for\r\n displaying visual elements within the user-interface of Hero Lab. Visual elements\r\n utilized for printed output are defined within \"styles_output.aug\". All sytem\r\n resources replaced for the game system are defined within \"system_resources.aug\".\r\n-->\r\n\r\n<document signature=\"Hero Lab Structure\">\r\n\r\n\r\n<!--\r\n ########## Font Resource Definitions ##########\r\n-->\r\n\r\n\r\n<!-- ##### Fonts - Labels ##### -->\r\n\r\n <!-- font used on normal labels (10pt) -->\r\n <resource\r\n id=\"fntnormal\">\r\n <font\r\n face=\"Arial\"\r\n size=\"40\"\r\n style=\"bold\">\r\n <\/font>\r\n <\/resource>\r\n\r\n <!-- font used when slightly larger is needed (11pt) -->\r\n <resource\r\n id=\"fntlarge\">\r\n <font\r\n face=\"Arial\"\r\n size=\"44\"\r\n style=\"bold\">\r\n <\/font>\r\n <\/resource>\r\n\r\n <!-- font used when much larger is needed (15pt) -->\r\n <resource\r\n id=\"fntxlarge\">\r\n <font\r\n face=\"Arial\"\r\n size=\"60\"\r\n style=\"bold\">\r\n <\/font>\r\n <\/resource>\r\n\r\n <!-- font used when slightly smaller is needed (9pt) -->\r\n <resource\r\n id=\"fntsmall\">\r\n <font\r\n face=\"Arial\"\r\n size=\"36\"\r\n style=\"bold\">\r\n <\/font>\r\n <\/resource>\r\n\r\n <!-- font used for headers above tables (8pt) -->\r\n <resource\r\n id=\"fntheader\">\r\n <font\r\n face=\"Arial\"\r\n size=\"32\"\r\n style=\"bold\">\r\n <\/font>\r\n <\/resource>\r\n\r\n <!-- font used on title labels (10pt) -->\r\n <resource\r\n id=\"fnttitle\">\r\n <font\r\n face=\"Arial\"\r\n size=\"40\"\r\n style=\"bold\">\r\n <\/font>\r\n <\/resource>\r\n\r\n <!-- font used on summary labels (10pt) -->\r\n <resource\r\n id=\"fntsummary\">\r\n <font\r\n face=\"Arial\"\r\n size=\"40\">\r\n <\/font>\r\n <\/resource>\r\n\r\n <!-- font used on journal summary labels (9pt) -->\r\n <resource\r\n id=\"fntjrnsumm\">\r\n <font\r\n face=\"Arial\"\r\n size=\"36\">\r\n <\/font>\r\n <\/resource>\r\n\r\n <!-- font used on a small action portal\/button (8pt) -->\r\n <resource\r\n id=\"fntactsml\">\r\n <font\r\n face=\"Arial\"\r\n size=\"32\"\r\n style=\"bold\">\r\n <\/font>\r\n <\/resource>\r\n\r\n <!-- font used on a big action portal\/button (9pt) -->\r\n <resource\r\n id=\"fntactbig\">\r\n <font\r\n face=\"Arial\"\r\n size=\"36\"\r\n style=\"bold\">\r\n <\/font>\r\n <\/resource>\r\n\r\n <!-- font used on title labels placed under edit portals \/ droplists (8pt) -->\r\n <resource\r\n id=\"fntcfgttl\">\r\n <font\r\n face=\"Arial\"\r\n size=\"32\">\r\n <\/font>\r\n <\/resource>\r\n\r\n <!-- font used for tiny text (8pt) -->\r\n <resource\r\n id=\"fnttiny\">\r\n <font\r\n face=\"Arial\"\r\n size=\"32\">\r\n <\/font>\r\n <\/resource>\r\n\r\n <!-- font used on tactical console labels (8pt) -->\r\n <resource\r\n id=\"fnttacinfo\">\r\n <font\r\n face=\"Arial\"\r\n size=\"32\">\r\n <\/font>\r\n <\/resource>\r\n\r\n <!-- font used for extra secondary info (9pt) -->\r\n <resource\r\n id=\"fntsecond\">\r\n <font\r\n face=\"Arial\"\r\n size=\"36\">\r\n <\/font>\r\n <\/resource>\r\n\r\n <!-- font used on labels that only show encoded text bitmaps (9pt default)\r\n -NOTE! This is needed because inline bitmaps will be automatically scaled up\r\n or down when displayed at other default font sizes.\r\n -->\r\n <resource\r\n id=\"fntencoded\">\r\n <font\r\n face=\"Arial\"\r\n size=\"36\"\r\n style=\"bold\">\r\n <\/font>\r\n <\/resource>\r\n\r\n\r\n<!-- ##### Fonts - Edit Portals ##### -->\r\n\r\n <!-- font used within edit portals -->\r\n <resource\r\n id=\"fntedit\">\r\n <font\r\n face=\"Arial\"\r\n size=\"36\">\r\n <\/font>\r\n <\/resource>\r\n\r\n\r\n<!-- ##### Fonts - Checkboxes ##### -->\r\n\r\n <!-- font used within checkboxes -->\r\n <resource\r\n id=\"fntcheck\">\r\n <font\r\n face=\"Arial\"\r\n size=\"40\"\r\n style=\"bold\">\r\n <\/font>\r\n <\/resource>\r\n\r\n\r\n<!-- ##### Fonts - Incrementers ##### -->\r\n\r\n <!-- font used within simple incrementers -->\r\n <resource\r\n id=\"fntincrsim\">\r\n <font\r\n face=\"Arial\"\r\n size=\"46\"\r\n style=\"bold\">\r\n <\/font>\r\n <\/resource>\r\n\r\n <!-- font used within big incrementers -->\r\n <resource\r\n id=\"fntincrbig\">\r\n <font\r\n face=\"Arial\"\r\n size=\"100\"\r\n style=\"bold\">\r\n <\/font>\r\n <\/resource>\r\n\r\n <!-- font used within small incrementers -->\r\n <resource\r\n id=\"fntincrsml\">\r\n <font\r\n face=\"Arial\"\r\n size=\"44\">\r\n <\/font>\r\n <\/resource>\r\n\r\n\r\n<!-- ##### Fonts - Menus and Choosers ##### -->\r\n\r\n <!-- font used within menu and chooser portals -->\r\n <resource\r\n id=\"fntmenu\">\r\n <font\r\n face=\"Arial\"\r\n size=\"36\"\r\n style=\"bold\">\r\n <\/font>\r\n <\/resource>\r\n\r\n <!-- small font used within menu and chooser portals -->\r\n <resource\r\n id=\"fntmenusm\">\r\n <font\r\n face=\"Arial\"\r\n size=\"30\"\r\n style=\"bold\">\r\n <\/font>\r\n <\/resource>\r\n\r\n\r\n<!--\r\n ########## Other Resource Definitions ##########\r\n-->\r\n\r\n\r\n <!-- border used as a thick white outline around an area -->\r\n <resource\r\n id=\"brdthick\"\r\n isbuiltin=\"yes\">\r\n <border>\r\n <topleft bitmap=\"brd_thick_topleft.bmp\"\/>\r\n <topright bitmap=\"brd_thick_topright.bmp\"\/>\r\n <bottomleft bitmap=\"brd_thick_bottomleft.bmp\"\/>\r\n <bottomright bitmap=\"brd_thick_bottomright.bmp\"\/>\r\n <left bitmap=\"brd_thick_left.bmp\"\/>\r\n <top bitmap=\"brd_thick_top.bmp\"\/>\r\n <right bitmap=\"brd_thick_right.bmp\"\/>\r\n <bottom bitmap=\"brd_thick_bottom.bmp\"\/>\r\n <\/border>\r\n <\/resource>\r\n\r\n <!-- bitmap for use as the background of label portals designated as a \"title\" -->\r\n <resource\r\n id=\"titleback\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"mainwindow.bmp\">\r\n <\/bitmap>\r\n <\/resource>\r\n\r\n\r\n<!--\r\n ########## General Color Definitions ##########\r\n-->\r\n\r\n\r\n <!-- color used to reset a \"text\" block within encoded text -->\r\n <resource\r\n id=\"clrreset\">\r\n <color\r\n color=\"010101\">\r\n <\/color>\r\n <\/resource>\r\n\r\n <!-- color used for normal text throughout the ui -->\r\n <resource\r\n id=\"clrnormal\">\r\n <color\r\n color=\"f0f0f0\">\r\n <\/color>\r\n <\/resource>\r\n\r\n <!-- color used for text on the static panel - not quite as bright -->\r\n <resource\r\n id=\"clrstatic\">\r\n <color\r\n color=\"d2d2d2\">\r\n <\/color>\r\n <\/resource>\r\n\r\n <!-- color used for text in title labels -->\r\n <resource\r\n id=\"clrtitle\">\r\n <color\r\n color=\"c0c0c0\">\r\n <\/color>\r\n <\/resource>\r\n\r\n <!-- color used for names of automatically added picks -->\r\n <resource\r\n id=\"clrauto\">\r\n <color\r\n color=\"99efed\">\r\n <\/color>\r\n <\/resource>\r\n\r\n <!-- color used for disabled text -->\r\n <resource\r\n id=\"clrdisable\">\r\n <color\r\n color=\"808080\">\r\n <\/color>\r\n <\/resource>\r\n\r\n <!-- color used for summary text that should be a little dimmer than normal -->\r\n <resource\r\n id=\"clrsummary\">\r\n <color\r\n color=\"a0a0a0\">\r\n <\/color>\r\n <\/resource>\r\n\r\n <!-- color used for greyed out text for \"add\" items that are non-applicable -->\r\n <resource\r\n id=\"clrgrey\">\r\n <color\r\n color=\"a0a0a0\">\r\n <\/color>\r\n <\/resource>\r\n\r\n <!-- color used for softly glowing text -->\r\n <resource\r\n id=\"clrglow\">\r\n <color\r\n color=\"ffff80\">\r\n <\/color>\r\n <\/resource>\r\n\r\n <!-- color used for bright text -->\r\n <resource\r\n id=\"clrbright\">\r\n <color\r\n color=\"ffff88\">\r\n <\/color>\r\n <\/resource>\r\n\r\n <!-- color used for warning text -->\r\n <resource\r\n id=\"clrwarning\">\r\n <color\r\n color=\"ff0000\">\r\n <\/color>\r\n <\/resource>\r\n\r\n <!-- color used for prompt text inviting the user to change something -->\r\n <resource\r\n id=\"clrprompt\">\r\n <color\r\n color=\"ffff00\">\r\n <\/color>\r\n <\/resource>\r\n\r\n <!-- color used for blocks of text on the tactical console -->\r\n <resource\r\n id=\"clrtacinfo\">\r\n <color\r\n color=\"c0c0c0\">\r\n <\/color>\r\n <\/resource>\r\n\r\n <!-- color used to identify enemy actors on the tactical console -->\r\n <resource\r\n id=\"clrenemy\">\r\n <color\r\n color=\"ff8080\">\r\n <\/color>\r\n <\/resource>\r\n\r\n <!-- color used to identify active actors on the tactical console -->\r\n <resource\r\n id=\"clractive\">\r\n <color\r\n color=\"ffff80\">\r\n <\/color>\r\n <\/resource>\r\n\r\n <!-- color used for secondary text within mouse-info text -->\r\n <resource\r\n id=\"clrsecond\">\r\n <color\r\n color=\"555555\">\r\n <\/color>\r\n <\/resource>\r\n\r\n <!-- color used for the 'buy for free' checkbox on buy \/ sell panels -->\r\n <resource\r\n id=\"clrchkfree\">\r\n <color\r\n color=\"a8a800\">\r\n <\/color>\r\n <\/resource>\r\n\r\n <!-- color used for text on summary panels - a little dimmer than normal -->\r\n <resource\r\n id=\"clrsummtxt\">\r\n <color\r\n color=\"d0d0d0\">\r\n <\/color>\r\n <\/resource>\r\n\r\n <!-- color used for labels when choosing advancements -->\r\n <resource\r\n id=\"clradvance\">\r\n <color\r\n color=\"ffffff\">\r\n <\/color>\r\n <\/resource>\r\n\r\n <!-- color used for text on action buttons -->\r\n <resource\r\n id=\"clraction\">\r\n <color\r\n color=\"000088\">\r\n <\/color>\r\n <\/resource>\r\n\r\n <!-- colors used in edit controls -->\r\n <resource\r\n id=\"clredittxt\">\r\n <color\r\n color=\"d2d2d2\">\r\n <\/color>\r\n <\/resource>\r\n <resource\r\n id=\"clreditbck\">\r\n <color\r\n color=\"000000\">\r\n <\/color>\r\n <\/resource>\r\n\r\n <!-- colors used in menu and chooser controls -->\r\n <resource\r\n id=\"clrmenutxt\">\r\n <color\r\n color=\"84c8f7\">\r\n <\/color>\r\n <\/resource>\r\n <resource\r\n id=\"clrmenuslt\">\r\n <color\r\n color=\"1414f7\">\r\n <\/color>\r\n <\/resource>\r\n <resource\r\n id=\"clrmenubck\">\r\n <color\r\n color=\"2a2c47\">\r\n <\/color>\r\n <\/resource>\r\n\r\n\r\n<!--\r\n ########## Style Definitions ##########\r\n-->\r\n\r\n<!-- ##### Styles - System Defaults ##### -->\r\n\r\n <!-- label style used in table \"add\" items (via the \"additem\" script) -->\r\n <style\r\n id=\"additem\">\r\n <style_label\r\n textcolorid=\"clrnormal\"\r\n font=\"fntnormal\"\r\n alignment=\"center\">\r\n <\/style_label>\r\n <\/style>\r\n\r\n <!-- label style used in table \"header\" items (via the \"headertitle\" script) -->\r\n <style\r\n id=\"headerui\"\r\n border=\"raised\">\r\n <style_label\r\n textcolorid=\"clrtitle\"\r\n font=\"fnttitle\"\r\n background=\"titleback\"\r\n alignment=\"center\">\r\n <\/style_label>\r\n <\/style>\r\n\r\n <!-- label style used in table \"header\" items (via the \"headertitle\" script)\r\n displayed within summary panels -->\r\n <style\r\n id=\"headersumm\">\r\n <style_label\r\n textcolorid=\"clrsummary\"\r\n font=\"fntheader\"\r\n alignment=\"center\">\r\n <\/style_label>\r\n <\/style>\r\n\r\n\r\n<!-- ##### Styles - Labels ##### -->\r\n\r\n <!-- style used for \"title\" labels, usually shown at the top of every tab and\r\n above other key sections\r\n -->\r\n <style\r\n id=\"lblTitle\"\r\n border=\"raised\">\r\n <style_label\r\n textcolorid=\"clrtitle\"\r\n font=\"fnttitle\"\r\n background=\"titleback\"\r\n alignment=\"center\">\r\n <\/style_label>\r\n <\/style>\r\n\r\n <!-- labels used on the static tab - not quite as bright -->\r\n <style\r\n id=\"lblStatic\">\r\n <style_label\r\n textcolorid=\"clrstatic\"\r\n font=\"fnttitle\"\r\n alignment=\"center\">\r\n <\/style_label>\r\n <\/style>\r\n\r\n <!-- generic 'normal' label used all over the place - center-aligned -->\r\n <style\r\n id=\"lblNormal\">\r\n <style_label\r\n textcolorid=\"clrnormal\"\r\n font=\"fntnormal\"\r\n alignment=\"center\">\r\n <\/style_label>\r\n <\/style>\r\n\r\n <!-- generic left-aligned 'normal' label -->\r\n <style\r\n id=\"lblLeft\">\r\n <style_label\r\n textcolorid=\"clrnormal\"\r\n font=\"fntnormal\"\r\n alignment=\"left\">\r\n <\/style_label>\r\n <\/style>\r\n\r\n <!-- generic right-aligned 'normal' label -->\r\n <style\r\n id=\"lblRight\">\r\n <style_label\r\n textcolorid=\"clrnormal\"\r\n font=\"fntnormal\"\r\n alignment=\"right\">\r\n <\/style_label>\r\n <\/style>\r\n\r\n <!-- generic 'automatically added' label\r\n -identifies auto-added picks in tables via a color shift\r\n -->\r\n <style\r\n id=\"lblAuto\">\r\n <style_label\r\n textcolorid=\"clrauto\"\r\n font=\"fntnormal\"\r\n alignment=\"center\">\r\n <\/style_label>\r\n <\/style>\r\n\r\n <!-- generic 'disabled' label\r\n -for showing choices that don't meet pre-reqs or are disabled in grey\r\n -->\r\n <style\r\n id=\"lblDisable\">\r\n <style_label\r\n textcolorid=\"clrdisable\"\r\n font=\"fntnormal\"\r\n alignment=\"center\">\r\n <\/style_label>\r\n <\/style>\r\n\r\n <!-- generic 'bright' label\r\n -for highlighting material to stand out\r\n -->\r\n <style\r\n id=\"lblBright\">\r\n <style_label\r\n textcolorid=\"clrbright\"\r\n font=\"fntnormal\"\r\n alignment=\"center\">\r\n <\/style_label>\r\n <\/style>\r\n\r\n <!-- generic 'warning' label\r\n -for identifying invalid selections and erroneous choices\r\n -->\r\n <style\r\n id=\"lblWarning\">\r\n <style_label\r\n textcolorid=\"clrwarning\"\r\n font=\"fntnormal\"\r\n alignment=\"center\">\r\n <\/style_label>\r\n <\/style>\r\n\r\n <!-- generic 'prompt' label\r\n -identifies choices that are valid but require user attention, such as wehn\r\n the user must make a selection and has not done so yet\r\n -->\r\n <style\r\n id=\"lblPrompt\">\r\n <style_label\r\n textcolorid=\"clrprompt\"\r\n font=\"fntnormal\"\r\n alignment=\"center\">\r\n <\/style_label>\r\n <\/style>\r\n\r\n <!-- slightly larger label in same color as the \"normal\" label -->\r\n <style\r\n id=\"lblLarge\">\r\n <style_label\r\n textcolorid=\"clrnormal\"\r\n font=\"fntlarge\"\r\n alignment=\"center\">\r\n <\/style_label>\r\n <\/style>\r\n\r\n <!-- slightly larger label in disabled color -->\r\n <style\r\n id=\"lblLrgDis\">\r\n <style_label\r\n textcolorid=\"clrdisable\"\r\n font=\"fntlarge\"\r\n alignment=\"center\">\r\n <\/style_label>\r\n <\/style>\r\n\r\n <!-- slightly larger label in brighter \"prompt\" color -->\r\n <style\r\n id=\"lblLrgProm\">\r\n <style_label\r\n textcolorid=\"clrprompt\"\r\n font=\"fntlarge\"\r\n alignment=\"center\">\r\n <\/style_label>\r\n <\/style>\r\n\r\n <!-- slightly larger label in warning color -->\r\n <style\r\n id=\"lblLrgWarn\">\r\n <style_label\r\n textcolorid=\"clrwarning\"\r\n font=\"fntlarge\"\r\n alignment=\"center\">\r\n <\/style_label>\r\n <\/style>\r\n\r\n <!-- much larger label in same color as the \"normal\" label -->\r\n <style\r\n id=\"lblXLarge\">\r\n <style_label\r\n textcolorid=\"clrnormal\"\r\n font=\"fntxlarge\"\r\n alignment=\"center\">\r\n <\/style_label>\r\n <\/style>\r\n\r\n <!-- much larger label in disabled color -->\r\n <style\r\n id=\"lblXLrgDis\">\r\n <style_label\r\n textcolorid=\"clrdisable\"\r\n font=\"fntxlarge\"\r\n alignment=\"center\">\r\n <\/style_label>\r\n <\/style>\r\n\r\n <!-- much larger label in warning color -->\r\n <style\r\n id=\"lblXLrgWrn\">\r\n <style_label\r\n textcolorid=\"clrwarning\"\r\n font=\"fntxlarge\"\r\n alignment=\"center\">\r\n <\/style_label>\r\n <\/style>\r\n\r\n <!-- slightly smaller label in same color as \"normal\" label -->\r\n <style\r\n id=\"lblSmall\">\r\n <style_label\r\n textcolorid=\"clrnormal\"\r\n font=\"fntsmall\"\r\n alignment=\"center\">\r\n <\/style_label>\r\n <\/style>\r\n\r\n <!-- slightly smaller label that is left-aligned -->\r\n <style\r\n id=\"lblSmlLeft\">\r\n <style_label\r\n textcolorid=\"clrnormal\"\r\n font=\"fntsmall\"\r\n alignment=\"left\">\r\n <\/style_label>\r\n <\/style>\r\n\r\n <!-- label style for secondary info such as on the Special tab -->\r\n <style\r\n id=\"lblSecond\">\r\n <style_label\r\n textcolorid=\"clrdisable\"\r\n font=\"fntsecond\"\r\n alignment=\"left\">\r\n <\/style_label>\r\n <\/style>\r\n\r\n <!-- label style for header text above tables -->\r\n <style\r\n id=\"lblHeader\">\r\n <style_label\r\n textcolorid=\"clrsummary\"\r\n font=\"fntheader\"\r\n alignment=\"center\">\r\n <\/style_label>\r\n <\/style>\r\n\r\n <!-- label style for tiny info on TacCon\/Dashboard -->\r\n <style\r\n id=\"lblTinyTac\">\r\n <style_label\r\n textcolorid=\"clrnormal\"\r\n font=\"fnttiny\"\r\n alignment=\"center\">\r\n <\/style_label>\r\n <\/style>\r\n\r\n <!-- generic 'tactical console info' label -->\r\n <style\r\n id=\"lblTacInfo\">\r\n <style_label\r\n textcolorid=\"clrnormal\"\r\n font=\"fnttacinfo\"\r\n alignment=\"left\">\r\n <\/style_label>\r\n <\/style>\r\n\r\n <!-- generic 'summary' label for text on summary panels -->\r\n <style\r\n id=\"lblSummary\">\r\n <style_label\r\n textcolorid=\"clrsummtxt\"\r\n font=\"fntsummary\"\r\n alignment=\"center\">\r\n <\/style_label>\r\n <\/style>\r\n\r\n <!-- disabled version of the 'summary' label -->\r\n <style\r\n id=\"lblSummDis\">\r\n <style_label\r\n textcolorid=\"clrdisable\"\r\n font=\"fntsummary\"\r\n alignment=\"center\">\r\n <\/style_label>\r\n <\/style>\r\n\r\n <!-- left-aligned version of the 'summary' label -->\r\n <style\r\n id=\"lblSummLf\">\r\n <style_label\r\n textcolorid=\"clrsummtxt\"\r\n font=\"fntsummary\"\r\n alignment=\"left\">\r\n <\/style_label>\r\n <\/style>\r\n\r\n <!-- style for title labels placed under edit portals or droplists -->\r\n <style\r\n id=\"lblSmTitle\">\r\n <style_label\r\n textcolorid=\"clrsummary\"\r\n font=\"fntcfgttl\"\r\n alignment=\"center\">\r\n <\/style_label>\r\n <\/style>\r\n\r\n <!-- style for the journal summary label -->\r\n <style\r\n id=\"lblJrnSumm\"\r\n border=\"sunken\">\r\n <style_label\r\n textcolorid=\"clrsummary\"\r\n font=\"fntjrnsumm\"\r\n alignment=\"center\">\r\n <\/style_label>\r\n <\/style>\r\n\r\n <!-- style for labels used with static, non-chooser advances -->\r\n <style\r\n id=\"lblAdvance\"\r\n border=\"sunken\">\r\n <style_label\r\n textcolorid=\"clradvance\"\r\n font=\"fnttitle\"\r\n background=\"titleback\"\r\n alignment=\"center\">\r\n <\/style_label>\r\n <\/style>\r\n\r\n <!-- style for smaller labels used with static, non-chooser advances -->\r\n <style\r\n id=\"lblAdvSml\"\r\n border=\"sunken\">\r\n <style_label\r\n textcolorid=\"clradvance\"\r\n font=\"fntsmall\"\r\n background=\"titleback\"\r\n alignment=\"center\">\r\n <\/style_label>\r\n <\/style>\r\n\r\n <!-- style for labels that only show encoded text bitmaps\r\n -NOTE! This is needed because inline bitmaps will be automatically scaled up\r\n or down when displayed at other default font sizes.\r\n -->\r\n <style\r\n id=\"lblEncoded\">\r\n <style_label\r\n textcolorid=\"clrnormal\"\r\n font=\"fntencoded\"\r\n alignment=\"center\">\r\n <\/style_label>\r\n <\/style>\r\n\r\n\r\n<!-- ##### Styles - Edit Portals ##### -->\r\n\r\n <!-- basic text edit portals -->\r\n <style\r\n id=\"editNormal\"\r\n border=\"sunken\">\r\n <style_edit\r\n textcolorid=\"clredittxt\"\r\n backcolorid=\"clreditbck\"\r\n font=\"fntedit\">\r\n <\/style_edit>\r\n <\/style>\r\n\r\n <!-- edit portals that have the text centered within the portal -->\r\n <style\r\n id=\"editCenter\"\r\n border=\"sunken\">\r\n <style_edit\r\n textcolorid=\"clredittxt\"\r\n backcolorid=\"clreditbck\"\r\n font=\"fntedit\"\r\n alignment=\"center\">\r\n <\/style_edit>\r\n <\/style>\r\n\r\n <!-- edit portals that manage dates -->\r\n <style\r\n id=\"editDate\">\r\n <style_edit\r\n textcolorid=\"clredittxt\"\r\n backcolorid=\"clreditbck\"\r\n font=\"fntedit\"\r\n alignment=\"center\"\r\n itemborder=\"sunken\"\r\n septext=\"\/\"\r\n sepcolorid=\"clrdisable\">\r\n <\/style_edit>\r\n <\/style>\r\n\r\n\r\n<!-- ##### Styles - Incrementers ##### -->\r\n\r\n <!-- style used on 'simple incrementers', using the builtin system incrementer look -->\r\n <style\r\n id=\"incrSimple\">\r\n <style_incrementer\r\n textcolorid=\"clrnormal\"\r\n font=\"fntincrsim\"\r\n textleft=\"13\" texttop=\"0\" textwidth=\"24\" textheight=\"20\"\r\n fullwidth=\"50\" fullheight=\"20\"\r\n plusup=\"incplusup\" plusdown=\"incplusdn\" plusoff=\"incplusof\"\r\n plusx=\"39\" plusy=\"0\"\r\n minusup=\"incminusup\" minusdown=\"incminusdn\" minusoff=\"incminusof\"\r\n minusx=\"0\" minusy=\"0\">\r\n <\/style_incrementer>\r\n <\/style>\r\n\r\n <!-- style used on 'narrow incrementers'\r\n -identical to the \"simple\" incrementer, except a bit narrower in width\r\n -->\r\n <style\r\n id=\"incrNarrow\">\r\n <style_incrementer\r\n textcolorid=\"clrnormal\"\r\n font=\"fntincrsml\"\r\n textleft=\"13\" texttop=\"0\" textwidth=\"9\" textheight=\"20\"\r\n fullwidth=\"35\" fullheight=\"20\"\r\n plusup=\"incplusup\" plusdown=\"incplusdn\" plusoff=\"incplusof\"\r\n plusx=\"24\" plusy=\"0\"\r\n minusup=\"incminusup\" minusdown=\"incminusdn\" minusoff=\"incminusof\"\r\n minusx=\"0\" minusy=\"0\">\r\n <\/style_incrementer>\r\n <\/style>\r\n\r\n <!-- style used on 'big incrementers', with a text area and up\/down buttons stacked\r\n on the right\r\n -->\r\n <style\r\n id=\"incrBig\">\r\n <style_incrementer\r\n textcolorid=\"clrnormal\"\r\n font=\"fntincrbig\"\r\n textleft=\"3\" texttop=\"0\" textwidth=\"72\" textheight=\"40\"\r\n fullwidth=\"100\" fullheight=\"40\"\r\n plusup=\"incbigplup\" plusdown=\"incbigpldn\" plusoff=\"incbigplof\"\r\n plusx=\"78\" plusy=\"0\"\r\n minusup=\"incbigmnup\" minusdown=\"incbigmndn\" minusoff=\"incbigmnof\"\r\n minusx=\"78\" minusy=\"20\">\r\n <\/style_incrementer>\r\n <resource\r\n id=\"incbigplup\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"incr_big_plus.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"incbigpldn\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"incr_big_plus_down.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"incbigplof\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"incr_big_plus_off.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"incbigmnup\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"incr_big_minus.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"incbigmndn\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"incr_big_minus_down.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"incbigmnof\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"incr_big_minus_off.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <\/style>\r\n\r\n <!-- style used on 'box incrementers', with the value set off within a box -->\r\n <style\r\n id=\"incrBox\">\r\n <style_incrementer\r\n textcolorid=\"clrnormal\"\r\n font=\"fntincrsml\"\r\n textleft=\"14\" texttop=\"4\" textwidth=\"42\" textheight=\"18\"\r\n background=\"incboxbk\"\r\n plusup=\"incboxplup\" plusdown=\"incboxpldn\" plusoff=\"incboxplof\"\r\n plusx=\"57\" plusy=\"2\"\r\n minusup=\"incboxmnup\" minusdown=\"incboxmndn\" minusoff=\"incboxmnof\"\r\n minusx=\"2\" minusy=\"2\">\r\n <\/style_incrementer>\r\n <resource\r\n id=\"incboxbk\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"incr_box_back.bmp\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"incboxplup\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"incr_box_plus.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"incboxpldn\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"incr_box_plus_down.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"incboxplof\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"incr_box_plus_off.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"incboxmnup\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"incr_box_minus.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"incboxmndn\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"incr_box_minus_down.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"incboxmnof\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"incr_box_minus_off.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <\/style>\r\n\r\n\r\n<!-- ##### Styles - Action Portals\/Buttons ##### -->\r\n\r\n <!-- style used on big action buttons -->\r\n <style\r\n id=\"actBig\">\r\n <style_action\r\n textcolorid=\"clraction\"\r\n font=\"fntactbig\"\r\n up=\"actbigup\" down=\"actbigdn\" off=\"actbigof\">\r\n <\/style_action>\r\n <resource\r\n id=\"actbigup\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"button_big_up.bmp\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"actbigdn\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"button_big_down.bmp\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"actbigof\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"button_big_off.bmp\">\r\n <\/bitmap>\r\n <\/resource>\r\n <\/style>\r\n\r\n <!-- style used on small action buttons -->\r\n <style\r\n id=\"actSmall\">\r\n <style_action\r\n textcolorid=\"clraction\"\r\n font=\"fntactsml\"\r\n up=\"actsmallup\" down=\"actsmalldn\" off=\"actsmallof\">\r\n <\/style_action>\r\n <resource\r\n id=\"actsmallup\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"button_small_up.bmp\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"actsmalldn\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"button_small_down.bmp\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"actsmallof\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"button_small_off.bmp\">\r\n <\/bitmap>\r\n <\/resource>\r\n <\/style>\r\n\r\n <!-- style used on small oval action buttons -->\r\n <style\r\n id=\"actOvalSm\">\r\n <style_action\r\n textcolorid=\"clrnormal\"\r\n font=\"fntactsml\"\r\n up=\"actovalup\" down=\"actovaldn\" off=\"actovalof\">\r\n <\/style_action>\r\n <resource\r\n id=\"actovalup\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"oval_small.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"actovaldn\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"oval_small_down.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"actovalof\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"oval_small.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <\/style>\r\n\r\n <!-- style used on delete actions - bitmap-only with no text -->\r\n <style\r\n id=\"actDelete\">\r\n <style_action\r\n textcolorid=\"clraction\"\r\n font=\"fntactsml\"\r\n up=\"deletesmup\" down=\"deletesmdn\" off=\"deletesmof\">\r\n <\/style_action>\r\n <\/style>\r\n\r\n <!-- style used on disabled delete action buttons - bitmap-only with no text\r\n -these are used when a condition forbids the deletion of a pick\r\n -->\r\n <style\r\n id=\"actNoDel\">\r\n <style_action\r\n textcolorid=\"clraction\"\r\n font=\"fntactsml\"\r\n up=\"actnodelup\" down=\"actnodeldn\" off=\"actnodelof\">\r\n <\/style_action>\r\n <resource\r\n id=\"actnodelup\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"forbidden_up.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"actnodeldn\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"forbidden_down.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"actnodelof\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"forbidden_up.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <\/style>\r\n\r\n <!-- style used on info actions - bitmap-only with no text -->\r\n <style\r\n id=\"actInfo\">\r\n <style_action\r\n textcolorid=\"clraction\"\r\n font=\"fntactsml\"\r\n up=\"infoup\" down=\"infodn\" off=\"infoof\">\r\n <\/style_action>\r\n <\/style>\r\n\r\n <!-- style used on info actions that look disabled - bitmap-only with no text -->\r\n <style\r\n id=\"actInfoOff\">\r\n <style_action\r\n textcolorid=\"clraction\"\r\n font=\"fntactsml\"\r\n up=\"infoof\" down=\"infoof\" off=\"infoof\">\r\n <\/style_action>\r\n <\/style>\r\n\r\n <!-- style used on small info action buttons - bitmap-only with no text -->\r\n <style\r\n id=\"actInfoSm\">\r\n <style_action\r\n textcolorid=\"clraction\"\r\n font=\"fntactsml\"\r\n up=\"actinfoup\" down=\"actinfodn\" off=\"actinfoof\">\r\n <\/style_action>\r\n <resource\r\n id=\"actinfoup\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"info_small_up.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"actinfodn\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"info_small_down.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"actinfoof\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"info_small_off.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <\/style>\r\n\r\n <!-- style used on the edit action button - bitmap-only with no text -->\r\n <style\r\n id=\"actEdit\">\r\n <style_action\r\n textcolorid=\"clraction\"\r\n font=\"fntactsml\"\r\n up=\"editup\" down=\"editdn\" off=\"editof\">\r\n <\/style_action>\r\n <\/style>\r\n\r\n <!-- style used on the gear action button - bitmap-only with no text -->\r\n <style\r\n id=\"actGear\">\r\n <style_action\r\n textcolorid=\"clraction\"\r\n font=\"fntactsml\"\r\n up=\"actgearup\" down=\"actgeardn\" off=\"actgearup\">\r\n <\/style_action>\r\n <resource\r\n id=\"actgearup\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"gear_up.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"actgeardn\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"gear_down.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <\/style>\r\n\r\n <!-- style used on the notes button - bitmap-only with no text -->\r\n <style\r\n id=\"actNotes\">\r\n <style_action\r\n textcolorid=\"clrnormal\"\r\n font=\"fntactsml\"\r\n up=\"actnotesup\" down=\"actnotesdn\" off=\"actnotesof\">\r\n <\/style_action>\r\n <resource\r\n id=\"actnotesup\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"notes_up.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"actnotesdn\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"notes_down.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"actnotesof\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"notes_up.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <\/style>\r\n\r\n <!-- style used on the edit name button - bitmap-only with no text -->\r\n <style\r\n id=\"actName\">\r\n <style_action\r\n textcolorid=\"clrnormal\"\r\n font=\"fntactsml\"\r\n up=\"actnameup\" down=\"actnamedn\" off=\"actnameof\">\r\n <\/style_action>\r\n <resource\r\n id=\"actnameup\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"name_up.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"actnamedn\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"name_down.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"actnameof\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"name_up.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <\/style>\r\n\r\n <!-- style used on the lock button for transitioning to advancement mode - bitmap-only with no text -->\r\n <style\r\n id=\"actLock\">\r\n <style_action\r\n textcolorid=\"clrnormal\"\r\n font=\"fntactsml\"\r\n up=\"actlockup\" down=\"actlockdn\" off=\"actlockup\">\r\n <\/style_action>\r\n <resource\r\n id=\"actlockup\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"lock_up.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"actlockdn\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"lock_down.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <\/style>\r\n\r\n <!-- style used on the unlock button for transitioning from advancement mode - bitmap-only with no text -->\r\n <style\r\n id=\"actUnlock\">\r\n <style_action\r\n textcolorid=\"clrnormal\"\r\n font=\"fntactsml\"\r\n up=\"actunlokup\" down=\"actunlokdn\" off=\"actunlokup\">\r\n <\/style_action>\r\n <resource\r\n id=\"actunlokup\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"unlock_up.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"actunlokdn\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"unlock_down.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <\/style>\r\n\r\n <!-- style used on the damage button - bitmap-only with no text -->\r\n <style\r\n id=\"actDamage\">\r\n <style_action\r\n textcolorid=\"clrnormal\"\r\n font=\"fntactsml\"\r\n up=\"actdmgup\" down=\"actdmgdn\" off=\"actdmgof\">\r\n <\/style_action>\r\n <resource\r\n id=\"actdmgup\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"damage_up.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"actdmgdn\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"damage_down.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"actdmgof\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"damage_off.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <\/style>\r\n\r\n <!-- slightly greyer version of the damage button for the TacCon - bitmap-only with no text -->\r\n <style\r\n id=\"actDmgGrey\">\r\n <style_action\r\n textcolorid=\"clrnormal\"\r\n font=\"fntactsml\"\r\n up=\"actdmgtcup\" down=\"actdmgtcdn\" off=\"actdmgtcup\">\r\n <\/style_action>\r\n <resource\r\n id=\"actdmgtcup\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"damage_grey_up.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"actdmgtcdn\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"damage_grey_down.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <\/style>\r\n\r\n <!-- style used on the heal button - bitmap-only with no text -->\r\n <style\r\n id=\"actHeal\">\r\n <style_action\r\n textcolorid=\"clrnormal\"\r\n font=\"fntactsml\"\r\n up=\"acthealup\" down=\"acthealdn\" off=\"acthealof\">\r\n <\/style_action>\r\n <resource\r\n id=\"acthealup\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"heal_up.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"acthealdn\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"heal_down.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"acthealof\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"heal_off.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <\/style>\r\n\r\n <!-- style used on the undo button - bitmap-only with no text -->\r\n <style\r\n id=\"actUndo\">\r\n <style_action\r\n textcolorid=\"clrnormal\"\r\n font=\"fntactsml\"\r\n up=\"actundoup\" down=\"actundodn\" off=\"actundoof\">\r\n <\/style_action>\r\n <resource\r\n id=\"actundoup\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"undo_up.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"actundodn\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"undo_down.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"actundoof\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"undo_off.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <\/style>\r\n\r\n <!-- style used on the reset button - bitmap-only with no text -->\r\n <style\r\n id=\"actReset\">\r\n <style_action\r\n textcolorid=\"clrnormal\"\r\n font=\"fntactsml\"\r\n up=\"actresetup\" down=\"actresetdn\" off=\"actresetof\">\r\n <\/style_action>\r\n <resource\r\n id=\"actresetup\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"reset_up.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"actresetdn\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"reset_down.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"actresetof\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"reset_off.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <\/style>\r\n\r\n <!-- style used on the reroll button - bitmap-only with no text -->\r\n <style\r\n id=\"actReroll\">\r\n <style_action\r\n textcolorid=\"clrnormal\"\r\n font=\"fntactsml\"\r\n up=\"actrerlup\" down=\"actrerldn\" off=\"actrerlof\">\r\n <\/style_action>\r\n <resource\r\n id=\"actrerlup\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"reroll_up.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"actrerldn\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"reroll_down.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"actrerlof\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"reroll_up.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <\/style>\r\n\r\n <!-- style used on the small notes button - bitmap-only with no text -->\r\n <style\r\n id=\"actNotesSm\">\r\n <style_action\r\n textcolorid=\"clrnormal\"\r\n font=\"fntactsml\"\r\n up=\"actnote2up\" down=\"actnote2dn\" off=\"actnote2up\">\r\n <\/style_action>\r\n <resource\r\n id=\"actnote2up\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"notes_small_up.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"actnote2dn\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"notes_small_down.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <\/style>\r\n\r\n <!-- style used on the star button - bitmap-only with no text -->\r\n <style\r\n id=\"actStar\">\r\n <style_action\r\n textcolorid=\"clrnormal\"\r\n font=\"fntactsml\"\r\n up=\"actstarup\" down=\"actstardn\" off=\"actstarup\">\r\n <\/style_action>\r\n <resource\r\n id=\"actstarup\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"star_up.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"actstardn\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"star_down.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <\/style>\r\n\r\n <!-- style used on the double-up button - bitmap-only with no text -->\r\n <style\r\n id=\"actDblUp\">\r\n <style_action\r\n textcolorid=\"clrnormal\"\r\n font=\"fntactsml\"\r\n up=\"actdblupup\" down=\"actdblupdn\" off=\"actdblupup\">\r\n <\/style_action>\r\n <resource\r\n id=\"actdblupup\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"doubleup_up.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"actdblupdn\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"doubleup_down.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <\/style>\r\n\r\n <!-- style used on the swap button - bitmap-only with no text -->\r\n <style\r\n id=\"actSwap\">\r\n <style_action\r\n textcolorid=\"clrnormal\"\r\n font=\"fntactsml\"\r\n up=\"actswapup\" down=\"actswapdn\" off=\"actswapof\">\r\n <\/style_action>\r\n <resource\r\n id=\"actswapup\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"swap_up.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"actswapdn\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"swap_down.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"actswapof\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"swap_off.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <\/style>\r\n\r\n <!-- style used on the dice button -->\r\n <style\r\n id=\"actDice\">\r\n <style_action\r\n textcolorid=\"clrnormal\"\r\n font=\"fntactsml\"\r\n up=\"actdiceup\" down=\"actdicedn\" off=\"actdiceup\">\r\n <\/style_action>\r\n <resource\r\n id=\"actdiceup\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"dice_up.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"actdicedn\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"dice_down.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <\/style>\r\n\r\n <!-- Style used on the master button -->\r\n <style\r\n id=\"actMaster\">\r\n <style_action\r\n textcolorid=\"clrnormal\"\r\n font=\"fntactsml\"\r\n up=\"actmastup\" down=\"actmastdn\" off=\"actmastup\">\r\n <\/style_action>\r\n <resource\r\n id=\"actmastup\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"master_up.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"actmastdn\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"master_down.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <\/style>\r\n\r\n <!-- style used on the \"get gear\" action button in the dashboard - bitmap-only with no text -->\r\n <style\r\n id=\"actGetGear\">\r\n <style_action\r\n textcolorid=\"clraction\"\r\n font=\"fntactsml\"\r\n up=\"actgetgrup\" down=\"actgetgrdn\" off=\"actgetgrup\">\r\n <\/style_action>\r\n <resource\r\n id=\"actgetgrup\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"getgear_up.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"actgetgrdn\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"getgear_down.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <\/style>\r\n\r\n <!-- style used on load actions - bitmap-only with no text -->\r\n <style\r\n id=\"actLoad\">\r\n <style_action\r\n textcolorid=\"clraction\"\r\n font=\"fntactsml\"\r\n up=\"actloadup\" down=\"actloaddn\" off=\"actloadof\">\r\n <\/style_action>\r\n <resource\r\n id=\"actloadup\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"load_up.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"actloaddn\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"load_down.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"actloadof\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"load_off.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <\/style>\r\n\r\n <!-- style used on the sort action button at the top of the dashboard - bitmap-only with no text -->\r\n <style\r\n id=\"actSort\">\r\n <style_action\r\n textcolorid=\"clraction\"\r\n font=\"fntactsml\"\r\n up=\"actsortup\" down=\"actsortdn\" off=\"actsortup\">\r\n <\/style_action>\r\n <resource\r\n id=\"actsortup\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"sort_up.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"actsortdn\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"sort_down.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <\/style>\r\n\r\n <!-- style used on the disable combat action button - bitmap-only with no text -->\r\n <style\r\n id=\"actDisable\">\r\n <style_action\r\n textcolorid=\"clraction\"\r\n font=\"fntactsml\"\r\n up=\"actdisabup\" down=\"actdisabdn\" off=\"actdisabup\">\r\n <\/style_action>\r\n <resource\r\n id=\"actdisabup\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"disable_up.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"actdisabdn\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"disable_down.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <\/style>\r\n\r\n <!-- style used on the enable combat action button - bitmap-only with no text -->\r\n <style\r\n id=\"actEnable\">\r\n <style_action\r\n textcolorid=\"clraction\"\r\n font=\"fntactsml\"\r\n up=\"actenabup\" down=\"actenabdn\" off=\"actenabup\">\r\n <\/style_action>\r\n <resource\r\n id=\"actenabup\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"enable_up.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"actenabdn\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"enable_down.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <\/style>\r\n\r\n <!-- style used on act actions - bitmap-only with no text -->\r\n <style\r\n id=\"actActNow\">\r\n <style_action\r\n textcolorid=\"clraction\"\r\n font=\"fntactsml\"\r\n up=\"actnowup\" down=\"actnowdn\" off=\"actnowof\">\r\n <\/style_action>\r\n <resource\r\n id=\"actnowup\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"action_act_up.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"actnowdn\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"action_act_down.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"actnowof\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"action_act_off.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <\/style>\r\n\r\n <!-- style used on delay actions - bitmap-only with no text -->\r\n <style\r\n id=\"actDelay\">\r\n <style_action\r\n textcolorid=\"clraction\"\r\n font=\"fntactsml\"\r\n up=\"actdelayup\" down=\"actdelaydn\" off=\"actdelayof\">\r\n <\/style_action>\r\n <resource\r\n id=\"actdelayup\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"action_delay_up.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"actdelaydn\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"action_delay_down.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"actdelayof\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"action_delay_off.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <\/style>\r\n\r\n <!-- style used on abandon actions - bitmap-only with no text -->\r\n <style\r\n id=\"actAband\">\r\n <style_action\r\n textcolorid=\"clraction\"\r\n font=\"fntactsml\"\r\n up=\"actabandup\" down=\"actabanddn\" off=\"actabandof\">\r\n <\/style_action>\r\n <resource\r\n id=\"actabandup\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"action_abandon_up.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"actabanddn\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"action_abandon_down.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"actabandof\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"action_abandon_off.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <\/style>\r\n\r\n <!-- style used on active act actions - bitmap-only with no text -->\r\n <style\r\n id=\"actActNwAc\">\r\n <style_action\r\n textcolorid=\"clraction\"\r\n font=\"fntactsml\"\r\n up=\"nowactup\" down=\"nowactdn\" off=\"nowactof\">\r\n <\/style_action>\r\n <resource\r\n id=\"nowactup\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"action_act_active_up.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"nowactdn\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"action_act_active_down.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"nowactof\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"action_act_off.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <\/style>\r\n\r\n <!-- style used on active delay actions - bitmap-only with no text -->\r\n <style\r\n id=\"actDelayAc\">\r\n <style_action\r\n textcolorid=\"clraction\"\r\n font=\"fntactsml\"\r\n up=\"nowdelayup\" down=\"nowdelaydn\" off=\"nowdelayof\">\r\n <\/style_action>\r\n <resource\r\n id=\"nowdelayup\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"action_delay_active_up.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"nowdelaydn\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"action_delay_active_down.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"nowdelayof\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"action_delay_off.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <\/style>\r\n\r\n <!-- style used on active abandon actions - bitmap-only with no text -->\r\n <style\r\n id=\"actAbandAc\">\r\n <style_action\r\n textcolorid=\"clraction\"\r\n font=\"fntactsml\"\r\n up=\"nowabandup\" down=\"nowabanddn\" off=\"nowabandof\">\r\n <\/style_action>\r\n <resource\r\n id=\"nowabandup\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"action_abandon_active_up.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"nowabanddn\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"action_abandon_active_down.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"nowabandof\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"action_abandon_off.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <\/style>\r\n\r\n <!-- style used on move to top actions - bitmap-only with no text -->\r\n <style\r\n id=\"actMoveTop\">\r\n <style_action\r\n textcolorid=\"clraction\"\r\n font=\"fntactsml\"\r\n up=\"actmvtopup\" down=\"actmvtopdn\" off=\"actmvtopof\">\r\n <\/style_action>\r\n <resource\r\n id=\"actmvtopup\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"move_top_up.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"actmvtopdn\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"move_top_down.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"actmvtopof\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"move_top_off.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <\/style>\r\n\r\n <!-- style used on move up actions - bitmap-only with no text -->\r\n <style\r\n id=\"actMoveUp\">\r\n <style_action\r\n textcolorid=\"clraction\"\r\n font=\"fntactsml\"\r\n up=\"actmvupup\" down=\"actmvupdn\" off=\"actmvupof\">\r\n <\/style_action>\r\n <resource\r\n id=\"actmvupup\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"move_up_up.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"actmvupdn\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"move_up_down.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"actmvupof\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"move_up_off.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <\/style>\r\n\r\n <!-- style used on move down actions - bitmap-only with no text -->\r\n <style\r\n id=\"actMoveDn\">\r\n <style_action\r\n textcolorid=\"clraction\"\r\n font=\"fntactsml\"\r\n up=\"actmvdnup\" down=\"actmvdndn\" off=\"actmvdnof\">\r\n <\/style_action>\r\n <resource\r\n id=\"actmvdnup\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"move_down_up.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"actmvdndn\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"move_down_down.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"actmvdnof\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"move_down_off.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <\/style>\r\n\r\n <!-- style used on move to bottom actions - bitmap-only with no text -->\r\n <style\r\n id=\"actMoveBot\">\r\n <style_action\r\n textcolorid=\"clraction\"\r\n font=\"fntactsml\"\r\n up=\"actmvbtmup\" down=\"actmvbtmdn\" off=\"actmvbtmof\">\r\n <\/style_action>\r\n <resource\r\n id=\"actmvbtmup\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"move_bottom_up.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"actmvbtmdn\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"move_bottom_down.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"actmvbtmof\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"move_bottom_off.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <\/style>\r\n\r\n <!-- style used on the next button on the tactical console - bitmap-only with no text -->\r\n <style\r\n id=\"actTacNext\">\r\n <style_action\r\n textcolorid=\"clrnormal\"\r\n font=\"fnttiny\"\r\n up=\"acttcnxtup\" down=\"acttcnxtdn\" off=\"acttcnxtof\">\r\n <\/style_action>\r\n <resource\r\n id=\"acttcnxtup\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"tactical_next_up.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"acttcnxtdn\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"tactical_next_down.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"acttcnxtof\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"tactical_next_up.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <\/style>\r\n\r\n <!-- style used on the edit button on the tactical console - bitmap-only with no text -->\r\n <style\r\n id=\"actTacEdit\">\r\n <style_action\r\n textcolorid=\"clrnormal\"\r\n font=\"fnttiny\"\r\n up=\"acttcedtup\" down=\"acttcedtdn\" off=\"acttcedtof\">\r\n <\/style_action>\r\n <resource\r\n id=\"acttcedtup\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"tactical_edit_up.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"acttcedtdn\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"tactical_edit_down.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"acttcedtof\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"tactical_edit_up.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <\/style>\r\n\r\n <!-- style used on the \"special\" info button - bitmap-only with no text -->\r\n <style\r\n id=\"actInfoSpc\">\r\n <style_action\r\n textcolorid=\"clrnormal\"\r\n font=\"fnttiny\"\r\n up=\"infspecup\" down=\"infspecdn\" off=\"infspecof\">\r\n <\/style_action>\r\n <resource\r\n id=\"infspecup\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"info_special_up.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"infspecdn\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"info_special_down.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"infspecof\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"info_off.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <\/style>\r\n\r\n <!-- style used on the \"rolls\" info button - bitmap-only with no text -->\r\n <style\r\n id=\"actInfoRol\">\r\n <style_action\r\n textcolorid=\"clrnormal\"\r\n font=\"fnttiny\"\r\n up=\"infrollup\" down=\"infrolldn\" off=\"infrollof\">\r\n <\/style_action>\r\n <resource\r\n id=\"infrollup\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"info_rolls_up.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"infrolldn\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"info_rolls_down.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"infrollof\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"info_off.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <\/style>\r\n\r\n <!-- style used on the \"combat\" info button - bitmap-only with no text -->\r\n <style\r\n id=\"actInfoCom\">\r\n <style_action\r\n textcolorid=\"clrnormal\"\r\n font=\"fnttiny\"\r\n up=\"infcombup\" down=\"infcombdn\" off=\"infcombof\">\r\n <\/style_action>\r\n <resource\r\n id=\"infcombup\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"info_combat_up.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"infcombdn\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"info_combat_down.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"infcombof\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"info_off.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <\/style>\r\n\r\n <!-- style used on the \"basics\" info button - bitmap-only with no text -->\r\n <style\r\n id=\"actInfoBas\">\r\n <style_action\r\n textcolorid=\"clrnormal\"\r\n font=\"fnttiny\"\r\n up=\"infbasicup\" down=\"infbasicdn\" off=\"infbasicof\">\r\n <\/style_action>\r\n <resource\r\n id=\"infbasicup\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"info_basics_up.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"infbasicdn\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"info_basics_down.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"infbasicof\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"info_off.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <\/style>\r\n\r\n <!-- style used on the \"active\" info button - bitmap-only with no text -->\r\n <style\r\n id=\"actInfoAct\">\r\n <style_action\r\n textcolorid=\"clrnormal\"\r\n font=\"fnttiny\"\r\n up=\"infactivup\" down=\"infactivdn\" off=\"infactivof\">\r\n <\/style_action>\r\n <resource\r\n id=\"infactivup\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"info_active_up.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"infactivdn\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"info_active_down.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"infactivof\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"info_off.bmp\"\r\n istransparent=\"yes\">\r\n <\/bitmap>\r\n <\/resource>\r\n <\/style>\r\n\r\n\r\n<!-- ##### Styles - Tables ##### -->\r\n\r\n <!-- style used on normal tables -->\r\n <style\r\n id=\"tblNormal\">\r\n <style_table\r\n itemborder=\"sunken\">\r\n <\/style_table>\r\n <\/style>\r\n\r\n <!-- style used on \"invisible\" tables with no cell borders -->\r\n <style\r\n id=\"tblInvis\">\r\n <style_table>\r\n <\/style_table>\r\n <\/style>\r\n\r\n <!-- style used on invisible tables with light grid lines -->\r\n <style\r\n id=\"tblGridLt\">\r\n <style_table\r\n showgridhorz=\"yes\"\r\n gridcolorid=\"clrdisable\">\r\n <\/style_table>\r\n <\/style>\r\n\r\n <!-- style used on tables with only an outer border -->\r\n <style\r\n id=\"tblOuter\"\r\n border=\"brdsystem\">\r\n <style_table>\r\n <\/style_table>\r\n <\/style>\r\n\r\n <!-- style used on SMALL invisible tables, such as on summary panels -->\r\n <style\r\n id=\"tblInvisSm\">\r\n <style_table>\r\n <\/style_table>\r\n <\/style>\r\n\r\n\r\n<!-- ##### Styles - Checkboxes ##### -->\r\n\r\n\r\n <!-- style used on the standard checkbox -->\r\n <style\r\n id=\"chkNormal\">\r\n <style_checkbox\r\n textcolorid=\"clrnormal\"\r\n font=\"fntcheck\">\r\n <\/style_checkbox>\r\n <\/style>\r\n\r\n <!-- style used on the small checkbox -->\r\n <style\r\n id=\"chkSmall\">\r\n <style_checkbox\r\n textcolorid=\"clrnormal\"\r\n font=\"fnttiny\">\r\n <\/style_checkbox>\r\n <\/style>\r\n\r\n <!-- style used on checkboxes in a warning color, such as when the state is invalid -->\r\n <style\r\n id=\"chkWarning\">\r\n <style_checkbox\r\n textcolorid=\"clrwarning\"\r\n font=\"fntcheck\">\r\n <\/style_checkbox>\r\n <\/style>\r\n\r\n <!-- style used on checkboxes in a disabled color, such as when the box\r\n should not be checked\r\n -->\r\n <style\r\n id=\"chkDisable\">\r\n <style_checkbox\r\n textcolorid=\"clrdisable\"\r\n font=\"fntcheck\">\r\n <\/style_checkbox>\r\n <\/style>\r\n\r\n <!-- style used on the checkbox for \"free\" gear when purchasing equipment -->\r\n <style\r\n id=\"chkFree\">\r\n <style_checkbox\r\n textcolorid=\"clrchkfree\"\r\n font=\"fntcheck\">\r\n <\/style_checkbox>\r\n <\/style>\r\n\r\n <!-- checkbox style for promoting selections to the top of the list -->\r\n <style\r\n id=\"chkPromote\">\r\n <style_checkbox\r\n textcolorid=\"clrnormal\"\r\n font=\"fntcheck\"\r\n check=\"promochk\"\r\n checkoff=\"promochkof\"\r\n uncheck=\"promounc\"\r\n uncheckoff=\"promouncof\">\r\n <\/style_checkbox>\r\n <resource\r\n id=\"promounc\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"check_promote_up_up.bmp\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"promouncof\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"check_promote_up_off.bmp\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"promochk\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"check_promote_down_up.bmp\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"promochkof\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"check_promote_down_off.bmp\">\r\n <\/bitmap>\r\n <\/resource>\r\n <\/style>\r\n\r\n <!-- checkbox style for controlling whether something is printed -->\r\n <style\r\n id=\"chkPrint\">\r\n <style_checkbox\r\n textcolorid=\"clrnormal\"\r\n font=\"fntcheck\"\r\n check=\"printchk\"\r\n checkoff=\"printchk\"\r\n uncheck=\"printunchk\"\r\n uncheckoff=\"printunchk\">\r\n <\/style_checkbox>\r\n <resource\r\n id=\"printchk\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"check_print_on.bmp\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"printunchk\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"check_print_off.bmp\">\r\n <\/bitmap>\r\n <\/resource>\r\n <\/style>\r\n\r\n\r\n<!-- ##### Styles - Image Portals ##### -->\r\n\r\n <!-- standard image portal without a border -->\r\n <style\r\n id=\"imgNormal\">\r\n <style_image\/>\r\n <\/style>\r\n\r\n <!-- standard image portal WITH a border -->\r\n <style\r\n id=\"imgBorder\"\r\n border=\"brdsystem\">\r\n <style_image\/>\r\n <\/style>\r\n\r\n\r\n<!-- ##### Styles - Menus and Choosers ##### -->\r\n\r\n <!-- standard menu portal -->\r\n <style\r\n id=\"menuNormal\"\r\n border=\"sunken\">\r\n <style_menu\r\n textcolorid=\"clrmenutxt\"\r\n backcolorid=\"clrmenubck\"\r\n selecttextid=\"clrmenuslt\"\r\n selectbackid=\"clrnormal\"\r\n font=\"fntmenu\">\r\n <\/style_menu>\r\n <\/style>\r\n\r\n <!-- standard menu portal with coloring to indicate contents are in error -->\r\n <style\r\n id=\"menuError\"\r\n border=\"sunken\">\r\n <style_menu\r\n textcolorid=\"clrmenutxt\"\r\n backcolorid=\"clrmenubck\"\r\n selecttextid=\"clrmenuslt\"\r\n selectbackid=\"clrnormal\"\r\n activetextid=\"clrwarning\"\r\n font=\"fntmenu\">\r\n <\/style_menu>\r\n <\/style>\r\n\r\n <!-- small menu portal -->\r\n <style\r\n id=\"menuSmall\"\r\n border=\"sunken\">\r\n <style_menu\r\n textcolorid=\"clrmenutxt\"\r\n backcolorid=\"clrmenubck\"\r\n selecttextid=\"clrmenuslt\"\r\n selectbackid=\"clrnormal\"\r\n font=\"fntmenusm\"\r\n droplist=\"mnusmall\"\r\n droplistoff=\"mnusmallof\">\r\n <\/style_menu>\r\n <\/style>\r\n\r\n <!-- small menu portal with coloring to indicate contents are in error -->\r\n <style\r\n id=\"menuErrSm\"\r\n border=\"sunken\">\r\n <style_menu\r\n textcolorid=\"clrmenutxt\"\r\n backcolorid=\"clrmenubck\"\r\n selecttextid=\"clrmenuslt\"\r\n selectbackid=\"clrnormal\"\r\n activetextid=\"clrwarning\"\r\n font=\"fntmenusm\"\r\n droplist=\"mnusmall\"\r\n droplistoff=\"mnusmallof\">\r\n <\/style_menu>\r\n <\/style>\r\n\r\n <!-- standard chooser portal -->\r\n <style\r\n id=\"chsNormal\"\r\n border=\"sunken\">\r\n <style_chooser\r\n font=\"fntmenu\"\r\n textcolorid=\"clrmenutxt\"\r\n backcolorid=\"clrmenubck\">\r\n <\/style_chooser>\r\n <\/style>\r\n\r\n <!-- standard chooser portal with coloring to indicate contents are in error -->\r\n <style\r\n id=\"chsError\"\r\n border=\"sunken\">\r\n <style_chooser\r\n font=\"fntmenu\"\r\n textcolorid=\"clrwarning\"\r\n backcolorid=\"clrmenubck\">\r\n <\/style_chooser>\r\n <\/style>\r\n\r\n\r\n<!-- ##### Styles - Separator ##### -->\r\n\r\n <!-- style used on horizontal separators -->\r\n <style\r\n id=\"sepHorz\">\r\n <style_separator\r\n isvertical=\"no\"\r\n start=\"sephorzsta\" center=\"sephorzmid\" end=\"sephorzend\">\r\n <\/style_separator>\r\n <resource\r\n id=\"sephorzsta\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"sep_horz_start.bmp\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"sephorzmid\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"sep_horz_middle.bmp\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"sephorzend\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"sep_horz_end.bmp\">\r\n <\/bitmap>\r\n <\/resource>\r\n <\/style>\r\n\r\n <!-- style used on vertical separators -->\r\n <style\r\n id=\"sepVert\">\r\n <style_separator\r\n isvertical=\"yes\"\r\n start=\"sepvertsta\" center=\"sepvertmid\" end=\"sepvertend\">\r\n <\/style_separator>\r\n <resource\r\n id=\"sepvertsta\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"sep_vert_start.bmp\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"sepvertmid\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"sep_vert_middle.bmp\">\r\n <\/bitmap>\r\n <\/resource>\r\n <resource\r\n id=\"sepvertend\"\r\n isbuiltin=\"yes\">\r\n <bitmap\r\n bitmap=\"sep_vert_end.bmp\">\r\n <\/bitmap>\r\n <\/resource>\r\n <\/style>\r\n\r\n\r\n<!-- ##### Styles - Other ##### -->\r\n\r\n <!-- style used on regions with a light border -->\r\n <style\r\n id=\"rgnBorder\"\r\n border=\"brdsystem\">\r\n <style_region>\r\n <\/style_region>\r\n <\/style>\r\n\r\n\r\n <\/document>\r\n","avg_line_length":23.4335689046,"max_line_length":110,"alphanum_fraction":0.5403290257} {"size":3648,"ext":"aug","lang":"Augeas","max_stars_count":1.0,"content":"module Test_mimetypes =\n let mime_type = Mimetypes.mime_type\n let rules = Mimetypes.rules\n let lns = Mimetypes.lns\n\n test [ mime_type ] get \"text\/plain\" = { = \"text\/plain\" }\n test [ mime_type ] get \"application\/beep+xml\" = { = \"application\/beep+xml\" }\n test [ mime_type ] get \"application\/vnd.fdf\" = { = \"application\/vnd.fdf\" }\n (* who in their right mind made this mime type?! ... oh wait, they weren't,\n it's microsoft *)\n test [ mime_type ] get\n \"application\/vnd.openxmlformats-officedocument.wordprocessingml.document\" =\n { = \"application\/vnd.openxmlformats-officedocument.wordprocessingml.document\" }\n test rules get \"text\/plain txt\\n\" =\n { \"rules\" = \"text\/plain\"\n { \"rule\" = \"txt\" } }\n test rules get \"application\/vnd.openxmlformats-officedocument.wordprocessingml.document docx\\n\" =\n { \"rules\" = \"application\/vnd.openxmlformats-officedocument.wordprocessingml.document\"\n { \"rule\" = \"docx\" } }\n test rules get \"video\/mpeg mpeg mpg mpe\\n\" =\n { \"rules\" = \"video\/mpeg\"\n { \"rule\" = \"mpeg\" }\n { \"rule\" = \"mpg\" }\n { \"rule\" = \"mpe\" } }\n test lns get \"\n# This is a comment. I love comments.\n\n# This file controls what Internet media types are sent to the client for\n# given file extension(s). Sending the correct media type to the client\n# is important so they know how to handle the content of the file.\n# Extra types can either be added here or by using an AddType directive\n# in your config files. For more information about Internet media types,\n# please read RFC 2045, 2046, 2047, 2048, and 2077. The Internet media type\n# registry is at <http:\/\/www.iana.org\/assignments\/media-types\/>.\n\n# MIME type Extension\napplication\/EDI-Consent\napplication\/andrew-inset ez\napplication\/mac-binhex40 hqx\napplication\/mac-compactpro cpt\napplication\/octet-stream bin dms lha lzh exe class so dll img iso\napplication\/ogg ogg\n\n\" = (\n { }\n { \"#comment\" = \"This is a comment. I love comments.\" }\n { }\n { \"#comment\" = \"This file controls what Internet media types are sent to the client for\" }\n { \"#comment\" = \"given file extension(s). Sending the correct media type to the client\" }\n { \"#comment\" = \"is important so they know how to handle the content of the file.\" }\n { \"#comment\" = \"Extra types can either be added here or by using an AddType directive\" }\n { \"#comment\" = \"in your config files. For more information about Internet media types,\" }\n { \"#comment\" = \"please read RFC 2045, 2046, 2047, 2048, and 2077. The Internet media type\" }\n { \"#comment\" = \"registry is at <http:\/\/www.iana.org\/assignments\/media-types\/>.\" }\n { }\n { \"#comment\" = \"MIME type Extension\" }\n { \"rules\" = \"application\/EDI-Consent\" }\n { \"rules\" = \"application\/andrew-inset\"\n { \"rule\" = \"ez\" }\n }\n { \"rules\" = \"application\/mac-binhex40\"\n { \"rule\" = \"hqx\" }\n }\n { \"rules\" = \"application\/mac-compactpro\"\n { \"rule\" = \"cpt\" }\n }\n { \"rules\" = \"application\/octet-stream\"\n { \"rule\" = \"bin\" }\n { \"rule\" = \"dms\" }\n { \"rule\" = \"lha\" }\n { \"rule\" = \"lzh\" }\n { \"rule\" = \"exe\" }\n { \"rule\" = \"class\" }\n { \"rule\" = \"so\" }\n { \"rule\" = \"dll\" }\n { \"rule\" = \"img\" }\n { \"rule\" = \"iso\" }\n }\n { \"rules\" = \"application\/ogg\"\n { \"rule\" = \"ogg\" }\n }\n { }\n)\n\n test lns put \"\" after\n set \"\/rules[.=\\\"application\/mac-binhex40\\\"]\"\n \"application\/mac-binhex40\" ;\n set \"\/rules[.=\\\"application\/mac-binhex40\\\"]\/rule\"\n \"hqx\"\n = \"application\/mac-binhex40 hqx\\n\"\n","avg_line_length":40.0879120879,"max_line_length":101,"alphanum_fraction":0.600877193} {"size":70,"ext":"aug","lang":"Augeas","max_stars_count":null,"content":"module Hocon = \n\nlet empty = [ del \/[ \\t]*\\n\/ \"\\n\" ]\n\nlet lns = empty\n","avg_line_length":11.6666666667,"max_line_length":35,"alphanum_fraction":0.5142857143} {"size":4642,"ext":"aug","lang":"Augeas","max_stars_count":9.0,"content":"(*\n Test for haproxy lens \n\n Author: Bryon Roche <bryon@gogrid.com>\n\n About: License\n This file is licensed under the LGPL\n\n We test a config parse, then a section removal, then a section add.\n*)\n\nmodule Test_haproxy =\n\n let conf = \"# this config needs haproxy-1.1.28 or haproxy-1.2.1\n\nglobal\n #log 127.0.0.1 local0\n #log 127.0.0.1 local1 notice\n #log loghost local0 info\n log 192.168.7.22 local0\n maxconn 4096\n #chroot \/usr\/share\/haproxy\n user haproxy\n group haproxy\n daemon\n #debug\n #quiet\n\ndefaults\n log global\n mode http\n option httplog\n option dontlognull\n retries 3\n option redispatch\n maxconn 2000\n contimeout 5000\n clitimeout 50000\n srvtimeout 50000\n\n\nlisten proxy1 0.0.0.0:80\n mode http\n log global\n cookie SERVERID insert indirect\n balance roundrobin\n redispatch\n option forwardfor\n no option httplog\n option dontlognull\n maxconn 60000\n retries 3\n grace 3000\n server lb1 192.168.7.122:80 cookie cookie1 inter 300\n server lb2 192.168.7.123:80 cookie cookie1 inter 300\n server lb3 192.168.7.124:80 cookie cookie1 inter 300\n\"\n\n let confrmtest =\"# this config needs haproxy-1.1.28 or haproxy-1.2.1\n\nglobal\n #log 127.0.0.1 local0\n #log 127.0.0.1 local1 notice\n #log loghost local0 info\n log 192.168.7.22 local0\n maxconn 4096\n #chroot \/usr\/share\/haproxy\n user haproxy\n group haproxy\n daemon\n #debug\n #quiet\n\nlisten proxy1 0.0.0.0:80\n mode http\n log global\n cookie SERVERID insert indirect\n balance roundrobin\n redispatch\n option forwardfor\n no option httplog\n option dontlognull\n maxconn 60000\n retries 3\n grace 3000\n server lb1 192.168.7.122:80 cookie cookie1 inter 300\n server lb2 192.168.7.123:80 cookie cookie1 inter 300\n server lb3 192.168.7.124:80 cookie cookie1 inter 300\n\"\n\n let confredeftest =\"# this config needs haproxy-1.1.28 or haproxy-1.2.1\n\nglobal\n #log 127.0.0.1 local0\n #log 127.0.0.1 local1 notice\n #log loghost local0 info\n log 192.168.7.22 local0\n maxconn 4096\n #chroot \/usr\/share\/haproxy\n user haproxy\n group haproxy\n daemon\n #debug\n #quiet\n\ndefaults\n log global\nlisten proxy1 0.0.0.0:80\n mode http\n log global\n cookie SERVERID insert indirect\n balance roundrobin\n redispatch\n option forwardfor\n no option httplog\n option dontlognull\n maxconn 60000\n retries 3\n grace 3000\n server lb1 192.168.7.122:80 cookie cookie1 inter 300\n server lb2 192.168.7.123:80 cookie cookie1 inter 300\n server lb3 192.168.7.124:80 cookie cookie1 inter 300\n\"\n\n test Haproxy.lns get conf =\n { \"#comment\" = \"this config needs haproxy-1.1.28 or haproxy-1.2.1\" }\n {}\n { \"global\" \n { \"#comment\" = \"log 127.0.0.1 local0\" }\n { \"#comment\" = \"log 127.0.0.1 local1 notice\" }\n { \"#comment\" = \"log loghost local0 info\" }\n { \"log\" = \"192.168.7.22 local0\" }\n { \"maxconn\" = \"4096\" }\n { \"#comment\" = \"chroot \/usr\/share\/haproxy\" }\n { \"user\" = \"haproxy\" }\n { \"group\" = \"haproxy\" }\n { \"daemon\" }\n { \"#comment\" = \"debug\" }\n { \"#comment\" = \"quiet\" }\n {}\n }\n { \"defaults\" \n { \"log\" = \"global\" }\n { \"mode\" = \"http\" }\n { \"option httplog\" }\n { \"option dontlognull\" }\n { \"retries\" = \"3\" }\n { \"option redispatch\" }\n { \"maxconn\" = \"2000\" }\n { \"contimeout\" = \"5000\" }\n { \"clitimeout\" = \"50000\" }\n { \"srvtimeout\" = \"50000\" }\n {}\n {}\n }\n { \"listen\" \n { \"proxy1\" = \"0.0.0.0:80\"\n { \"mode\" = \"http\" }\n { \"log\" = \"global\" }\n { \"cookie\" = \"SERVERID insert indirect\" }\n { \"balance\" = \"roundrobin\" }\n { \"redispatch\" }\n { \"option forwardfor\" }\n { \"no option httplog\" }\n { \"option dontlognull\" }\n { \"maxconn\" = \"60000\" }\n { \"retries\" = \"3\" }\n { \"grace\" = \"3000\" }\n { \"server\" = \"lb1 192.168.7.122:80 cookie cookie1 inter 300\" }\n { \"server\" = \"lb2 192.168.7.123:80 cookie cookie1 inter 300\" }\n { \"server\" = \"lb3 192.168.7.124:80 cookie cookie1 inter 300\" }\n }\n }\n\n test Haproxy.lns put conf after rm \"\/defaults\" = confrmtest\n\n test Haproxy.lns put confrmtest after insa \"defaults\" \"\/global\" ; set \"\/defaults\/log\" \"global\" = confredeftest\n\n\n\n\n","avg_line_length":25.5054945055,"max_line_length":114,"alphanum_fraction":0.5618267988} {"size":1703,"ext":"aug","lang":"Augeas","max_stars_count":null,"content":"(* Group module for Augeas\n Author: Free Ekanayaka <free@64studio.com>\n\n Reference: man 5 group\n\n*)\n\nmodule Group =\n\n autoload xfm\n\n(************************************************************************\n * USEFUL PRIMITIVES\n *************************************************************************)\n\nlet eol = Util.eol\nlet comment = Util.comment\nlet empty = Util.empty\nlet dels = Util.del_str\n\nlet colon = Sep.colon\nlet comma = Sep.comma\n\nlet sto_to_spc = store Rx.space_in\nlet sto_to_col = Passwd.sto_to_col\n\nlet word = Rx.word\nlet password = \/[A-Za-z0-9_.!*-]*\/\nlet integer = Rx.integer\n\n(************************************************************************\n * ENTRIES\n *************************************************************************)\n\nlet user = [ label \"user\" . store word ]\nlet user_list = Build.opt_list user comma\nlet params = [ label \"password\" . store password . colon ]\n . [ label \"gid\" . store integer . colon ]\n . user_list?\nlet entry = Build.key_value_line word colon params\n\nlet nisdefault =\n let overrides =\n colon\n . [ label \"password\" . store password? . colon ]\n . [ label \"gid\" . store integer? . colon ]\n . user_list? in\n [ dels \"+\" . label \"@nisdefault\" . overrides? . eol ]\n\n\n(************************************************************************\n * LENS\n *************************************************************************)\n\nlet lns = (comment|empty|entry|nisdefault) *\n\nlet filter = incl \"\/etc\/group\"\n\nlet xfm = transform lns filter\n","avg_line_length":28.3833333333,"max_line_length":75,"alphanum_fraction":0.4169113329} {"size":5463,"ext":"aug","lang":"Augeas","max_stars_count":null,"content":"(* WebAppXML lens for Augeas\n Author: Francis Giraldeau <francis.giraldeau@usherbrooke.ca>\n\n Reference: http:\/\/www.w3.org\/TR\/2006\/REC-xml11-20060816\/\n*)\n\nmodule WebAppXml =\n\nautoload xfm\n\n(************************************************************************\n * Utilities lens\n *************************************************************************)\n\nlet dels (s:string) = del s s\nlet spc = \/[ \\t\\n]+\/\nlet osp = \/[ \\t\\n]*\/\nlet sep_spc = del \/[ \\t\\n]+\/ \" \"\nlet sep_osp = del \/[ \\t\\n]*\/ \"\"\nlet sep_eq = del \/[ \\t\\n]*=[ \\t\\n]*\/ \"=\"\n\nlet nmtoken = \/[a-zA-Z:_][a-zA-Z0-9:_.-]*\/\nlet word = \/[a-zA-Z][a-zA-Z0-9._-]*\/\nlet char = \/.|\\n\/\n(* if we hide the quotes, then we can only accept single or double quotes *)\n(* otherwise a put ambiguity is raised *)\nlet sto_dquote = dels \"\\\"\" . store \/[^\"]*\/ . dels \"\\\"\"\nlet sto_squote = dels \"'\" . store \/[^']*\/ . dels \"'\"\n\nlet comment = [ label \"#comment\" .\n dels \"<!--\" .\n store \/([^-]|-[^-])*\/ .\n dels \"-->\" ]\n\nlet pi_target = nmtoken - \/[Xx][Mm][Ll]\/\nlet empty = Util.empty\nlet del_end = del \/>[\\n]?\/ \">\\n\"\nlet del_end_simple = dels \">\"\n\n(* This is siplified version of processing instruction\n * pi has to not start or end with a white space and the string\n * must not contain \"?>\". We restrict too much by not allowing any\n * \"?\" nor \">\" in PI\n *)\nlet pi = \/[^ \\n\\t]|[^ \\n\\t][^?>]*[^ \\n\\t]\/\n\n(************************************************************************\n * Attributes\n *************************************************************************)\n\n\nlet decl = [ label \"#decl\" . sep_spc .\n store \/[^> \\t\\n\\r]|[^> \\t\\n\\r][^>\\t\\n\\r]*[^> \\t\\n\\r]\/ ]\n\nlet decl_def (r:regexp) (b:lens) = [ dels \"<\" . key r .\n sep_spc . store word .\n b . sep_osp . del_end_simple ]\n\nlet elem_def = decl_def \/!ELEMENT\/ decl\n\nlet enum = \"(\" . osp . nmtoken . ( osp . \"|\" . osp . nmtoken )* . osp . \")\"\n\nlet att_type = \/CDATA|ID|IDREF|IDREFS|ENTITY|ENTITIES|NMTOKEN|NMTOKENS\/ |\n enum\n\nlet id_def = [ sep_spc . key \/PUBLIC\/ .\n [ label \"#literal\" . sep_spc . sto_dquote ]* ] |\n [ sep_spc . key \/SYSTEM\/ . sep_spc . sto_dquote ]\n\nlet notation_def = decl_def \/!NOTATION\/ id_def\n\nlet att_def = counter \"att_id\" .\n [ sep_spc . seq \"att_id\" .\n [ label \"#name\" . store word . sep_spc ] .\n [ label \"#type\" . store att_type . sep_spc ] .\n ([ key \/#REQUIRED|#IMPLIED\/ ] |\n [ label \"#FIXED\" . del \/#FIXED[ \\n\\t]*|\/ \"\" . sto_dquote ]) ]*\n\nlet att_list_def = decl_def \/!ATTLIST\/ att_def\n\nlet entity_def = decl_def \/!ENTITY\/ ([sep_spc . label \"#decl\" . sto_dquote ])\n\nlet decl_def_item = elem_def | entity_def | att_list_def | notation_def\n\nlet decl_outer = sep_osp . del \/\\[[ \\n\\t\\r]*\/ \"[\\n\" .\n (decl_def_item . sep_osp )* . dels \"]\"\n\n(* let dtd_def = [ sep_spc . key \"SYSTEM\" . sep_spc . sto_dquote ] *)\n\nlet doctype = decl_def \/!DOCTYPE\/ (decl_outer|id_def)\n\nlet attributes = [ label \"#attribute\" .\n [ sep_spc . key nmtoken . sep_eq . sto_dquote ]+ ]\n\nlet prolog = [ label \"#declaration\" .\n dels \"<?xml\" .\n attributes .\n sep_osp .\n dels \"?>\" ]\n\n\n(************************************************************************\n * Tags\n *************************************************************************)\n\n(* we consider entities as simple text *)\nlet text_re = \/[^<]+\/ - \/([^<]*\\]\\]>[^<]*)\/\nlet text = [ label \"#text\" . store text_re ]\nlet cdata = [ label \"#CDATA\" . dels \"<![CDATA[\" .\n store (char* - (char* . \"]]>\" . char*)) . dels \"]]>\" ]\n\nlet element (body:lens) =\n let h = attributes? . sep_osp . dels \">\" . body* . dels \"<\/\" in\n [ dels \"<\" . square nmtoken h . sep_osp . del_end ]\n\nlet empty_element = [ dels \"<\" . key nmtoken . value \"#empty\" .\n attributes? . sep_osp . del \/\\\/>[\\n]?\/ \"\/>\\n\" ]\n\nlet pi_instruction = [ dels \"<?\" . label \"#pi\" .\n [ label \"#target\" . store pi_target ] .\n [ sep_spc . label \"#instruction\" . store pi ]? .\n sep_osp . del \/\\?>\/ \"?>\" ]\n\n(* Typecheck is weaker on rec lens, detected by unfolding *)\n(*\nlet content1 = element text\nlet rec content2 = element (content1|text|comment)\n*)\n\nlet rec content = element (text|comment|content|empty_element|pi_instruction)\n\n(* Constraints are weaker here, but it's better than being too strict *)\nlet doc = (sep_osp . (prolog | comment | doctype | pi_instruction))* .\n ((sep_osp . content) | (sep_osp . empty_element)) .\n (sep_osp . (comment | pi_instruction ))* . sep_osp\n\nlet lns = doc\n\nlet filter = (incl \"\/usr\/local\/src\/shibboleth-identityprovider\/src\/main\/webapp\/WEB-INF\/*.xml\")\n . (incl \"\/usr\/local\/src\/shibboleth-identity-provider\/src\/main\/webapp\/WEB-INF\/*.xml\")\n . Util.stdexcl\n\nlet xfm = transform lns filter\n","avg_line_length":37.9375,"max_line_length":94,"alphanum_fraction":0.4535969248} {"size":2161,"ext":"aug","lang":"Augeas","max_stars_count":1.0,"content":"module Oned =\n autoload xfm\n\n(* Version: 1.3 *)\n\n(* Change log: *)\n(* 1.3: Allow escaped quotes in values *)\n(* 1.2: Include \/etc\/one\/monitord.conf *)\n\n(* primitives *)\nlet sep = del \/[ \\t]*=[ \\t]*\/ \" = \"\nlet eol = del \/\\n\/ \"\\n\"\nlet opt_space = del \/[ \\t]*\/ \"\"\nlet opt_space_nl = del \/[ \\t\\n]*\/ \"\\n\"\nlet opt_nl_indent = del \/[ \\t\\n]*\/ \"\\n \"\nlet comma = del \/,\/ \",\"\nlet left_br = del \/\\[\/ \"[\"\nlet right_br = del \/\\]\/ \"]\"\n\n(* Regexes *)\n(* Match everyhting within quotes, allow escape quote *)\nlet re_quoted_str = \/\"(\\\\\\\\[\\\\\\\\\"]|[^\\\\\\\\\"])*\"\/\n\n(* Match everything except spaces, quote(\"), l-bracket([) and num-sign(#) *)\nlet re_value_str = \/[^ \\t\\n\"\\[#]+\/\n\n(* Match everything except spaces, quote(\"), num-sign(#) and comma(,) *)\nlet re_section_value_str = \/[^ \\t\\n\"#,]+\/\n\n(* Store either after-value comment or full-line comment *)\nlet comment = [ label \"#comment\" . store \/#[^\\n]*\/ ]\nlet comment_eol = comment . eol\n\n\n(* Simple words *)\nlet name = key \/[A-Za-z_0-9]+\/\nlet re_simple_value = re_quoted_str | re_value_str\n\n\n(* Top level entry like `PORT = 2633` *)\nlet top_level_entry = name . sep . store re_simple_value\nlet top_level_line = opt_space\n . [ top_level_entry . opt_space . (comment)? ]\n . eol\n\n\n(* Section lens for section like `LOG = [ ... ]` *)\nlet section_value = re_quoted_str | re_section_value_str\nlet section_entry = [ name . sep . store section_value ]\nlet section_entry_list =\n ( section_entry . opt_space . comma . opt_nl_indent\n | comment_eol . opt_space )*\n . section_entry . opt_space_nl\n . ( comment_eol )*\n\nlet section = opt_space\n . [ name . sep\n . left_br\n . opt_nl_indent\n . section_entry_list\n . right_br ]\n . eol\n\nlet empty_line = [ del \/[ \\t]*\\n\/ \"\\n\" ]\n\n(* Main lens *)\nlet lns = ( top_level_line | comment_eol | section | empty_line )*\n\n\n(* Variable: filter *)\nlet filter = incl \"\/etc\/one\/oned.conf\"\n . incl \"\/etc\/one\/sched.conf\"\n . incl \"\/etc\/one\/monitord.conf\"\n . incl \"\/etc\/one\/vmm_exec\/vmm_exec_kvm.conf\"\n\nlet xfm = transform lns filter\n","avg_line_length":28.0649350649,"max_line_length":76,"alphanum_fraction":0.578898658} {"size":3921,"ext":"aug","lang":"Augeas","max_stars_count":null,"content":"(* Apache HTTPD lens for Augeas\n\nAuthors:\n David Lutterkort <lutter@redhat.com>\n Francis Giraldeau <francis.giraldeau@usherbrooke.ca>\n Raphael Pinson <raphink@gmail.com>\n\nAbout: Reference\n Online Apache configuration manual: http:\/\/httpd.apache.org\/docs\/trunk\/\n\nAbout: License\n This file is licensed under the LGPL v2+.\n\nAbout: Lens Usage\n Sample usage of this lens in augtool\n\n Apache configuration is represented by two main structures, nested sections\n and directives. Sections are used as labels, while directives are kept as a\n value. Sections and directives can have positional arguments inside values\n of \"arg\" nodes. Arguments of sections must be the firsts child of the\n section node.\n\n This lens doesn't support automatic string quoting. Hence, the string must\n be quoted when containing a space.\n\n Create a new VirtualHost section with one directive:\n > clear \/files\/etc\/apache2\/sites-available\/foo\/VirtualHost\n > set \/files\/etc\/apache2\/sites-available\/foo\/VirtualHost\/arg \"172.16.0.1:80\"\n > set \/files\/etc\/apache2\/sites-available\/foo\/VirtualHost\/directive \"ServerAdmin\"\n > set \/files\/etc\/apache2\/sites-available\/foo\/VirtualHost\/*[self::directive=\"ServerAdmin\"]\/arg \"admin@example.com\"\n\nAbout: Configuration files\n This lens applies to files in \/etc\/httpd and \/etc\/apache2. See <filter>.\n\n*)\n\n\nmodule Httpd =\n\nautoload xfm\n\n(******************************************************************\n * Utilities lens\n *****************************************************************)\nlet dels (s:string) = del s s\n\n(* deal with continuation lines *)\nlet sep_spc = del \/([ \\t]+|[ \\t]*\\\\\\\\\\r?\\n[ \\t]*)\/ \" \"\n\nlet sep_osp = Sep.opt_space\nlet sep_eq = del \/[ \\t]*=[ \\t]*\/ \"=\"\n\nlet nmtoken = \/[a-zA-Z:_][a-zA-Z0-9:_.-]*\/\nlet word = \/[a-zA-Z][a-zA-Z0-9._-]*\/\n\nlet comment = Util.comment\nlet eol = Util.doseol\nlet empty = Util.empty_dos\nlet indent = Util.indent\n\n(* borrowed from shellvars.aug *)\nlet char_arg_dir = \/[^\\\\ '\"\\t\\r\\n]|\\\\\\\\\"|\\\\\\\\'\/\nlet char_arg_sec = \/[^ '\"\\t\\r\\n>]|\\\\\\\\\"|\\\\\\\\'\/\nlet cdot = \/\\\\\\\\.\/\nlet cl = \/\\\\\\\\\\n\/\nlet dquot =\n let no_dquot = \/[^\"\\\\\\r\\n]\/\n in \/\"\/ . (no_dquot|cdot|cl)* . \/\"\/\nlet squot =\n let no_squot = \/[^'\\\\\\r\\n]\/\n in \/'\/ . (no_squot|cdot|cl)* . \/'\/\nlet comp = \/[<>=]?=\/\n\n(******************************************************************\n * Attributes\n *****************************************************************)\n\nlet arg_dir = [ label \"arg\" . store (char_arg_dir+|dquot|squot) ]\nlet arg_sec = [ label \"arg\" . store (char_arg_sec+|comp|dquot|squot) ]\n\nlet argv (l:lens) = l . (sep_spc . l)*\n\nlet directive = [ indent . label \"directive\" . store word .\n (sep_spc . argv arg_dir)? . eol ]\n\nlet section (body:lens) =\n (* opt_eol includes empty lines *)\n let opt_eol = del \/([ \\t]*#?\\r?\\n)*\/ \"\\n\" in\n let inner = (sep_spc . argv arg_sec)? . sep_osp .\n dels \">\" . opt_eol . ((body|comment) . (body|empty|comment)*)? .\n indent . dels \"<\/\" in\n let kword = key word in\n let dword = del word \"a\" in\n [ indent . dels \"<\" . square kword inner dword . del \">\" \">\" . eol ]\n\nlet rec content = section (content|directive)\n\nlet lns = (content|directive|comment|empty)*\n\nlet filter = (incl \"\/etc\/apache2\/apache2.conf\") .\n (incl \"\/etc\/apache2\/httpd.conf\") .\n (incl \"\/etc\/apache2\/ports.conf\") .\n (incl \"\/etc\/apache2\/conf.d\/*\") .\n (incl \"\/etc\/apache2\/conf-available\/*.conf\") .\n (incl \"\/etc\/apache2\/mods-available\/*\") .\n (incl \"\/etc\/apache2\/sites-available\/*\") .\n (incl \"\/etc\/httpd\/conf.d\/*.conf\") .\n (incl \"\/etc\/httpd\/httpd.conf\") .\n (incl \"\/etc\/httpd\/conf\/httpd.conf\") .\n Util.stdexcl\n\nlet xfm = transform lns filter\n","avg_line_length":34.6991150442,"max_line_length":115,"alphanum_fraction":0.5570007651} {"size":7409,"ext":"aug","lang":"Augeas","max_stars_count":1.0,"content":"module Test_ssh_config =\n let host = Ssh_config.host\n let anything_but_host = Ssh_config.anything_but_host\n let toplevel_stanza = Ssh_config.toplevel_stanza\n let host_stanza = Ssh_config.host_stanza\n let lns = Ssh_config.lns\n\n test [host] get \"Host *\\n\" =\n { \"Host\" = \"*\" }\n test [host] get \"Host *.co.uk\\n\" =\n { \"Host\" = \"*.co.uk\" }\n test [host] get \"Host 192.168.0.?\\n\" = \n { \"Host\" = \"192.168.0.?\" }\n test [host] get \"host foo.example.com\\n\" =\n { \"Host\" = \"foo.example.com\" }\n test [host] get \" hOsT flarble\\n\" =\n { \"Host\" = \"flarble\" }\n\n\n test [anything_but_host] get \"F 1\\n\" =\n { \"F\" = \"1\" }\n test [anything_but_host] get \"BindAddress 127.0.0.1\\n\" =\n { \"BindAddress\" = \"127.0.0.1\" }\n test [anything_but_host] get \"ForYou two words\\n\" =\n { \"ForYou\" = \"two words\" }\n\n\n test toplevel_stanza get \"Line 1\n User flarble\n # A comment\n\n Key Value\\n\" = \n { \"toplevel\"\n { \"Line\" = \"1\" }\n { \"User\" = \"flarble\" }\n { \"#comment\" = \"A comment\" }\n { }\n { \"Key\" = \"Value\" }\n }\n\n test host_stanza get \"Host mumble\n User flarble\n # A comment\n \n Key Value\\n\" =\n { \"Host\" = \"mumble\"\n { \"User\" = \"flarble\" }\n { \"#comment\" = \"A comment\" }\n { }\n { \"Key\" = \"Value\" }\n }\n\n (* keys can contain digits! *)\n test host_stanza get \"Host *\n User flarble\n GSSAPIAuthentication yes\n ForwardX11Trusted yes\\n\" =\n { \"Host\" = \"*\"\n { \"User\" = \"flarble\" }\n { \"GSSAPIAuthentication\" = \"yes\" }\n { \"ForwardX11Trusted\" = \"yes\" }\n }\n\n\n test lns get \"\n#\t$OpenBSD: ssh_config,v 1.25 2009\/02\/17 01:28:32 djm Exp $\n\n# This is the ssh client system-wide configuration file. See\n# ssh_config(5) for more information. This file provides defaults for\n# users, and the values can be changed in per-user configuration files\n# or on the command line.\n\n# Configuration data is parsed as follows:\n# 1. command line options\n# 2. user-specific file\n# 3. system-wide file\n# Any configuration value is only changed the first time it is set.\n# Thus, host-specific definitions should be at the beginning of the\n# configuration file, and defaults at the end.\n\n# Site-wide defaults for some commonly used options. For a comprehensive\n# list of available options, their meanings and defaults, please see the\n# ssh_config(5) man page.\n\n# Host *\n# ForwardAgent no\n# ForwardX11 no\n# RhostsRSAAuthentication no\n# RSAAuthentication yes\n# PasswordAuthentication yes\n# HostbasedAuthentication no\n# GSSAPIAuthentication no\n# GSSAPIDelegateCredentials no\n# GSSAPIKeyExchange no\n# GSSAPITrustDNS no\n# BatchMode no\n# CheckHostIP yes\n# AddressFamily any\n# ConnectTimeout 0\n# StrictHostKeyChecking ask\n# IdentityFile ~\/.ssh\/identity\n# IdentityFile ~\/.ssh\/id_rsa\n# IdentityFile ~\/.ssh\/id_dsa\n# Port 22\n# Protocol 2,1\n# Cipher 3des\n# Ciphers aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc\n# MACs hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160\n# EscapeChar ~\n# Tunnel no\n# TunnelDevice any:any\n# PermitLocalCommand no\n# VisualHostKey no\nHost *\n\tGSSAPIAuthentication yes\n# If this option is set to yes then remote X11 clients will have full access\n# to the original X11 display. As virtually no X11 client supports the untrusted\n# mode correctly we set this to yes.\n\tForwardX11Trusted yes\n# Send locale-related environment variables\n\tSendEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES \n\tSendEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT \n\tSendEnv LC_IDENTIFICATION LC_ALL LANGUAGE\n\tSendEnv XMODIFIERS\n\" = \n\n { \"toplevel\"\n { }\n { \"#comment\" = \"$OpenBSD: ssh_config,v 1.25 2009\/02\/17 01:28:32 djm Exp $\" }\n { }\n { \"#comment\" = \"This is the ssh client system-wide configuration file. See\" }\n { \"#comment\" = \"ssh_config(5) for more information. This file provides defaults for\" }\n { \"#comment\" = \"users, and the values can be changed in per-user configuration files\" }\n { \"#comment\" = \"or on the command line.\" }\n { }\n { \"#comment\" = \"Configuration data is parsed as follows:\" }\n { \"#comment\" = \"1. command line options\" }\n { \"#comment\" = \"2. user-specific file\" }\n { \"#comment\" = \"3. system-wide file\" }\n { \"#comment\" = \"Any configuration value is only changed the first time it is set.\" }\n { \"#comment\" = \"Thus, host-specific definitions should be at the beginning of the\" }\n { \"#comment\" = \"configuration file, and defaults at the end.\" }\n { }\n { \"#comment\" = \"Site-wide defaults for some commonly used options. For a comprehensive\" }\n { \"#comment\" = \"list of available options, their meanings and defaults, please see the\" }\n { \"#comment\" = \"ssh_config(5) man page.\" }\n { }\n { \"#comment\" = \"Host *\" }\n { \"#comment\" = \"ForwardAgent no\" }\n { \"#comment\" = \"ForwardX11 no\" }\n { \"#comment\" = \"RhostsRSAAuthentication no\" }\n { \"#comment\" = \"RSAAuthentication yes\" }\n { \"#comment\" = \"PasswordAuthentication yes\" }\n { \"#comment\" = \"HostbasedAuthentication no\" }\n { \"#comment\" = \"GSSAPIAuthentication no\" }\n { \"#comment\" = \"GSSAPIDelegateCredentials no\" }\n { \"#comment\" = \"GSSAPIKeyExchange no\" }\n { \"#comment\" = \"GSSAPITrustDNS no\" }\n { \"#comment\" = \"BatchMode no\" }\n { \"#comment\" = \"CheckHostIP yes\" }\n { \"#comment\" = \"AddressFamily any\" }\n { \"#comment\" = \"ConnectTimeout 0\" }\n { \"#comment\" = \"StrictHostKeyChecking ask\" }\n { \"#comment\" = \"IdentityFile ~\/.ssh\/identity\" }\n { \"#comment\" = \"IdentityFile ~\/.ssh\/id_rsa\" }\n { \"#comment\" = \"IdentityFile ~\/.ssh\/id_dsa\" }\n { \"#comment\" = \"Port 22\" }\n { \"#comment\" = \"Protocol 2,1\" }\n { \"#comment\" = \"Cipher 3des\" }\n { \"#comment\" = \"Ciphers aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc\" }\n { \"#comment\" = \"MACs hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160\" }\n { \"#comment\" = \"EscapeChar ~\" }\n { \"#comment\" = \"Tunnel no\" }\n { \"#comment\" = \"TunnelDevice any:any\" }\n { \"#comment\" = \"PermitLocalCommand no\" }\n { \"#comment\" = \"VisualHostKey no\" }\n }\n { \"Host\" = \"*\"\n { \"GSSAPIAuthentication\" = \"yes\" }\n { \"#comment\" = \"If this option is set to yes then remote X11 clients will have full access\" }\n { \"#comment\" = \"to the original X11 display. As virtually no X11 client supports the untrusted\" }\n { \"#comment\" = \"mode correctly we set this to yes.\" }\n { \"ForwardX11Trusted\" = \"yes\" }\n { \"#comment\" = \"Send locale-related environment variables\" }\n { \"SendEnv\" = \"LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES\" }\n { \"SendEnv\" = \"LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT\" }\n { \"SendEnv\" = \"LC_IDENTIFICATION LC_ALL LANGUAGE\" }\n { \"SendEnv\" = \"XMODIFIERS\" }\n }\n\n","avg_line_length":38.7905759162,"max_line_length":109,"alphanum_fraction":0.5852341747} {"size":2422,"ext":"aug","lang":"Augeas","max_stars_count":2.0,"content":"(*\nModule: Pg_Hba\n Parses PostgreSQL's pg_hba.conf\n\nAuthor: Aurelien Bompard <aurelien@bompard.org>\n\nAbout: Reference\n The file format is described in PostgreSQL's documentation:\n http:\/\/www.postgresql.org\/docs\/current\/static\/auth-pg-hba-conf.html\n\nAbout: License\n This file is licensed under the LGPLv2+, like the rest of Augeas.\n\nAbout: Configuration files\n This lens applies to pg_hba.conf. See <filter> for exact locations.\n*)\n\n\nmodule Pg_Hba =\n autoload xfm\n\n (* Group: Generic primitives *)\n\n let eol = Util.eol\n let word = Rx.neg1\n (* Variable: ipaddr\n CIDR or ip+netmask *)\n let ipaddr = \/[0-9a-fA-F:\\.]+(\\\/[0-9]+|[ \\t]+[0-9\\.]+)\/\n\n let comma_sep_list (l:string) =\n let lns = [ label l . store word ] in\n Build.opt_list lns Sep.comma\n\n (* Group: Columns definitions *)\n\n (* View: database\n TODO: support for quoted strings *)\n let database = comma_sep_list \"database\"\n (* View: user\n TODO: support for quoted strings *)\n let user = comma_sep_list \"user\"\n (* View: address *)\n let address = [ label \"address\" . store ipaddr ]\n (* View: option\n part of <method> *)\n let option = [ label \"option\" . store word ]\n (* View: method\n can contain an <option> *)\n let method = [ label \"method\" . store Rx.word . ( Sep.tab . option )? ]\n\n (* Group: Records definitions *)\n\n (* View: record_local\n when type is \"local\", there is no \"address\" field *)\n let record_local = [ label \"type\" . store \"local\" ] . Sep.tab .\n database . Sep.tab . user . Sep.tab . method\n\n (* Variable: remtypes\n non-local connection types *)\n let remtypes = \"host\" | \"hostssl\" | \"hostnossl\"\n\n (* View: record_remote *)\n let record_remote = [ label \"type\" . store remtypes ] . Sep.tab .\n database . Sep.tab . user . Sep.tab .\n address . Sep.tab . method\n\n (* View: record\n A sequence of <record_local> or <record_remote> entries *)\n let record = [ seq \"entries\" . (record_local | record_remote) . eol ]\n\n (* View: filter\n The pg_hba.conf conf file *)\n let filter = (incl \"\/var\/lib\/pgsql\/data\/pg_hba.conf\" .\n incl \"\/etc\/postgresql\/*\/*\/pg_hba.conf\" )\n\n (* View: lns\n The pg_hba.conf lens *)\n let lns = ( record | Util.comment | Util.empty ) *\n\n let xfm = transform lns filter\n","avg_line_length":29.9012345679,"max_line_length":75,"alphanum_fraction":0.5962014864} {"size":1202,"ext":"aug","lang":"Augeas","max_stars_count":1.0,"content":"module Test_abrt =\n let lns = Abrt.lns\n test lns get \"\n# Configuration file for CCpp hook\n\n# If you also want to dump file named \\\"core\\\"\n# in crashed process' current dir, set to \\\"yes\\\"\nMakeCompatCore = yes\n\n# Do you want a copy of crashed binary be saved?\n# (useful, for example, when _deleted binary_ segfaults)\nSaveBinaryImage = no\n\n# Used for debugging the hook\n#VerboseLog = 2\n\n# Specify where you want to store debuginfos (default: \/var\/cache\/abrt-di)\n#\n#DebuginfoLocation = \/var\/cache\/abrt-di\n\" = (\n { }\n { \"#comment\" = \"Configuration file for CCpp hook\" }\n { }\n { \"#comment\" = \"If you also want to dump file named \\\"core\\\"\" }\n { \"#comment\" = \"in crashed process' current dir, set to \\\"yes\\\"\" }\n { \"MakeCompatCore\" = \"yes\" }\n { }\n { \"#comment\" = \"Do you want a copy of crashed binary be saved?\" }\n { \"#comment\" = \"(useful, for example, when _deleted binary_ segfaults)\" }\n { \"SaveBinaryImage\" = \"no\" }\n { }\n { \"#comment\" = \"Used for debugging the hook\" }\n { \"#comment\" = \"VerboseLog = 2\" }\n { }\n { \"#comment\" = \"Specify where you want to store debuginfos (default: \/var\/cache\/abrt-di)\" }\n { \"#comment\" }\n { \"#comment\" = \"DebuginfoLocation = \/var\/cache\/abrt-di\" }\n)\n","avg_line_length":30.8205128205,"max_line_length":93,"alphanum_fraction":0.6389351082} {"size":477,"ext":"aug","lang":"Augeas","max_stars_count":17.0,"content":"--- lenses\/postgresql.aug.orig\t2018-03-08 17:37:53 UTC\n+++ lenses\/postgresql.aug\n@@ -70,6 +70,7 @@ let lns = (Util.empty | Util.comment | e\n \n (* Variable: filter *)\n let filter = (incl \"\/var\/lib\/pgsql\/data\/postgresql.conf\" .\n+ incl \"%%PREFIX%%\/pgsql\/data\/postgresql.conf\" .\n incl \"\/var\/lib\/pgsql\/*\/data\/postgresql.conf\" .\n incl \"\/var\/lib\/postgresql\/*\/data\/postgresql.conf\" .\n incl \"\/etc\/postgresql\/*\/*\/postgresql.conf\" )\n","avg_line_length":43.3636363636,"max_line_length":66,"alphanum_fraction":0.5932914046} {"size":726,"ext":"aug","lang":"Augeas","max_stars_count":415.0,"content":"(* Module: AptCacherNGSecurity\n\n Lens for config files like the one found in\n \/etc\/apt-cacher-ng\/security.conf\n\n\n About: License\n Copyright 2013 Erik B. Andersen; this file is licenced under the LGPL v2+.\n*)\nmodule AptCacherNGSecurity =\n\tautoload xfm\n\n\t(* Define a Username\/PW pair *)\n\tlet authpair = [ key \/[^ \\t:\\\/]*\/ . del \/:\/ \":\" . store \/[^: \\t\\n]*\/ ]\n\n\t(* Define a record. So far as I can tell, the only auth level supported is Admin *)\n\tlet record = [ key \"AdminAuth\". del \/[ \\t]*:[ \\t]*\/ \": \". authpair . Util.del_str \"\\n\"]\n\n\t(* Define the basic lens *)\n\tlet lns = ( record | Util.empty | Util.comment )*\n\n\tlet filter = incl \"\/etc\/apt-cacher-ng\/security.conf\"\n\t\t. Util.stdexcl\n\n\tlet xfm = transform lns filter\n","avg_line_length":27.9230769231,"max_line_length":88,"alphanum_fraction":0.6446280992} {"size":667,"ext":"aug","lang":"Augeas","max_stars_count":5.0,"content":"(* Parsing \/etc\/hosts *)\n\nmodule Hosts =\n autoload xfm\n\n let sep_tab = Util.del_ws_tab\n let sep_spc = Util.del_ws_spc\n\n let eol = del \/[ \\t]*\\n\/ \"\\n\"\n let indent = del \/[ \\t]*\/ \"\"\n\n let comment = Util.comment\n let empty = [ del \/[ \\t]*#?[ \\t]*\\n\/ \"\\n\" ]\n\n let word = \/[^# \\n\\t]+\/\n let record = [ seq \"host\" . indent .\n [ label \"addr\" . store word ] . sep_tab .\n [ label \"canonical\" . store word ] .\n [ label \"alias\" . sep_spc . store word ]*\n . (comment|eol) ]\n\n let lns = ( empty | comment | record ) *\n\n let xfm = transform lns (incl \"\/etc\/hosts\")\n","avg_line_length":26.68,"max_line_length":72,"alphanum_fraction":0.4722638681} {"size":2637,"ext":"aug","lang":"Augeas","max_stars_count":415.0,"content":"(*\nModule: Pam\n Parses \/etc\/pam.conf and \/etc\/pam.d\/* service files\n\nAuthor: David Lutterkort <lutter@redhat.com>\n\nAbout: Reference\n This lens tries to keep as close as possible to `man pam.conf` where\n possible.\n\nAbout: Licence\n This file is licensed under the LGPL v2+, like the rest of Augeas.\n\nAbout: Lens Usage\n\nAbout: Configuration files\n This lens autoloads \/etc\/pam.d\/* for service specific files. See <filter>.\n It provides a lens for \/etc\/pam.conf, which is used in the PamConf module.\n*)\nmodule Pam =\n autoload xfm\n\n let eol = Util.eol\n let indent = Util.indent\n let space = del \/([ \\t]|\\\\\\\\\\n)+\/ \" \"\n\n (* For the control syntax of [key=value ..] we could split the key value *)\n (* pairs into an array and generate a subtree control\/N\/KEY = VALUE *)\n (* The valid control values if the [...] syntax is not used, is *)\n (* required|requisite|optional|sufficient|include|substack *)\n (* We allow more than that because this list is not case sensitive and *)\n (* to be more lenient with typos *)\n let control = \/(\\[[^]#\\n]*\\]|[a-zA-Z]+)\/\n let word = \/([^# \\t\\n\\\\]|\\\\\\\\.)+\/\n (* Allowed types *)\n let types = \/(auth|session|account|password)\/i\n\n (* This isn't entirely right: arguments enclosed in [ .. ] can contain *)\n (* a ']' if escaped with a '\\' and can be on multiple lines ('\\') *)\n let argument = \/(\\[[^]#\\n]+\\]|[^[#\\n \\t\\\\][^#\\n \\t\\\\]*)\/\n\n let comment = Util.comment\n let comment_or_eol = Util.comment_or_eol\n let empty = Util.empty\n\n\n (* Not mentioned in the man page, but Debian uses the syntax *)\n (* @include module *)\n (* quite a bit *)\n let include = [ indent . Util.del_str \"@\" . key \"include\" .\n space . store word . eol ]\n\n (* Shared with PamConf *)\n let record = [ label \"optional\" . del \"-\" \"-\" ]? .\n [ label \"type\" . store types ] .\n space .\n [ label \"control\" . store control] .\n space .\n [ label \"module\" . store word ] .\n [ space . label \"argument\" . store argument ]* .\n comment_or_eol\n\n let record_svc = [ seq \"record\" . indent . record ]\n\n let lns = ( empty | comment | include | record_svc ) *\n\n let filter = incl \"\/etc\/pam.d\/*\"\n . excl \"\/etc\/pam.d\/allow.pamlist\"\n . excl \"\/etc\/pam.d\/README\"\n . Util.stdexcl\n\n let xfm = transform lns filter\n\n(* Local Variables: *)\n(* mode: caml *)\n(* End: *)\n","avg_line_length":34.2467532468,"max_line_length":77,"alphanum_fraction":0.5422828972} {"size":585,"ext":"aug","lang":"Augeas","max_stars_count":1.0,"content":"module Pg_Ident =\n autoload xfm\n let identifier = store \/[a-z_][^ \\t\\n#]*\/\n let record = [ seq \"entries\" .\n [ label \"map\" . identifier ] .\n Util.del_ws_spc .\n [ label \"os_user\" . identifier ] .\n Util.del_ws_spc .\n [ label \"db_user\" . identifier ] .\n Util.eol\n ]\n let empty = Util.empty\n let comment = Util.comment\n let line = empty | comment | record\n let lns = line *\n let xfm = transform lns (incl \"\/var\/lib\/pgsql\/data\/pg_ident.conf\")\n","avg_line_length":34.4117647059,"max_line_length":70,"alphanum_fraction":0.4888888889} {"size":4921,"ext":"aug","lang":"Augeas","max_stars_count":1.0,"content":"module Test_up2date =\n let akey = Up2date.akey\n let avalue = Up2date.avalue\n let setting = Up2date.setting\n let lns = Up2date.lns\n\n test [key akey] get \"hP[c]\" = { \"hP[c]\" }\n\n test [store avalue] get \"foo\" = { = \"foo\" }\n test [store avalue] get \"\" = { = \"\" }\n\n test setting get \n \"hP[c]=H py i ht:p ft, e.g. sqd.rt.c:3128\\n\" =\n { \"hP[c]\" = \"H py i ht:p ft, e.g. sqd.rt.c:3128\" }\n test setting get \"foo=\\n\" = { \"foo\" = \"\" }\n\n test lns get\n\"# Automatically generated Red Hat Update Agent config file, do not edit.\n# Format: 1.0\ntmpDir[comment]=Use this Directory to place the temporary transport files\ntmpDir=\/tmp\n\ndisallowConfChanges[comment]=Config options that can not be overwritten by a config update action\ndisallowConfChanges=noReboot;sslCACert;useNoSSLForPackages;noSSLServerURL;serverURL;disallowConfChanges;\n\nskipNetwork[comment]=Skips network information in hardware profile sync during registration.\nskipNetwork=0\n\nnetworkRetries[comment]=Number of attempts to make at network connections before giving up\nnetworkRetries=1\n\nhostedWhitelist[comment]=RHN Hosted URL's\nhostedWhitelist=\n\nenableProxy[comment]=Use a HTTP Proxy\nenableProxy=0\n\nwriteChangesToLog[comment]=Log to \/var\/log\/up2date which packages has been added and removed\nwriteChangesToLog=0\n\nserverURL[comment]=Remote server URL\nserverURL=https:\/\/xmlrpc.rhn.redhat.com\/XMLRPC\n\nproxyPassword[comment]=The password to use for an authenticated proxy\nproxyPassword=\n\nnetworkSetup[comment]=None\nnetworkSetup=1\n\nproxyUser[comment]=The username for an authenticated proxy\nproxyUser=\n\nversionOverride[comment]=Override the automatically determined system version\nversionOverride=\n\nsslCACert[comment]=The CA cert used to verify the ssl server\nsslCACert=\/usr\/share\/rhn\/RHNS-CA-CERT\n\nretrieveOnly[comment]=Retrieve packages only\nretrieveOnly=0\n\ndebug[comment]=Whether or not debugging is enabled\ndebug=0\n\nhttpProxy[comment]=HTTP proxy in host:port format, e.g. squid.redhat.com:3128\nhttpProxy=\n\nsystemIdPath[comment]=Location of system id\nsystemIdPath=\/etc\/sysconfig\/rhn\/systemid\n\nenableProxyAuth[comment]=To use an authenticated proxy or not\nenableProxyAuth=0\n\nnoReboot[comment]=Disable the reboot actions\nnoReboot=0\n\" = ( \n { \"#comment\" = \"Automatically generated Red Hat Update Agent config file, do not edit.\" }\n { \"#comment\" = \"Format: 1.0\" }\n { \"tmpDir[comment]\" = \"Use this Directory to place the temporary transport files\" }\n { \"tmpDir\" = \"\/tmp\" }\n { }\n { \"disallowConfChanges[comment]\" = \"Config options that can not be overwritten by a config update action\" }\n { \"disallowConfChanges\" = \"noReboot;sslCACert;useNoSSLForPackages;noSSLServerURL;serverURL;disallowConfChanges;\" }\n { }\n { \"skipNetwork[comment]\" = \"Skips network information in hardware profile sync during registration.\" }\n { \"skipNetwork\" = \"0\" }\n { }\n { \"networkRetries[comment]\" = \"Number of attempts to make at network connections before giving up\" }\n { \"networkRetries\" = \"1\" }\n { }\n { \"hostedWhitelist[comment]\" = \"RHN Hosted URL's\" }\n { \"hostedWhitelist\" = \"\" }\n { }\n { \"enableProxy[comment]\" = \"Use a HTTP Proxy\" }\n { \"enableProxy\" = \"0\" }\n { }\n { \"writeChangesToLog[comment]\" = \"Log to \/var\/log\/up2date which packages has been added and removed\" }\n { \"writeChangesToLog\" = \"0\" }\n { }\n { \"serverURL[comment]\" = \"Remote server URL\" }\n { \"serverURL\" = \"https:\/\/xmlrpc.rhn.redhat.com\/XMLRPC\" }\n { }\n { \"proxyPassword[comment]\" = \"The password to use for an authenticated proxy\" }\n { \"proxyPassword\" = \"\" }\n { }\n { \"networkSetup[comment]\" = \"None\" }\n { \"networkSetup\" = \"1\" }\n { }\n { \"proxyUser[comment]\" = \"The username for an authenticated proxy\" }\n { \"proxyUser\" = \"\" }\n { }\n { \"versionOverride[comment]\" = \"Override the automatically determined system version\" }\n { \"versionOverride\" = \"\" }\n { }\n { \"sslCACert[comment]\" = \"The CA cert used to verify the ssl server\" }\n { \"sslCACert\" = \"\/usr\/share\/rhn\/RHNS-CA-CERT\" }\n { }\n { \"retrieveOnly[comment]\" = \"Retrieve packages only\" }\n { \"retrieveOnly\" = \"0\" }\n { }\n { \"debug[comment]\" = \"Whether or not debugging is enabled\" }\n { \"debug\" = \"0\" }\n { }\n { \"httpProxy[comment]\" = \"HTTP proxy in host:port format, e.g. squid.redhat.com:3128\" }\n { \"httpProxy\" = \"\" }\n { }\n { \"systemIdPath[comment]\" = \"Location of system id\" }\n { \"systemIdPath\" = \"\/etc\/sysconfig\/rhn\/systemid\" }\n { }\n { \"enableProxyAuth[comment]\" = \"To use an authenticated proxy or not\" }\n { \"enableProxyAuth\" = \"0\" }\n { }\n { \"noReboot[comment]\" = \"Disable the reboot actions\" }\n { \"noReboot\" = \"0\" }\n )\n\n","avg_line_length":35.9197080292,"max_line_length":122,"alphanum_fraction":0.6417394838} {"size":9054,"ext":"aug","lang":"Augeas","max_stars_count":201.0,"content":"\/\/##1. simple loner - On OWN\n\ndef voidThing() void {}\n\ndef doings() String{\n\t12 \/\/no cannot be on its own\n\ta6=3\n\treturn \"\" + a6\n}\n\n\n~~~~~\n\/\/##2. simple loner - if - On OWN\ndef ff() => false\ndef voidThing() void {}\n\ndef doings() String{\n\tif(ff()){23;a=23}\n\ta6=3\n\treturn \"\" + a6\n}\n\n\n~~~~~\n\/\/##3. simple loner - if fail 2 - On OWN\n\ndef voidThing() void {}\ndef ff() => false\ndef doings() String{\n\tif(ff()){23} \/\/i think its just vars which cannot be declard on their own...\n\ta6=3\n\treturn \"\" + a6\n}\n\n~~~~~\n\/\/##4. map stuff - On OWN\ndef doings() String{\n\t{12}\n\t{12->4}[12] \/\/no cannot be on its own\n\tg={12->4}[12] \/\/yes!\n\ta6=3\n\treturn \"\" + a6\n}\n\n\n~~~~~\n\/\/##5. ltr - ifs\ndef ff() => true\ndef doings() String{\n\ta = if(ff()){ 12} else { }\n\treturn \"\" + a \/\/a is recognised to be something from partial match on int (12)\n}\n\n~~~~~\n\/\/##5.b ltr - ifs\ndef ff() => true\ndef doings() String{\n\ta = if(ff()) {} else {}\n\treturn \"\" + a \/\/a cannot be resolved to a variable - \/\/JPT: TODO: fix this such that a resolves to something?\n}\n\n~~~~~\n\/\/##6. ltr - blocks\n\ndef doings() String{\n\ta = {}\n\treturn \"\" + a \n}\n\n~~~~~\n\/\/##7. ltr - while\n\ndef doings() String{\n\tb=0\n\ta = while(b++ < 10){ }\n\treturn \"\" + a \n}\n\n~~~~~\n\/\/##8. ltr - nested \ndef ff() => true\ndef doings() String{\n\tb=0\n\ta = while(b++ < 10){ if(ff()){12} else {} }\n\treturn \"\" + a \/\/a should be ok\n}\n\n~~~~~\n\/\/##9. ltr - for new \n\ndef doings() String{\n\tb=0\n\ta = for(a in [1,2,3,4]){ }\n\treturn \"\" + a \n}\n\n~~~~~\n\/\/##10. ltr - for old \n\ndef doings() String{\n\tb=0\n\ta = for(a=0; a<10; a++){ }\n\treturn \"\" + a \n}\n\n~~~~~\n\/\/##11. ltr - try catch\n\ndef doings() String{\n\ta = try{ 3 } catch(e) {}\n\treturn \"\" + a \n}\n\n~~~~~\n\/\/##11.b ltr - try catch fin\n\ndef doings() String{\n\ta = try{ \n\t3 } catch(e) {\/\/cannot return this either, so not on its own line\n\t2} \/\/no cannot return this\n\t \n}\n\n~~~~~\n\/\/##12. fin overrides all\n\ndef doings() String {\n\tx=try{ \n\t\t12\n\t\t} finally{\n\t\t13\n\t\t} \/\/the fin in the final block overrides the 12 thus 12 flagged as error on its own line\n\treturn \"\" + x\n}\n\n~~~~~\n\/\/##13. a more complex case\n\nza = [1 2 3 4 5 6 7 8 9]\n\ndef gofa() int{ return 8; } \n\ndef doings() String{\n\td = for(n = 0; n < za.length; n++){\n\t\ta = za[n]\n\t\t\n\t\ttry{\n\t\t\ttry{\n\t\t\t\tgofa()\n\t\t\t}\n\t\t\tcatch(e){\n\t\t\t\tgofa()\n\t\t\t}\n\t\t\tfinally{\n\t\t\t\t55 \/\/this should fail own it's own anlaysis!\n\t\t\t}\n\t\t}\n\t\tcatch(e){\n\t\t\tgofa()\n\t\t}\n\t\tfinally{\n\t\t\t33\n\t\t}\n\t\t\n\t} \n\t\t\t\n\treturn \"\" + d\n}\n\n~~~~~\n\/\/##14. break and continue cannot return void\n\nza = [1 2 3 4 5 6 7 8 9]\n\ndef aVoid() void {}\ndef ff() => true; def ffxx() => true; \ndef doings() String{\n\td = for(n = 0; n < za.length; n++){\n\t\tif(ff()){\n\t\t\tbreak aVoid()\n\t\t}\n\t\telif(ffxx()){\n\t\t\t12\n\t\t}\n\t\telse{\n\t\t\tcontinue aVoid()\n\t\t}\/\/also we can consider the if to be ok [no error flaggged], and be of returning an int\n\t} \n\t\t\t\n\treturn \"\" + d\n}\n\n~~~~~\n\/\/##15. last thing in function is ret\n\ndef doings() String{\n\t\"ok\"\n}\n\n~~~~~\n\/\/##16. last thing in lambda is ret\n\ndef doings() String{\n\txxx = def (a int) String { \"\"+a }\n\t\n\txxx(12)\n}\n\n~~~~~\n\/\/##17. cannot ret this\n\ndef doings() String{\n\t12 \/\/not a string!\n}\n\n~~~~~\n\/\/##18. invalid\n\ndef voidRet() {}\n\ndef vernormal() int {\n\ttry{\n\t\t12\n\t}catch(e){\n\t\t12\n\t}\n\tfinally{\n\t\tvoidRet()\/\/void so does nothing\n\t\treturn 19\n\t}\n}\n\n~~~~~\n\/\/##19.a final invalid \n\ndef retSomethng() int { 22 }\n\ndef alright() int {\n\ttry{\n\t\t12\n\t}catch(e){\n\t\t12\n\t}\n\tfinally{\n\t\tretSomethng()\/\/final ret overwrites the return\n\t}\n}\ndef doings() String{\n\t\"\" + alright()\n}\n\n~~~~~\n\/\/##19.b final invalid - wrong type too \n\ndef retSomethng() double { 22 }\n\ndef alright() int {\n\ttry{\n\t\t12\n\t}catch(e){\n\t\t12\n\t}\n\tfinally{\n\t\tretSomethng()\/\/final ret overwrites the return\n\t}\n}\ndef doings() String{\n\t\"\" + alright()\n}\n\n\n~~~~~\n\/\/##19.c final - not permitted\n\ndef voidRet() { }\n\ndef doings() String {\n\ttry{\n\t\tvoidRet()\n\t}catch(e){\n\t\tvoidRet()\n\t}\n\tfinally{\n\t\t\/\/ret must return something as t\/c doesnt\n\t}\n}\n\n~~~~~\n\/\/##19.d final - very ambigious so throwing lots of errors here seems reasonable\n\ndef voidRet() { }\ndef ff() => true\ndef doings() String {\n\ttry{\n\t\t\"12\"\n\t}catch(e){\n\t\t\"12\"\n\t}\n\tfinally{\n\t\tif(ff()){voidRet()} else{ \"14\" }\n\t}\n}\n\n~~~~~\n\/\/##20. sync block should return something\n\ndef doings() String {\n\tx=sync{\n\t\t\/\/\"hi\"\/\/TODO: with blocks\n\t}\n\tx\n}\n\n~~~~~\n\/\/##21. perfect the try catch err\n\/\/3 errors\ndef fail1(){\/\/outputs two lines\n\ta=try{ 12\n\t}\n\tcatch(e Exception){} \/\/missing ret in catch\n\tcatch(e Throwable){} \/\/missing ret in catch\n}\n\ndef fail2(){\n\ta=try{ \n\t\tf=9\n\t}\n\tcatch(e){12 }\t\n}\n\ndef fail3(){\n\ta=try{ \n\t\tf=9\n\t}\n\tcatch(e){ f=12 }\t\n}\n\ndef doings() => \"ho\"\n\n~~~~~\n\/\/##22. no fin ret as expected plus deadcode\n\ndef doings() String{\n\ta=1\n\ttry{\n\t\treturn \"\" + a\n\t}\n\tfinally{\n\t\treturn \"ok\"\n\t}\n\treturn \"\" + a\/\/should get flagged as dead code!\n}\n\n\n~~~~~\n\/\/##23. missing fin set plus slready\n\/\/doesnt belong here but dont want to wait til end of time for the big one to finish\nclass Prot{\n\tprivate val z boolean\n\tthis(){\/\/err cos z not set\n\t}\n\t\n}\n\n\nclass A{\n\tprivate val z boolean\n\tthis(){\n\t\tz=false\n\t}\n\t\n\tthis( a int ){\n\t\tthis()\n\t\tz=false \/\/flag as err cos already set\n\t}\n}\n\nclass B{\n\tprivate val z boolean\n\tthis(){\n\t\tz=false\n\t}\n\t\n\tthis( a int ){\n\t\tthis() \/\/ok because z gets set\n\t}\n}\n\n\ndef doings() => \"\"\n\n~~~~~\n\/\/##24. ret cases\n\ndef gofail(i int) int {\n\t\/\/this is clearly pointless...\n\treturn if(i==0){\treturn 1\t} elif(i==1) { return 15 } else { return 7 }\n\t\/\/return a1\n}\n\ndef gofail2(i int) int {\n\t\/\/this is clearly pointless...\n\ta= if(i==0){\treturn 1\t} elif(i==1) { return 15 } else { return 7 }\n\treturn a1\n}\n\ndef gook(i int) int {\n\ta1 = if(i==0){\treturn 1\t} elif(i==1) { return 15 } else { return 7 }\n\treturn a1\n}\n\ndef doings() String{\n\treturn \"\" + [gook(0), gook(1), gook(2)]\n}\n\n~~~~~\n\/\/##25. some more on own errs\ndef tt() => true\ndef doings() String{\n\ta = {12} \/\/ok\n\t{12}\/\/fail\n\t12\t\/\/fail\n\ta3={ } if tt() else 7\n\treturn \"\" + a\n}\n\n~~~~~\n\/\/##26. err as refmaker is not in the loop\n\ndef doings2() String { \n\tar = for(a =0; a < 10; a++) { {continue a; }!\t} \/\/noes not in the loop\n\treturn \"\" + ar\/\/ + [ar, ar2]\n}\n\n\n~~~~~\n\/\/##27. cont break not outside\n\ndef doings() String {\n\tn=0\n\tg=\"hi \"\n\t\t\n\t\tif(n >5 and n<7 )\n\t\t{\/\/miss out 6\n\t\t\tcontinue;\/\/no\n\t\t}\n\t\t\n\t\tif(n >5 and n<7 )\n\t\t{\/\/miss out 6\n\t\t\tbreak\/\/no\n\t\t}\n\t\t\n\t\tg += n + \" \"\n\t\n\tg+=\"end\"\n\treturn g;\n}\n\n~~~~~\n\/\/##28. implicit returns must be universal\n\ndef ff()=> false\ndef sdf() void{}\n\ndef doer1(){\n\tif(ff()){\n\t\tb=9\/\/no!\n\t}else{\n\t\t20\n\t}\n}\n\ndef doer2(){\n\tx=if(ff()){\n\t\tb=9\/\/no!\n\t}else{\n\t\t20\n\t}\n\tx\n}\n\ndef doings(){\n\t\"\" + [doer1() doer2()]\n}\n\n~~~~~\n\/\/##29. one ret and one not implicit not permited\n\ndef ff()=> false\ndef sdf() void{}\n\ndef doer1(){\n\tif(ff()){\n\t\treturn 9\n\t}else{\n\t\tb=20\/\/no!\n\t}\n}\n\ndef doings(){\n\t\"\" + doer1()\n}\n\n\n~~~~~\n\/\/##30. this is ok\n\ndef ff()=> false\ndef sdf() void{}\n\ndef doer1(){\n\tif(ff()){\n\t\treturn 9\n\t}else{\n\t\t20\n\t}\n}\n\ndef doings(){\n\t\"\" + doer1()\n}\n\n~~~~~\n\/\/##31. try block must return something\n\ndef dfff() => 34\ndef xyz() => 23\n\ndef doer1(){\n\ttry{\n\t\txyz()\n\t}catch(e){\n\t\tsdf=999\t\t\n\t}finally{\n\t\tdfff()\/\/cannot return\n\t}\n\t\n}\n\ndef doer2(){\n\ttry{\n\t\treturn xyz()\n\t}catch(e){\n\t\tsdf=999\t\t\n\t}finally{\n\t\tdfff()\/\/cannot return\n\t}\n\t\n}\n\ndef doer3(){\n\ttry{\n\t\treturn xyz()\n\t}catch(e){\n\t\t999\n\t}finally{\n\t\tdfff()\/\/cannot return\n\t}\n\t\n}\n\ndef ok(){\/\/this one is ok\n\ttry{\n\t\txyz()\n\t}catch(e){\n\t\t999\n\t}finally{\n\t\tdfff()\/\/cannot return\n\t}\n\t\n}\n\ndef doings(){\n\t\"\" + [doer1() doer2() doer3() ok()]\n}\n\n~~~~~\n\/\/##32. more implicit return cases\n\ndef ff() => false\n\ndef doings1(){\n\tif(ff()){\n\t\tx=9\n\t}else{\n\t\tff()\/\/valid\n\t}\n\t\n\t\"ok\"\n}\n\n\ndef doings2(){\n\tif(ff()){\n\t\tx=9\n\t}else{\n\t\t22\/\/not valid\n\t}\n\t\n\t\"ok\"\n}\n\ndef doings(){\n\t\"\" + [doings1(), doings2()]\t\n}\n\n~~~~~\n\/\/##33. try restriction\n\ndef doings2(){\n\tx=try{\n\t\tx=9\n\t\t12\n\t}finally{\n\t\t22\/\/not permitted here\n\t}\n\t\n\t\"ok\"\n} \n\n~~~~~\n\/\/##34. try with inner with no implicit return\n\nfinNestPlus1 = 0; def finNplus1() { finNestPlus1++ }\n\ncatchCalll2a = 0\ncatchCalll2b = 0\ncatchCalll1a = 0\ncatchCalll1b = 0\nf1=0; f2=0;\n\ndef catchCall2a() {\tcatchCalll2a++}\ndef catchCall2b() {\tcatchCalll2b++}\ndef catchCall1a() {\tcatchCalll1a++}\ndef catchCall1b() {\tcatchCalll1b++}\n\ndef fincall1() {\tf1++}\ndef fincall2() {\tf2++}\ndef fincall3() {\tf2++}\n\nopen class Excep1 extends Exception{override equals(o Object) boolean { return true;}}\nopen class Excep2 extends Excep1{override equals(o Object) boolean { return true;}}\n\ndef mycall(fail boolean, ff int) int {\n\tif(fail){ \n\t\tif(ff == 1){ throw new Excep1(); }\t\n\t\tif(ff == 2){ throw new Excep2(); }\t\n\t}\n\treturn 888; \n}\n\nfail = false; theOne =1; throwa =true\n\nab = 0; r=-30;\n\ndef sxt(){\n\ttry{\n\t\twhile(ab++ < 2){\n\t\t\tfinNplus1() \n\t\t\tif(ab==2){ break;} \n\t\t\tfinNplus1() \n\t\t\ttry{\n\t\t\t\ttry{ \n\t\t\t\t\tmycall(fail, theOne)\n\t\t\t\t\tr = 9; return r\n\t\t\t\t}\n\t\t\t\tcatch(he Excep1){\n\t\t\t\t\tcatchCall1a();\n\t\t\t\t}\n\t\t\t\tfinally{ \n\t\t\t\t\tfincall1(); \n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(e Excep2){\n\t\t\t\tcatchCall2b();\n\t\t\t}\n\t\t\tfinally{ \n\t\t\t\tfincall2(); \n\t\t\t }\n\t\t\tr = 77 ; break\n\t\t}\n\t\t\/\/x=8\n\t}\n\tcatch(e){\n\t\tx=9\n\t}\n\tfinally{fincall3()}\n}\n\ndef doings() String{\n\tsxt();\n\treturn \"\" + r + \": \" + [ f1, f2 ] + \" :: \" + finNestPlus1\n}\n\n~~~~~\n\/\/##35. no implicit return in finally block\n\ndef doings(){\n\tx = try{\n\t\t23\n\t}finally{\n\t\t22\n\t}\n\t\n\t\"erm: \" + x\n}\n","avg_line_length":12.8062234795,"max_line_length":110,"alphanum_fraction":0.5473823724} {"size":3327,"ext":"aug","lang":"Augeas","max_stars_count":null,"content":"(*\nModule: Automaster\n Parses autofs' auto.master files\n\nAuthor: Dominic Cleal <dcleal@redhat.com>\n\nAbout: Reference\n See auto.master(5)\n\nAbout: License\n This file is licenced under the LGPL v2+, like the rest of Augeas.\n\nAbout: Lens Usage\n To be documented\n\nAbout: Configuration files\n This lens applies to \/etc\/auto.master, auto_master and \/etc\/auto.master.d\/*\n files.\n\nAbout: Examples\n The <Test_Automaster> file contains various examples and tests.\n*)\n\nmodule Automaster =\nautoload xfm\n\n(************************************************************************\n * Group: USEFUL PRIMITIVES\n *************************************************************************)\n\n(* View: eol *)\nlet eol = Util.eol\n\n(* View: empty *)\nlet empty = Util.empty\n\n(* View: comment *)\nlet comment = Util.comment\n\n(* View mount *)\nlet mount = \/[^+ \\t\\n#]+\/\n\n(* View: type\n yp, file, dir etc but not ldap *)\nlet type = Rx.word - \/ldap\/\n\n(* View: format\n sun, hesoid *)\nlet format = Rx.word\n\n(* View: name *)\nlet name = \/[^: \\t\\n]+\/\n\n(* View: host *)\nlet host = \/[^:# \\n\\t]+\/\n\n(* View: dn *)\nlet dn = \/[^:# \\n\\t]+\/\n\n(* An option label can't contain comma, comment, equals, or space *)\nlet optlabel = \/[^,#= \\n\\t]+\/\nlet spec = \/[^,# \\n\\t][^ \\n\\t]*\/\n\n(************************************************************************\n * Group: ENTRIES\n *************************************************************************)\n\n(* View: map_format *)\nlet map_format = [ label \"format\" . store format ]\n\n(* View: map_type *)\nlet map_type = [ label \"type\" . store type ]\n\n(* View: map_name *)\nlet map_name = [ label \"map\" . store name ]\n\n(* View: map_generic\n Used for all except LDAP maps which are parsed further *)\nlet map_generic = ( map_type . ( Sep.comma . map_format )? . Sep.colon )?\n . map_name\n\n(* View: map_ldap_name\n Split up host:dc=foo into host\/map nodes *)\nlet map_ldap_name = ( [ label \"host\" . store host ] . Sep.colon )?\n . [ label \"map\" . store dn ]\n\n(* View: map_ldap *)\nlet map_ldap = [ label \"type\" . store \"ldap\" ]\n . ( Sep.comma . map_format )? . Sep.colon\n . map_ldap_name\n\n(* View: comma_sep_list\n Parses options either for filesystems or autofs *)\nlet comma_sep_list (l:string) =\n let value = [ label \"value\" . Util.del_str \"=\" . store Rx.neg1 ] in\n let lns = [ label l . store optlabel . value? ] in\n Build.opt_list lns Sep.comma\n\n(* View: map_mount \n Mountpoint and whitespace, followed by the map info *)\nlet map_mount = [ seq \"map\" . store mount . Util.del_ws_tab\n . ( map_generic | map_ldap )\n . ( Util.del_ws_spc . comma_sep_list \"opt\" )?\n . Util.eol ]\n\n(* map_master\n \"+\" to include more master entries and optional whitespace *)\nlet map_master = [ seq \"map\" . store \"+\" . Util.del_opt_ws \"\"\n . ( map_generic | map_ldap )\n . ( Util.del_ws_spc . comma_sep_list \"opt\" )?\n . Util.eol ]\n\n(* View: lns *)\nlet lns = ( empty | comment | map_mount | map_master ) *\n\n(* Variable: filter *)\nlet filter = incl \"\/etc\/auto.master\"\n . incl \"\/etc\/auto_master\"\n . incl \"\/etc\/auto.master.d\/*\"\n . Util.stdexcl\n\nlet xfm = transform lns filter\n","avg_line_length":27.0487804878,"max_line_length":78,"alphanum_fraction":0.5350165314} {"size":1188,"ext":"aug","lang":"Augeas","max_stars_count":9.0,"content":"module Lvm_conf =\n autoload xfm\n\n let empty = Util.empty\n let eol = Util.eol\n let comment = Util.comment\n let indent = del \/[ \\t]*\/ \"\"\n let tab = del \/[ \\t]*\/ \"\\t\"\n let eq = del \/=\/ \"=\"\n\n let id = \/[a-zA-Z][a-zA-Z0-9_]+\/\n\n let type_int = \/-?[0-9]+\/\n let type_float = \/-?[0-9]+\\.[0-9]+\/\n let type_string = \/\"[^\"]*\"\/\n\n let type_value = ( type_int | type_float | type_string )\n\n let nl = del \/\\n\/ \"\\n\"\n let opt_nl = del \/\\n*\/ \"\\n\"\n\n let type=\n [ tab . key id . indent . eq . indent . store type_value ]\n\n let array_value = \n [ label \"value\" . store type_value ]\n\n let array_entry_last = \n indent . array_value . del \/[, ]?\/ \" \"\n\n let array_entry_first = \n indent . array_value . Util.del_str \",\" . opt_nl\n\n let type_array = \n [ tab . key id . indent . eq . indent . Util.del_str \"[\" . ( array_entry_first* . array_entry_last ) . Util.del_str \"]\" ]\n\n let section = [ indent . key id . indent . del \/\\{\/ \"{\" . ( empty | comment | ( type | type_array ) . eol )* . del \/[ \\t]*\\}\/ \"}\" ]\n\n let main = ( empty | comment )\n\n let lns = ( main | section )*\n\n let filter = incl \"\/etc\/lvm\/lvm.conf\" \n\n let xfm = transform lns filter\n","avg_line_length":25.8260869565,"max_line_length":135,"alphanum_fraction":0.5462962963} {"size":778,"ext":"aug","lang":"Augeas","max_stars_count":null,"content":"(* Java.Security module for Augeas\n Author: Andrea Biancini <andrea.biancini@gmail.com>\n\n java.security is a standard INI File without sections.\n*)\n\nmodule JavaSecurity =\n autoload xfm\n\n let comment = IniFile.comment IniFile.comment_re IniFile.comment_default\n let sep = IniFile.sep IniFile.sep_re IniFile.sep_default\n let empty = IniFile.empty\n\n let setting = IniFile.entry_re\n let title = IniFile.title ( IniFile.record_re - \".anon\" )\n let entry = IniFile.entry setting sep comment\n let record = IniFile.record title entry\n let record_anon = [ label \".anon\" . ( entry | empty )+ ]\n let lns = record_anon | record*\n\n let filter = (incl \"\/usr\/lib\/jvm\/*\/jre\/lib\/security\/java.security\") . Util.stdexcl\n let xfm = transform lns filter\n ","avg_line_length":33.8260869565,"max_line_length":84,"alphanum_fraction":0.7017994859} {"size":14381,"ext":"aug","lang":"Augeas","max_stars_count":9.0,"content":"(*\nModule: Test_Cups\n Provides unit tests and examples for the <Cups> lens.\n*)\n\nmodule Test_Cups =\n\n(* Variable: conf *)\nlet conf = \"# Sample configuration file for the CUPS scheduler.\nLogLevel warn\n\n# Deactivate CUPS' internal logrotating, as we provide a better one, especially\n# LogLevel debug2 gets usable now\nMaxLogSize 0\n\n# Administrator user group...\nSystemGroup lpadmin\n\n\n# Only listen for connections from the local machine.\nListen localhost:631\nListen \/var\/run\/cups\/cups.sock\n\n# Show shared printers on the local network.\nBrowseOrder allow,deny\nBrowseAllow all\nBrowseLocalProtocols CUPS dnssd\nBrowseAddress @LOCAL\n\n# Default authentication type, when authentication is required...\nDefaultAuthType Basic\n\n# Web interface setting...\nWebInterface Yes\n\n# Restrict access to the server...\n<Location \/>\n Order allow,deny\n<\/Location>\n\n# Restrict access to the admin pages...\n<Location \/admin>\n Order allow,deny\n<\/Location>\n\n# Restrict access to configuration files...\n<Location \/admin\/conf>\n AuthType Default\n Require user @SYSTEM\n Order allow,deny\n<\/Location>\n\n# Set the default printer\/job policies...\n<Policy default>\n # Job\/subscription privacy...\n JobPrivateAccess default\n JobPrivateValues default\n SubscriptionPrivateAccess default\n SubscriptionPrivateValues default\n\n # Job-related operations must be done by the owner or an administrator...\n <Limit Create-Job Print-Job Print-URI Validate-Job>\n Order deny,allow\n <\/Limit>\n\n <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document>\n Require user @OWNER @SYSTEM\n Order deny,allow\n <\/Limit>\n\n # All administration operations require an administrator to authenticate...\n <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>\n AuthType Default\n Require user @SYSTEM\n Order deny,allow\n <\/Limit>\n\n # All printer operations require a printer operator to authenticate...\n <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs>\n AuthType Default\n Require user @SYSTEM\n Order deny,allow\n <\/Limit>\n\n # Only the owner or an administrator can cancel or authenticate a job...\n <Limit Cancel-Job CUPS-Authenticate-Job>\n Require user @OWNER @SYSTEM\n Order deny,allow\n <\/Limit>\n\n <Limit All>\n Order deny,allow\n <\/Limit>\n<\/Policy>\n\n# Set the authenticated printer\/job policies...\n<Policy authenticated>\n # Job\/subscription privacy...\n JobPrivateAccess default\n JobPrivateValues default\n SubscriptionPrivateAccess default\n SubscriptionPrivateValues default\n\n # Job-related operations must be done by the owner or an administrator...\n <Limit Create-Job Print-Job Print-URI Validate-Job>\n AuthType Default\n Order deny,allow\n <\/Limit>\n\n <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document>\n AuthType Default\n Require user @OWNER @SYSTEM\n Order deny,allow\n <\/Limit>\n\n # All administration operations require an administrator to authenticate...\n <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>\n AuthType Default\n Require user @SYSTEM\n Order deny,allow\n <\/Limit>\n\n # All printer operations require a printer operator to authenticate...\n <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs>\n AuthType Default\n Require user @SYSTEM\n Order deny,allow\n <\/Limit>\n\n # Only the owner or an administrator can cancel or authenticate a job...\n <Limit Cancel-Job CUPS-Authenticate-Job>\n AuthType Default\n Require user @OWNER @SYSTEM\n Order deny,allow\n <\/Limit>\n\n <Limit All>\n Order deny,allow\n <\/Limit>\n<\/Policy>\n\"\n\n(* Test: Simplevars.lns *)\ntest Cups.lns get conf =\n { \"#comment\" = \"Sample configuration file for the CUPS scheduler.\" }\n { \"directive\" = \"LogLevel\"\n { \"arg\" = \"warn\" }\n }\n { }\n { \"#comment\" = \"Deactivate CUPS' internal logrotating, as we provide a better one, especially\" }\n { \"#comment\" = \"LogLevel debug2 gets usable now\" }\n { \"directive\" = \"MaxLogSize\"\n { \"arg\" = \"0\" }\n }\n { }\n { \"#comment\" = \"Administrator user group...\" }\n { \"directive\" = \"SystemGroup\"\n { \"arg\" = \"lpadmin\" }\n }\n { }\n { }\n { \"#comment\" = \"Only listen for connections from the local machine.\" }\n { \"directive\" = \"Listen\"\n { \"arg\" = \"localhost:631\" }\n }\n { \"directive\" = \"Listen\"\n { \"arg\" = \"\/var\/run\/cups\/cups.sock\" }\n }\n { }\n { \"#comment\" = \"Show shared printers on the local network.\" }\n { \"directive\" = \"BrowseOrder\"\n { \"arg\" = \"allow,deny\" }\n }\n { \"directive\" = \"BrowseAllow\"\n { \"arg\" = \"all\" }\n }\n { \"directive\" = \"BrowseLocalProtocols\"\n { \"arg\" = \"CUPS\" }\n { \"arg\" = \"dnssd\" }\n }\n { \"directive\" = \"BrowseAddress\"\n { \"arg\" = \"@LOCAL\" }\n }\n { }\n { \"#comment\" = \"Default authentication type, when authentication is required...\" }\n { \"directive\" = \"DefaultAuthType\"\n { \"arg\" = \"Basic\" }\n }\n { }\n { \"#comment\" = \"Web interface setting...\" }\n { \"directive\" = \"WebInterface\"\n { \"arg\" = \"Yes\" }\n }\n { }\n { \"#comment\" = \"Restrict access to the server...\" }\n { \"Location\"\n { \"arg\" = \"\/\" }\n { \"directive\" = \"Order\"\n { \"arg\" = \"allow,deny\" }\n }\n }\n { }\n { \"#comment\" = \"Restrict access to the admin pages...\" }\n { \"Location\"\n { \"arg\" = \"\/admin\" }\n { \"directive\" = \"Order\"\n { \"arg\" = \"allow,deny\" }\n }\n }\n { }\n { \"#comment\" = \"Restrict access to configuration files...\" }\n { \"Location\"\n { \"arg\" = \"\/admin\/conf\" }\n { \"directive\" = \"AuthType\"\n { \"arg\" = \"Default\" }\n }\n { \"directive\" = \"Require\"\n { \"arg\" = \"user\" }\n { \"arg\" = \"@SYSTEM\" }\n }\n { \"directive\" = \"Order\"\n { \"arg\" = \"allow,deny\" }\n }\n }\n { }\n { \"#comment\" = \"Set the default printer\/job policies...\" }\n { \"Policy\"\n { \"arg\" = \"default\" }\n { \"#comment\" = \"Job\/subscription privacy...\" }\n { \"directive\" = \"JobPrivateAccess\"\n { \"arg\" = \"default\" }\n }\n { \"directive\" = \"JobPrivateValues\"\n { \"arg\" = \"default\" }\n }\n { \"directive\" = \"SubscriptionPrivateAccess\"\n { \"arg\" = \"default\" }\n }\n { \"directive\" = \"SubscriptionPrivateValues\"\n { \"arg\" = \"default\" }\n }\n { }\n { \"#comment\" = \"Job-related operations must be done by the owner or an administrator...\" }\n { \"Limit\"\n { \"arg\" = \"Create-Job\" }\n { \"arg\" = \"Print-Job\" }\n { \"arg\" = \"Print-URI\" }\n { \"arg\" = \"Validate-Job\" }\n { \"directive\" = \"Order\"\n { \"arg\" = \"deny,allow\" }\n }\n }\n { }\n { \"Limit\"\n { \"arg\" = \"Send-Document\" }\n { \"arg\" = \"Send-URI\" }\n { \"arg\" = \"Hold-Job\" }\n { \"arg\" = \"Release-Job\" }\n { \"arg\" = \"Restart-Job\" }\n { \"arg\" = \"Purge-Jobs\" }\n { \"arg\" = \"Set-Job-Attributes\" }\n { \"arg\" = \"Create-Job-Subscription\" }\n { \"arg\" = \"Renew-Subscription\" }\n { \"arg\" = \"Cancel-Subscription\" }\n { \"arg\" = \"Get-Notifications\" }\n { \"arg\" = \"Reprocess-Job\" }\n { \"arg\" = \"Cancel-Current-Job\" }\n { \"arg\" = \"Suspend-Current-Job\" }\n { \"arg\" = \"Resume-Job\" }\n { \"arg\" = \"Cancel-My-Jobs\" }\n { \"arg\" = \"Close-Job\" }\n { \"arg\" = \"CUPS-Move-Job\" }\n { \"arg\" = \"CUPS-Get-Document\" }\n { \"directive\" = \"Require\"\n { \"arg\" = \"user\" }\n { \"arg\" = \"@OWNER\" }\n { \"arg\" = \"@SYSTEM\" }\n }\n { \"directive\" = \"Order\"\n { \"arg\" = \"deny,allow\" }\n }\n }\n { }\n { \"#comment\" = \"All administration operations require an administrator to authenticate...\" }\n { \"Limit\"\n { \"arg\" = \"CUPS-Add-Modify-Printer\" }\n { \"arg\" = \"CUPS-Delete-Printer\" }\n { \"arg\" = \"CUPS-Add-Modify-Class\" }\n { \"arg\" = \"CUPS-Delete-Class\" }\n { \"arg\" = \"CUPS-Set-Default\" }\n { \"arg\" = \"CUPS-Get-Devices\" }\n { \"directive\" = \"AuthType\"\n { \"arg\" = \"Default\" }\n }\n { \"directive\" = \"Require\"\n { \"arg\" = \"user\" }\n { \"arg\" = \"@SYSTEM\" }\n }\n { \"directive\" = \"Order\"\n { \"arg\" = \"deny,allow\" }\n }\n }\n { }\n { \"#comment\" = \"All printer operations require a printer operator to authenticate...\" }\n { \"Limit\"\n { \"arg\" = \"Pause-Printer\" }\n { \"arg\" = \"Resume-Printer\" }\n { \"arg\" = \"Enable-Printer\" }\n { \"arg\" = \"Disable-Printer\" }\n { \"arg\" = \"Pause-Printer-After-Current-Job\" }\n { \"arg\" = \"Hold-New-Jobs\" }\n { \"arg\" = \"Release-Held-New-Jobs\" }\n { \"arg\" = \"Deactivate-Printer\" }\n { \"arg\" = \"Activate-Printer\" }\n { \"arg\" = \"Restart-Printer\" }\n { \"arg\" = \"Shutdown-Printer\" }\n { \"arg\" = \"Startup-Printer\" }\n { \"arg\" = \"Promote-Job\" }\n { \"arg\" = \"Schedule-Job-After\" }\n { \"arg\" = \"Cancel-Jobs\" }\n { \"arg\" = \"CUPS-Accept-Jobs\" }\n { \"arg\" = \"CUPS-Reject-Jobs\" }\n { \"directive\" = \"AuthType\"\n { \"arg\" = \"Default\" }\n }\n { \"directive\" = \"Require\"\n { \"arg\" = \"user\" }\n { \"arg\" = \"@SYSTEM\" }\n }\n { \"directive\" = \"Order\"\n { \"arg\" = \"deny,allow\" }\n }\n }\n { }\n { \"#comment\" = \"Only the owner or an administrator can cancel or authenticate a job...\" }\n { \"Limit\"\n { \"arg\" = \"Cancel-Job\" }\n { \"arg\" = \"CUPS-Authenticate-Job\" }\n { \"directive\" = \"Require\"\n { \"arg\" = \"user\" }\n { \"arg\" = \"@OWNER\" }\n { \"arg\" = \"@SYSTEM\" }\n }\n { \"directive\" = \"Order\"\n { \"arg\" = \"deny,allow\" }\n }\n }\n { }\n { \"Limit\"\n { \"arg\" = \"All\" }\n { \"directive\" = \"Order\"\n { \"arg\" = \"deny,allow\" }\n }\n }\n }\n { }\n { \"#comment\" = \"Set the authenticated printer\/job policies...\" }\n { \"Policy\"\n { \"arg\" = \"authenticated\" }\n { \"#comment\" = \"Job\/subscription privacy...\" }\n { \"directive\" = \"JobPrivateAccess\"\n { \"arg\" = \"default\" }\n }\n { \"directive\" = \"JobPrivateValues\"\n { \"arg\" = \"default\" }\n }\n { \"directive\" = \"SubscriptionPrivateAccess\"\n { \"arg\" = \"default\" }\n }\n { \"directive\" = \"SubscriptionPrivateValues\"\n { \"arg\" = \"default\" }\n }\n { }\n { \"#comment\" = \"Job-related operations must be done by the owner or an administrator...\" }\n { \"Limit\"\n { \"arg\" = \"Create-Job\" }\n { \"arg\" = \"Print-Job\" }\n { \"arg\" = \"Print-URI\" }\n { \"arg\" = \"Validate-Job\" }\n { \"directive\" = \"AuthType\"\n { \"arg\" = \"Default\" }\n }\n { \"directive\" = \"Order\"\n { \"arg\" = \"deny,allow\" }\n }\n }\n { }\n { \"Limit\"\n { \"arg\" = \"Send-Document\" }\n { \"arg\" = \"Send-URI\" }\n { \"arg\" = \"Hold-Job\" }\n { \"arg\" = \"Release-Job\" }\n { \"arg\" = \"Restart-Job\" }\n { \"arg\" = \"Purge-Jobs\" }\n { \"arg\" = \"Set-Job-Attributes\" }\n { \"arg\" = \"Create-Job-Subscription\" }\n { \"arg\" = \"Renew-Subscription\" }\n { \"arg\" = \"Cancel-Subscription\" }\n { \"arg\" = \"Get-Notifications\" }\n { \"arg\" = \"Reprocess-Job\" }\n { \"arg\" = \"Cancel-Current-Job\" }\n { \"arg\" = \"Suspend-Current-Job\" }\n { \"arg\" = \"Resume-Job\" }\n { \"arg\" = \"Cancel-My-Jobs\" }\n { \"arg\" = \"Close-Job\" }\n { \"arg\" = \"CUPS-Move-Job\" }\n { \"arg\" = \"CUPS-Get-Document\" }\n { \"directive\" = \"AuthType\"\n { \"arg\" = \"Default\" }\n }\n { \"directive\" = \"Require\"\n { \"arg\" = \"user\" }\n { \"arg\" = \"@OWNER\" }\n { \"arg\" = \"@SYSTEM\" }\n }\n { \"directive\" = \"Order\"\n { \"arg\" = \"deny,allow\" }\n }\n }\n { }\n { \"#comment\" = \"All administration operations require an administrator to authenticate...\" }\n { \"Limit\"\n { \"arg\" = \"CUPS-Add-Modify-Printer\" }\n { \"arg\" = \"CUPS-Delete-Printer\" }\n { \"arg\" = \"CUPS-Add-Modify-Class\" }\n { \"arg\" = \"CUPS-Delete-Class\" }\n { \"arg\" = \"CUPS-Set-Default\" }\n { \"directive\" = \"AuthType\"\n { \"arg\" = \"Default\" }\n }\n { \"directive\" = \"Require\"\n { \"arg\" = \"user\" }\n { \"arg\" = \"@SYSTEM\" }\n }\n { \"directive\" = \"Order\"\n { \"arg\" = \"deny,allow\" }\n }\n }\n { }\n { \"#comment\" = \"All printer operations require a printer operator to authenticate...\" }\n { \"Limit\"\n { \"arg\" = \"Pause-Printer\" }\n { \"arg\" = \"Resume-Printer\" }\n { \"arg\" = \"Enable-Printer\" }\n { \"arg\" = \"Disable-Printer\" }\n { \"arg\" = \"Pause-Printer-After-Current-Job\" }\n { \"arg\" = \"Hold-New-Jobs\" }\n { \"arg\" = \"Release-Held-New-Jobs\" }\n { \"arg\" = \"Deactivate-Printer\" }\n { \"arg\" = \"Activate-Printer\" }\n { \"arg\" = \"Restart-Printer\" }\n { \"arg\" = \"Shutdown-Printer\" }\n { \"arg\" = \"Startup-Printer\" }\n { \"arg\" = \"Promote-Job\" }\n { \"arg\" = \"Schedule-Job-After\" }\n { \"arg\" = \"Cancel-Jobs\" }\n { \"arg\" = \"CUPS-Accept-Jobs\" }\n { \"arg\" = \"CUPS-Reject-Jobs\" }\n { \"directive\" = \"AuthType\"\n { \"arg\" = \"Default\" }\n }\n { \"directive\" = \"Require\"\n { \"arg\" = \"user\" }\n { \"arg\" = \"@SYSTEM\" }\n }\n { \"directive\" = \"Order\"\n { \"arg\" = \"deny,allow\" }\n }\n }\n { }\n { \"#comment\" = \"Only the owner or an administrator can cancel or authenticate a job...\" }\n { \"Limit\"\n { \"arg\" = \"Cancel-Job\" }\n { \"arg\" = \"CUPS-Authenticate-Job\" }\n { \"directive\" = \"AuthType\"\n { \"arg\" = \"Default\" }\n }\n { \"directive\" = \"Require\"\n { \"arg\" = \"user\" }\n { \"arg\" = \"@OWNER\" }\n { \"arg\" = \"@SYSTEM\" }\n }\n { \"directive\" = \"Order\"\n { \"arg\" = \"deny,allow\" }\n }\n }\n { }\n { \"Limit\"\n { \"arg\" = \"All\" }\n { \"directive\" = \"Order\"\n { \"arg\" = \"deny,allow\" }\n }\n }\n }\n\n","avg_line_length":28.9939516129,"max_line_length":299,"alphanum_fraction":0.554968361} {"size":146,"ext":"aug","lang":"Augeas","max_stars_count":1.0,"content":"module Test_subversion =\n let lns = Subversion.lns\n test lns get \"\n[global]\nfoo = bar\n\" = (\n { }\n { \"global\"\n { \"foo\" = \"bar\" }\n }\n)\n\n","avg_line_length":11.2307692308,"max_line_length":28,"alphanum_fraction":0.5068493151} {"size":3742,"ext":"aug","lang":"Augeas","max_stars_count":null,"content":"module Test_shorewall_rules =\n let basic = \"Foo\/ACCEPT fw bloc\nBar\/DENY bloc fw\\n\"\n\n let tabs = \"Foo\/ACCEPT fw bloc\nBar\/DENY bloc fw\\n\"\n\n let three_fields_plus_comment = \"ACCEPT fw:127.0.0.1 bloc\n# This should be a comment.\nFoo\/ACCEPT bloc fw\n\"\n\n let rules_and_comments = \"ACCEPT fw:127.0.0.1 bloc tcp - 22 127.0.0.1 22\/s root\/user\n# This should be a comment.\n\nFoo\/ACCEPT bloc fw\n\"\n\n let rules_comment_section = \"# This is a comment.\nSECTION NEW\nACCEPT fw:127.0.0.1 bloc tcp - 22 127.0.0.1 22\/s root\/user # This should also be a comment.\n# This should be a comment.\n\nFoo\/ACCEPT bloc fw\n\"\n\n let hq_server01_test = \"SMTP\/ACCEPT:info fw net:63.246.22.101,63.246.22.114,63.246.22.117 tcp smtp - - 25\/min\\n\"\n\n let put_test_basic = \"ACCEPT net fw tcp\n\"\n\n let put_test_basic_result = \"ACCEPT net fw tcp\nDENY fw bloc tcp\n\"\n\n let put_test_comment = \"# This is a comment.\nACCEPT net fw tcp\n\"\n\n let put_test_comment_result = \"# This is a comment.\nACCEPT net fw tcp\nDENY fw bloc tcp\n\"\n\n\n test Shorewall_rules.lns get hq_server01_test =\n { \"rule\"\n { \"action\" = \"SMTP\/ACCEPT:info\" }\n { \"source\" = \"fw\" }\n { \"dest\" = \"net:63.246.22.101,63.246.22.114,63.246.22.117\" }\n { \"proto\" = \"tcp\" }\n { \"dest_port\" = \"smtp\" }\n { \"source_port\" = \"-\" }\n { \"dest_original\" = \"-\" }\n { \"rate_limit\" = \"25\/min\" } }\n\n test Shorewall_rules.lns get basic =\n { \"rule\"\n { \"action\" = \"Foo\/ACCEPT\" }\n { \"source\" = \"fw\" }\n { \"dest\" = \"bloc\" } }\n { \"rule\"\n { \"action\" = \"Bar\/DENY\" }\n { \"source\" = \"bloc\" }\n { \"dest\" = \"fw\" } }\n\n test Shorewall_rules.lns get tabs =\n { \"rule\"\n { \"action\" = \"Foo\/ACCEPT\" }\n { \"source\" = \"fw\" }\n { \"dest\" = \"bloc\" } }\n { \"rule\"\n { \"action\" = \"Bar\/DENY\" }\n { \"source\" = \"bloc\" }\n { \"dest\" = \"fw\" } }\n\n test Shorewall_rules.lns get three_fields_plus_comment =\n { \"rule\"\n { \"action\" = \"ACCEPT\" }\n { \"source\" = \"fw:127.0.0.1\" }\n { \"dest\" = \"bloc\" } }\n { \"#comment\" = \"This should be a comment.\" }\n { \"rule\"\n { \"action\" = \"Foo\/ACCEPT\" }\n { \"source\" = \"bloc\" }\n { \"dest\" = \"fw\" } }\n\n test Shorewall_rules.lns get rules_and_comments =\n { \"rule\"\n { \"action\" = \"ACCEPT\" }\n { \"source\" = \"fw:127.0.0.1\" }\n { \"dest\" = \"bloc\" }\n { \"proto\" = \"tcp\" }\n { \"dest_port\" = \"-\" }\n { \"source_port\" = \"22\" }\n { \"dest_original\" = \"127.0.0.1\" }\n { \"rate_limit\" = \"22\/s\" }\n { \"user_group\" = \"root\/user\" } }\n { \"#comment\" = \"This should be a comment.\" }\n {}\n { \"rule\"\n { \"action\" = \"Foo\/ACCEPT\" }\n { \"source\" = \"bloc\" }\n { \"dest\" = \"fw\" } }\n\n(* test Shorewall_rules.lns get rules_comment_section =\n { \"#comment\" = \"This is a comment.\" }\n { \"SECTION\" = \"NEW\" }\n { \"rule\"\n { \"action\" = \"ACCEPT\" }\n { \"source\" = \"fw:127.0.0.1\" }\n { \"dest\" = \"bloc\" }\n { \"proto\" = \"tcp\" }\n { \"dest_port\" = \"-\" }\n { \"source_port\" = \"22\" }\n { \"dest_original\" = \"127.0.0.1\" }\n { \"rate_limit\" = \"22\/s\" }\n { \"user_group\" = \"root\/user\" }\n { \"#comment\" = \"This should also be a comment.\" } }\n { \"#comment\" = \"This should be a comment.\" }\n {}\n { \"rule\"\n { \"action\" = \"Foo\/ACCEPT\" }\n { \"source\" = \"bloc\" }\n { \"dest\" = \"fw\" } }\n*)\n\n test Shorewall_rules.lns put put_test_basic after\n set \"\/rule[last() + 1]\/action\" \"DENY\";\n set \"\/rule[last()]\/source\" \"fw\";\n set \"\/rule[last()]\/dest\" \"bloc\";\n set \"\/rule[last()]\/proto\" \"tcp\"\n = put_test_basic_result\n","avg_line_length":27.9253731343,"max_line_length":167,"alphanum_fraction":0.4997327632} {"size":4459,"ext":"aug","lang":"Augeas","max_stars_count":null,"content":"(*\n Module: MasterPasswd\n Parses \/etc\/master.passwd\n\n Author: Matt Dainty <matt@bodgit-n-scarper.com>\n\n About: Reference\n - man 5 master.passwd\n\n Each line in the master.passwd file represents a single user record, whose\n colon-separated attributes correspond to the members of the passwd struct\n\n*)\n\nmodule MasterPasswd =\n\n autoload xfm\n\n(************************************************************************\n * Group: USEFUL PRIMITIVES\n *************************************************************************)\n\n(* Group: Comments and empty lines *)\n\nlet eol = Util.eol\nlet comment = Util.comment\nlet empty = Util.empty\nlet dels = Util.del_str\n\nlet word = Rx.word\nlet integer = Rx.integer\n\nlet colon = Sep.colon\n\nlet sto_to_eol = Passwd.sto_to_eol\nlet sto_to_col = Passwd.sto_to_col\n(* Store an empty string if nothing matches *)\nlet sto_to_col_or_empty = store \/[^:\\r\\n]*\/\n\n(************************************************************************\n * Group: ENTRIES\n *************************************************************************)\n\nlet username = \/[_.A-Za-z0-9][-_.A-Za-z0-9]*\\$?\/\n\n(* View: password\n pw_passwd *)\nlet password = [ label \"password\" . sto_to_col? . colon ]\n\n(* View: uid\n pw_uid *)\nlet uid = [ label \"uid\" . store integer . colon ]\n\n(* View: gid\n pw_gid *)\nlet gid = [ label \"gid\" . store integer . colon ]\n\n(* View: class\n pw_class *)\nlet class = [ label \"class\" . sto_to_col? . colon ]\n\n(* View: change\n pw_change *)\nlet change_date = [ label \"change_date\" . store integer? . colon ]\n\n(* View: expire\n pw_expire *)\nlet expire_date = [ label \"expire_date\" . store integer? . colon ]\n\n(* View: name\n pw_gecos; the user's full name *)\nlet name = [ label \"name\" . sto_to_col? . colon ]\n\n(* View: home\n pw_dir *)\nlet home = [ label \"home\" . sto_to_col? . colon ]\n\n(* View: shell\n pw_shell *)\nlet shell = [ label \"shell\" . sto_to_eol? ]\n\n(* View: entry\n struct passwd *)\nlet entry = [ key username\n . colon\n . password\n . uid\n . gid\n . class\n . change_date\n . expire_date\n . name\n . home\n . shell\n . eol ]\n\n(* NIS entries *)\nlet niscommon = [ label \"password\" . sto_to_col ]? . colon\n . [ label \"uid\" . store integer ]? . colon\n . [ label \"gid\" . store integer ]? . colon\n . [ label \"class\" . sto_to_col ]? . colon\n . [ label \"change_date\" . store integer ]? . colon\n . [ label \"expire_date\" . store integer ]? . colon\n . [ label \"name\" . sto_to_col ]? . colon\n . [ label \"home\" . sto_to_col ]? . colon\n . [ label \"shell\" . sto_to_eol ]?\n\nlet nisentry =\n let overrides =\n colon\n . niscommon in\n [ dels \"+@\" . label \"@nis\" . store username . overrides . eol ]\n\nlet nisuserplus =\n let overrides =\n colon\n . niscommon in\n [ dels \"+\" . label \"@+nisuser\" . store username . overrides . eol ]\n\nlet nisuserminus =\n let overrides =\n colon\n . niscommon in\n [ dels \"-\" . label \"@-nisuser\" . store username . overrides . eol ]\n\nlet nisdefault =\n let overrides =\n colon\n . [ label \"password\" . sto_to_col_or_empty . colon ]\n . [ label \"uid\" . store integer? . colon ]\n . [ label \"gid\" . store integer? . colon ]\n . [ label \"class\" . sto_to_col? . colon ]\n . [ label \"change_date\" . store integer? . colon ]\n . [ label \"expire_date\" . store integer? . colon ]\n . [ label \"name\" . sto_to_col? . colon ]\n . [ label \"home\" . sto_to_col? . colon ]\n . [ label \"shell\" . sto_to_eol? ] in\n [ dels \"+\" . label \"@nisdefault\" . overrides? . eol ]\n\n(************************************************************************\n * LENS\n *************************************************************************)\n\nlet lns = (comment|empty|entry|nisentry|nisdefault|nisuserplus|nisuserminus) *\n\nlet filter = incl \"\/etc\/master.passwd\"\n\nlet xfm = transform lns filter\n","avg_line_length":29.9261744966,"max_line_length":85,"alphanum_fraction":0.4702848172} {"size":723,"ext":"aug","lang":"Augeas","max_stars_count":9.0,"content":"<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n\n<!-- This file contains definitions of all custom resources and styles used for\n displaying visual elements within the user-interface of Hero Lab. Visual elements\n utilized for printed output are defined within \"styles_output.aug\". All sytem\n resources replaced for the game system are defined within \"system_resources.aug\".\n-->\n\n<document signature=\"Hero Lab Structure\">\n\n <!-- style used on the edit action button - bitmap-only with no text -->\n <style\n id=\"actEditB\"\n border=\"brdsystem\">\n <style_action\n textcolorid=\"clrglow\"\n font=\"fntactsml\"\n up=\"editup\" down=\"editdn\" off=\"editof\">\n <\/style_action>\n <\/style>\n\n <\/document>","avg_line_length":32.8636363636,"max_line_length":87,"alphanum_fraction":0.6915629322} {"size":4719,"ext":"aug","lang":"Augeas","max_stars_count":null,"content":"module Krb5 =\n\nautoload xfm\n\nlet comment = Inifile.comment \"#\" \"#\"\nlet empty = Inifile.empty\nlet eol = Inifile.eol\nlet dels = Util.del_str\n\nlet indent = del \/[ \\t]*\/ \"\"\nlet eq = del \/[ \\t]*=[ \\t]*\/ \" = \"\nlet eq_openbr = del \/[ \\t]*=[ \\t\\n]*\\{([ \\t]*\\n)*\/ \" = {\"\nlet closebr = del \/[ \\t]*\\}\/ \"}\"\n\n(* These two regexps for realms and apps are not entirely true\n - strictly speaking, there's no requirement that a realm is all upper case\n and an application only uses lowercase. But it's what's used in practice.\n\n Without that distinction we couldn't distinguish between applications\n and realms in the [appdefaults] section.\n*)\n\nlet realm_re = \/[A-Z][.a-zA-Z0-9-]*\/\nlet app_re = \/[a-z][a-zA-Z0-9_]*\/\nlet name_re = \/[.a-zA-Z0-9_-]+\/\n\n(* let value = store \/[^;# \\t\\n{}]+\/ *)\nlet value = store \/[^;# \\t\\n{}]|[^;# \\t\\n{}][^#\\n]*[^;# \\t\\n{}]\/\nlet entry (kw:regexp) (sep:lens) (comment:lens)\n = [ indent . key kw . sep . value . (comment|eol) ] | comment\n\nlet simple_section (n:string) (k:regexp) =\n let title = Inifile.indented_title n in\n let entry = entry k eq comment in\n Inifile.record title entry\n\nlet record (t:string) (e:lens) =\n let title = Inifile.indented_title t in\n Inifile.record title e\n\nlet libdefaults =\n let option = entry (name_re - \"v4_name_convert\") eq comment in\n let subsec = [ indent . key \/host|plain\/ . eq_openbr .\n (entry name_re eq comment)* . closebr . eol ] in\n let v4_name_convert = [ indent . key \"v4_name_convert\" . eq_openbr .\n subsec* . closebr . eol ] in\n record \"libdefaults\" (option|v4_name_convert)\n\nlet login =\n let keys = \/krb[45]_get_tickets|krb4_convert|krb_run_aklog\/\n |\/aklog_path|accept_passwd\/ in\n simple_section \"login\" keys\n\nlet appdefaults =\n let option = entry (name_re - \"realm\" - \"application\") eq comment in\n let realm = [ indent . label \"realm\" . store realm_re .\n eq_openbr . option* . closebr . eol ] in\n let app = [ indent . label \"application\" . store app_re .\n eq_openbr . (realm|option)* . closebr . eol] in\n record \"appdefaults\" (option|realm|app)\n\nlet realms =\n let simple_option = \/kdc|admin_server|database_module|default_domain\/\n |\/v4_realm|auth_to_local(_names)?|master_kdc|kpasswd_server\/\n |\/admin_server\/ in\n let subsec_option = \/v4_instance_convert\/ in\n let option = entry simple_option eq comment in\n let subsec = [ indent . key subsec_option . eq_openbr .\n (entry name_re eq comment)* . closebr . eol ] in\n let realm = [ indent . label \"realm\" . store realm_re .\n eq_openbr . (option|subsec)* . closebr . eol ] in\n record \"realms\" (realm|comment)\n\nlet domain_realm =\n simple_section \"domain_realm\" name_re\n\nlet logging =\n let keys = \/kdc|admin_server|default\/ in\n let xchg (m:regexp) (d:string) (l:string) =\n del m d . label l in\n let xchgs (m:string) (l:string) = xchg m m l in\n let dest =\n [ xchg \/FILE[=:]\/ \"FILE=\" \"file\" . value ]\n |[ xchgs \"STDERR\" \"stderr\" ]\n |[ xchgs \"CONSOLE\" \"console\" ]\n |[ xchgs \"DEVICE=\" \"device\" . value ]\n |[ xchgs \"SYSLOG\" \"syslog\" .\n ([ xchgs \":\" \"severity\" . store \/[A-Za-z0-9]+\/ ].\n [ xchgs \":\" \"facility\" . store \/[A-Za-z0-9]+\/ ]?)? ] in\n let entry = [ indent . key keys . eq . dest . (comment|eol) ] | comment in\n record \"logging\" entry\n\nlet capaths =\n let realm = [ indent . key realm_re .\n eq_openbr .\n (entry realm_re eq comment)* . closebr . eol ] in\n record \"capaths\" (realm|comment)\n\nlet dbdefaults =\n let keys = \/database_module|ldap_kerberos_container_dn|ldap_kdc_dn\/\n |\/ldap_kadmind_dn|ldap_service_password_file|ldap_servers\/\n |\/ldap_conns_per_server\/ in\n simple_section \"dbdefaults\" keys\n\nlet dbmodules =\n let keys = \/db_library|ldap_kerberos_container_dn|ldap_kdc_dn\/\n |\/ldap_kadmind_dn|ldap_service_password_file|ldap_servers\/\n |\/ldap_conns_per_server\/ in\n simple_section \"dbmodules\" keys\n\n(* This section is not documented in the krb5.conf manpage,\n but the Fermi example uses it. *)\nlet instance_mapping =\n let value = dels \"\\\"\" . store \/[^;# \\t\\n{}]*\/ . dels \"\\\"\" in\n let map_node = label \"mapping\" . store \/[a-zA-Z0-9\\\/*]+\/ in\n let mapping = [ indent . map_node . eq .\n [ label \"value\" . value ] . (comment|eol) ] in\n let instance = [ indent . key name_re .\n eq_openbr . (mapping|comment)* . closebr . eol ] in\n record \"instancemapping\" instance\n\nlet kdc =\n simple_section \"kdc\" \/profile\/\n\nlet lns = (comment|empty)* .\n (libdefaults|login|appdefaults|realms|domain_realm\n |logging|capaths|dbdefaults|dbmodules|instance_mapping|kdc)*\n\nlet xfm = transform lns (incl \"\/etc\/krb5.conf\")\n","avg_line_length":36.3,"max_line_length":77,"alphanum_fraction":0.6359398178} {"size":537,"ext":"aug","lang":"Augeas","max_stars_count":1.0,"content":"(* it's just an ini file. sections (\"titles\") are required *)\nmodule Gdm2conf =\n autoload xfm\n\n let comment = IniFile.comment \"#\" \"#\"\n let sep = IniFile.sep \"=\" \"=\"\n let entry = IniFile.indented_entry IniFile.entry_re sep comment\n let title = IniFile.indented_title IniFile.record_re\n let record = IniFile.record title entry\n\n let lns = IniFile.lns record comment\n\n let relevant = ( incl \"\/etc\/gdm\/custom.conf\" ) . \n ( incl \"\/etc\/gdm\/securitytokens.conf\" )\n\n let xfm = transform lns relevant\n","avg_line_length":31.5882352941,"max_line_length":67,"alphanum_fraction":0.6536312849} {"size":35168,"ext":"aug","lang":"Augeas","max_stars_count":5.0,"content":"module Haproxy =\n autoload xfm\n\n let comment = [ label \"#comment\" . del \/[ \\t]*#[ \\t]*\/ \"# \"\n . store \/([^ \\t\\r\\n].*[^ \\t\\r\\n]|[^ \\t\\r\\n])\/ ? ]\n\n let eol = comment ? . Util.eol\n let hard_eol = del \"\\n\" \"\\n\"\n let indent = del \/[ \\t]+\/ \" \"\n let optional_indent = ( del \/[ \\t]*\/ \"\" ) ?\n let ws = del \/[ \\t]+\/ \" \"\n let empty = eol\n let store_to_eol = store \/[^ \\r\\t\\n][^#\\n\\r]*[^ \\r\\t\\n#]|[^ \\t\\n\\r]\/\n let word = \/[^# \\n\\t]+\/\n let store_to_ws = ws? . store word\n let store_time = ws? . store \/[0-9]+(us|ms|s|m|h|d)?\/\n\n let simple_option (r:regexp) = [ indent . key r ] . eol\n let kv_option (r:regexp) = [ indent . key r . ws . store_to_eol ] . eol\n let kv_or_simple (r:regexp) = ( kv_option r | simple_option r )\n let true_bool_option (r:regexp) = [ Util.del_str \"option\" . ws . key r . value \"true\" ] . eol\n let false_bool_option (r:regexp) = [ Util.del_str \"no\" . ws . Util.del_str \"option\" . ws . key r . value \"false\" ] . eol\n let bool_option (r:regexp) = indent . ( false_bool_option r | true_bool_option r )\n\n (*************************************************************************\n LOG OPTION\n *************************************************************************)\n let log_facility = \"kern\" | \"user\" | \"mail\" | \"daemon\" | \"auth\" | \"syslog\"\n | \"lpr\" | \"news\" | \"uucp\" | \"cron\" | \"auth2\" | \"ftp\"\n | \"ntp\" | \"audit\" | \"alert\" | \"cron2\" | \"local0\"\n | \"local1\" | \"local2\" | \"local3\" | \"local4\" | \"local5\"\n | \"local6\" | \"local7\"\n let log_level = \"emerg\" | \"alert\" | \"crit\" | \"err\" | \"warning\" | \"notice\"\n | \"info\" | \"debug\"\n\n let log_opt = [ indent . key \"log\" .\n ws . [ label \"address\" . store_to_ws ] .\n ( ws . [Util.del_str \"len\" . ws . label \"length\" . store_to_ws] ) ? .\n ws . [ label \"facility\" . store log_facility ] .\n (\n ws . [ label \"level\" . store log_level ] .\n ( ws . [ label \"minlevel\" . store log_level ] )?\n )? ] . eol\n\n (*************************************************************************\n STATS OPTION\n *************************************************************************)\n let stats_level = \"user\" | \"operator\" | \"admin\"\n let stats_uid = [ key \/(uid|user)\/ . ws . store_to_ws ]\n let stats_gid = [ key \/(gid|group)\/ . ws . store_to_ws ]\n let stats_mode = [ key \"mode\" . ws . store_to_ws ]\n let stats_socket = [ indent . Util.del_str \"stats\" . ws . Util.del_str \"socket\" .\n label \"stats_socket\" . [ ws . label \"path\" . store_to_ws ] .\n ( [ ws . key \/(uid|user)\/ . ws . store_to_ws ] )? .\n ( [ ws . key \/(gid|group)\/ . ws . store_to_ws ] )? .\n ( [ ws . key \"mode\" . ws . store_to_ws ] )? .\n ( [ ws . key \"level\" . ws . store stats_level ] )?\n ] . eol\n let stats_timeout = [ indent . Util.del_str \"stats\" . ws . Util.del_str \"timeout\" .\n label \"stats_timeout\" . ws . store_time ] . eol\n let stats_maxconn = [ indent . Util.del_str \"stats\" . ws . Util.del_str \"maxconn\" .\n label \"stats_maxconn\" . ws . store \/[0-9]+\/ ] . eol\n let stats = ( stats_socket | stats_timeout | stats_maxconn )\n\n\n (*************************************************************************\n USER LISTS\n *************************************************************************)\n let userlist_group =\n let name = [ label \"name\" . store Rx.no_spaces ] in\n let group_user = [ label \"user\" . store \/[^ \\t\\n,#]+\/ ] in\n let users = [ key \"users\" . Sep.space . group_user .\n ( Util.del_str \",\" . group_user )* ] in\n indent . [ key \"group\" . Sep.space . name . ( Sep.space . users)? ] . eol\n\n let userlist_user =\n let name = [ label \"name\" . store Rx.no_spaces ] in\n let password = [ key \/password|insecure-password\/ . Sep.space .\n store Rx.no_spaces ] in\n let user_group = [ label \"group\" . store \/[^ \\t\\n,#]+\/ ] in\n let groups = [ key \"groups\" . Sep.space . user_group .\n ( Util.del_str \",\" . user_group )* ] in\n indent . [ key \"user\" . Sep.space . name .\n ( Sep.space . password )? . ( Sep.space . groups )? ] . eol\n\n let userlist =\n let name = [ label \"name\" . store Rx.no_spaces ] in\n [ key \"userlist\" . Sep.space . name . eol .\n ( userlist_user | userlist_group | empty )* ]\n\n (*************************************************************************\n SERVER AND DEFAULT-SERVER\n *************************************************************************)\n let source =\n let addr = [ label \"address\" . store (\/[^ \\t\\n:#]+\/ - \/client(ip)?|hdr_ip.*\/) ]\n in let port = [ label \"port\" . store Rx.no_spaces ]\n in let addr_and_port = addr . ( Util.del_str \":\" . port )?\n in let client = [ key \"client\" ]\n in let clientip = [ key \"clientip\" ]\n in let interface = [ key \"interface\" . Sep.space . store Rx.no_spaces ]\n in let hdr = [ label \"header\" . store \/[^ \\t\\n,\\)#]+\/ ]\n in let occ = [ label \"occurrence\" . store \/[^ \\t\\n\\)#]+\/ ]\n in let hdr_ip = Util.del_str \"hdr_ip(\" . hdr .\n ( Util.del_str \",\" . occ )? . Util.del_str \")\"\n in let usesrc = [ key \"usesrc\" . Sep.space . ( clientip | client | addr_and_port | hdr_ip ) ]\n in [ key \"source\" . Sep.space . addr_and_port .\n ( Sep.space . ( usesrc | interface ) )? ]\n\n let server_options =\n let health_addr = [ key \"health_address\" . Sep.space . store Rx.no_spaces ] in\n let backup = [ key \"backup\" ] in\n let check = [ key \"check\" ] in\n let cookie = [ key \"cookie\" . Sep.space . store Rx.no_spaces ] in\n let disabled = [ key \"disabled\" ] in\n let id = [ key \"id\" . Sep.space . store Rx.no_spaces ] in\n let observe = [ key \"observe\" . Sep.space . store Rx.no_spaces ] in\n let redir = [ key \"redir\" . Sep.space . store Rx.no_spaces ] in\n let server_source = source in\n let track = [ key \"track\" . Sep.space .\n ( [ label \"proxy\" . store \/[^ \\t\\n\\\/#]+\/ . Util.del_str \"\/\" ] )? .\n [ label \"server\" . store \/[^ \\t\\n\\\/#]+\/ ] ] in\n ( health_addr | backup | check | cookie | disabled | id | observe |\n redir | server_source | track )\n\n let default_server_options =\n let error_limit = [ key \"error-limit\" . Sep.space . store Rx.no_spaces ] in\n let fall = [ key \"fall\" . Sep.space . store Rx.no_spaces ] in\n let inter = [ key \"inter\" . Sep.space . store Rx.no_spaces ] in\n let fastinter = [ key \"fastinter\" . Sep.space . store Rx.no_spaces ] in\n let downinter = [ key \"downinter\" . Sep.space . store Rx.no_spaces ] in\n let maxconn = [ key \"maxconn\" . Sep.space . store Rx.no_spaces ] in\n let maxqueue = [ key \"maxqueue\" . Sep.space . store Rx.no_spaces ] in\n let minconn = [ key \"minconn\" . Sep.space . store Rx.no_spaces ] in\n let on_error = [ key \"on-error\" . Sep.space . store Rx.no_spaces ] in\n let health_port = [ key \"health_port\" . Sep.space . store Rx.no_spaces ] in\n let rise = [ key \"rise\" . Sep.space . store Rx.no_spaces ] in\n let slowstart = [ key \"slowstart\" . Sep.space . store Rx.no_spaces ] in\n let weight = [ key \"weight\" . Sep.space . store Rx.no_spaces ] in\n ( error_limit | fall | inter | fastinter | downinter | maxconn |\n maxqueue | minconn | on_error | health_port | rise | slowstart |\n weight )\n\n let default_server = indent . [ key \"default-server\" .\n ( Sep.space . default_server_options )+ ] . eol\n\n let server =\n let name = [ label \"name\" . store Rx.no_spaces ] in\n let addr = [ label \"address\" . store \/[^ \\t\\n:#]+\/ ] in\n let port = [ label \"port\" . store Rx.no_spaces ] in\n let addr_and_port = addr . ( Util.del_str \":\" . port )? in\n let options = ( server_options | default_server_options ) in\n indent . [ key \"server\" . Sep.space . name . Sep.space .\n addr_and_port . ( Sep.space . options )* ] . eol\n\n (*************************************************************************\n PROXY OPTIONS\n *************************************************************************)\n let acl = indent . [ key \"acl\" . ws\n . [ label \"name\" . store_to_ws ] . ws\n . [ label \"value\" . store_to_eol ]\n ] . eol\n\n let appsession = indent . [ key \"appsession\" . ws\n . [ label \"cookie\" . store_to_ws ] . ws\n . [ key \"len\" . store_to_ws ] . ws\n . [ key \"timeout\" . store_time ]\n . ( ws . [ key \"request-learn\" ] )?\n . ( ws . [ key \"prefix\" ] )?\n . ( ws . [ key \"mode\" . store \/(path-parameters|query-string)\/ ] )?\n ] . eol\n\n let backlog = kv_option \"backlog\"\n\n let balance = indent . [ key \"balance\" . ws\n . [ label \"algorithm\" . store_to_ws ]\n . ( ws . [ label \"params\" . store_to_eol ] )?\n ] . eol\n\n\n let bind_address = [ label \"bind_addr\" . ( [ label \"address\" . store \/[^ \\t,]+\/ ] )?\n . Util.del_str \":\" . [ label \"port\" . store \/[0-9-]+\/ ] ]\n let bind_address_list = bind_address . ( Util.del_str \",\" . bind_address)*\n let bind = indent . [ key \"bind\" . ws\n . bind_address_list\n . ( ws . [ key \"interface\" . store_to_ws ] )?\n . ( ws . [ key \"mss\" . store_to_ws ] )?\n . ( ws . [ key \"transparent\" ] )?\n . ( ws . [ key \"id\" . store_to_ws ] )?\n . ( ws . [ key \"name\" . store_to_ws ] )?\n . ( ws . [ key \"defer-accept\" ] )?\n ] . eol\n\n let bind_process_id = [ key \/[0-9]+\/ ]\n let bind_process_id_list = [ label \"number\"\n . bind_process_id . ( ws . bind_process_id )*\n ]\n let bind_process = indent . [ key \"bind-process\" . ws\n . (store \/(all|odd|even)\/|bind_process_id_list)\n ] . eol\n\n let block = indent . [ key \"block\" . ws\n . [ label \"condition\" . store_to_eol ]\n ] . hard_eol\n\n let capture_cookie = indent . Util.del_str \"capture\" . ws . Util.del_str \"cookie\" . ws\n . [ label \"capture_cookie\"\n . [ label \"name\" . store_to_ws ] . ws\n . [ label \"len\" . store \/[0-9]+\/ ]\n ] . eol\n\n let capture_request_header = indent\n . Util.del_str \"capture request header\" . ws\n . [ label \"capture_request_header\"\n . [ label \"name\" . store_to_ws ] . ws\n . [ key \"len\" . ws . store \/[0-9]+\/ ]\n ] . eol\n\n let capture_response_header = indent\n . Util.del_str \"capture response header\" . ws\n . [ label \"capture_response_header\"\n . [ label \"name\" . store_to_ws ] . ws\n . [ label \"len\" . store \/[0-9]+\/ ]\n ] . eol\n\n let clitimeout = kv_option \"clitimeout\"\n\n let contimeout = kv_option \"contimeout\"\n\n let cookie = indent . [ key \"cookie\" . ws\n . [ label \"name\" . store_to_ws ]\n . ( ws . [ label \"method\" . store \/(rewrite|insert|prefix)\/ ] )?\n . ( ws . [ key \"indirect\" ] )?\n . ( ws . [ key \"nocache\" ] )?\n . ( ws . [ key \"postonly\" ] )?\n . ( ws . [ key \"preserve\" ] )?\n . ( ws . [ key \"httponly\" ] )?\n . ( ws . [ key \"secure\" ] )?\n . ( ws . [ key \"domain\" . store_to_ws ] )?\n . ( ws . [ key \"maxidle\" . store_time ] )?\n . ( ws . [ key \"maxlife\" . store_time ] )?\n ] . eol\n\n (* #XXX default-server *)\n\n let default_backend = kv_option \"default_backend\"\n\n let disabled = simple_option \"disabled\"\n\n let dispatch = indent . [ key \"dispatch\" . ws\n . [ label \"address\" . store \/[^ \\t,]+\/ ]\n . Util.del_str \":\" . [ label \"port\" . store \/[0-9-]+\/ ] ]\n\n let enabled = simple_option \"enabled\"\n\n let errorfile = indent . [ key \"errorfile\" . ws\n . [ label \"code\" . store \/[0-9]+\/ ] . ws\n . [ label \"file\" . store_to_eol ]\n ] . eol\n\n let error_redir (keyword:string) = indent . [ key keyword . ws\n . [ label \"code\" . store \/[0-9]+\/ ] . ws\n . [ label \"url\" . store_to_eol ]\n ] . eol\n\n let errorloc = error_redir \"errorloc\"\n let errorloc302 = error_redir \"errorloc302\"\n let errorloc303 = error_redir \"errorloc303\"\n\n let force_persist = indent . [ key \"force-persist\" . ws\n . [ label \"condition\" . store_to_eol ]\n ] . eol\n\n let fullconn = kv_option \"fullconn\"\n\n let grace = kv_option \"grace\"\n\n let hash_type = kv_option \"hash-type\"\n\n let http_check_disable_on_404 = indent\n . Util.del_str \"http-check\" . ws . Util.del_str \"disable-on-404\"\n . [ label \"http_check_disable_on_404\" ] . eol\n\n let http_check_expect = indent . Util.del_str \"http-check\" . ws . Util.del_str \"expect\"\n . [ label \"http_check_expect\"\n . ( ws . [ Util.del_str \"!\" . label \"not\" ] )?\n . ws . [ label \"match\" . store \/(status|rstatus|string|rstring)\/ ]\n . ws . [ label \"pattern\" . store_to_eol ]\n ] . eol\n\n let http_check_send_state = indent . Util.del_str \"http-check\" . ws . Util.del_str \"send-state\"\n . [ label \"http_check_keep_state\" ] . eol\n\n let http_request =\n let allow = [ key \"allow\" ]\n in let deny = [ key \"deny\" ]\n in let realm = [ key \"realm\" . Sep.space . store Rx.no_spaces ]\n in let auth = [ key \"auth\" . ( Sep.space . realm )? ]\n in let cond = [ key \/if|unless\/ . Sep.space . store_to_eol ]\n in indent . [ Util.del_str \"http-request\" . label \"http_request\" .\n Sep.space . ( allow | deny | auth ) . ( Sep.space . cond )? ]\n . eol\n\n let http_send_name_header = kv_or_simple \"http-send-name-header\"\n\n let id = kv_option \"id\"\n\n let ignore_persist = indent . [ key \"ignore-persist\" . ws\n . [ label \"condition\" . store_to_eol ]\n ] . eol\n\n let log = (indent . [ key \"log\" . ws . store \"global\" ] . eol ) | log_opt |\n (indent . Util.del_str \"no\" . ws . [ key \"log\" . value \"false\" ] . eol)\n\n let maxconn = kv_option \"maxconn\"\n\n let mode = kv_option \"mode\"\n\n let monitor_fail = indent . Util.del_str \"monitor\" . ws . Util.del_str \"fail\"\n . [ key \"monitor_fail\" . ws\n . [ label \"condition\" . store_to_eol ]\n ] . eol\n\n let monitor_net = kv_option \"monitor-net\"\n\n let monitor_uri = kv_option \"monitor-uri\"\n\n let abortonclose = bool_option \"abortonclose\"\n\n let accept_invalid_http_request = bool_option \"accept-invalid-http-request\"\n\n let accept_invalid_http_response = bool_option \"accept-invalid-http-response\"\n\n let allbackups = bool_option \"allbackups\"\n\n let checkcache = bool_option \"checkcache\"\n\n let clitcpka = bool_option \"clitcpka\"\n\n let contstats = bool_option \"contstats\"\n\n let dontlog_normal = bool_option \"dontlog-normal\"\n\n let dontlognull = bool_option \"dontlognull\"\n\n let forceclose = bool_option \"forceclose\"\n\n let forwardfor =\n let except = [ key \"except\" . Sep.space . store Rx.no_spaces ]\n in let header = [ key \"header\" . Sep.space . store Rx.no_spaces ]\n in let if_none = [ key \"if-none\" ]\n in indent . [ Util.del_str \"option\" . ws . Util.del_str \"forwardfor\" . label \"forwardfor\" .\n ( Sep.space . except )? . ( Sep.space . header )? .\n ( Sep.space . if_none )? ] . eol\n\n let http_no_delay = bool_option \"http-no-delay\"\n\n let http_pretend_keepalive = bool_option \"http-pretend-keepalive\"\n\n let http_server_close = bool_option \"http-server-close\"\n\n let http_use_proxy_header = bool_option \"http-use-proxy-header\"\n\n let httpchk =\n let uri = [ label \"uri\" . Sep.space . store Rx.no_spaces ]\n in let method = [ label \"method\" . Sep.space . store Rx.no_spaces ]\n in let version = [ label \"version\" . Sep.space . store_to_eol ]\n in indent . [ Util.del_str \"option\" . ws . Util.del_str \"httpchk\" . label \"httpchk\" .\n ( uri | method . uri . version? )? ] . eol\n\n let httpclose = bool_option \"httpclose\"\n\n let httplog =\n let clf = [ Sep.space . key \"clf\" ]\n in indent . [ Util.del_str \"option\" . ws . Util.del_str \"httplog\" . label \"httplog\" .\n clf? ] . eol\n\n let http_proxy = bool_option \"http_proxy\"\n\n let independant_streams = bool_option \"independant-streams\"\n\n let ldap_check = bool_option \"ldap-check\"\n\n let log_health_checks = bool_option \"log-health-checks\"\n\n let log_separate_errors = bool_option \"log-separate-errors\"\n\n let logasap = bool_option \"logasap\"\n\n let mysql_check =\n let user = [ key \"user\" . Sep.space . store Rx.no_spaces ]\n in indent . [ Util.del_str \"option\" . ws . Util.del_str \"mysql-check\" .\n label \"mysql_check\" . ( Sep.space . user )? ] . eol\n\n let nolinger = bool_option \"nolinger\"\n\n let originalto =\n let except = [ key \"except\" . Sep.space . store Rx.no_spaces ]\n in let header = [ key \"header\" . Sep.space . store Rx.no_spaces ]\n in indent . [ Util.del_str \"option\" . ws . Util.del_str \"originalto\" . label \"originalto\" .\n ( Sep.space . except )? . ( Sep.space . header )? ] . eol\n\n\n let persist = bool_option \"persist\"\n\n let redispatch = bool_option \"redispatch\"\n\n let smtpchk =\n let hello = [ label \"hello\" . store Rx.no_spaces ]\n in let domain = [ label \"domain\" . store Rx.no_spaces ]\n in indent . [ Util.del_str \"option\" . ws . Util.del_str \"smtpchk\" . label \"smtpchk\" .\n ( Sep.space . hello . Sep.space . domain )? ] . eol\n\n let socket_stats = bool_option \"socket-stats\"\n\n let splice_auto = bool_option \"splice-auto\"\n\n let splice_request = bool_option \"splice-request\"\n\n let splice_response = bool_option \"splice-response\"\n\n let srvtcpka = bool_option \"srvtcpka\"\n\n let ssl_hello_chk = bool_option \"ssl-hello-chk\"\n\n let tcp_smart_accept = bool_option \"tcp-smart-accept\"\n\n let tcp_smart_connect = bool_option \"tcp-smart-connect\"\n\n let tcpka = bool_option \"tcpka\"\n\n let tcplog = bool_option \"tcplog\"\n\n let old_transparent = bool_option \"transparent\"\n\n let persist_rdp_cookie = indent . [ Util.del_str \"persist\" . ws . Util.del_str \"rdp-cookie\" .\n label \"persist-rdp-cookie\" . ( Util.del_str \"(\" . store \/[^\\)]+\/ . Util.del_str \")\" )?\n ] . eol\n\n let rate_limit_sessions = indent . [ Util.del_str \"rate-limit\" . ws . Util.del_str \"sessions\" .\n ws . label \"rate-limit-sessions\" . store \/[0-9]+\/ ] . eol\n\n let redirect =\n let location = [ key \"location\" ]\n in let prefix = [ key \"prefix\" ]\n in let scheme = [key \"scheme\"]\n in let to = [ label \"to\" . store Rx.no_spaces ]\n in let code = [ key \"code\" . Sep.space . store Rx.no_spaces ]\n in let option_drop_query = [ key \"drop-query\" ]\n in let option_append_slash = [ key \"append-slash\" ]\n in let option_set_cookie = [ key \"set-cookie\" . Sep.space .\n [ label \"cookie\" . store \/[^ \\t\\n=#]+\/ ] .\n ( [ Util.del_str \"=\" . label \"value\" . store Rx.no_spaces ] )? ]\n in let option_clear_cookie = [ key \"clear-cookie\" . Sep.space .\n [ label \"cookie\" . store Rx.no_spaces ] ]\n in let options = (option_drop_query | option_append_slash | option_set_cookie | option_clear_cookie)\n in let option = [ label \"options\" . options . ( Sep.space . options )* ]\n in let cond = [ key \/if|unless\/ . Sep.space . store_to_eol ]\n in indent . [ key \"redirect\" . Sep.space . ( location | prefix | scheme ) .\n Sep.space . to . ( Sep.space . code )? . ( Sep.space . option )? .\n ( Sep.space . cond )? ] . eol\n\n let reqadd = kv_option \"reqadd\"\n\n let reqallow = kv_option \"reqallow\"\n\n let reqiallow = kv_option \"reqiallow\"\n\n let reqdel = kv_option \"reqdel\"\n\n let reqidel = kv_option \"reqidel\"\n\n let reqdeny = kv_option \"reqdeny\"\n\n let reqideny = kv_option \"reqideny\"\n\n let reqpass = kv_option \"reqpass\"\n\n let reqipass = kv_option \"reqipass\"\n\n let reqrep = kv_option \"reqrep\"\n\n let reqirep = kv_option \"reqirep\"\n\n let reqtarpit = kv_option \"reqtarpit\"\n\n let reqitarpit = kv_option \"reqitarpit\"\n\n let retries = kv_option \"retries\"\n\n let rspadd = kv_option \"rspadd\"\n\n let rspdel = kv_option \"rspdel\"\n\n let rspidel = kv_option \"rspidel\"\n\n let rspdeny = kv_option \"rspdeny\"\n\n let rspideny = kv_option \"rspideny\"\n\n let rsprep = kv_option \"rsprep\"\n\n let rspirep = kv_option \"rspirep\"\n\n (* XXX server *)\n\n\n let srvtimeout = kv_option \"srvtimeout\"\n\n let stats_admin =\n let cond = [ key \/if|unless\/ . Sep.space . store Rx.space_in ]\n in indent . [ Util.del_str \"stats\" . ws . Util.del_str \"admin\" . label \"stats_admin\" .\n Sep.space . cond ] . eol\n\n let stats_auth =\n let user = [ label \"user\" . store \/[^ \\t\\n:#]+\/ ]\n in let passwd = [ label \"passwd\" . store word ]\n in indent . [ Util.del_str \"stats\" . ws . Util.del_str \"auth\" . label \"stats_auth\" .\n Sep.space . user . Util.del_str \":\" . passwd ] . eol\n\n let stats_enable = indent . [ Util.del_str \"stats\" . ws . Util.del_str \"enable\" .\n label \"stats_enable\" ] . eol\n\n let stats_hide_version = indent . [ Util.del_str \"stats\" . ws . Util.del_str \"hide-version\" .\n label \"stats_hide_version\" ] . eol\n\n let stats_http_request =\n let allow = [ key \"allow\" ]\n in let deny = [ key \"deny\" ]\n in let realm = [ key \"realm\" . Sep.space . store Rx.no_spaces ]\n in let auth = [ key \"auth\" . ( Sep.space . realm )? ]\n in let cond = [ key \/if|unless\/ . Sep.space . store_to_eol ]\n in indent . [ Util.del_str \"stats\" . ws . Util.del_str \"http-request\" .\n label \"stats_http_request\" . Sep.space . ( allow | deny | auth ) .\n ( Sep.space . cond )? ] . eol\n\n let stats_realm = indent . [ Util.del_str \"stats\" . ws . Util.del_str \"realm\" .\n label \"stats_realm\" . Sep.space . store_to_eol ] . eol\n\n let stats_refresh = indent . [ Util.del_str \"stats\" . ws . Util.del_str \"refresh\" .\n label \"stats_refresh\" . Sep.space . store word ] . eol\n\n let stats_scope = indent . [ Util.del_str \"stats\" . ws . Util.del_str \"scope\" .\n label \"stats_scope\" . Sep.space . store word ] . eol\n\n let stats_show_desc =\n let desc = [ label \"description\" . store_to_eol ]\n in indent . [ Util.del_str \"stats\" . ws . Util.del_str \"show-desc\" .\n label \"stats_show_desc\" . ( Sep.space . desc )? ] . eol\n\n let stats_show_legends = indent . [ Util.del_str \"stats\" . ws . Util.del_str \"show-legends\" .\n label \"stats_show_legends\" ] . eol\n\n let stats_show_node =\n let node = [ label \"node\" . store_to_eol ]\n in indent . [ Util.del_str \"stats\" . ws . Util.del_str \"show-node\" .\n label \"stats_show_node\" . ( Sep.space . node )? ] . eol\n\n let stats_uri = indent . [ Util.del_str \"stats\" . ws . Util.del_str \"uri\" .\n label \"stats_uri\" . Sep.space . store_to_eol ] . eol\n\n let stick_match =\n let table = [ key \"table\" . Sep.space . store Rx.no_spaces ]\n in let cond = [ key \/if|unless\/ . Sep.space . store_to_eol ]\n in let pattern = [ label \"pattern\" . store Rx.no_spaces ]\n in indent . [ Util.del_str \"stick\" . ws . Util.del_str \"match\" . label \"stick_match\" .\n Sep.space . pattern . ( Sep.space . table )? .\n ( Sep.space . cond )? ] . eol\n\n let stick_on =\n let table = [ key \"table\" . Sep.space . store Rx.no_spaces ]\n in let cond = [ key \/if|unless\/ . Sep.space . store_to_eol ]\n in let pattern = [ label \"pattern\" . store Rx.no_spaces ]\n in indent . [ Util.del_str \"stick\" . ws . Util.del_str \"on\" . label \"stick_on\" .\n Sep.space . pattern . ( Sep.space . table )? .\n ( Sep.space . cond )? ] . eol\n\n let stick_store_request =\n let table = [ key \"table\" . Sep.space . store Rx.no_spaces ]\n in let cond = [ key \/if|unless\/ . Sep.space . store_to_eol ]\n in let pattern = [ label \"pattern\" . store Rx.no_spaces ]\n in indent . [ Util.del_str \"stick\" . ws . Util.del_str \"store-request\" .\n label \"stick_store_request\" . Sep.space . pattern .\n ( Sep.space . table )? . ( Sep.space . cond )? ] . eol\n\n let stick_table =\n let type_ip = [ key \"type\" . Sep.space . store \"ip\" ]\n in let type_integer = [ key \"type\" . Sep.space . store \"integer\" ]\n in let len = [ key \"len\" . Sep.space . store Rx.no_spaces ]\n in let type_string = [ key \"type\" . Sep.space . store \"string\" .\n ( Sep.space . len )? ]\n in let type = ( type_ip | type_integer | type_string )\n in let size = [ key \"size\" . Sep.space . store Rx.no_spaces ]\n in let expire = [ key \"expire\" . Sep.space . store Rx.no_spaces ]\n in let nopurge = [ key \"nopurge\" ]\n in indent . [ key \"stick-table\" . Sep.space . type . Sep.space .\n size . ( Sep.space . expire )? . ( Sep.space . nopurge )? ] .\n eol\n\n let tcp_request_content_accept =\n let cond = [ key \/if|unless\/ . Sep.space . store_to_eol ]\n in indent . [ Util.del_str \"tcp-request content accept\" .\n label \"tcp_request_content_accept\" . ( Sep.space . cond )? ] .\n eol\n\n let tcp_request_content_reject =\n let cond = [ key \/if|unless\/ . Sep.space . store_to_eol ]\n in indent . [ Util.del_str \"tcp-request content reject\" .\n label \"tcp_request_content_reject\" . ( Sep.space . cond )? ] .\n eol\n\n let tcp_request_inspect_delay = indent .\n [ Util.del_str \"tcp-request\" . ws . Util.del_str \"inspect-delay\" .\n label \"tcp_request_inspect_delay\" . Sep.space . store_to_eol ] .\n eol\n\n let timeout_check = indent . [ Util.del_str \"timeout\" . ws . Util.del_str \"check\" .\n label \"timeout_check\" . Sep.space . store_to_eol ] . eol\n\n let timeout_client = indent . [ Util.del_str \"timeout\" . ws . Util.del_str \"client\" .\n label \"timeout_client\" . Sep.space . store_to_eol ] . eol\n\n let timeout_clitimeout = indent . [ Util.del_str \"timeout\" . ws . Util.del_str \"clitimeout\" .\n label \"timeout_clitimeout\" . Sep.space . store_to_eol ] . eol\n\n let timeout_connect = indent . [ Util.del_str \"timeout\" . ws . Util.del_str \"connect\" .\n label \"timeout_connect\" . Sep.space . store_to_eol ] . eol\n\n let timeout_contimeout = indent . [ Util.del_str \"timeout\" . ws . Util.del_str \"contimeout\" .\n label \"timeout_contimeout\" . Sep.space . store_to_eol ] . eol\n\n let timeout_http_keep_alive = indent . [ Util.del_str \"timeout\" . ws . Util.del_str \"http-keep-alive\" .\n label \"timeout_http_keep_alive\" . Sep.space . store_to_eol ] . eol\n\n let timeout_http_request = indent . [ Util.del_str \"timeout\" . ws . Util.del_str \"http-request\" .\n label \"timeout_http_request\" . Sep.space . store_to_eol ] . eol\n\n let timeout_queue = indent . [ Util.del_str \"timeout\" . ws . Util.del_str \"queue\" .\n label \"timeout_queue\" . Sep.space . store_to_eol ] . eol\n\n let timeout_server = indent . [ Util.del_str \"timeout\" . ws . Util.del_str \"server\" .\n label \"timeout_server\" . Sep.space . store_to_eol ] . eol\n\n let timeout_srvtimeout = indent . [ Util.del_str \"timeout\" . ws . Util.del_str \"srvtimeout\" .\n label \"timeout_srvtimeout\" . Sep.space . store_to_eol ] . eol\n\n let timeout_tarpit = indent . [ Util.del_str \"timeout\" . ws . Util.del_str \"tarpit\" .\n label \"timeout_tarpit\" . Sep.space . store_to_eol ] . eol\n\n let transparent = simple_option \"transparent\"\n\n let use_backend =\n let cond = [ key \/if|unless\/ . Sep.space . store_to_eol ]\n in indent . [ key \"use_backend\" . Sep.space . store Rx.no_spaces .\n Sep.space . cond ] . eol\n\n let unique_id_format = indent . [ key \"unique-id-format\" .\n Sep.space . store_to_eol ] . eol\n\n let unique_id_header = indent . [ key \"unique-id-header\" .\n Sep.space . store_to_eol ] . eol\n\n let use_server =\n let cond = [ key \/if|unless\/ . Sep.space . store_to_eol ]\n in indent . [ key \"use-server\" . Sep.space . store Rx.no_spaces .\n Sep.space . cond ] . eol\n\n (*************************************************************************\n GLOBAL SECTION\n *************************************************************************)\n let global_simple_opts = \"daemon\" | \"noepoll\" | \"nokqueue\" | \"nopoll\" |\n \"nosplice\" | \"nogetaddrinfo\" | \"tune.ssl.force-private-cache\" |\n \"debug\" | \"quiet\"\n\n let global_kv_opts = \"ca-base\" | \"chroot\" | \"crt-base\" | \"gid\" | \"group\" |\n \"log-send-hostname\" | \"nbproc\" | \"pidfile\" | \"uid\" | \"ulimit-n\" |\n \"user\" | \"ssl-server-verify\" | \"node\" | \"description\" |\n \"max-spread-checks\" | \"maxconn\" | \"maxconnrate\" |\n \"maxcomprate\" | \"maxcompcpuusage\" | \"maxpipes\" | \"maxsessrate\" |\n \"maxsslconn\" | \"maxsslrate\" | \"spread-checks\" | \"tune.bufsize\" |\n \"tune.chksize\" | \"tune.comp.maxlevel\" | \"tune.http.cookielen\" |\n \"tune.http.maxhdr\" | \"tune.idletimer\" | \"tune.maxaccept\" |\n \"tune.maxpollevents\" | \"tune.maxrewrite\" | \"tune.pipesize\" |\n \"tune.rcvbuf.client\" | \"tune.rcvbuf.server\" | \"tune.sndbuf.client\" |\n \"tune.sndbuf.server\" | \"tune.ssl.cachesize\" | \"tune.ssl.lifetime\" |\n \"tune.ssl.maxrecord\" | \"tune.ssl.default-dh-param\" |\n \"tune.zlib.memlevel\" | \"tune.zlib.windowsize\"\n\n let stats_bind_process = indent . [ Util.del_str \"stats\" . ws . Util.del_str \"bind-process\" .\n label \"stats_bind-process\" . Sep.space . store_to_eol ] . eol\n\n let unix_bind =\n let kv (r:regexp) = [ key r . Sep.space . store Rx.no_spaces ]\n in indent . [ key \"unix-bind\" . ( Sep.space . kv \"prefix\") ? .\n ( Sep.space . kv \"mode\") ? . ( Sep.space . kv \"user\") ? .\n ( Sep.space . kv \"uid\") ? . ( Sep.space . kv \"group\") ? .\n ( Sep.space . kv \"gid\") ? ] . eol\n\n\n let global = [ key \"global\" . eol .\n (simple_option global_simple_opts | kv_or_simple global_kv_opts | stats |\n log_opt | unix_bind | stats_bind_process | empty ) * ]\n\n\n (*option for future compatibility. It's essentially a fallback to simple option form*)\n\n let common_option = kv_or_simple \/[^# \\n\\t\\\/]+\/\n\n (*************************************************************************\n LISTEN SECTION\n *************************************************************************)\n\n\n let proxy_options = (\n acl |\n appsession |\n backlog |\n balance |\n bind |\n bind_process |\n block |\n capture_cookie |\n capture_request_header |\n capture_response_header |\n clitimeout |\n contimeout |\n cookie |\n default_backend |\n disabled |\n dispatch |\n enabled |\n errorfile |\n errorloc |\n errorloc302 |\n errorloc303 |\n force_persist |\n fullconn |\n grace |\n hash_type |\n http_check_disable_on_404 |\n http_check_expect |\n http_check_send_state |\n http_request |\n http_send_name_header |\n id |\n ignore_persist |\n log |\n maxconn |\n mode |\n monitor_fail |\n monitor_net |\n monitor_uri |\n abortonclose |\n accept_invalid_http_request |\n accept_invalid_http_response |\n allbackups |\n checkcache |\n clitcpka |\n contstats |\n default_server |\n dontlog_normal |\n dontlognull |\n forceclose |\n forwardfor |\n http_no_delay |\n http_pretend_keepalive |\n http_server_close |\n http_use_proxy_header |\n httpchk |\n httpclose |\n httplog |\n http_proxy |\n independant_streams |\n ldap_check |\n log_health_checks |\n log_separate_errors |\n logasap |\n mysql_check |\n nolinger |\n originalto |\n persist |\n redispatch |\n smtpchk |\n socket_stats |\n splice_auto |\n splice_request |\n splice_response |\n srvtcpka |\n ssl_hello_chk |\n tcp_smart_accept |\n tcp_smart_connect |\n tcpka |\n tcplog |\n old_transparent |\n persist_rdp_cookie |\n rate_limit_sessions |\n redirect |\n reqadd |\n reqallow |\n reqiallow |\n reqdel |\n reqidel |\n reqdeny |\n reqideny |\n reqpass |\n reqipass |\n reqrep |\n reqirep |\n reqtarpit |\n reqitarpit |\n retries |\n rspadd |\n rspdel |\n rspidel |\n rspdeny |\n rspideny |\n rsprep |\n rspirep |\n server |\n srvtimeout |\n stats_admin |\n stats_auth |\n stats_enable |\n stats_hide_version |\n stats_http_request |\n stats_realm |\n stats_refresh |\n stats_scope |\n stats_show_desc |\n stats_show_legends |\n stats_show_node |\n stats_uri |\n stick_match |\n stick_on |\n stick_store_request |\n stick_table |\n tcp_request_content_accept |\n tcp_request_content_reject |\n tcp_request_inspect_delay |\n timeout_check |\n timeout_client |\n timeout_clitimeout |\n timeout_connect |\n timeout_contimeout |\n timeout_http_keep_alive |\n timeout_http_request |\n timeout_queue |\n timeout_server |\n timeout_srvtimeout |\n timeout_tarpit |\n transparent |\n use_backend |\n unique_id_format |\n unique_id_header |\n use_server |\n common_option)\n\n let listen =\n let name = [ label \"name\" . store_to_ws ] in\n [ key \"listen\" . Sep.space . name .\n eol . (proxy_options | empty)*]\n\n (*************************************************************************\n BACKEND SECTION\n *************************************************************************)\n\n let backend =\n let name = [ label \"name\" . store_to_ws ] in\n [ key \"backend\" . Sep.space . name . eol .\n (proxy_options | empty)*]\n\n (*************************************************************************\n FRONTEND SECTION\n *************************************************************************)\n\n let frontend =\n let name = [ label \"name\" . store_to_ws ] in\n [ key \"frontend\" . Sep.space . name . eol .\n (proxy_options | empty)*]\n\n (*************************************************************************\n DEFAULTS SECTION\n *************************************************************************)\n\n let defaults =\n [ key \"defaults\" . eol .\n (proxy_options | empty)*]\n\n\n (*************************************************************************)\n\n let lns = empty * . (optional_indent . (global | defaults | listen | backend | frontend | userlist)) *\n\n let xfm = transform lns (incl \"\/etc\/haproxy\/haproxy.cfg\")\n","avg_line_length":39.3378076063,"max_line_length":124,"alphanum_fraction":0.5416003185} {"size":1676,"ext":"aug","lang":"Augeas","max_stars_count":1.0,"content":"module Test_someautomountmaps =\n let script_content = Someautomountmaps.script_content\n let comment = Someautomountmaps.comment\n let automount_key = Someautomountmaps.automount_key\n let entry = Someautomountmaps.entry\n let lns = Someautomountmaps.lns\n\n test script_content get\n \"#!\/bin\/bash\\nfoo\\n bar\\n\\tbaz\\nbletch\\n#comment\\n\"\n = { \"script_content\" =\n \"#!\/bin\/bash\\nfoo\\n bar\\n\\tbaz\\nbletch\\n#comment\\n\" }\n test comment get \"# bla\\n\" = { \"#comment\" = \"bla\" }\n test entry get \"\\n\" = *\n test entry get \"foo -fstype=nfs,ro filer:\/vol\/foo\\n\" =\n { \"entry\" = \"foo\"\n { \"options\" = \"fstype=nfs,ro\" }\n { \"location\" = \"filer:\/vol\/foo\" }\n }\n test entry get \"foo filer:\/vol\/foo\\n\" =\n { \"entry\" = \"foo\"\n { \"options\" }\n { \"location\" = \"filer:\/vol\/foo\" }\n }\n test lns get \"foo filer:\/vol\/foo\\n\" =\n { \"entry\" = \"foo\"\n { \"options\" }\n { \"location\" = \"filer:\/vol\/foo\" }\n }\n test lns get \"\\n\" = { }\n test lns get \"# first line comment but not a hashbang!\nfoo -fstype=nfs,ro filer:\/vol\/foo\nbar filer2:\/vol\/bar\n# another comment\nbaz asdfsf\n\" = (\n { \"#comment\" = \"first line comment but not a hashbang!\" }\n { \"entry\" = \"foo\"\n { \"options\" = \"fstype=nfs,ro\" }\n { \"location\" = \"filer:\/vol\/foo\" }\n }\n { \"entry\" = \"bar\"\n { \"options\" }\n { \"location\" = \"filer2:\/vol\/bar\" }\n }\n { \"#comment\" = \"another comment\" }\n { \"entry\" = \"baz\"\n { \"options\" }\n { \"location\" = \"asdfsf\" }\n }\n)\n\n test lns put \"foo filer:\/vol\/foo\\n\" after set \"\/entry[.='foo']\/options\" \"proto=tcp\" = \"foo -proto=tcp filer:\/vol\/foo\\n\"\n","avg_line_length":31.6226415094,"max_line_length":123,"alphanum_fraction":0.5519093079} {"size":766,"ext":"aug","lang":"Augeas","max_stars_count":1.0,"content":"module Test_auditdconf =\n let empty = Auditdconf.empty\n let entry = Auditdconf.entry\n let lns = Auditdconf.lns\n\n test empty get \"\\n\" = {}\n test entry get \"\\n\" = *\n test lns get \"#\n# This file controls the configuration of the audit daemon\n#\n\nlog_file = \/var\/log\/audit\/audit.log\nlog_format = RAW\nlog_group = root\npriority_boost = 4\nflush = INCREMENTAL\nfreq = 20\nnum_logs = 4\ndisp_qos = lossy\n\" = (\n { \"#comment\" }\n { \"#comment\" = \"This file controls the configuration of the audit daemon\" }\n { \"#comment\" }\n { }\n { \"log_file\" = \"\/var\/log\/audit\/audit.log\" }\n { \"log_format\" = \"RAW\" }\n { \"log_group\" = \"root\" }\n { \"priority_boost\" = \"4\" }\n { \"flush\" = \"INCREMENTAL\" }\n { \"freq\" = \"20\" }\n { \"num_logs\" = \"4\" }\n { \"disp_qos\" = \"lossy\" }\n)\n\n","avg_line_length":21.8857142857,"max_line_length":77,"alphanum_fraction":0.6044386423} {"size":244,"ext":"aug","lang":"Augeas","max_stars_count":6.0,"content":"AudioBufferSource id2 { url https:\/\/raw.githubusercontent.com\/borismus\/webaudioapi.com\/master\/content\/posts\/audio-tag\/chrono.mp3 \n, loop true} [ gain ] \nGain gain { gain 2 } [ conv ] \nConvolver conv { url assets\/ogg\/irHall.ogg } [ output ]\nEnd","avg_line_length":48.8,"max_line_length":129,"alphanum_fraction":0.737704918} {"size":1992,"ext":"aug","lang":"Augeas","max_stars_count":2.0,"content":"(* MySQL module for Augeas *)\n(* Author: Tim Stoop <tim@kumina.nl> *)\n(* Heavily based on php.aug by Raphael Pinson *)\n(* <raphink@gmail.com> *)\n(* *)\n\nmodule MySQL =\n autoload xfm\n\n(************************************************************************\n * INI File settings\n *************************************************************************)\nlet comment = IniFile.comment IniFile.comment_re \"#\"\n\nlet sep = IniFile.sep IniFile.sep_re IniFile.sep_default\n\nlet entry =\n let bare = Quote.do_dquote_opt_nil (store \/[^#;\" \\t\\r\\n]+([ \\t]+[^#;\" \\t\\r\\n]+)*\/)\n in let quoted = Quote.do_dquote (store \/[^\"\\r\\n]*[#;]+[^\"\\r\\n]*\/)\n in [ Util.indent . key IniFile.entry_re . sep . Sep.opt_space . bare . (comment|IniFile.eol) ]\n | [ Util.indent . key IniFile.entry_re . sep . Sep.opt_space . quoted . (comment|IniFile.eol) ]\n | [ Util.indent . key IniFile.entry_re . store \/\/ . (comment|IniFile.eol) ]\n | comment\n\n(************************************************************************\n * sections, led by a \"[section]\" header\n * We can't use titles as node names here since they could contain \"\/\"\n * We remove #comment from possible keys\n * since it is used as label for comments\n * We also remove \/ as first character\n * because augeas doesn't like '\/' keys (although it is legal in INI Files)\n *************************************************************************)\nlet title = IniFile.indented_title_label \"target\" IniFile.record_label_re\nlet record = IniFile.record title entry\n\nlet includedir = Build.key_value_line \/!include(dir)?\/ Sep.space (store Rx.fspath)\n . (comment|IniFile.empty)*\n\nlet lns = (comment|IniFile.empty)* . (record|includedir)*\n\nlet filter = (incl \"\/etc\/mysql\/my.cnf\")\n . (incl \"\/etc\/mysql\/conf.d\/*.cnf\")\n . (incl \"\/etc\/my.cnf\")\n . (incl \"\/etc\/my.cnf.d\/*.cnf\")\n\nlet xfm = transform lns filter","avg_line_length":43.3043478261,"max_line_length":98,"alphanum_fraction":0.5170682731} {"size":3168,"ext":"aug","lang":"Augeas","max_stars_count":1.0,"content":"module Test_oned =\n\n test Oned.lns get\n\"ENTRY = 123\n\" =?\n\n test Oned.lns get\n\"ENTRY = \\\"MANAGE ABC\\\"\n\" =?\n\n test Oned.lns get\n\"TM_MAD_CONF = [NAME=123]\n\" =?\n\n test Oned.lns get \"\nA = [ NAME=123 ]\n\" =?\n\n test Oned.lns get\n\"A = [\nNAME=123\n]\n\" = ?\n\n test Oned.lns get\n\"A = [\nNAME=123, NAME2=2\n]\n\" = ?\n\n test Oned.lns get\n\n\"#abc\nLOG = [\n SYSTEM = \\\"file\\\",\n DEBUG_LEVEL = 3\n]\n\" =?\n\n test Oned.lns get\n\"A=1\nA=1\nB=2 # comment\n# abc\n#\n\n C=[\n A=\\\"B\\\",\n A=\\\"B\\\",#abc\n # abc\n X=\\\"Y\\\",\n A=123\n]\n\" =?\n\n test Oned.lns get\n\"C=[\n A=123, #abc\n B=223# abc\n]\n\"\n=?\n test Oned.lns get\n\"TM_MAD = [\n EXECUTABLE = \\\"one_tm\\\",\n ARGUMENTS = \\\"-t 15 -d dummy,lvm,shared,fs_lvm,qcow2,ssh,ceph,dev,vcenter,iscsi_libvirt\\\"\n]\nINHERIT_DATASTORE_ATTR = \\\"CEPH_HOST\\\"\n\"\n=?\n\ntest Oned.lns get\n\"LOG = [\n SYSTEM = \\\"file\\\",\n DEBUG_LEVEL = 3\n]\n\nMONITORING_INTERVAL_HOST = 180\nMONITORING_INTERVAL_VM = 180\nMONITORING_INTERVAL_DATASTORE = 300\nMONITORING_INTERVAL_MARKET = 600\nMONITORING_THREADS = 50\n\nSCRIPTS_REMOTE_DIR=\/var\/tmp\/one\nPORT = 2633\nLISTEN_ADDRESS = \\\"0.0.0.0\\\"\nDB = [ BACKEND = \\\"sqlite\\\" ]\n\nVNC_PORTS = [\n START = 5900\n]\n\nFEDERATION = [\n MODE = \\\"STANDALONE\\\",\n ZONE_ID = 0,\n SERVER_ID = -1,\n MASTER_ONED = \\\"\\\"\n]\n\nRAFT = [\n LIMIT_PURGE = 100000,\n LOG_RETENTION = 500000,\n LOG_PURGE_TIMEOUT = 600,\n ELECTION_TIMEOUT_MS = 2500,\n BROADCAST_TIMEOUT_MS = 500,\n XMLRPC_TIMEOUT_MS = 450\n]\n\nDEFAULT_COST = [\n CPU_COST = 0,\n MEMORY_COST = 0,\n DISK_COST = 0\n]\n\nNETWORK_SIZE = 254\n\nMAC_PREFIX = \\\"02:00\\\"\n\nVLAN_IDS = [\n START = \\\"2\\\",\n RESERVED = \\\"0, 1, 4095\\\"\n]\n\nVXLAN_IDS = [\n START = \\\"2\\\"\n]\n\nDATASTORE_CAPACITY_CHECK = \\\"yes\\\"\n\nDEFAULT_DEVICE_PREFIX = \\\"hd\\\"\nDEFAULT_CDROM_DEVICE_PREFIX = \\\"hd\\\"\n\nDEFAULT_IMAGE_TYPE = \\\"OS\\\"\nIM_MAD = [\n NAME = \\\"collectd\\\",\n EXECUTABLE = \\\"collectd\\\",\n ARGUMENTS = \\\"-p 4124 -f 5 -t 50 -i 60\\\" ]\n\nIM_MAD = [\n NAME = \\\"kvm\\\",\n SUNSTONE_NAME = \\\"KVM\\\",\n EXECUTABLE = \\\"one_im_ssh\\\",\n ARGUMENTS = \\\"-r 3 -t 15 -w 90 kvm\\\" ]\n\nIM_MAD = [\n NAME = \\\"vcenter\\\",\n SUNSTONE_NAME = \\\"VMWare vCenter\\\",\n EXECUTABLE = \\\"one_im_sh\\\",\n ARGUMENTS = \\\"-c -t 15 -r 0 vcenter\\\" ]\n\nIM_MAD = [\n NAME = \\\"ec2\\\",\n SUNSTONE_NAME = \\\"Amazon EC2\\\",\n EXECUTABLE = \\\"one_im_sh\\\",\n ARGUMENTS = \\\"-c -t 1 -r 0 -w 600 ec2\\\" ]\n\nVM_MAD = [\n NAME = \\\"kvm\\\",\n SUNSTONE_NAME = \\\"KVM\\\",\n EXECUTABLE = \\\"one_vmm_exec\\\",\n ARGUMENTS = \\\"-t 15 -r 0 kvm\\\",\n DEFAULT = \\\"vmm_exec\/vmm_exec_kvm.conf\\\",\n TYPE = \\\"kvm\\\",\n KEEP_SNAPSHOTS = \\\"no\\\",\n IMPORTED_VMS_ACTIONS = \\\"terminate, terminate-hard, hold, release, suspend,\n resume, delete, reboot, reboot-hard, resched, unresched, disk-attach,\n disk-detach, nic-attach, nic-detach, snapshot-create, snapshot-delete\\\"\n]\n\" = ?\n\n\n test Oned.lns get\n\"PASSWORD = \\\"open\\\\\\\"nebula\\\"\n\" =?\n\n test Oned.lns get\n\"DB = [\n PASSWORD = \\\"open\\\\\\\"nebula\\\"\n]\n\" =?\n","avg_line_length":17.5027624309,"max_line_length":93,"alphanum_fraction":0.5419823232} {"size":3914,"ext":"aug","lang":"Augeas","max_stars_count":3.0,"content":"(* \/etc\/libvirt\/libvirtd.conf *)\n\nmodule Libvirtd =\n autoload xfm\n\n let eol = del \/[ \\t]*\\n\/ \"\\n\"\n let value_sep = del \/[ \\t]*=[ \\t]*\/ \" = \"\n let indent = del \/[ \\t]*\/ \"\"\n\n let array_sep = del \/,[ \\t\\n]*\/ \", \"\n let array_start = del \/\\[[ \\t\\n]*\/ \"[ \"\n let array_end = del \/\\]\/ \"]\"\n\n let str_val = del \/\\\"\/ \"\\\"\" . store \/[^\\\"]*\/ . del \/\\\"\/ \"\\\"\"\n let bool_val = store \/0|1\/\n let int_val = store \/[0-9]+\/\n let str_array_element = [ seq \"el\" . str_val ] . del \/[ \\t\\n]*\/ \"\"\n let str_array_val = counter \"el\" . array_start . ( str_array_element . ( array_sep . str_array_element ) * ) ? . array_end\n\n let str_entry (kw:string) = [ key kw . value_sep . str_val ]\n let bool_entry (kw:string) = [ key kw . value_sep . bool_val ]\n let int_entry (kw:string) = [ key kw . value_sep . int_val ]\n let str_array_entry (kw:string) = [ key kw . value_sep . str_array_val ]\n\n\n (* Config entry grouped by function - same order as example config *)\n let network_entry = bool_entry \"listen_tls\"\n | bool_entry \"listen_tcp\"\n | str_entry \"tls_port\"\n | str_entry \"tcp_port\"\n | str_entry \"listen_addr\"\n | bool_entry \"mdns_adv\"\n | str_entry \"mdns_name\"\n\n let sock_acl_entry = str_entry \"unix_sock_group\"\n | str_entry \"unix_sock_ro_perms\"\n | str_entry \"unix_sock_rw_perms\"\n | str_entry \"unix_sock_dir\"\n\n let authentication_entry = str_entry \"auth_unix_ro\"\n | str_entry \"auth_unix_rw\"\n | str_entry \"auth_tcp\"\n | str_entry \"auth_tls\"\n\n let certificate_entry = str_entry \"key_file\"\n | str_entry \"cert_file\"\n | str_entry \"ca_file\"\n | str_entry \"crl_file\"\n\n let authorization_entry = bool_entry \"tls_no_verify_certificate\"\n | bool_entry \"tls_no_sanity_certificate\"\n | str_array_entry \"tls_allowed_dn_list\"\n | str_array_entry \"sasl_allowed_username_list\"\n | str_array_entry \"access_drivers\"\n\n let processing_entry = int_entry \"min_workers\"\n | int_entry \"max_workers\"\n | int_entry \"max_clients\"\n | int_entry \"max_queued_clients\"\n | int_entry \"max_anonymous_clients\"\n | int_entry \"max_requests\"\n | int_entry \"max_client_requests\"\n | int_entry \"prio_workers\"\n\n let logging_entry = int_entry \"log_level\"\n | str_entry \"log_filters\"\n | str_entry \"log_outputs\"\n | int_entry \"log_buffer_size\"\n\n let auditing_entry = int_entry \"audit_level\"\n | bool_entry \"audit_logging\"\n\n let keepalive_entry = int_entry \"keepalive_interval\"\n | int_entry \"keepalive_count\"\n | bool_entry \"keepalive_required\"\n\n let misc_entry = str_entry \"host_uuid\"\n\n (* Each enty in the config is one of the following three ... *)\n let entry = network_entry\n | sock_acl_entry\n | authentication_entry\n | certificate_entry\n | authorization_entry\n | processing_entry\n | logging_entry\n | auditing_entry\n | keepalive_entry\n | misc_entry\n let comment = [ label \"#comment\" . del \/#[ \\t]*\/ \"# \" . store \/([^ \\t\\n][^\\n]*)?\/ . del \/\\n\/ \"\\n\" ]\n let empty = [ label \"#empty\" . eol ]\n\n let record = indent . entry . eol\n\n let lns = ( record | comment | empty ) *\n\n let filter = incl \"\/etc\/libvirt\/libvirtd.conf\"\n . Util.stdexcl\n\n let xfm = transform lns filter\n","avg_line_length":38.7524752475,"max_line_length":125,"alphanum_fraction":0.5283597343} {"size":989,"ext":"aug","lang":"Augeas","max_stars_count":null,"content":"<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n<document signature=\"Army Builder Augmentation\">\n <group id=\"skTags\" width=\"5\" name=\"Skaven Tags\" visible=\"no\" filter=\"no\" accrue=\"yes\">\n <value id=\"assassin\" name=\"Clan Eshin Assassins\"\/>\n <value id=\"clanrat\" name=\"Clanrat\"\/>\n <value id=\"ratOgre\" name=\"Rat-ogre\"\/>\n <value id=\"slave\" name=\"Slave\"\/>\n <value id=\"stormVermn\" name=\"Storm Vermin\"\/>\n <\/group>\n <unitstat id=\"maxSlaves\" name=\"Maximum Slaves\" private=\"yes\" default=\"1\"><\/unitstat>\n <unitstat id=\"maxClanrat\" name=\"Maximum Clanrats\" private=\"yes\" default=\"1\"><\/unitstat>\n <unitstat id=\"maxSVermin\" name=\"Maximum Storm Vermin\" private=\"yes\" default=\"1\"><\/unitstat>\n <exclusion id=\"slaves\" minimum=\"0\" maximum=\"@maxSlaves\"><\/exclusion>\n <exclusion id=\"stormVermn\" minimum=\"0\" maximum=\"@maxSVermin\"><\/exclusion>\n <exclusion id=\"ratOgres\" minimum=\"0\" maximum=\"#\"><\/exclusion>\n <exclusion id=\"clanrats\" minimum=\"0\" maximum=\"@maxClanrat\"><\/exclusion>\n <\/document>\n","avg_line_length":54.9444444444,"max_line_length":93,"alphanum_fraction":0.6835187058} {"size":1135,"ext":"aug","lang":"Augeas","max_stars_count":415.0,"content":"(*\nModule: Apt_Update_Manager\n Parses files in \/etc\/update-manager\n\nAuthor: Raphael Pinson <raphael.pinson@camptocamp.com>\n\nAbout: License\n This file is licenced under the LGPL v2+, like the rest of Augeas.\n\nAbout: Lens Usage\n To be documented\n\nAbout: Configuration files\n This lens applies to files in \/etc\/update-manager. See <filter>.\n\nAbout: Examples\n The <Test_Apt_Update_Manager> file contains various examples and tests.\n*)\nmodule Apt_Update_Manager =\n\nautoload xfm\n\n(* View: comment *)\nlet comment = IniFile.comment IniFile.comment_re IniFile.comment_default\n\n(* View: sep *)\nlet sep = IniFile.sep IniFile.sep_re IniFile.sep_default\n\n(* View: title *)\nlet title = IniFile.title Rx.word\n\n(* View: entry *)\nlet entry = IniFile.entry Rx.word sep comment\n\n(* View: record *)\nlet record = IniFile.record title entry\n\n(* View: lns *)\nlet lns = IniFile.lns record comment\n\n(* Variable: filter *)\nlet filter = incl \"\/etc\/update-manager\/meta-release\"\n . incl \"\/etc\/update-manager\/release-upgrades\"\n . incl \"\/etc\/update-manager\/release-upgrades.d\/*\"\n . Util.stdexcl\n\nlet xfm = transform lns filter\n","avg_line_length":23.6458333333,"max_line_length":74,"alphanum_fraction":0.7189427313} {"size":3927,"ext":"aug","lang":"Augeas","max_stars_count":68.0,"content":"module Test_mount_fstab =\n\n let lns = Mount_Fstab.lns\n\n let simple = \"\/dev\/vg00\/lv00\\t \/\\t ext3\\t defaults 1 1\\n\"\n\n let simple_tree =\n { \"1\"\n { \"spec\" = \"\/dev\/vg00\/lv00\" }\n { \"file\" = \"\/\" }\n { \"vfstype\" = \"ext3\" }\n { \"options\" = \"defaults\" }\n { \"dump\" = \"1\" }\n { \"passno\" = \"1\" } }\n\n let trailing_ws = \"\/dev\/vg00\/lv00\\t \/\\t ext3\\t defaults 1 1 \\t\\n\"\n\n let gen_no_passno(passno:string) =\n \"LABEL=\/boot\\t \/boot\\t ext3\\t defaults 1\" . passno . \" \\t\\n\"\n let no_passno = gen_no_passno \"\"\n\n let no_passno_tree =\n { \"1\"\n { \"spec\" = \"LABEL=\/boot\" }\n { \"file\" = \"\/boot\" }\n { \"vfstype\" = \"ext3\" }\n { \"options\" = \"defaults\" }\n { \"dump\" = \"1\" } }\n\n let no_dump = \"\/dev\/vg00\/lv00\\t \/\\t ext3\\t defaults\\n\"\n\n let no_dump_tree =\n { \"1\"\n { \"spec\" = \"\/dev\/vg00\/lv00\" }\n { \"file\" = \"\/\" }\n { \"vfstype\" = \"ext3\" }\n { \"options\" = \"defaults\" } }\n\n let no_opts = \"\/dev\/vg00\/lv00\\t \/\\t ext3\\n\"\n\n let no_opts_tree =\n { \"1\"\n { \"spec\" = \"\/dev\/vg00\/lv00\" }\n { \"file\" = \"\/\" }\n { \"vfstype\" = \"ext3\" } }\n\n let multi_opts = \"devpts\\t \/dev\/pts\\t devpts gid=5,mode=620,fscontext=system_u:object_r:removable_t 0 0\\n\"\n\n let multi_opts_tree =\n { \"1\"\n { \"spec\" = \"devpts\" }\n { \"file\" = \"\/dev\/pts\" }\n { \"vfstype\" = \"devpts\" }\n { \"options\" = \"gid=5,mode=620,fscontext=system_u:object_r:removable_t\" }\n { \"dump\" = \"0\" }\n { \"passno\" = \"0\" } }\n\n test lns get simple = simple_tree\n\n test lns get trailing_ws = simple_tree\n\n test lns get no_passno = no_passno_tree\n\n test lns put no_passno after set \"\/1\/passno\" \"1\" = gen_no_passno \" 1\"\n\n test lns get no_dump = no_dump_tree\n\n test lns get no_opts = no_opts_tree\n\n test lns get multi_opts = multi_opts_tree\n\n test lns get \"\/dev\/hdc \/media\/cdrom0 udf,iso9660 user,noauto\\t0\\t0\\n\" =\n { \"1\"\n { \"spec\" = \"\/dev\/hdc\" }\n { \"file\" = \"\/media\/cdrom0\" }\n { \"vfstype\" = \"udf,iso9660\" }\n { \"options\" = \"user,noauto\" }\n { \"dump\" = \"0\" }\n { \"passno\" = \"0\" } }\n\n (* Allow # in the spec *)\n test lns get \"sshfs#jon@10.0.0.2:\/home \/media\/server fuse uid=1000,gid=100,port=1022 0 0\\n\" =\n { \"1\"\n { \"spec\" = \"sshfs#jon@10.0.0.2:\/home\" }\n { \"file\" = \"\/media\/server\" }\n { \"vfstype\" = \"fuse\" }\n { \"options\" = \"uid=1000,gid=100,port=1022\" }\n { \"dump\" = \"0\" }\n { \"passno\" = \"0\" } }\n\n (* Bug #191 *)\n test lns get \"tmpfs \/dev\/shm tmpfs rw,rootcontext=\\\"system_u:object_r:tmpfs_t:s0\\\" 0 0\\n\" =\n { \"1\"\n { \"spec\" = \"tmpfs\" }\n { \"file\" = \"\/dev\/shm\" }\n { \"vfstype\" = \"tmpfs\" }\n { \"options\" = \"rw,rootcontext=\\\"system_u:object_r:tmpfs_t:s0\\\"\" }\n { \"dump\" = \"0\" }\n { \"passno\" = \"0\" } }\n\n (* BZ https:\/\/bugzilla.redhat.com\/show_bug.cgi?id=751342\n * Mounting multiple cgroups together results in path with ','\n *)\n test lns get \"spec \/path\/file1,file2 vfs opts 0 0\\n\" =\n { \"1\"\n { \"spec\" = \"spec\" }\n { \"file\" = \"\/path\/file1,file2\" }\n { \"vfstype\" = \"vfs\" }\n { \"options\" = \"opts\" }\n { \"dump\" = \"0\" }\n { \"passno\" = \"0\" } }\n\n (* Parse when empty option value given, only equals sign *)\n test lns get \"\/\/host.example.org\/a_share \/mnt cifs defaults,ro,password= 0 0\\n\" =\n { \"1\"\n { \"spec\" = \"\/\/host.example.org\/a_share\" }\n { \"file\" = \"\/mnt\" }\n { \"vfstype\" = \"cifs\" }\n { \"options\" = \"defaults,ro,password=\" }\n { \"dump\" = \"0\" }\n { \"passno\" = \"0\" }\n }\n\n (* Allow end of line comments *)\n test lns get \"UUID=0314be77-bb1e-47d4-b2a2-e69ae5bc954f\t\/\text4\trw,errors=remount-ro\t0\t1\t# device at install: \/dev\/sda3\\n\" =\n { \"1\"\n { \"spec\" = \"UUID=0314be77-bb1e-47d4-b2a2-e69ae5bc954f\" }\n { \"file\" = \"\/\" }\n { \"vfstype\" = \"ext4\" }\n { \"options\" = \"rw,errors=remount-ro\" }\n { \"dump\" = \"0\" }\n { \"passno\" = \"1\" }\n { \"#comment\" = \"device at install: \/dev\/sda3\" }\n }\n","avg_line_length":29.0888888889,"max_line_length":125,"alphanum_fraction":0.5156608098} {"size":1486,"ext":"aug","lang":"Augeas","max_stars_count":9.0,"content":"module Trafficserver_cache =\n autoload cache_xfm\n\n let eol = ( Util.eol | Util.comment_eol )\n let indent = Util.indent\n let spc = Util.del_ws_spc\n let value_re = \/([^ \\\"\\t\\n#]([^ \\t\\n#]*)?|\\\"[^\\\\\\\"\\n#]*(\\\\\\.[^\\\\\\\"\\n#]*)*\\\")\/\n\n let cache_filter = incl \"\/etc\/trafficserver\/cache.config\"\n\n (* primary dest types *)\n let primary_dest = \"dest_domain\" | \"dest_host\" | \"dest_ip\" | \"url_regex\"\n\n (* secondary dest types *)\n let secondary_spec = \"port\" | \"scheme\" | \"prefix\" | \"suffix\" | \"method\" | \"time\" | \"src_ip\" \n\n (* directives *)\n let action_re = \"never-cache\" | \"ignore-no-cache\" | \"ignore-client-no-cache\" | \"ignore-server-no-cache\"\n let time_format_re = \/([0-9]+[dhms])*[0-9]*\/\n\n let timed_directive = [ key ( \"pin-in-cache\" | \"revalidate\" | \"ttl-in-cache\" ) . del \/=\/ \"=\" . store time_format_re ]\n let action_directive = [ key \/action\/ . del \/=\/ \"=\". store action_re ] \n let cookie_directive = [ key \/cache-responses-to-cookies\/ . del \/=\/ \"=\" . store \/[0-9]\/ ] \n let directive_entry = ( action_directive | timed_directive | cookie_directive )\n\n (* basic entry *)\n let directive_list = ( spc . directive_entry ) +\n let optional_secondary = ( spc . [ key secondary_spec . del \/=\/ \"=\" . store value_re ] ) ?\n let cache_entry = [ indent . key primary_dest . del \/=\/ \"=\" . store value_re . optional_secondary . directive_list . eol ]\n\n (* lns xfm *)\n let cache_lns = ( Util.empty | Util.comment | cache_entry ) *\n let cache_xfm = transform cache_lns cache_filter\n","avg_line_length":43.7058823529,"max_line_length":126,"alphanum_fraction":0.630551817} {"size":2815,"ext":"aug","lang":"Augeas","max_stars_count":1.0,"content":"module Test_automaster =\n let map_param = Automaster.map_param\n let map_record = Automaster.map_record\n let lns = Automaster.lns\n\n test map_param get \"file:\/bla\/blu\" = \n ( { \"type\" = \"file\" } { \"name\" = \"\/bla\/blu\" } )\n test map_param get \"yp,hesiod:\/bla\/blu\" = \n ( { \"type\" = \"yp\" } \n { \"format\" = \"hesiod\" }\n { \"name\" = \"\/bla\/blu\" } )\n test map_param get \"bla\" = { \"name\" = \"bla\" }\n test map_record get \"\/net \/etc\/auto.net\\n\" =\n { \"map\" = \"\/net\"\n { \"name\" = \"\/etc\/auto.net\" } }\n\n test lns get \"# c\\n+auto.master\\n\/net \/etc\/auto.net\\n\\n\" = (\n { \"#comment\" = \"c\" }\n { \"include\" = \"auto.master\" }\n { \"map\" = \"\/net\"\n { \"name\" = \"\/etc\/auto.net\" }\n }\n { } )\n\n test lns get \"# c\n+auto.master\n# blank line\n\n\n\/net \/etc\/auto.net\n\/foo bla\n\" = (\n { \"#comment\" = \"c\" }\n { \"include\" = \"auto.master\" }\n { \"#comment\" = \"blank line\" }\n { }\n { }\n { \"map\" = \"\/net\"\n { \"name\" = \"\/etc\/auto.net\" }\n }\n { \"map\" = \"\/foo\"\n { \"name\" = \"bla\" }\n }\n)\n\n test lns get \"#\n# Sample auto.master file\n# This is an automounter map and it has the following format\n# key [ -mount-options-separated-by-comma ] location\n# For details of the format look at autofs(5).\n#\n\/misc \/etc\/auto.misc\n#\n# NOTE: mounts done from a hosts map will be mounted with the\n# \\\"nosuid\\\" and \\\"nodev\\\" options unless the \\\"suid\\\" and \\\"dev\\\"\n# options are explicitly given.\n#\n\/net -hosts\n#\n# Include central master map if it can be found using\n# nsswitch sources.\n#\n# Note that if there are entries for \/net or \/misc (as\n# above) in the included master map any keys that are the\n# same will not be seen as the first read key seen takes\n# precedence.\n#\n+auto.master\n\" = (\n { }\n { \"#comment\" = \"Sample auto.master file\" }\n { \"#comment\" = \"This is an automounter map and it has the following format\" }\n { \"#comment\" = \"key [ -mount-options-separated-by-comma ] location\" }\n { \"#comment\" = \"For details of the format look at autofs(5).\" }\n { }\n { \"map\" = \"\/misc\"\n { \"name\" = \"\/etc\/auto.misc\" }\n }\n { }\n { \"#comment\" = \"NOTE: mounts done from a hosts map will be mounted with the\" }\n { \"#comment\" = \"\\\"nosuid\\\" and \\\"nodev\\\" options unless the \\\"suid\\\" and \\\"dev\\\"\" }\n { \"#comment\" = \"options are explicitly given.\" }\n { }\n { \"map\" = \"\/net\"\n { \"name\" = \"-hosts\" }\n }\n { }\n { \"#comment\" = \"Include central master map if it can be found using\" }\n { \"#comment\" = \"nsswitch sources.\" }\n { }\n { \"#comment\" = \"Note that if there are entries for \/net or \/misc (as\" }\n { \"#comment\" = \"above) in the included master map any keys that are the\" }\n { \"#comment\" = \"same will not be seen as the first read key seen takes\" }\n { \"#comment\" = \"precedence.\" }\n { }\n { \"include\" = \"auto.master\" }\n)\n","avg_line_length":28.7244897959,"max_line_length":85,"alphanum_fraction":0.5573712256} {"size":3609,"ext":"aug","lang":"Augeas","max_stars_count":415.0,"content":"(*\n Module: Passwd\n Parses \/etc\/passwd\n\n Author: Free Ekanayaka <free@64studio.com>\n\n About: Reference\n - man 5 passwd\n - man 3 getpwnam\n\n Each line in the unix passwd file represents a single user record, whose\n colon-separated attributes correspond to the members of the passwd struct\n\n*)\n\nmodule Passwd =\n\n autoload xfm\n\n(************************************************************************\n * Group: USEFUL PRIMITIVES\n *************************************************************************)\n\n(* Group: Comments and empty lines *)\n\nlet eol = Util.eol\nlet comment = Util.comment\nlet empty = Util.empty\nlet dels = Util.del_str\n\nlet word = Rx.word\nlet integer = Rx.integer\n\nlet colon = Sep.colon\n\nlet sto_to_eol = store Rx.space_in\nlet sto_to_col = store \/[^:\\r\\n]+\/\n(* Store an empty string if nothing matches *)\nlet sto_to_col_or_empty = store \/[^:\\r\\n]*\/\n\n(************************************************************************\n * Group: ENTRIES\n *************************************************************************)\n\nlet username = \/[_.A-Za-z0-9][-_.A-Za-z0-9]*\\$?\/\n\n(* View: password\n pw_passwd *)\nlet password = [ label \"password\" . sto_to_col? . colon ]\n\n(* View: uid\n pw_uid *)\nlet uid = [ label \"uid\" . store integer . colon ]\n\n(* View: gid\n pw_gid *)\nlet gid = [ label \"gid\" . store integer . colon ]\n\n(* View: name\n pw_gecos; the user's full name *)\nlet name = [ label \"name\" . sto_to_col? . colon ]\n\n(* View: home\n pw_dir *)\nlet home = [ label \"home\" . sto_to_col? . colon ]\n\n(* View: shell\n pw_shell *)\nlet shell = [ label \"shell\" . sto_to_eol? ]\n\n(* View: entry\n struct passwd *)\nlet entry = [ key username\n . colon\n . password\n . uid\n . gid\n . name\n . home\n . shell\n . eol ]\n\n(* NIS entries *)\nlet niscommon = [ label \"password\" . sto_to_col ]? . colon\n . [ label \"uid\" . store integer ]? . colon\n . [ label \"gid\" . store integer ]? . colon\n . [ label \"name\" . sto_to_col ]? . colon\n . [ label \"home\" . sto_to_col ]? . colon\n . [ label \"shell\" . sto_to_eol ]?\n\nlet nisentry =\n let overrides =\n colon\n . niscommon in\n [ dels \"+@\" . label \"@nis\" . store username . overrides . eol ]\n\nlet nisuserplus =\n let overrides =\n colon\n . niscommon in\n [ dels \"+\" . label \"@+nisuser\" . store username . overrides . eol ]\n\nlet nisuserminus =\n let overrides =\n colon\n . niscommon in\n [ dels \"-\" . label \"@-nisuser\" . store username . overrides . eol ]\n\nlet nisdefault =\n let overrides =\n colon\n . [ label \"password\" . sto_to_col_or_empty . colon ]\n . [ label \"uid\" . store integer? . colon ]\n . [ label \"gid\" . store integer? . colon ]\n . [ label \"name\" . sto_to_col? . colon ]\n . [ label \"home\" . sto_to_col? . colon ]\n . [ label \"shell\" . sto_to_eol? ] in\n [ dels \"+\" . label \"@nisdefault\" . overrides? . eol ]\n\n(************************************************************************\n * LENS\n *************************************************************************)\n\nlet lns = (comment|empty|entry|nisentry|nisdefault|nisuserplus|nisuserminus) *\n\nlet filter = incl \"\/etc\/passwd\"\n\nlet xfm = transform lns filter\n","avg_line_length":27.976744186,"max_line_length":85,"alphanum_fraction":0.4635633139} {"size":78,"ext":"aug","lang":"Augeas","max_stars_count":84.0,"content":"#500\nblocking~\n1 d 0 184 -1\nA\n13 1\nR\n103 5 # 5x a yellow lightning stone\nS\n$\n","avg_line_length":7.8,"max_line_length":36,"alphanum_fraction":0.6538461538} {"size":173,"ext":"aug","lang":"Augeas","max_stars_count":6.0,"content":"AudioBufferSource abs { url assets\/ogg\/chop.ogg, loop true} [ delay, output ] \nDelay delay { delayTime 0.2 } [ feedback, output ] \nGain feedback { gain 0.8 } [ delay ] \nEnd","avg_line_length":43.25,"max_line_length":79,"alphanum_fraction":0.6878612717} {"size":2435,"ext":"aug","lang":"Augeas","max_stars_count":1.0,"content":"(* Augeas module for editing Java properties files\n Author: Craig Dunn <craig@craigdunn.org>\n\n Limitations:\n - doesn't support \\ alone on a line\n - values are not unescaped\n - multi-line properties are broken down by line, and can't be replaced with a single line\n\n See format info: http:\/\/docs.oracle.com\/javase\/6\/docs\/api\/java\/util\/Properties.html#load(java.io.Reader)\n*)\n\nmodule IdPProperties =\n autoload xfm\n\n (* Define some basic primitives *)\n let empty = Util.empty\n let eol = Util.eol\n let hard_eol = del \"\\n\" \"\\n\"\n let sepch = del \/([ \\t]*(=|:)|[ \\t])\/ \"=\"\n let sepspc = del \/[ \\t]\/ \" \"\n let sepch_ns = del \/[ \\t]*(=|:)\/ \"=\"\n let sepch_opt = del \/[ \\t]*(=|:)?[ \\t]*\/ \"=\"\n let value_to_eol_ws = store \/(:|=)[^\\n]*[^ \\t\\n\\\\]\/\n let value_to_bs_ws = store \/(:|=)[^\\n]*[^\\\\\\n]\/\n let value_to_eol = store \/([^ \\t\\n:=][^\\n]*[^ \\t\\n\\\\]|[^ \\t\\n\\\\:=])\/\n let value_to_bs = store \/([^ \\t\\n:=][^\\n]*[^\\\\\\n]|[^ \\t\\n\\\\:=])\/\n let indent = Util.indent\n let backslash = del \/[\\\\][ \\t]*\\n\/ \"\\\\\\n\"\n let entry = \/([^ \\t\\n:=\\\/!#\\\\]|[\\\\]:|[\\\\]=|[\\\\][\\t ]|[\\\\][^\\\/\\n])+\/\n\n let multi_line_entry =\n [ indent . value_to_bs? . backslash ] + .\n [ indent . value_to_eol . eol ] . value \" < multi > \"\n\n let multi_line_entry_ws =\n [ indent . value_to_bs_ws . backslash ] + .\n [ indent . value_to_eol . eol ] . value \" < multi_ws > \"\n\n (* define comments and properties*)\n let bang_comment = [ label \"!comment\" . del \/[ \\t]*![ \\t]*\/ \"! \" . store \/([^ \\t\\n].*[^ \\t\\n]|[^ \\t\\n])\/ . eol ]\n let comment = ( Util.comment | bang_comment )\n let property = [ indent . key entry . sepch . ( multi_line_entry | indent . value_to_eol . eol ) ]\n let property_ws = [ indent . key entry . sepch_ns . ( multi_line_entry_ws | indent . value_to_eol_ws . eol ) ]\n let empty_property = [ indent . key entry . sepch_opt . hard_eol ]\n let empty_key = [ sepch_ns . ( multi_line_entry | indent . value_to_eol . eol ) ]\n\n (* setup our lens and filter*)\n let lns = ( empty | comment | property_ws | property | empty_property | empty_key ) *\n\n let filter = (incl \"\/opt\/shibboleth-idp\/conf\/*.properties\")\n . (incl \"\/etc\/tomcat6\/*.properties\")\n . (incl \"\/etc\/tomcat7\/*.properties\")\n . Util.stdexcl\n let xfm = transform lns filter","avg_line_length":45.0925925926,"max_line_length":120,"alphanum_fraction":0.540862423} {"size":27969,"ext":"aug","lang":"Augeas","max_stars_count":9.0,"content":"module Haproxy =\n autoload xfm\n\n let eol = Util.eol\n let hard_eol = del \"\\n\" \"\\n\"\n let indent = del \/[ \\t]{0,4}\/ \" \"\n let ws = del \/[ \\t]+\/ \" \"\n let store_to_eol = store Rx.space_in\n let store_to_ws = store \/[^ \\t\\n]+\/\n let store_time = store \/[0-9]+(us|ms|s|m|h|d)?\/\n\n let simple_option (r:regexp) = [ indent . key r . eol ]\n let kv_option (r:regexp) = [ indent . key r . ws . store_to_eol . eol ]\n let true_bool_option (r:regexp) = [ Util.del_str \"option\" . ws . key r . value \"true\" . eol ]\n let false_bool_option (r:regexp) = [ Util.del_str \"no option\" . ws . key r . value \"false\" . eol ]\n let bool_option (r:regexp) = ( false_bool_option r | true_bool_option r )\n\n (*************************************************************************\n LOG OPTION\n *************************************************************************)\n let log_facility = \"kern\" | \"user\" | \"mail\" | \"daemon\" | \"auth\" | \"syslog\"\n | \"lpr\" | \"news\" | \"uucp\" | \"cron\" | \"auth2\" | \"ftp\"\n | \"ntp\" | \"audit\" | \"alert\" | \"cron2\" | \"local0\"\n | \"local1\" | \"local2\" | \"local3\" | \"local4\" | \"local5\"\n | \"local6\" | \"local7\"\n let log_level = \"emerg\" | \"alert\" | \"crit\" | \"err\" | \"warning\" | \"notice\"\n | \"info\" | \"debug\"\n\n let log_opt = [ indent . key \"log\" .\n ws . [ label \"address\" . store_to_ws ] .\n ws . [ label \"facility\" . store log_facility ] .\n ( \n ws . [ key \"max\" . ws . store log_level ] . \n ( ws . [ key \"min\" . ws . store log_level ] )?\n )? ] . eol\n\n (*************************************************************************\n STATS OPTION\n *************************************************************************)\n let stats_level = \"user\" | \"operator\" | \"admin\"\n let stats_uid = [ key \/(uid|user)\/ . ws . store_to_ws ]\n let stats_gid = [ key \/(gid|group)\/ . ws . store_to_ws ]\n let stats_mode = [ key \"mode\" . ws . store_to_ws ]\n let stats_socket = [ indent . Util.del_str \"stats socket\" .\n label \"stats_socket\" . [ ws . label \"path\" . store_to_ws ] .\n ( [ ws . key \/(uid|user)\/ . ws . store_to_ws ] )? .\n ( [ ws . key \/(gid|group)\/ . ws . store_to_ws ] )? .\n ( [ ws . key \"mode\" . ws . store_to_ws ] )? .\n ( [ ws . key \"level\" . ws . store stats_level ] )?\n ] . eol\n let stats_timeout = [ indent . Util.del_str \"stats timeout\" .\n label \"stats_timeout\" . ws . store_time ] . eol\n let stats_maxconn = [ indent . Util.del_str \"stats maxconn\" .\n label \"stats_maxconn\" . ws . store \/[0-9]+\/ ] . eol\n let stats = ( stats_socket | stats_timeout | stats_maxconn )\n\n (*************************************************************************\n GLOBAL SECTION\n *************************************************************************)\n let global_simple_opts = \"daemon\" | \"noepoll\" | \"nokqueue\" | \"noepoll\"\n | \"nosepoll\" | \"nosplice\" | \"debug\" | \"quiet\"\n let global_kv_opts = \"chroot\" | \"gid\" | \"group\" | \"log-send-hostname\"\n | \"nbproc\" | \"pidfile\" | \"uid\" | \"ulimit-n\" | \"user\"\n | \"node\" | \"description\" | \"maxconn\" | \"maxpipes\"\n | \"spread-checks\" | \"tune.bufsize\" | \"tune.chksize\"\n | \"tune.maxaccept\" | \"tune.maxpollevents\" \n | \"tune.maxrewrite\" | \"tune.rcvbuf.client\"\n | \"tune.rcvbuf.server\" | \"tune.sndbuf.client\"\n | \"tune.sndbuf.server\"\n\n let global = [ key \"global\" . eol .\n (simple_option global_simple_opts|kv_option global_kv_opts|stats|log_opt)*\n ]\n\n (*************************************************************************\n USER LISTS\n *************************************************************************)\n let userlist_group =\n let name = [ label \"name\" . store Rx.no_spaces ] in\n let group_user = [ label \"user\" . store \/[^ \\t\\n,]+\/ ] in\n let users = [ key \"users\" . Sep.space . group_user .\n ( Util.del_str \",\" . group_user )* ] in\n indent . [ key \"group\" . Sep.space . name . ( Sep.space . users)? ] . Util.eol\n\n let userlist_user =\n let name = [ label \"name\" . store Rx.no_spaces ] in\n let password = [ key \/password|insecure-password\/ . Sep.space .\n store Rx.no_spaces ] in\n let user_group = [ label \"group\" . store \/[^ \\t\\n,]+\/ ] in\n let groups = [ key \"groups\" . Sep.space . user_group .\n ( Util.del_str \",\" . user_group )* ] in\n Util.indent . [ key \"user\" . Sep.space . name .\n ( Sep.space . password )? . ( Sep.space . groups )? ] . Util.eol\n\n let userlist =\n let name = [ label \"name\" . store Rx.no_spaces ] in\n [ key \"userlist\" . Sep.space . name . Util.eol .\n ( userlist_user | userlist_group )* ]\n\n (*************************************************************************\n SERVER AND DEFAULT-SERVER\n *************************************************************************)\n let source =\n let addr = [ label \"address\" . store (\/[^ \\t\\n:]+\/ - \/client(ip)?|hdr_ip.*\/) ]\n in let port = [ label \"port\" . store Rx.no_spaces ]\n in let addr_and_port = addr . ( Util.del_str \":\" . port )?\n in let client = [ key \"client\" ]\n in let clientip = [ key \"clientip\" ]\n in let interface = [ key \"interface\" . Sep.space . store Rx.no_spaces ]\n in let hdr = [ label \"header\" . store \/[^ \\t\\n,\\)]+\/ ]\n in let occ = [ label \"occurrence\" . store \/[^ \\t\\n\\)]+\/ ]\n in let hdr_ip = Util.del_str \"hdr_ip(\" . hdr .\n ( Util.del_str \",\" . occ )? . Util.del_str \")\"\n in let usesrc = [ key \"usesrc\" . Sep.space . ( clientip | client | addr_and_port | hdr_ip ) ]\n in [ key \"source\" . Sep.space . addr_and_port .\n ( Sep.space . ( usesrc | interface ) )? ]\n\n let server_options =\n let health_addr = [ key \"health_address\" . Sep.space . store Rx.no_spaces ] in\n let backup = [ key \"backup\" ] in\n let check = [ key \"check\" ] in\n let cookie = [ key \"cookie\" . Sep.space . store Rx.no_spaces ] in\n let disabled = [ key \"disabled\" ] in\n let id = [ key \"id\" . Sep.space . store Rx.no_spaces ] in\n let observe = [ key \"observe\" . Sep.space . store Rx.no_spaces ] in\n let redir = [ key \"redir\" . Sep.space . store Rx.no_spaces ] in\n let server_source = source in\n let track = [ key \"track\" . Sep.space .\n ( [ label \"proxy\" . store \/[^ \\t\\n\\\/]+\/ . Util.del_str \"\/\" ] )? .\n [ label \"server\" . store \/[^ \\t\\n\\\/]+\/ ] ] in\n ( health_addr | backup | check | cookie | disabled | id | observe |\n redir | server_source | track )\n\n let default_server_options =\n let error_limit = [ key \"error-limit\" . Sep.space . store Rx.no_spaces ] in\n let fall = [ key \"fall\" . Sep.space . store Rx.no_spaces ] in\n let inter = [ key \"inter\" . Sep.space . store Rx.no_spaces ] in\n let fastinter = [ key \"fastinter\" . Sep.space . store Rx.no_spaces ] in\n let downinter = [ key \"downinter\" . Sep.space . store Rx.no_spaces ] in\n let maxconn = [ key \"maxconn\" . Sep.space . store Rx.no_spaces ] in\n let maxqueue = [ key \"maxqueue\" . Sep.space . store Rx.no_spaces ] in\n let minconn = [ key \"minconn\" . Sep.space . store Rx.no_spaces ] in\n let on_error = [ key \"on-error\" . Sep.space . store Rx.no_spaces ] in\n let health_port = [ key \"health_port\" . Sep.space . store Rx.no_spaces ] in\n let rise = [ key \"rise\" . Sep.space . store Rx.no_spaces ] in\n let slowstart = [ key \"slowstart\" . Sep.space . store Rx.no_spaces ] in\n let weight = [ key \"weight\" . Sep.space . store Rx.no_spaces ] in\n ( error_limit | fall | inter | fastinter | downinter | maxconn |\n maxqueue | minconn | on_error | health_port | rise | slowstart |\n weight )\n\n let default_server = [ key \"default-server\" . Sep.space .\n default_server_options . ( Sep.space . default_server_options )* ]\n\n let server =\n let name = [ label \"name\" . store Rx.no_spaces ] in\n let addr = [ label \"address\" . store \/[^ \\t\\n:]+\/ ] in\n let port = [ label \"port\" . store Rx.no_spaces ] in\n let addr_and_port = addr . ( Util.del_str \":\" . port )? in\n let options = ( server_options | default_server_options ) in\n Util.indent . [ key \"server\" . Sep.space . name . Sep.space .\n addr_and_port . ( Sep.space . options )* ]\n\n (*************************************************************************\n PROXY OPTIONS\n *************************************************************************)\n let acl = indent . [ key \"acl\" . ws\n . [ label \"name\" . store_to_ws ] . ws\n . [ label \"value\" . store \/[^ \\t][^\\n]+\/ ]\n ] . hard_eol\n\n let appsession = indent . [ key \"appsession\" . ws\n . [ label \"cookie\" . store_to_ws ] . ws\n . [ key \"len\" . store_to_ws ] . ws\n . [ key \"timeout\" . store_time ]\n . ( ws . [ key \"request-learn\" ] )?\n . ( ws . [ key \"prefix\" ] )?\n . ( ws . [ key \"mode\" . store \/(path-parameters|query-string)\/ ] )?\n ] . eol\n\n let backlog = kv_option \"backlog\"\n\n let balance = indent . [ key \"balance\" . ws\n . [ label \"algorithm\" . store_to_ws ]\n . ( ws . [ label \"params\" . store \/[^ \\t][^\\n]+\/ ] )?\n ] . hard_eol\n\n let bind_address = [ seq \"bind_addr\" \n . ( [ label \"address\" . store \/[^ \\t,]+\/ ] )?\n . Util.del_str \":\" . [ label \"port\" . store \/[0-9-]+\/ ] ]\n let bind_address_list = bind_address . ( Util.del_str \",\" . bind_address)*\n let bind = indent . [ key \"bind\" . ws\n . [ label \"bind_addr\" . bind_address_list ]\n . ( ws . [ key \"interface\" . store_to_ws ] )?\n . ( ws . [ key \"mss\" . store_to_ws ] )?\n . ( ws . [ key \"transparent\" ] )?\n . ( ws . [ key \"id\" . store_to_ws ] )?\n . ( ws . [ key \"name\" . store_to_ws ] )?\n . ( ws . [ key \"defer-accept\" ] )?\n ] . eol\n\n let bind_process_id = [ key \/[0-9]+\/ ]\n let bind_process_id_list = [ label \"number\"\n . bind_process_id . ( ws . bind_process_id )*\n ]\n let bind_process = indent . [ key \"bind-process\" . ws\n . (store \/(all|odd|even)\/|bind_process_id_list)\n ] . eol\n\n let block = indent . [ key \"block\" . ws\n . [ label \"condition\" . store \/[^ \\t][^\\n]+\/ ]\n ] . hard_eol\n\n let capture_cookie = indent . Util.del_str \"capture cookie\" . ws\n . [ label \"capture_cookie\"\n . [ label \"name\" . store_to_ws ] . ws\n . [ label \"len\" . store \/[0-9]+\/ ]\n ] . eol\n\n let capture_request_header = indent \n . Util.del_str \"capture request header\" . ws\n . [ label \"capture_request_header\"\n . [ label \"name\" . store_to_ws ] . ws\n . [ label \"len\" . store \/[0-9]+\/ ]\n ] . eol\n\n let capture_response_header = indent\n . Util.del_str \"capture response header\" . ws\n . [ label \"capture_response_header\"\n . [ label \"name\" . store_to_ws ] . ws\n . [ label \"len\" . store \/[0-9]+\/ ]\n ] . eol\n\n let clitimeout = kv_option \"clitimeout\"\n\n let contimeout = kv_option \"contimeout\"\n\n let cookie = indent . [ key \"cookie\" . ws\n . [ label \"name\" . store_to_ws ]\n . ( ws . [ label \"method\" . store \/(rewrite|insert|prefix)\/ ] )?\n . ( ws . [ key \"indirect\" ] )?\n . ( ws . [ key \"nocache\" ] )?\n . ( ws . [ key \"postonly\" ] )?\n . ( ws . [ key \"preserve\" ] )?\n . ( ws . [ key \"httponly\" ] )?\n . ( ws . [ key \"secure\" ] )?\n . ( ws . [ key \"domain\" . store_to_ws ] )?\n . ( ws . [ key \"maxidle\" . store_time ] )?\n . ( ws . [ key \"maxlife\" . store_time ] )?\n ] . eol\n \n (* #XXX default-server *)\n\n let default_backend = kv_option \"default_backend\"\n\n let disabled = simple_option \"disabled\"\n\n let dispatch = indent . [ key \"dispatch\" . ws\n . [ label \"address\" . store \/[^ \\t,]+\/ ]\n . Util.del_str \":\" . [ label \"port\" . store \/[0-9-]+\/ ] ]\n\n let enabled = simple_option \"enabled\"\n\n let errorfile = indent . [ key \"errorfile\" . ws\n . [ label \"code\" . store \/[0-9]+\/ ] . ws\n . [ label \"file\" . store_to_eol ]\n ] . eol\n\n let error_redir (keyword:string) = indent . [ key keyword . ws\n . [ label \"code\" . store \/[0-9]+\/ ] . ws\n . [ label \"url\" . store_to_eol ]\n ] . eol\n\n let errorloc = error_redir \"errorloc\"\n let errorloc302 = error_redir \"errorloc302\"\n let errorloc303 = error_redir \"errorloc303\"\n\n let force_persist = indent . [ key \"force-persist\" . ws\n . [ label \"condition\" . store \/[^ \\t][^\\n]+\/ ]\n ] . hard_eol\n\n let fullconn = kv_option \"fullconn\"\n\n let grace = kv_option \"grace\"\n\n let hash_type = kv_option \"hash-type\"\n\n let http_check_disable_on_404 = indent\n . Util.del_str \"http-check disable-on-404\"\n . [ label \"http_check_disable_on_404\" ] . eol\n\n let http_check_expect = indent . Util.del_str \"http-check expect\"\n . [ label \"http_check_expect\"\n . ( ws . [ Util.del_str \"!\" . label \"not\" ] )?\n . ws . [ label \"match\" . store \/(status|rstatus|string|rstring)\/ ]\n . ws . [ label \"pattern\" . store \/[^ \\t][^\\n]+\/ ]\n ] . hard_eol\n\n let http_check_send_state = indent . Util.del_str \"http-check send-state\"\n . [ label \"http_check_keep_state\" ] . eol\n\n let http_request =\n let allow = [ key \"allow\" ]\n in let deny = [ key \"deny\" ]\n in let realm = [ key \"realm\" . Sep.space . store Rx.no_spaces ]\n in let auth = [ key \"auth\" . ( Sep.space . realm )? ]\n in let cond = [ key \/if|unless\/ . Sep.space . store_to_eol ]\n in Util.indent . [ Util.del_str \"http-request\" . label \"http_request\" .\n Sep.space . ( allow | deny | auth ) . ( Sep.space . cond )? ]\n . Util.eol\n\n let http_send_name_header = kv_option \"http-send-name-header\"\n\n let id = kv_option \"id\"\n\n let ignore_persist = indent . [ key \"ignore-persist\" . ws\n . [ label \"condition\" . store \/[^ \\t][^\\n]+\/ ]\n ] . hard_eol\n\n let log = (indent . [ key \"log\" . store \"global\" ] . eol ) | log_opt\n\n let maxconn = kv_option \"maxconn\"\n\n let mode = kv_option \"mode\"\n\n let monitor_fail = indent . Util.del_str \"monitor fail\"\n . [ key \"monitor_fail\" . ws\n . [ label \"condition\" . store \/[^ \\t][^\\n]+\/ ]\n ] . hard_eol\n\n let monitor_net = kv_option \"monitor-net\"\n\n let monitor_uri = kv_option \"monitor-uri\"\n\n let abortonclose = bool_option \"abortonclose\"\n\n let accept_invalid_http_request = bool_option \"accept-invalid-http-request\"\n \n let accept_invalid_http_response = bool_option \"accept-invalid-http-response\"\n\n let allbackups = bool_option \"allbackups\"\n\n let checkcache = bool_option \"checkcache\"\n\n let clitcpka = bool_option \"clitcpka\"\n\n let contstats = bool_option \"contstats\"\n\n let dontlog_normal = bool_option \"dontlog-normal\"\n\n let dontlognull = bool_option \"dontlognull\"\n\n let forceclose = bool_option \"forceclose\"\n\n let forwardfor =\n let except = [ key \"except\" . Sep.space . store Rx.no_spaces ]\n in let header = [ key \"header\" . Sep.space . store Rx.no_spaces ]\n in let if_none = [ key \"if-none\" ]\n in Util.indent . [ Util.del_str \"option forwardfor\" . label \"forwardfor\" .\n ( Sep.space . except )? . ( Sep.space . header )? .\n ( Sep.space . if_none )? ] . Util.eol\n\n let http_no_delay = bool_option \"http-no-delay\"\n\n let http_pretend_keepalive = bool_option \"http-pretend-keepalive\"\n\n let http_server_close = bool_option \"http-server-close\"\n\n let http_use_proxy_header = bool_option \"http-use-proxy-header\"\n\n let httpchk =\n let uri = [ label \"uri\" . Sep.space . store Rx.no_spaces ]\n in let method = [ label \"method\" . Sep.space . store Rx.no_spaces ]\n in let version = [ label \"version\" . Sep.space . store_to_eol ]\n in Util.indent . [ Util.del_str \"option httpchk\" . label \"httpchk\" .\n ( uri | method . uri . version? )? ] . Util.eol\n\n let httpclose = bool_option \"httpclose\"\n\n let httplog =\n let clf = [ Sep.space . key \"clf\" ]\n in Util.indent . [ Util.del_str \"option httplog\" . label \"httplog\" .\n clf? ] . Util.eol\n\n let http_proxy = bool_option \"http_proxy\"\n\n let independant_streams = bool_option \"independant-streams\"\n\n let ldap_check = bool_option \"ldap-check\"\n\n let log_health_checks = bool_option \"log-health-checks\"\n\n let log_separate_errors = bool_option \"log-separate-errors\"\n\n let logasap = bool_option \"logasap\"\n\n let mysql_check =\n let user = [ key \"user\" . Sep.space . store Rx.no_spaces ]\n in Util.indent . [ Util.del_str \"option mysql-check\" .\n label \"mysql_check\" . ( Sep.space . user )? ] . Util.eol\n\n let nolinger = bool_option \"nolinger\"\n\n let originalto =\n let except = [ key \"except\" . Sep.space . store Rx.no_spaces ]\n in let header = [ key \"header\" . Sep.space . store Rx.no_spaces ]\n in Util.indent . [ Util.del_str \"option originalto\" . label \"originalto\" .\n ( Sep.space . except )? . ( Sep.space . header )? ] . Util.eol\n\n\n let persist = bool_option \"persist\"\n\n let redispatch = bool_option \"redispatch\"\n\n let smtpchk =\n let hello = [ label \"hello\" . store Rx.no_spaces ]\n in let domain = [ label \"domain\" . store Rx.no_spaces ]\n in Util.indent . [ Util.del_str \"option smtpchk\" . label \"smtpchk\" .\n ( Sep.space . hello . Sep.space . domain )? ] . Util.eol\n\n let socket_stats = bool_option \"socket-stats\"\n\n let splice_auto = bool_option \"splice-auto\"\n\n let splice_request = bool_option \"splice-request\"\n\n let splice_response = bool_option \"splice-response\"\n\n let srvtcpka = bool_option \"srvtcpka\"\n\n let ssl_hello_chk = bool_option \"ssl-hello-chk\"\n\n let tcp_smart_accept = bool_option \"tcp-smart-accept\"\n\n let tcp_smart_connect = bool_option \"tcp-smart-connect\"\n\n let tcpka = bool_option \"tcpka\"\n\n let tcplog = bool_option \"tcplog\"\n\n let old_transparent = bool_option \"transparent\"\n\n let persist_rdp_cookie = indent . [ Util.del_str \"persist rdp-cookie\" . \n label \"persist-rdp-cookie\" . ( Util.del_str \"(\" . store \/[^\\)]+\/ . Util.del_str \")\" )?\n ] . hard_eol\n\n let rate_limit_sessions = indent . [ Util.del_str \"rate-limit sessions\" . ws .\n label \"rate-limit-sessions\" . store \/[0-9]+\/ ] . eol\n\n let redirect =\n let location = [ key \"location\" ]\n in let prefix = [ key \"prefix\" ]\n in let to = [ label \"to\" . store Rx.no_spaces ]\n in let code = [ key \"code\" . Sep.space . store Rx.no_spaces ]\n in let option_drop_query = [ key \"drop-query\" ]\n in let option_append_slash = [ key \"append-slash\" ]\n in let option_set_cookie = [ key \"set-cookie\" . Sep.space .\n [ label \"cookie\" . store \/[^ \\t\\n=]+\/ ] .\n ( [ Util.del_str \"=\" . label \"value\" . store Rx.no_spaces ] )? ]\n in let option_clear_cookie = [ key \"clear-cookie\" . Sep.space .\n [ label \"cookie\" . store Rx.no_spaces ] ]\n in let options = (option_drop_query | option_append_slash | option_set_cookie | option_clear_cookie)\n in let option = [ label \"options\" . options . ( Sep.space . options )* ]\n in let cond = [ key \/if|unless\/ . Sep.space . store_to_eol ]\n in Util.indent . [ key \"redirect\" . Sep.space . ( location | prefix ) .\n Sep.space . to . ( Sep.space . code )? . ( Sep.space . option )? .\n ( Sep.space . cond )? ] . Util.eol\n\n let reqadd = kv_option \"reqadd\"\n\n let reqallow = kv_option \"reqallow\"\n\n let reqiallow = kv_option \"reqiallow\"\n\n let reqdel = kv_option \"reqdel\"\n\n let reqidel = kv_option \"reqdel\"\n\n let reqdeny = kv_option \"reqdeny\"\n\n let reqideny = kv_option \"reqideny\"\n\n let reqpass = kv_option \"reqpass\"\n\n let reqipass = kv_option \"reqipass\"\n\n let reqrep = kv_option \"reqrep\"\n\n let reqirep = kv_option \"reqirep\"\n\n let reqtarpit = kv_option \"reqtarpit\"\n\n let reqitarpit = kv_option \"reqitarpit\"\n\n let retries = kv_option \"retries\"\n\n let rspadd = kv_option \"rspadd\"\n\n let rspdel = kv_option \"rspdel\"\n\n let rspidel = kv_option \"rspidel\"\n\n let rspdeny = kv_option \"rspdeny\"\n\n let rspideny = kv_option \"rspideny\"\n\n let rsprep = kv_option \"rsprep\"\n\n let rspirep = kv_option \"rspirep\"\n\n (* XXX server *)\n\n\n let srvtimeout = kv_option \"srvtimeout\"\n\n let stats_admin =\n let cond = [ key \/if|unless\/ . Sep.space . store Rx.space_in ]\n in Util.indent . [ Util.del_str \"stats admin\" . label \"stats_admin\" .\n Sep.space . cond ] . Util.eol\n\n let stats_auth =\n let user = [ label \"user\" . store \/[^ \\t\\n:]+\/ ]\n in let passwd = [ label \"passwd\" . store \/[^ \\t\\n]+\/ ]\n in Util.indent . [ Util.del_str \"stats auth\" . label \"stats_auth\" .\n Sep.space . user . Util.del_str \":\" . passwd ] . Util.eol\n\n let stats_enable = Util.indent . [ Util.del_str \"stats enable\" .\n label \"stats_enable\" ] . Util.eol\n\n let stats_hide_version = Util.indent . [ Util.del_str \"stats hide-version\" .\n label \"stats_hide_version\" ] . Util.eol\n\n let stats_http_request =\n let allow = [ key \"allow\" ]\n in let deny = [ key \"deny\" ]\n in let realm = [ key \"realm\" . Sep.space . store Rx.no_spaces ]\n in let auth = [ key \"auth\" . ( Sep.space . realm )? ]\n in let cond = [ key \/if|unless\/ . Sep.space . store_to_eol ]\n in Util.indent . [ Util.del_str \"stats http-request\" .\n label \"stats_http_request\" . Sep.space . ( allow | deny | auth ) .\n ( Sep.space . cond )? ] . Util.eol\n\n let stats_realm = Util.indent . [ Util.del_str \"stats realm\" .\n label \"stats_realm\" . Sep.space . store \/[^ \\t\\n]+\/ ] . Util.eol\n\n let stats_refresh = Util.indent . [ Util.del_str \"stats refresh\" .\n label \"stats_refresh\" . Sep.space . store \/[^ \\t\\n]+\/ ] . Util.eol\n\n let stats_scope = Util.indent . [ Util.del_str \"stats scope\" .\n label \"stats_scope\" . Sep.space . store \/[^ \\t\\n]+\/ ] . Util.eol\n\n let stats_show_desc =\n let desc = [ label \"description\" . store_to_eol ]\n in Util.indent . [ Util.del_str \"stats show-desc\" .\n label \"stats_show_desc\" . ( Sep.space . desc )? ] . Util.eol\n\n let stats_show_legends = Util.indent . [ Util.del_str \"stats show-legends\" .\n label \"stats_show_legends\" ] . Util.eol\n\n let stats_show_node =\n let node = [ label \"node\" . store_to_eol ]\n in Util.indent . [ Util.del_str \"stats show-node\" .\n label \"stats_show_node\" . ( Sep.space . node )? ] . Util.eol\n\n let stats_uri = Util.indent . [ Util.del_str \"stats uri\" .\n label \"stats_uri\" . Sep.space . store_to_eol ] . Util.eol\n\n let stick_match =\n let table = [ key \"table\" . Sep.space . store Rx.no_spaces ]\n in let cond = [ key \/if|unless\/ . Sep.space . store_to_eol ]\n in let pattern = [ label \"pattern\" . store Rx.no_spaces ]\n in Util.indent . [ Util.del_str \"stick match\" . label \"stick_match\" .\n Sep.space . pattern . ( Sep.space . table )? .\n ( Sep.space . cond )? ] . Util.eol\n\n let stick_on =\n let table = [ key \"table\" . Sep.space . store Rx.no_spaces ]\n in let cond = [ key \/if|unless\/ . Sep.space . store_to_eol ]\n in let pattern = [ label \"pattern\" . store Rx.no_spaces ]\n in Util.indent . [ Util.del_str \"stick on\" . label \"stick_on\" .\n Sep.space . pattern . ( Sep.space . table )? .\n ( Sep.space . cond )? ] . Util.eol\n\n let stick_store_request =\n let table = [ key \"table\" . Sep.space . store Rx.no_spaces ]\n in let cond = [ key \/if|unless\/ . Sep.space . store_to_eol ]\n in let pattern = [ label \"pattern\" . store Rx.no_spaces ]\n in Util.indent . [ Util.del_str \"stick store-request\" .\n label \"stick_store_request\" . Sep.space . pattern .\n ( Sep.space . table )? . ( Sep.space . cond )? ] . Util.eol\n\n let stick_table =\n let type_ip = [ key \"type\" . Sep.space . store \"ip\" ]\n in let type_integer = [ key \"type\" . Sep.space . store \"integer\" ]\n in let len = [ key \"len\" . Sep.space . store Rx.no_spaces ]\n in let type_string = [ key \"type\" . Sep.space . store \"string\" .\n ( Sep.space . len )? ]\n in let type = ( type_ip | type_integer | type_string )\n in let size = [ key \"size\" . Sep.space . store Rx.no_spaces ]\n in let expire = [ key \"expire\" . Sep.space . store Rx.no_spaces ]\n in let nopurge = [ key \"nopurge\" ]\n in Util.indent . [ key \"stick-table\" . Sep.space . type . Sep.space .\n size . ( Sep.space . expire )? . ( Sep.space . nopurge )? ] .\n Util.eol\n\n let tcp_request_content_accept =\n let cond = [ key \/if|unless\/ . Sep.space . store_to_eol ]\n in Util.indent . [ Util.del_str \"tcp-request content accept\" .\n label \"tcp_request_content_accept\" . ( Sep.space . cond )? ] .\n Util.eol\n\n let tcp_request_content_reject =\n let cond = [ key \/if|unless\/ . Sep.space . store_to_eol ]\n in Util.indent . [ Util.del_str \"tcp-request content reject\" .\n label \"tcp_request_content_reject\" . ( Sep.space . cond )? ] .\n Util.eol\n\n let tcp_request_inspect_delay = Util.indent .\n [ Util.del_str \"tcp-request inspect-delay\" .\n label \"tcp_request_inspect_delay\" . Sep.space . store_to_eol ] .\n Util.eol\n\n let timeout_check = Util.indent . [ Util.del_str \"timeout check\" .\n label \"timeout_check\" . Sep.space . store_to_eol ] . Util.eol\n\n let timeout_client = Util.indent . [ Util.del_str \"timeout client\" .\n label \"timeout_client\" . Sep.space . store_to_eol ] . Util.eol\n\n let timeout_clitimeout = Util.indent . [ Util.del_str \"timeout clitimeout\" .\n label \"timeout_clitimeout\" . Sep.space . store_to_eol ] . Util.eol\n\n let timeout_connect = Util.indent . [ Util.del_str \"timeout connect\" .\n label \"timeout_connect\" . Sep.space . store_to_eol ] . Util.eol\n\n let timeout_contimeout = Util.indent . [ Util.del_str \"timeout contimeout\" .\n label \"timeout_contimeout\" . Sep.space . store_to_eol ] . Util.eol\n\n let timeout_http_keep_alive = Util.indent . [ Util.del_str \"timeout http-keep-alive\" .\n label \"timeout_http_keep_alive\" . Sep.space . store_to_eol ] . Util.eol\n\n let timeout_http_request = Util.indent . [ Util.del_str \"timeout http-request\" .\n label \"timeout_http_request\" . Sep.space . store_to_eol ] . Util.eol\n\n let timeout_queue = Util.indent . [ Util.del_str \"timeout queue\" .\n label \"timeout_queue\" . Sep.space . store_to_eol ] . Util.eol\n\n let timeout_server = Util.indent . [ Util.del_str \"timeout server\" .\n label \"timeout_server\" . Sep.space . store_to_eol ] . Util.eol\n\n let timeout_srvtimeout = Util.indent . [ Util.del_str \"timeout srvtimeout\" .\n label \"timeout_srvtimeout\" . Sep.space . store_to_eol ] . Util.eol\n\n let timeout_tarpit = Util.indent . [ Util.del_str \"timeout tarpit\" .\n label \"timeout_tarpit\" . Sep.space . store_to_eol ] . Util.eol\n\n let transparent = simple_option \"transparent\"\n\n let use_backend =\n let cond = [ key \/if|unless\/ . Sep.space . store_to_eol ]\n in Util.indent . [ key \"use_backend\" . Sep.space . store Rx.no_spaces .\n Sep.space . cond ] . Util.eol\n\n let lns = global\n\n let xfm = transform lns (incl \"\/etc\/haproxy\/haproxy.cfg\")\n","avg_line_length":41.9954954955,"max_line_length":108,"alphanum_fraction":0.5538274518} {"size":477,"ext":"aug","lang":"Augeas","max_stars_count":17.0,"content":"--- lenses\/pg_hba.aug.orig\t2018-03-08 17:37:53 UTC\n+++ lenses\/pg_hba.aug\n@@ -81,6 +81,7 @@ module Pg_Hba =\n (* View: filter\n The pg_hba.conf conf file *)\n let filter = (incl \"\/var\/lib\/pgsql\/data\/pg_hba.conf\" .\n+ incl \"%%PREFIX%%\/pgsql\/data\/pg_hba.conf\" .\n incl \"\/var\/lib\/pgsql\/*\/data\/pg_hba.conf\" .\n incl \"\/var\/lib\/postgresql\/*\/data\/pg_hba.conf\" .\n incl \"\/etc\/postgresql\/*\/*\/pg_hba.conf\" )\n","avg_line_length":43.3636363636,"max_line_length":66,"alphanum_fraction":0.5387840671} {"size":5419,"ext":"aug","lang":"Augeas","max_stars_count":null,"content":"(* NTP module for Augeas *)\n(* Author: Raphael Pinson <raphink@gmail.com> *)\n(* *)\n(* Status: basic settings supported *)\n\nmodule Ntp =\n autoload xfm\n\n\n (* Define useful shortcuts *)\n\n let eol = del \/[ \\t]*\/ \"\" . [ label \"#comment\" . store \/#.*\/]?\n . Util.del_str \"\\n\"\n let sep_spc = Util.del_ws_spc\n let word = \/[^,# \\n\\t]+\/\n let num = \/[0-9]+\/\n\n\n (* define comments and empty lines *)\n let comment = [ label \"#comment\" . del \/#[ \\t]*\/ \"#\" .\n store \/([^ \\t\\n][^\\n]*)?\/ . del \"\\n\" \"\\n\" ]\n let empty = [ del \/[ \\t]*\\n\/ \"\\n\" ]\n\n\n let kv (k:regexp) (v:regexp) =\n [ key k . sep_spc. store v . eol ]\n\n (* Define generic record *)\n let record (kw:regexp) (value:lens) =\n [ key kw . sep_spc . store word . value . eol ]\n\n (* Define a command record; see confopt.html#cfg in the ntp docs *)\n let command_record =\n let opt = [ sep_spc . key \/minpoll|maxpoll|ttl|version|key\/ .\n sep_spc . store word ]\n | [ sep_spc . key (\/autokey|burst|iburst|noselect|preempt\/ |\n \/prefer|true|dynamic\/) ] in\n let cmd = \/pool|server|peer|broadcast|manycastclient\/\n | \/multicastclient|manycastserver\/ in\n record cmd opt*\n\n let broadcastclient =\n [ key \"broadcastclient\" . [ sep_spc . key \"novolley\" ]? . eol ]\n\n (* Define a fudge record *)\n let fudge_opt_re = \"refid\" | \"stratum\"\n let fudge_opt = [ sep_spc . key fudge_opt_re . sep_spc . store word ]\n let fudge_record = record \"fudge\" fudge_opt?\n\n (* Define simple settings, see miscopt.html in ntp docs *)\n let flags =\n let flags_re = \/auth|bclient|calibrate|kernel|monitor|ntp|pps|stats\/ in\n let flag = [ label \"flag\" . store flags_re ] in\n [ key \/enable|disable\/ . (sep_spc . flag)* . eol ]\n\n let simple_setting (k:regexp) = kv k word\n\n (* Still incomplete, misses logconfig, phone, setvar, tos,\n trap, ttl *)\n let simple_settings =\n kv \"broadcastdelay\" Rx.decimal\n | flags\n | simple_setting \/driftfile|leapfile|logfile|includefile\/\n | simple_setting \"statsdir\"\n | simple_setting \"ntpsigndsocket\"\n\n (* Misc commands, see miscopt.html in ntp docs *)\n\n (* Define restrict *)\n let restrict_record =\n let ip6_restrict = [ label \"ipv6\" . sep_spc . Util.del_str \"-6\" ] in\n let ip4_restrict = [ label \"ipv4\" . sep_spc . Util.del_str \"-4\" ] in\n let action = [ label \"action\" . sep_spc . store \/[^,# \\n\\t-][^,# \\n\\t]*\/ ] in\n [ key \"restrict\" . (ip6_restrict | ip4_restrict)? . sep_spc . store \/[^,# \\n\\t-][^,# \\n\\t]*\/ . action* . eol ]\n\n (* Define statistics *)\n let statistics_flag (kw:string) = [ sep_spc . key kw ]\n\n let statistics_opts = statistics_flag \"loopstats\"\n | statistics_flag \"peerstats\"\n\t\t\t| statistics_flag \"clockstats\"\n\t\t\t| statistics_flag \"rawstats\"\n\n let statistics_record = [ key \"statistics\" . statistics_opts* . eol ]\n\n\n (* Define filegen *)\n let filegen = del \/filegen[ \\t]+\/ \"filegen \" . store word\n let filegen_opt (kw:string) = [ sep_spc . key kw . sep_spc . store word ]\n (* let filegen_flag (kw:string) = [ label kw . sep_spc . store word ] *)\n let filegen_select (kw:string) (select:regexp) = [ label kw . sep_spc . store select ]\n\n let filegen_opts = filegen_opt \"file\"\n | filegen_opt \"type\"\n\t\t | filegen_select \"enable\" \/(en|dis)able\/\n\t\t | filegen_select \"link\" \/(no)?link\/\n\n let filegen_record = [ label \"filegen\" . filegen . filegen_opts* . eol ]\n\n (* Authentication commands, see authopt.html#cmd; incomplete *)\n let auth_command =\n [ key \/controlkey|keys|keysdir|requestkey|authenticate\/ .\n sep_spc . store word . eol ]\n | [ key \/autokey|revoke\/ . [sep_spc . store word]? . eol ]\n | [ key \/trustedkey\/ . [ sep_spc . label \"key\" . store word ]+ . eol ]\n\n (* tinker [step step | panic panic | dispersion dispersion |\n stepout stepout | minpoll minpoll | allan allan | huffpuff huffpuff] *)\n let tinker =\n let arg_names = \/step|panic|dispersion|stepout|minpoll|allan|huffpuff\/ in\n let arg = [ key arg_names . sep_spc . store Rx.decimal ] in\n [ key \"tinker\" . (sep_spc . arg)* . eol ]\n\n (* tos [beacon beacon | ceiling ceiling | cohort {0 | 1} |\n floor floor | maxclock maxclock | maxdist maxdist |\n minclock minclock | mindist mindist | minsane minsane |\n orphan stratum | orphanwait delay] *)\n\n let tos =\n let arg_names = \/beacon|ceiling|cohort|floor|maxclock|maxdist|\n minclock|mindist|minsane|orphan|orphanwait\/ in\n let arg = [ key arg_names . sep_spc . store Rx.decimal ] in\n [ key \"tos\" . (sep_spc . arg)* . eol ]\n\n let interface =\n let action = [ label \"action\" . store \/listen|ignore|drop\/ ]\n in let addresses = [ label \"addresses\" . store Rx.word ]\n in [ key \"interface\" . sep_spc . action . sep_spc . addresses . eol ]\n\n (* Define lens *)\n\n let lns = ( comment | empty | command_record | fudge_record\n | restrict_record | simple_settings | statistics_record\n | filegen_record | broadcastclient\n | auth_command | tinker | tos | interface)*\n\n let filter = (incl \"\/etc\/ntp.conf\")\n\n let xfm = transform lns filter\n","avg_line_length":38.7071428571,"max_line_length":116,"alphanum_fraction":0.5846097066} {"size":1256,"ext":"aug","lang":"Augeas","max_stars_count":415.0,"content":"(*\nModule: PamConf\n Parses \/etc\/pam.conf files\n\nAuthor: Dominic Cleal <dcleal@redhat.com>\n\nAbout: Reference\n This lens tries to keep as close as possible to `man pam.conf` where\n possible.\n\nAbout: Licence\n This file is licensed under the LGPL v2+, like the rest of Augeas.\n\nAbout: Lens Usage\n\nAbout: Configuration files\n This lens applies to \/etc\/pam.conf. See <filter>.\n*)\nmodule PamConf =\n autoload xfm\n\n(************************************************************************\n * Group: USEFUL PRIMITIVES\n *************************************************************************)\n\nlet indent = Util.indent\n\nlet comment = Util.comment\n\nlet empty = Util.empty\n\nlet include = Pam.include\n\nlet service = Rx.word\n\n(************************************************************************\n * Group: LENSES\n *************************************************************************)\n\nlet record = [ seq \"record\" . indent .\n [ label \"service\" . store service ] .\n Sep.space .\n Pam.record ]\n\nlet lns = ( empty | comment | include | record ) *\n\nlet filter = incl \"\/etc\/pam.conf\"\n\nlet xfm = transform lns filter\n\n(* Local Variables: *)\n(* mode: caml *)\n(* End: *)\n","avg_line_length":23.2592592593,"max_line_length":75,"alphanum_fraction":0.4737261146} {"size":4966,"ext":"aug","lang":"Augeas","max_stars_count":null,"content":"(* Process \/etc\/corosync\/corosync.conf *)\n(* The lens is based on the corosync.conf(5) man page *)\nmodule Corosync =\n\nautoload xfm\n\nlet comment = Util.comment\nlet empty = Util.empty\nlet dels = Util.del_str\nlet eol = Util.eol\n\nlet ws = del \/[ \\t]+\/ \" \"\nlet wsc = del \/:[ \\t]+\/ \": \"\nlet indent = del \/[ \\t]*\/ \"\"\n(* We require that braces are always followed by a newline *)\nlet obr = del \/\\{([ \\t]*)\\n\/ \"{\\n\"\nlet cbr = del \/[ \\t]*}[ \\t]*\\n\/ \"}\\n\"\n\nlet ikey (k:regexp) = indent . key k\n\nlet section (n:regexp) (b:lens) =\n [ ikey n . ws . obr . (b|empty|comment)* . cbr ]\n\nlet kv (k:regexp) (v:regexp) =\n [ ikey k . wsc . store v . eol ]\n\n(* FIXME: it would be much more concise to write *)\n(* [ key k . ws . (bare | quoted) ] *)\n(* but the typechecker trips over that *)\nlet qstr (k:regexp) =\n let delq = del \/['\"]\/ \"\\\"\" in\n let bare = del \/[\"']?\/ \"\" . store \/[^\"' \\t\\n]+\/ . del \/[\"']?\/ \"\" in\n let quoted = delq . store \/.*[ \\t].*\/ . delq in\n [ ikey k . wsc . bare . eol ]\n |[ ikey k . wsc . quoted . eol ]\n\n(* A integer subsection *)\nlet interface =\n let setting =\n kv \"ringnumber\" Rx.integer\n |kv \"mcastport\" Rx.integer\n |kv \"ttl\" Rx.integer\n |kv \"broadcast\" \/yes|no\/\n |qstr \/bindnetaddr|mcastaddr\/ in\n section \"interface\" setting\n\n(* The totem section *)\nlet totem =\n let setting =\n kv \"clear_node_high_bit\" \/yes|no\/\n |kv \"rrp_mode\" \/none|active|passive\/\n |kv \"vsftype\" \/none|ykd\/\n |kv \"secauth\" \/on|off\/\n |kv \"crypto_type\" \/nss|aes256|aes192|aes128|3des\/\n |kv \"crypto_cipher\" \/none|nss|aes256|aes192|aes128|3des\/\n |kv \"crypto_hash\" \/none|md5|sha1|sha256|sha384|sha512\/\n |kv \"transport\" \/udp|iba|udpu\/\n |kv \"version\" Rx.integer\n |kv \"nodeid\" Rx.integer\n |kv \"threads\" Rx.integer\n |kv \"netmtu\" Rx.integer\n |kv \"token\" Rx.integer\n |kv \"token_retransmit\" Rx.integer\n |kv \"hold\" Rx.integer\n |kv \"token_retransmits_before_loss_const\" Rx.integer\n |kv \"join\" Rx.integer\n |kv \"send_join\" Rx.integer\n |kv \"consensus\" Rx.integer\n |kv \"merge\" Rx.integer\n |kv \"downcheck\" Rx.integer\n |kv \"fail_to_recv_const\" Rx.integer\n |kv \"seqno_unchanged_const\" Rx.integer\n |kv \"heartbeat_failures_allowed\" Rx.integer\n |kv \"max_network_delay\" Rx.integer\n |kv \"max_messages\" Rx.integer\n |kv \"window_size\" Rx.integer\n |kv \"rrp_problem_count_timeout\" Rx.integer\n |kv \"rrp_problem_count_threshold\" Rx.integer\n |kv \"rrp_token_expired_timeout\" Rx.integer\n |qstr \/cluster_name\/\n |interface in\n section \"totem\" setting\n\nlet common_logging =\n kv \"to_syslog\" \/yes|no|on|off\/\n |kv \"to_stderr\" \/yes|no|on|off\/\n |kv \"to_logfile\" \/yes|no|on|off\/\n |kv \"debug\" \/yes|no|on|off|trace\/\n |kv \"logfile_priority\" \/alert|crit|debug|emerg|err|info|notice|warning\/\n |kv \"syslog_priority\" \/alert|crit|debug|emerg|err|info|notice|warning\/\n |kv \"syslog_facility\" \/daemon|local0|local1|local2|local3|local4|local5|local6|local7\/\n |qstr \/logfile|tags\/\n\n(* A logger_subsys subsection *)\nlet logger_subsys =\n let setting =\n qstr \/subsys\/\n |common_logging in\n section \"logger_subsys\" setting\n\n\n(* The logging section *)\nlet logging =\n let setting =\n kv \"fileline\" \/yes|no|on|off\/\n |kv \"function_name\" \/yes|no|on|off\/\n |kv \"timestamp\" \/yes|no|on|off\/\n |common_logging\n |logger_subsys in\n section \"logging\" setting\n\n\n(* The resource section *)\nlet common_resource =\n kv \"max\" Rx.decimal\n |kv \"poll_period\" Rx.integer\n |kv \"recovery\" \/reboot|shutdown|watchdog|none\/\n\nlet memory_used =\n let setting =\n common_resource in\n section \"memory_used\" setting\n\n\nlet load_15min =\n let setting =\n common_resource in\n section \"load_15min\" setting\n\nlet system =\n let setting =\n load_15min\n |memory_used in\n section \"system\" setting\n\n(* The resources section *)\nlet resources =\n let setting =\n system in\n section \"resources\" setting\n\n(* The quorum section *)\nlet quorum =\n let setting =\n qstr \/provider\/\n |kv \"expected_votes\" Rx.integer\n |kv \"votes\" Rx.integer\n |kv \"wait_for_all\" Rx.integer\n |kv \"last_man_standing\" Rx.integer\n |kv \"last_man_standing_window\" Rx.integer\n |kv \"auto_tie_breaker\" Rx.integer\n |kv \"two_node\" Rx.integer in\n section \"quorum\" setting\n\n(* The service section *)\nlet service =\n let setting =\n qstr \/name|ver\/ in\n section \"service\" setting\n\n(* The uidgid section *)\nlet uidgid =\n let setting =\n qstr \/uid|gid\/ in\n section \"uidgid\" setting\n\n(* The node section *)\nlet node =\n let setting =\n qstr \/ring[0-9]_addr\/\n |kv \"nodeid\" Rx.integer\n |kv \"name\" Rx.hostname\n |kv \"quorum_votes\" Rx.integer in\n section \"node\" setting\n\n(* The nodelist section *)\nlet nodelist =\n let setting =\n node in\n section \"nodelist\" setting\n\nlet lns = (comment|empty|totem|quorum|logging|resources|service|uidgid|nodelist)*\n\nlet xfm = transform lns (incl \"\/etc\/corosync\/corosync.conf\")\n","avg_line_length":26.8432432432,"max_line_length":89,"alphanum_fraction":0.6411598872} {"size":957,"ext":"aug","lang":"Augeas","max_stars_count":84.0,"content":"#300\nhealth~\n1 0 q 184 -1\nA\n15 1\nR\n104 5 # 5x a red bloodstone\nS\n#301\nmana~\n1 0 q 184 -1\nA\n16 1\nR\n1206 5 # 5x an iridescent blue iris\nS\n#302\nstamina~\n1 0 q 184 -1\nA\n11 1\nR\n103 5 # 5x a yellow lightning stone\nS\n#303\nregeneration~\n1 0 q 184 -1\nA\n3 1\nR\n1206 5 # 5x an iridescent blue iris\nS\n#304\nlongrunning~\n1 0 q 184 -1\nA\n6 1\nR\n103 5 # 5x a yellow lightning stone\nS\n#305\nenergy~\n1 0 q 184 -1\nA\n7 1\nR\n1206 5 # 5x an iridescent blue iris\nS\n#306\nprotection~\n1 0 q 184 -1\nA\n12 1\nR\n1300 5 # 5x a glowing green seashell\nS\n#307\nevasion~\n1 0 q 184 -1\nA\n18 1\nR\n103 5 # 5x a yellow lightning stone\nS\n#308\nrage~\n1 0 q 184 -1\nA\n1 1\nR\n104 5 # 5x a red bloodstone\nS\n#309\npower~\n1 0 q 184 -1\nA\n8 1\nR\n1300 5 # 5x a glowing green seashell\nS\n#310\nspellwarding~\n1 0 q 184 -1\nA\n24 1\nR\n1206 5 # 5x an iridescent blue iris\nS\n#311\nfocus~\n1 0 q 184 -1\nA\n17 1\nR\n104 5 # 5x a red bloodstone\nS\n#312\nacrobatics~\n1 0 q 184 -1\nA\n2 1\nR\n103 5 # 5x a yellow lightning stone\nS\n$\n","avg_line_length":9.0283018868,"max_line_length":37,"alphanum_fraction":0.6614420063} {"size":13154,"ext":"aug","lang":"Augeas","max_stars_count":null,"content":"<!DOCTYPE html>\n<!--[if IE]><![endif]-->\n<html>\n \n <head>\n <meta charset=\"utf-8\">\n <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge,chrome=1\">\n <title>Class SendFunction\n <\/title>\n <meta name=\"viewport\" content=\"width=device-width\">\n <meta name=\"title\" content=\"Class SendFunction\n \">\n <meta name=\"generator\" content=\"docfx 2.51.0.0\">\n \n <link rel=\"shortcut icon\" href=\"..\/favicon.ico\">\n <link rel=\"stylesheet\" href=\"..\/styles\/docfx.vendor.css\">\n <link rel=\"stylesheet\" href=\"..\/styles\/docfx.css\">\n <link rel=\"stylesheet\" href=\"..\/styles\/main.css\">\n <meta property=\"docfx:navrel\" content=\"..\/toc.html\">\n <meta property=\"docfx:tocrel\" content=\"toc.html\">\n \n \n \n <\/head>\n <body data-spy=\"scroll\" data-target=\"#affix\" data-offset=\"120\">\n <div id=\"wrapper\">\n <header>\n \n <nav id=\"autocollapse\" class=\"navbar navbar-inverse ng-scope\" role=\"navigation\">\n <div class=\"container\">\n <div class=\"navbar-header\">\n <button type=\"button\" class=\"navbar-toggle\" data-toggle=\"collapse\" data-target=\"#navbar\">\n <span class=\"sr-only\">Toggle navigation<\/span>\n <span class=\"icon-bar\"><\/span>\n <span class=\"icon-bar\"><\/span>\n <span class=\"icon-bar\"><\/span>\n <\/button>\n \n <a class=\"navbar-brand\" href=\"..\/index.html\">\n <img id=\"logo\" class=\"svg\" src=\"..\/logo.svg\" alt=\"\">\n <\/a>\n <\/div>\n <div class=\"collapse navbar-collapse\" id=\"navbar\">\n <form class=\"navbar-form navbar-right\" role=\"search\" id=\"search\">\n <div class=\"form-group\">\n <input type=\"text\" class=\"form-control\" id=\"search-query\" placeholder=\"Search\" autocomplete=\"off\">\n <\/div>\n <\/form>\n <\/div>\n <\/div>\n <\/nav>\n \n <div class=\"subnav navbar navbar-default\">\n <div class=\"container hide-when-search\" id=\"breadcrumb\">\n <ul class=\"breadcrumb\">\n <li><\/li>\n <\/ul>\n <\/div>\n <\/div>\n <\/header>\n <div role=\"main\" class=\"container body-content hide-when-search\">\n \n <div class=\"sidenav hide-when-search\">\n <a class=\"btn toc-toggle collapse\" data-toggle=\"collapse\" href=\"#sidetoggle\" aria-expanded=\"false\" aria-controls=\"sidetoggle\">Show \/ Hide Table of Contents<\/a>\n <div class=\"sidetoggle collapse\" id=\"sidetoggle\">\n <div id=\"sidetoc\"><\/div>\n <\/div>\n <\/div>\n <div class=\"article row grid-right\">\n <div class=\"col-md-10\">\n <article class=\"content wrap\" id=\"_content\" data-uid=\"alps_.net_api.SendFunction\">\n \n \n <h1 id=\"alps__net_api_SendFunction\" data-uid=\"alps_.net_api.SendFunction\" class=\"text-break\">Class SendFunction\n <\/h1>\n <div class=\"markdown level0 summary\"><\/div>\n <div class=\"markdown level0 conceptual\"><\/div>\n <div class=\"inheritance\">\n <h5>Inheritance<\/h5>\n <div class=\"level0\"><span class=\"xref\">System.Object<\/span><\/div>\n <div class=\"level1\"><a class=\"xref\" href=\"alps_.net_api.PASSProcessModelElement.html\">PASSProcessModelElement<\/a><\/div>\n <div class=\"level2\"><a class=\"xref\" href=\"alps_.net_api.BehaviorDescriptionComponent.html\">BehaviorDescriptionComponent<\/a><\/div>\n <div class=\"level3\"><a class=\"xref\" href=\"alps_.net_api.FunctionSpecification.html\">FunctionSpecification<\/a><\/div>\n <div class=\"level4\"><a class=\"xref\" href=\"alps_.net_api.CommunicationAct.html\">CommunicationAct<\/a><\/div>\n <div class=\"level5\"><span class=\"xref\">SendFunction<\/span><\/div>\n <\/div>\n <div classs=\"implements\">\n <h5>Implements<\/h5>\n <div><a class=\"xref\" href=\"alps_.net_api.ISendFunction.html\">ISendFunction<\/a><\/div>\n <div><a class=\"xref\" href=\"alps_.net_api.ICommunicationAct.html\">ICommunicationAct<\/a><\/div>\n <div><a class=\"xref\" href=\"alps_.net_api.IFunctionSpecification.html\">IFunctionSpecification<\/a><\/div>\n <div><a class=\"xref\" href=\"alps_.net_api.IBehaviorDescriptionComponent.html\">IBehaviorDescriptionComponent<\/a><\/div>\n <div><a class=\"xref\" href=\"alps_.net_api.IPASSProcessModellElement.html\">IPASSProcessModellElement<\/a><\/div>\n <div><a class=\"xref\" href=\"alps_.net_api.IOwlThing.html\">IOwlThing<\/a><\/div>\n <\/div>\n <div class=\"inheritedMembers\">\n <h5>Inherited Members<\/h5>\n <div>\n <a class=\"xref\" href=\"alps_.net_api.CommunicationAct.html#alps__net_api_CommunicationAct_className\">CommunicationAct.className<\/a>\n <\/div>\n <div>\n <a class=\"xref\" href=\"alps_.net_api.CommunicationAct.html#alps__net_api_CommunicationAct_factoryMethod\">CommunicationAct.factoryMethod()<\/a>\n <\/div>\n <div>\n <a class=\"xref\" href=\"alps_.net_api.FunctionSpecification.html#alps__net_api_FunctionSpecification_setToolSpecificDefinition_System_String_\">FunctionSpecification.setToolSpecificDefinition(String)<\/a>\n <\/div>\n <div>\n <a class=\"xref\" href=\"alps_.net_api.FunctionSpecification.html#alps__net_api_FunctionSpecification_getToolSpecificDefinition\">FunctionSpecification.getToolSpecificDefinition()<\/a>\n <\/div>\n <div>\n <a class=\"xref\" href=\"alps_.net_api.BehaviorDescriptionComponent.html#alps__net_api_BehaviorDescriptionComponent_setBelongsToSubjectBehavior_alps__net_api_ISubjectBehavior_\">BehaviorDescriptionComponent.setBelongsToSubjectBehavior(ISubjectBehavior)<\/a>\n <\/div>\n <div>\n <a class=\"xref\" href=\"alps_.net_api.BehaviorDescriptionComponent.html#alps__net_api_BehaviorDescriptionComponent_getSubjectBehavior\">BehaviorDescriptionComponent.getSubjectBehavior()<\/a>\n <\/div>\n <div>\n <a class=\"xref\" href=\"alps_.net_api.PASSProcessModelElement.html#alps__net_api_PASSProcessModelElement_setAdditionalAttribute_System_String_\">PASSProcessModelElement.setAdditionalAttribute(String)<\/a>\n <\/div>\n <div>\n <a class=\"xref\" href=\"alps_.net_api.PASSProcessModelElement.html#alps__net_api_PASSProcessModelElement_getAdditionalAttribute\">PASSProcessModelElement.getAdditionalAttribute()<\/a>\n <\/div>\n <div>\n <a class=\"xref\" href=\"alps_.net_api.PASSProcessModelElement.html#alps__net_api_PASSProcessModelElement_setModelComponentID_System_String_\">PASSProcessModelElement.setModelComponentID(String)<\/a>\n <\/div>\n <div>\n <a class=\"xref\" href=\"alps_.net_api.PASSProcessModelElement.html#alps__net_api_PASSProcessModelElement_getModelComponentID\">PASSProcessModelElement.getModelComponentID()<\/a>\n <\/div>\n <div>\n <a class=\"xref\" href=\"alps_.net_api.PASSProcessModelElement.html#alps__net_api_PASSProcessModelElement_setModelComponentLabel_System_Collections_Generic_List_System_String__\">PASSProcessModelElement.setModelComponentLabel(List<String>)<\/a>\n <\/div>\n <div>\n <a class=\"xref\" href=\"alps_.net_api.PASSProcessModelElement.html#alps__net_api_PASSProcessModelElement_getModelComponentLabel\">PASSProcessModelElement.getModelComponentLabel()<\/a>\n <\/div>\n <div>\n <a class=\"xref\" href=\"alps_.net_api.PASSProcessModelElement.html#alps__net_api_PASSProcessModelElement_setComment_System_String_\">PASSProcessModelElement.setComment(String)<\/a>\n <\/div>\n <div>\n <a class=\"xref\" href=\"alps_.net_api.PASSProcessModelElement.html#alps__net_api_PASSProcessModelElement_getComment\">PASSProcessModelElement.getComment()<\/a>\n <\/div>\n <div>\n <span class=\"xref\">System.Object.ToString()<\/span>\n <\/div>\n <div>\n <span class=\"xref\">System.Object.Equals(System.Object)<\/span>\n <\/div>\n <div>\n <span class=\"xref\">System.Object.Equals(System.Object, System.Object)<\/span>\n <\/div>\n <div>\n <span class=\"xref\">System.Object.ReferenceEquals(System.Object, System.Object)<\/span>\n <\/div>\n <div>\n <span class=\"xref\">System.Object.GetHashCode()<\/span>\n <\/div>\n <div>\n <span class=\"xref\">System.Object.GetType()<\/span>\n <\/div>\n <div>\n <span class=\"xref\">System.Object.MemberwiseClone()<\/span>\n <\/div>\n <\/div>\n <h6><strong>Namespace<\/strong>: <a class=\"xref\" href=\"alps_.net_api.html\">alps_.net_api<\/a><\/h6>\n <h6><strong>Assembly<\/strong>: alps.net_api.dll<\/h6>\n <h5 id=\"alps__net_api_SendFunction_syntax\">Syntax<\/h5>\n <div class=\"codewrapper\">\n <pre><code class=\"lang-csharp hljs\">public class SendFunction : CommunicationAct, ISendFunction, ICommunicationAct, IFunctionSpecification, IBehaviorDescriptionComponent, IPASSProcessModellElement, IOwlThing<\/code><\/pre>\n <\/div>\n <h3 id=\"constructors\">Constructors\n <\/h3>\n \n \n <a id=\"alps__net_api_SendFunction__ctor_\" data-uid=\"alps_.net_api.SendFunction.#ctor*\"><\/a>\n <h4 id=\"alps__net_api_SendFunction__ctor\" data-uid=\"alps_.net_api.SendFunction.#ctor\">SendFunction()<\/h4>\n <div class=\"markdown level1 summary\"><\/div>\n <div class=\"markdown level1 conceptual\"><\/div>\n <h5 class=\"decalaration\">Declaration<\/h5>\n <div class=\"codewrapper\">\n <pre><code class=\"lang-csharp hljs\">public SendFunction()<\/code><\/pre>\n <\/div>\n \n \n <a id=\"alps__net_api_SendFunction__ctor_\" data-uid=\"alps_.net_api.SendFunction.#ctor*\"><\/a>\n <h4 id=\"alps__net_api_SendFunction__ctor_System_String_System_String_System_Collections_Generic_List_System_String__System_String_alps__net_api_SubjectBehavior_System_String_\" data-uid=\"alps_.net_api.SendFunction.#ctor(System.String,System.String,System.Collections.Generic.List{System.String},System.String,alps_.net_api.SubjectBehavior,System.String)\">SendFunction(String, String, List<String>, String, SubjectBehavior, String)<\/h4>\n <div class=\"markdown level1 summary\"><\/div>\n <div class=\"markdown level1 conceptual\"><\/div>\n <h5 class=\"decalaration\">Declaration<\/h5>\n <div class=\"codewrapper\">\n <pre><code class=\"lang-csharp hljs\">public SendFunction(string additionalAttribute, string modelComponentID, List<string> modelComponentLabel, string comment, SubjectBehavior subjectBehavior, string toolSpecificDefinition)<\/code><\/pre>\n <\/div>\n <h5 class=\"parameters\">Parameters<\/h5>\n <table class=\"table table-bordered table-striped table-condensed\">\n <thead>\n <tr>\n <th>Type<\/th>\n <th>Name<\/th>\n <th>Description<\/th>\n <\/tr>\n <\/thead>\n <tbody>\n <tr>\n <td><span class=\"xref\">System.String<\/span><\/td>\n <td><span class=\"parametername\">additionalAttribute<\/span><\/td>\n <td><\/td>\n <\/tr>\n <tr>\n <td><span class=\"xref\">System.String<\/span><\/td>\n <td><span class=\"parametername\">modelComponentID<\/span><\/td>\n <td><\/td>\n <\/tr>\n <tr>\n <td><span class=\"xref\">System.Collections.Generic.List<\/span><<span class=\"xref\">System.String<\/span>><\/td>\n <td><span class=\"parametername\">modelComponentLabel<\/span><\/td>\n <td><\/td>\n <\/tr>\n <tr>\n <td><span class=\"xref\">System.String<\/span><\/td>\n <td><span class=\"parametername\">comment<\/span><\/td>\n <td><\/td>\n <\/tr>\n <tr>\n <td><a class=\"xref\" href=\"alps_.net_api.SubjectBehavior.html\">SubjectBehavior<\/a><\/td>\n <td><span class=\"parametername\">subjectBehavior<\/span><\/td>\n <td><\/td>\n <\/tr>\n <tr>\n <td><span class=\"xref\">System.String<\/span><\/td>\n <td><span class=\"parametername\">toolSpecificDefinition<\/span><\/td>\n <td><\/td>\n <\/tr>\n <\/tbody>\n <\/table>\n <h3 id=\"implements\">Implements<\/h3>\n <div>\n <a class=\"xref\" href=\"alps_.net_api.ISendFunction.html\">ISendFunction<\/a>\n <\/div>\n <div>\n <a class=\"xref\" href=\"alps_.net_api.ICommunicationAct.html\">ICommunicationAct<\/a>\n <\/div>\n <div>\n <a class=\"xref\" href=\"alps_.net_api.IFunctionSpecification.html\">IFunctionSpecification<\/a>\n <\/div>\n <div>\n <a class=\"xref\" href=\"alps_.net_api.IBehaviorDescriptionComponent.html\">IBehaviorDescriptionComponent<\/a>\n <\/div>\n <div>\n <a class=\"xref\" href=\"alps_.net_api.IPASSProcessModellElement.html\">IPASSProcessModellElement<\/a>\n <\/div>\n <div>\n <a class=\"xref\" href=\"alps_.net_api.IOwlThing.html\">IOwlThing<\/a>\n <\/div>\n<\/article>\n <\/div>\n \n <div class=\"hidden-sm col-md-2\" role=\"complementary\">\n <div class=\"sideaffix\">\n <div class=\"contribution\">\n <ul class=\"nav\">\n <\/ul>\n <\/div>\n <nav class=\"bs-docs-sidebar hidden-print hidden-xs hidden-sm affix\" id=\"affix\">\n <!-- <p><a class=\"back-to-top\" href=\"#top\">Back to top<\/a><p> -->\n <\/nav>\n <\/div>\n <\/div>\n <\/div>\n <\/div>\n \n <footer>\n <div class=\"grad-bottom\"><\/div>\n <div class=\"footer\">\n <div class=\"container\">\n <span class=\"pull-right\">\n <a href=\"#top\">Back to top<\/a>\n <\/span>\n \n <span>Generated by <strong>DocFX<\/strong><\/span>\n <\/div>\n <\/div>\n <\/footer>\n <\/div>\n \n <script type=\"text\/javascript\" src=\"..\/styles\/docfx.vendor.js\"><\/script>\n <script type=\"text\/javascript\" src=\"..\/styles\/docfx.js\"><\/script>\n <script type=\"text\/javascript\" src=\"..\/styles\/main.js\"><\/script>\n <\/body>\n<\/html>\n","avg_line_length":45.8327526132,"max_line_length":442,"alphanum_fraction":0.6616238407} {"size":352,"ext":"aug","lang":"Augeas","max_stars_count":1.0,"content":"module Test_pg_ident =\n let empty = Pg_ident.empty\n let record = Pg_ident.record\n let lns = Pg_ident.lns\n\n test empty get \"\\n\" = {}\n test record get \"\\n\" = *\n test lns get \"\n# This is a comment\na b c\n\" = (\n { }\n { \"#comment\" = \"This is a comment\" }\n { \"1\"\n { \"map\" = \"a\" }\n { \"os_user\" = \"b\" }\n { \"db_user\" = \"c\" }\n }\n)\n\n","avg_line_length":16.7619047619,"max_line_length":38,"alphanum_fraction":0.5} {"size":7192,"ext":"aug","lang":"Augeas","max_stars_count":1.0,"content":"module Test_tracini =\n let lns = Tracini.lns\n test lns get \"\n# -*- coding: utf-8 -*-\n\n[attachment]\nmax_size = 262144\nrender_unsafe_content = false\n\n[browser]\nhide_properties = svk:merge\n\n[components]\ntracgantt.* = enabled\n\n[gantt-charts]\ndate_format = %Y\/%m\/%d\ninclude_summary = true\nshow_opened = true\nsummary_length = 32\nuse_creation_date = true\n\n[header_logo]\nalt = Trac\nheight = 73\nlink = http:\/\/trac.edgewall.com\/\nsrc = common\/trac_banner.png\nwidth = 236\n\n[intertrac]\nz = zarquon\nzarquon = zarquon\nzarquon.title = Zarquon\nzarquon.url = https:\/\/one.example.com\/projects\/zarquon\nm = mahershalalhashbaz\nmahershalalhashbaz = mahershalalhashbaz\nmahershalalhashbaz.title = Mahershalalhashbaz trac\nmahershalalhashbaz.url = https:\/\/two.example.com\/projects\/mahershalalhashbaz\n\n[logging]\nlog_file = trac.log\nlog_level = DEBUG\nlog_type = none\n\n[mimeviewer]\nenscript_path = enscript\nmax_preview_size = 262144\nphp_path = php\ntab_width = 8\n\n[notification]\nalways_notify_owner = true\nalways_notify_reporter = true\nsmtp_always_cc = \nsmtp_defaultdomain = example.com\nsmtp_enabled = true\nsmtp_from = zarquon-trac@example.com\nsmtp_password = \nsmtp_port = 25\nsmtp_replyto = onewebmaster@example.com\nsmtp_server = localhost\nsmtp_user = \n\n[project]\ndescr = Zarquon\nfooter = Visit the Trac open source project at<br \/><a href=\\\"http:\/\/trac.edgewall.com\/\\\">http:\/\/trac.edgewall.com\/<\/a>\nicon = common\/trac.ico\nname = Zarquon\nurl = https:\/\/one.example.com\/projects\/zarquon\/\n\n[ticket]\ndefault_component = component1\ndefault_milestone = \ndefault_priority = major\ndefault_type = defect\ndefault_version = \nrestrict_owner = false\n\n[ticket-custom]\ndependencies = text\ndependencies.label = Dependencies\ndependencies.value = \ndue_assign = text\ndue_assign.label = Due to assign\ndue_assign.value = YYYY\/MM\/DD\ndue_close = text\ndue_close.label = Due to close\ndue_close.value = YYYY\/MM\/DD\ninclude_gantt = checkbox\ninclude_gantt.label = Include in GanttChart\ninclude_gantt.value = \n\n[ticket-workflow]\naccept = new -> assigned\naccept.operations = set_owner_to_self\naccept.permissions = TICKET_MODIFY\nleave = * -> *\nleave.default = 1\nleave.operations = leave_status\nreassign = new,assigned,reopened -> new\nreassign.operations = set_owner\nreassign.permissions = TICKET_MODIFY\nreopen = closed -> reopened\nreopen.operations = del_resolution\nreopen.permissions = TICKET_CREATE\nresolve = new,assigned,reopened -> closed\nresolve.operations = set_resolution\nresolve.permissions = TICKET_MODIFY\n\n[timeline]\nchangeset_show_files = 0\ndefault_daysback = 30\nticket_show_details = false\n\n[trac]\ncheck_auth_ip = true\ndatabase = sqlite:db\/trac.db\ndefault_charset = iso-8859-15\ndefault_handler = WikiModule\nignore_auth_case = false\nmainnav = wiki,timeline,roadmap,browser,tickets,newticket,search\nmetanav = login,logout,settings,help,about\npermission_store = DefaultPermissionStore\nrepository_dir = \/var\/www\/svn\/ftdb\ntemplates_dir = \/usr\/share\/trac\/templates\n\n[wiki]\nignore_missing_pages = false\n\" = (\n { }\n { \"#comment\" = \"-*- coding: utf-8 -*-\" }\n { }\n { \"attachment\"\n { \"max_size\" = \"262144\" }\n { \"render_unsafe_content\" = \"false\" }\n { }\n }\n { \"browser\"\n { \"hide_properties\" = \"svk:merge\" }\n { }\n }\n { \"components\"\n { \"tracgantt.*\" = \"enabled\" }\n { }\n }\n { \"gantt-charts\"\n { \"date_format\" = \"%Y\/%m\/%d\" }\n { \"include_summary\" = \"true\" }\n { \"show_opened\" = \"true\" }\n { \"summary_length\" = \"32\" }\n { \"use_creation_date\" = \"true\" }\n { }\n }\n { \"header_logo\"\n { \"alt\" = \"Trac\" }\n { \"height\" = \"73\" }\n { \"link\" = \"http:\/\/trac.edgewall.com\/\" }\n { \"src\" = \"common\/trac_banner.png\" }\n { \"width\" = \"236\" }\n { }\n }\n { \"intertrac\"\n { \"z\" = \"zarquon\" }\n { \"zarquon\" = \"zarquon\" }\n { \"zarquon.title\" = \"Zarquon\" }\n { \"zarquon.url\" = \"https:\/\/one.example.com\/projects\/zarquon\" }\n { \"m\" = \"mahershalalhashbaz\" }\n { \"mahershalalhashbaz\" = \"mahershalalhashbaz\" }\n { \"mahershalalhashbaz.title\" = \"Mahershalalhashbaz trac\" }\n { \"mahershalalhashbaz.url\" = \"https:\/\/two.example.com\/projects\/mahershalalhashbaz\" }\n { }\n }\n { \"logging\"\n { \"log_file\" = \"trac.log\" }\n { \"log_level\" = \"DEBUG\" }\n { \"log_type\" = \"none\" }\n { }\n }\n { \"mimeviewer\"\n { \"enscript_path\" = \"enscript\" }\n { \"max_preview_size\" = \"262144\" }\n { \"php_path\" = \"php\" }\n { \"tab_width\" = \"8\" }\n { }\n }\n { \"notification\"\n { \"always_notify_owner\" = \"true\" }\n { \"always_notify_reporter\" = \"true\" }\n { \"smtp_always_cc\" }\n { \"smtp_defaultdomain\" = \"example.com\" }\n { \"smtp_enabled\" = \"true\" }\n { \"smtp_from\" = \"zarquon-trac@example.com\" }\n { \"smtp_password\" }\n { \"smtp_port\" = \"25\" }\n { \"smtp_replyto\" = \"onewebmaster@example.com\" }\n { \"smtp_server\" = \"localhost\" }\n { \"smtp_user\" }\n { }\n }\n { \"project\"\n { \"descr\" = \"Zarquon\" }\n { \"footer\" = \"Visit the Trac open source project at<br \/><a href=\\\"http:\/\/trac.edgewall.com\/\\\">http:\/\/trac.edgewall.com\/<\/a>\" }\n { \"icon\" = \"common\/trac.ico\" }\n { \"name\" = \"Zarquon\" }\n { \"url\" = \"https:\/\/one.example.com\/projects\/zarquon\/\" }\n { }\n }\n { \"ticket\"\n { \"default_component\" = \"component1\" }\n { \"default_milestone\" }\n { \"default_priority\" = \"major\" }\n { \"default_type\" = \"defect\" }\n { \"default_version\" }\n { \"restrict_owner\" = \"false\" }\n { }\n }\n { \"ticket-custom\"\n { \"dependencies\" = \"text\" }\n { \"dependencies.label\" = \"Dependencies\" }\n { \"dependencies.value\" }\n { \"due_assign\" = \"text\" }\n { \"due_assign.label\" = \"Due to assign\" }\n { \"due_assign.value\" = \"YYYY\/MM\/DD\" }\n { \"due_close\" = \"text\" }\n { \"due_close.label\" = \"Due to close\" }\n { \"due_close.value\" = \"YYYY\/MM\/DD\" }\n { \"include_gantt\" = \"checkbox\" }\n { \"include_gantt.label\" = \"Include in GanttChart\" }\n { \"include_gantt.value\" }\n { }\n }\n { \"ticket-workflow\"\n { \"accept\" = \"new -> assigned\" }\n { \"accept.operations\" = \"set_owner_to_self\" }\n { \"accept.permissions\" = \"TICKET_MODIFY\" }\n { \"leave\" = \"* -> *\" }\n { \"leave.default\" = \"1\" }\n { \"leave.operations\" = \"leave_status\" }\n { \"reassign\" = \"new,assigned,reopened -> new\" }\n { \"reassign.operations\" = \"set_owner\" }\n { \"reassign.permissions\" = \"TICKET_MODIFY\" }\n { \"reopen\" = \"closed -> reopened\" }\n { \"reopen.operations\" = \"del_resolution\" }\n { \"reopen.permissions\" = \"TICKET_CREATE\" }\n { \"resolve\" = \"new,assigned,reopened -> closed\" }\n { \"resolve.operations\" = \"set_resolution\" }\n { \"resolve.permissions\" = \"TICKET_MODIFY\" }\n { }\n }\n { \"timeline\"\n { \"changeset_show_files\" = \"0\" }\n { \"default_daysback\" = \"30\" }\n { \"ticket_show_details\" = \"false\" }\n { }\n }\n { \"trac\"\n { \"check_auth_ip\" = \"true\" }\n { \"database\" = \"sqlite:db\/trac.db\" }\n { \"default_charset\" = \"iso-8859-15\" }\n { \"default_handler\" = \"WikiModule\" }\n { \"ignore_auth_case\" = \"false\" }\n { \"mainnav\" = \"wiki,timeline,roadmap,browser,tickets,newticket,search\" }\n { \"metanav\" = \"login,logout,settings,help,about\" }\n { \"permission_store\" = \"DefaultPermissionStore\" }\n { \"repository_dir\" = \"\/var\/www\/svn\/ftdb\" }\n { \"templates_dir\" = \"\/usr\/share\/trac\/templates\" }\n { }\n }\n { \"wiki\"\n { \"ignore_missing_pages\" = \"false\" }\n }\n)\n","avg_line_length":26.3443223443,"max_line_length":131,"alphanum_fraction":0.6391824249} {"size":8711,"ext":"aug","lang":"Augeas","max_stars_count":null,"content":"(*\nModule: Shellvars\n Generic lens for shell-script config files like the ones found\n in \/etc\/sysconfig\n\nAbout: License\n This file is licenced under the LGPL v2+, like the rest of Augeas.\n\nAbout: Lens Usage\n To be documented\n*)\n\nmodule Shellvars =\n autoload xfm\n\n let empty = Util.empty\n let empty_part_re = Util.empty_generic_re . \/\\n+\/\n let eol = del (\/[ \\t]+|[ \\t]*[;\\n]\/ . empty_part_re*) \"\\n\"\n let semicol_eol = del (\/[ \\t]*[;\\n]\/ . empty_part_re*) \"\\n\"\n\n let key_re = \/[A-Za-z0-9_]+(\\[[0-9]+\\])?\/ - (\"unset\" | \"export\")\n let matching_re = \"${!\" . key_re . \/[\\*@]\\}\/\n let eq = Util.del_str \"=\"\n\n let eol_for_comment = del \/([ \\t]*\\n)([ \\t]*(#[ \\t]*)?\\n)*\/ \"\\n\"\n let comment = Util.comment_generic_seteol \/[ \\t]*#[ \\t]*\/ \" # \" eol_for_comment\n (* comment_eol in shell MUST begin with a space *)\n let comment_eol = Util.comment_generic_seteol \/[ \\t]+#[ \\t]*\/ \" # \" eol_for_comment\n let comment_or_eol = comment_eol | semicol_eol\n\n let xchgs = Build.xchgs\n let semicol = del \/;?\/ \"\"\n\n let char = \/[^`;() '\"\\t\\n]|\\\\\\\\\"\/\n let dquot = \/\"([^\"\\\\]|\\\\\\\\.)*\"\/ (* \" Emacs, relax *)\n let squot = \/'[^']*'\/\n let bquot = \/`[^`\\n]*`\/\n (* dbquot don't take spaces or semi-colons *)\n let dbquot = \/``[^` \\t\\n;]+``\/\n let dollar_assign = \/\\$\\([^\\)#\\n]*\\)\/\n\n let sto_to_semicol = store \/[^#; \\t\\n][^#;\\n]+[^#; \\t\\n]|[^#; \\t\\n]+\/\n\n (* Array values of the form '(val1 val2 val3)'. We do not handle empty *)\n (* arrays here because of typechecking headaches. Instead, they are *)\n (* treated as a simple value *)\n let array =\n let array_value = store (char+ | dquot) in\n del \/\\([ \\t]*\/ \"(\" . counter \"values\" .\n [ seq \"values\" . array_value ] .\n [ del \/[ \\t\\n]+\/ \" \" . seq \"values\" . array_value ] *\n . del \/[ \\t]*\\)\/ \")\"\n\n (* Treat an empty list () as a value '()'; that's not quite correct *)\n (* but fairly close. *)\n let simple_value =\n let empty_array = \/\\([ \\t]*\\)\/ in\n store (char* | (dquot | squot)+\n | bquot | dbquot | dollar_assign | empty_array)\n\n let export = [ key \"export\" . Util.del_ws_spc ]\n let kv = Util.indent . export? . key key_re\n . eq . (simple_value | array)\n\n let var_action (name:string) =\n Util.indent . del name name . Util.del_ws_spc\n . label (\"@\" . name) . counter \"var_action\"\n . Build.opt_list [ seq \"var_action\" . store (key_re | matching_re) ] Util.del_ws_spc\n\n let unset = var_action \"unset\"\n let bare_export = var_action \"export\"\n\n let source =\n Util.indent\n . del \/\\.|source\/ \".\" . label \".source\"\n . Util.del_ws_spc . store \/[^;=# \\t\\n]+\/\n\n let shell_builtin_cmds = \"ulimit\" | \"shift\" | \"exit\"\n\n let builtin =\n Util.indent . label \"@builtin\"\n . store shell_builtin_cmds\n . (Util.del_ws_spc\n . [ label \"args\" . sto_to_semicol ])?\n\n let keyword (kw:string) = Util.indent . Util.del_str kw\n let keyword_label (kw:string) (lbl:string) = keyword kw . label lbl\n\n let return =\n Util.indent . label \"@return\"\n . Util.del_str \"return\"\n . ( Util.del_ws_spc . store Rx.integer )?\n\n\n(************************************************************************\n * Group: CONDITIONALS AND LOOPS\n *************************************************************************)\n\n let generic_cond_start (start_kw:string) (lbl:string)\n (then_kw:string) (contents:lens) =\n keyword_label start_kw lbl . Sep.space\n . sto_to_semicol . semicol_eol\n . keyword then_kw . eol\n . contents\n\n let generic_cond (start_kw:string) (lbl:string)\n (then_kw:string) (contents:lens) (end_kw:string) =\n [ generic_cond_start start_kw lbl then_kw contents\n . keyword end_kw . comment_or_eol ]\n\n let cond_if (entry:lens) =\n let elif = [ generic_cond_start \"elif\" \"@elif\" \"then\" entry+ ] in\n let else = [ keyword_label \"else\" \"@else\" . eol . entry+ ] in\n generic_cond \"if\" \"@if\" \"then\" (entry+ . elif* . else?) \"fi\"\n\n let loop_for (entry:lens) =\n generic_cond \"for\" \"@for\" \"do\" entry+ \"done\"\n\n let loop_while (entry:lens) =\n generic_cond \"while\" \"@while\" \"do\" entry+ \"done\"\n\n let loop_until (entry:lens) =\n generic_cond \"until\" \"@until\" \"do\" entry+ \"done\"\n\n let loop_select (entry:lens) =\n generic_cond \"select\" \"@select\" \"do\" entry+ \"done\"\n\n let case (entry:lens) (entry_noeol:lens) =\n let case_entry = [ label \"@case_entry\"\n . Util.indent . store \/[^ \\t\\n\\)]+\/\n . Util.del_str \")\" . eol\n . ( entry+ | entry_noeol )?\n . Util.indent . Util.del_str \";;\" . eol ] in\n [ keyword_label \"case\" \"@case\" . Sep.space\n . store (char+ | (\"\\\"\" . char+ . \"\\\"\"))\n . del \/[ \\t\\n]+\/ \" \" . Util.del_str \"in\" . eol\n . (empty* . comment* . case_entry)*\n . empty* . comment*\n . keyword \"esac\" . comment_or_eol ]\n\n let function (entry:lens) =\n [ Util.indent . label \"@function\"\n . del \/(function[ \\t]+)?\/ \"\"\n . store Rx.word . del \/[ \\t]*\\(\\)\/ \"()\"\n . eol . Util.del_str \"{\" . eol\n . entry+\n . Util.indent . Util.del_str \"}\" . eol ]\n\n let entry_eol =\n let entry_eol_item (item:lens) =\n [ item . comment_or_eol ] in\n entry_eol_item source\n | entry_eol_item kv\n | entry_eol_item unset\n | entry_eol_item bare_export\n | entry_eol_item builtin\n | entry_eol_item return\n\n let entry_noeol =\n let entry_item (item:lens) = [ item ] in\n entry_item source\n | entry_item kv\n | entry_item unset\n | entry_item bare_export\n | entry_item builtin\n | entry_item return\n\n let rec rec_entry =\n let entry = comment | entry_eol | rec_entry in\n cond_if entry\n | loop_for entry\n | loop_select entry\n | loop_while entry\n | loop_until entry\n | case entry entry_noeol\n | function entry\n\n let lns_norec = empty* . (comment | entry_eol) *\n\n let lns = empty* . (comment | entry_eol | rec_entry) *\n\n let sc_incl (n:string) = (incl (\"\/etc\/sysconfig\/\" . n))\n let sc_excl (n:string) = (excl (\"\/etc\/sysconfig\/\" . n))\n\n let filter_sysconfig =\n sc_incl \"*\" .\n sc_excl \"bootloader\" .\n sc_excl \"hw-uuid\" .\n sc_excl \"hwconf\" .\n sc_excl \"ip*tables\" .\n sc_excl \"kernel\" .\n sc_excl \"*.pub\" .\n sc_excl \"sysstat.ioconf\" .\n sc_excl \"system-config-firewall\" .\n sc_excl \"system-config-securitylevel\" .\n sc_incl \"network\/config\" .\n sc_incl \"network\/dhcp\" .\n sc_incl \"network\/dhcp6r\" .\n sc_incl \"network\/dhcp6s\" .\n sc_incl \"network\/ifcfg-*\" .\n sc_incl \"network\/if-down.d\/*\" .\n sc_incl \"network\/ifroute-*\" .\n sc_incl \"network\/if-up.d\/*\" .\n sc_incl \"network\/providers\/*\" .\n sc_excl \"network-scripts\" .\n sc_incl \"network-scripts\/ifcfg-*\" .\n sc_excl \"rhn\" .\n sc_incl \"rhn\/allowed-actions\/*\" .\n sc_excl \"rhn\/allowed-actions\/script\" .\n sc_incl \"rhn\/allowed-actions\/script\/*\" .\n sc_incl \"rhn\/rhnsd\" .\n sc_excl \"SuSEfirewall2.d\" .\n sc_incl \"SuSEfirewall2.d\/cobbler\" .\n sc_incl \"SuSEfirewall2.d\/services\/*\" .\n sc_excl \"SuSEfirewall2.d\/services\/TEMPLATE\"\n\n let filter_default = incl \"\/etc\/default\/*\"\n . excl \"\/etc\/default\/grub_installdevice*\"\n . excl \"\/etc\/default\/whoopsie\"\n let filter_misc = incl \"\/etc\/arno-iptables-firewall\/debconf.cfg\"\n . incl \"\/etc\/cron-apt\/config\"\n . incl \"\/etc\/environment\"\n . incl \"\/etc\/firewalld\/firewalld.conf\"\n . incl \"\/etc\/blkid.conf\"\n . incl \"\/etc\/adduser.conf\"\n . incl \"\/etc\/cowpoke.conf\"\n . incl \"\/etc\/cvs-cron.conf\"\n . incl \"\/etc\/cvs-pserver.conf\"\n . incl \"\/etc\/devscripts.conf\"\n . incl \"\/etc\/lintianrc\"\n . incl \"\/etc\/lsb-release\"\n . incl \"\/etc\/os-release\"\n . incl \"\/etc\/popularity-contest.conf\"\n . incl \"\/etc\/rc.conf\"\n . incl \"\/etc\/rc.conf.local\"\n . incl \"\/etc\/selinux\/config\"\n . incl \"\/etc\/ucf.conf\"\n . incl \"\/etc\/locale.conf\"\n . incl \"\/etc\/vconsole.conf\"\n . incl \"\/etc\/shorewall\/shorewall.conf\"\n\n let filter = filter_sysconfig\n . filter_default\n . filter_misc\n . Util.stdexcl\n\n let xfm = transform lns filter\n\n(* Local Variables: *)\n(* mode: caml *)\n(* End: *)\n","avg_line_length":34.5674603175,"max_line_length":88,"alphanum_fraction":0.5374813454} {"size":4426,"ext":"aug","lang":"Augeas","max_stars_count":1.0,"content":"(*\nModule: Hosts_Access\n Parses \/etc\/hosts.{allow,deny}\n\nAuthor: Raphael Pinson <raphink@gmail.com>\n\nAbout: Reference\n This lens tries to keep as close as possible to `man 5 hosts_access` and `man 5 hosts_options` where possible.\n\nAbout: License\n This file is licenced under the LGPL v2+, like the rest of Augeas.\n\nAbout: Lens Usage\n To be documented\n\nAbout: Configuration files\n This lens applies to \/etc\/hosts.{allow,deny}. See <filter>.\n*)\n\nmodule Hosts_Access =\n\nautoload xfm\n\n(************************************************************************\n * Group: USEFUL PRIMITIVES\n *************************************************************************)\n\n(* View: colon *)\nlet colon = del \/[ \\t]*(\\\\\\\\[ \\t]*\\n[ \\t]+)?:[ \\t]*(\\\\\\\\[ \\t]*\\n[ \\t]+)?\/ \": \"\n\n(* Variable: comma_sep *)\nlet comma_sep = \/([ \\t]|(\\\\\\\\\\n))*,([ \\t]|(\\\\\\\\\\n))*\/\n\n(* Variable: ws_sep *)\nlet ws_sep = \/ +\/\n\n(* View: list_sep *)\nlet list_sep = del ( comma_sep | ws_sep ) \", \"\n\n(* View: list_item *)\nlet list_item = store ( Rx.word - \/EXCEPT\/i )\n\n(* View: client_host_item\n Allows @ for netgroups, supports [ipv6] syntax *)\nlet client_host_item =\n let client_hostname_rx = \/[A-Za-z0-9_.@?*-][A-Za-z0-9_.?*-]*\/ in\n let client_ipv6_rx = \"[\" . \/[A-Za-z0-9:?*%]+\/ . \"]\" in\n let client_host_rx = client_hostname_rx | client_ipv6_rx in\n let netmask = [ Util.del_str \"\/\" . label \"netmask\" . store Rx.word ] in\n store ( client_host_rx - \/EXCEPT\/i ) . netmask?\n\n(* View: client_file_item *)\nlet client_file_item =\n let client_file_rx = \/\\\/[^ \\t\\n,:]+\/ in\n store ( client_file_rx - \/EXCEPT\/i )\n\n(* Variable: option_kw\n Since either an option or a shell command can be given, use an explicit list\n of known options to avoid misinterpreting a command as an option *)\nlet option_kw = \"severity\"\n | \"spawn\"\n | \"twist\"\n | \"keepalive\"\n | \"linger\"\n | \"rfc931\"\n | \"banners\"\n | \"nice\"\n | \"setenv\"\n | \"umask\"\n | \"user\"\n | \/allow\/i\n | \/deny\/i\n\n(* Variable: shell_command_rx *)\nlet shell_command_rx = \/[^ \\t\\n:][^\\n]*[^ \\t\\n]|[^ \\t\\n:\\\\\\\\]\/\n - ( option_kw . \/.*\/ )\n\n(* View: sto_to_colon\n Allows escaped colon sequences *)\nlet sto_to_colon = store \/[^ \\t\\n:=][^\\n:]*((\\\\\\\\:|\\\\\\\\[ \\t]*\\n[ \\t]+)[^\\n:]*)*[^ \\\\\\t\\n:]|[^ \\t\\n:\\\\\\\\]\/\n\n(* View: except\n * The except operator makes it possible to write very compact rules.\n *)\nlet except (lns:lens) = [ label \"except\" . Sep.space\n . del \/except\/i \"EXCEPT\"\n . Sep.space . lns ]\n\n(************************************************************************\n * Group: ENTRY TYPES\n *************************************************************************)\n\n(* View: daemon *)\nlet daemon =\n let host = [ label \"host\"\n . Util.del_str \"@\"\n . list_item ] in\n [ label \"process\"\n . list_item\n . host? ]\n\n(* View: daemon_list\n A list of <daemon>s *)\nlet daemon_list = Build.opt_list daemon list_sep\n\n(* View: client *)\nlet client =\n let user = [ label \"user\"\n . list_item\n . Util.del_str \"@\" ] in\n [ label \"client\"\n . user?\n . client_host_item ]\n\n(* View: client_file *)\nlet client_file = [ label \"file\" . client_file_item ]\n\n(* View: client_list\n A list of <client>s *)\nlet client_list = Build.opt_list ( client | client_file ) list_sep\n\n(* View: option\n Optional extensions defined in hosts_options(5) *)\nlet option = [ key option_kw\n . ( del \/([ \\t]*=[ \\t]*|[ \\t]+)\/ \" \" . sto_to_colon )? ]\n\n(* View: shell_command *)\nlet shell_command = [ label \"shell_command\"\n . store shell_command_rx ]\n\n(* View: entry *)\nlet entry = [ seq \"line\"\n . daemon_list\n . (except daemon_list)?\n . colon\n . client_list\n . (except client_list)?\n . ( (colon . option)+ | (colon . shell_command)? )\n . Util.eol ]\n\n(************************************************************************\n * Group: LENS AND FILTER\n *************************************************************************)\n\n(* View: lns *)\nlet lns = (Util.empty | Util.comment | entry)*\n\n(* View: filter *)\nlet filter = incl \"\/etc\/hosts.allow\"\n . incl \"\/etc\/hosts.deny\"\n\nlet xfm = transform lns filter\n","avg_line_length":28.9281045752,"max_line_length":112,"alphanum_fraction":0.4945774966} {"size":1970,"ext":"aug","lang":"Augeas","max_stars_count":8.0,"content":"(*\nModule: Known_Hosts\n Parses SSH known_hosts files\n\nAuthor: Rapha\u00ebl Pinson <raphink@gmail.com>\n\nAbout: Reference\n This lens manages OpenSSH's known_hosts files. See `man 8 sshd` for reference.\n\nAbout: License\n This file is licenced under the LGPL v2+, like the rest of Augeas.\n\nAbout: Lens Usage\n Sample usage of this lens in augtool:\n\n * Get a key by name from ssh_known_hosts\n > print \/files\/etc\/ssh_known_hosts\/*[.=\"foo.example.com\"]\n ...\n\n * Change a host's key\n > set \/files\/etc\/ssh_known_hosts\/*[.=\"foo.example.com\"]\/key \"newkey\"\n\nAbout: Configuration files\n This lens applies to SSH known_hosts files. See <filter>.\n\n*)\n\nmodule Known_Hosts =\n\nautoload xfm\n\n\n(* View: marker\n The marker is optional, but if it is present then it must be one of\n \u201c@cert-authority\u201d, to indicate that the line contains a certification\n authority (CA) key, or \u201c@revoked\u201d, to indicate that the key contained\n on the line is revoked and must not ever be accepted.\n Only one marker should be used on a key line.\n*)\nlet marker = [ key \/@(revoked|cert-authority)\/ . Sep.space ]\n\n\n(* View: type\n Bits, exponent, and modulus are taken directly from the RSA host key;\n they can be obtained, for example, from \/etc\/ssh\/ssh_host_key.pub.\n The optional comment field continues to the end of the line, and is not used.\n*)\nlet type = [ label \"type\" . store Rx.neg1 ]\n\n\n(* View: entry\n A known_hosts entry *)\nlet entry =\n let alias = [ label \"alias\" . store Rx.neg1 ]\n in let key = [ label \"key\" . store Rx.neg1 ]\n in [ Util.indent . seq \"entry\" . marker?\n . store Rx.neg1\n . (Sep.comma . Build.opt_list alias Sep.comma)?\n . Sep.space . type . Sep.space . key\n . Util.comment_or_eol ]\n\n(* View: lns\n The known_hosts lens *)\nlet lns = (Util.empty | Util.comment | entry)*\n\n(* Variable: filter *)\nlet filter = incl \"\/etc\/ssh\/ssh_known_hosts\"\n . incl (Sys.getenv(\"HOME\") . \"\/.ssh\/known_hosts\")\n\nlet xfm = transform lns filter\n","avg_line_length":27.7464788732,"max_line_length":80,"alphanum_fraction":0.6812182741} {"size":4110,"ext":"aug","lang":"Augeas","max_stars_count":16.0,"content":"(*\nModule: Trapperkeeper\n Parses Trapperkeeper configuration files\n\nAuthor: Raphael Pinson <raphael.pinson@camptocamp.com>\n\nAbout: License\n This file is licenced under the LGPL v2+, like the rest of Augeas.\n\nAbout: Lens Usage\n To be documented\n\nAbout: Configuration files\n This lens applies to Trapperkeeper webservice configuration files. See <filter>.\n\nAbout: Examples\n The <Test_Trapperkeeper> file contains various examples and tests.\n*)\nmodule Trapperkeeper =\n\nautoload xfm\n\n(************************************************************************\n * Group: USEFUL PRIMITIVES\n *************************************************************************)\n\n(* View: empty *)\nlet empty = Util.empty\n\n(* View: comment *)\nlet comment = Util.comment\n\n(* View: sep *)\nlet sep = del \/[ \\t]*[:=]\/ \":\"\n\n(* View: sep_with_spc *)\nlet sep_with_spc = sep . Sep.opt_space\n\n(************************************************************************\n * Group: BLOCKS (FROM 1.2, FOR 0.10 COMPATIBILITY)\n *************************************************************************)\n\n(* Variable: block_ldelim_newlines_re *)\nlet block_ldelim_newlines_re = \/[ \\t\\n]+\\{([ \\t\\n]*\\n)?\/\n\n(* Variable: block_rdelim_newlines_re *)\nlet block_rdelim_newlines_re = \/[ \\t]*\\}\/\n\n(* Variable: block_ldelim_newlines_default *)\nlet block_ldelim_newlines_default = \"\\n{\\n\"\n\n(* Variable: block_rdelim_newlines_default *)\nlet block_rdelim_newlines_default = \"}\"\n\n(************************************************************************\n * View: block_newline\n * A block enclosed in brackets, with newlines forced\n * and indentation defaulting to a tab.\n *\n * Parameters:\n * entry:lens - the entry to be stored inside the block.\n * This entry should not include <Util.empty>,\n * <Util.comment> or <Util.comment_noindent>,\n * should be indented and finish with an eol.\n ************************************************************************)\nlet block_newlines (entry:lens) (comment:lens) =\n del block_ldelim_newlines_re block_ldelim_newlines_default\n . ((entry | comment) . (Util.empty | entry | comment)*)?\n . del block_rdelim_newlines_re block_rdelim_newlines_default\n\n(************************************************************************\n * Group: ENTRY TYPES\n *************************************************************************)\n\nlet opt_dquot (lns:lens) = del \/\"?\/ \"\" . lns . del \/\"?\/ \"\"\n\n(* View: simple *)\nlet simple = [ Util.indent . label \"@simple\" . opt_dquot (store \/[A-Za-z0-9_.\\\/-]+\/) . sep_with_spc\n . [ label \"@value\" . opt_dquot (store \/[^,\"\\[ \\t\\n]+\/) ]\n . Util.eol ]\n\n(* View: array *)\nlet array =\n let lbrack = Util.del_str \"[\"\n in let rbrack = Util.del_str \"]\"\n in let opt_space = del \/[ \\t]*\/ \"\"\n in let comma = opt_space . Util.del_str \",\" . opt_space\n in let elem = [ seq \"elem\" . opt_dquot (store \/[^,\"\\[ \\t\\n]+\/) ]\n in let elems = counter \"elem\" . Build.opt_list elem comma\n in [ Util.indent . label \"@array\" . store Rx.word\n . sep_with_spc . lbrack . Sep.opt_space\n . (elems . Sep.opt_space)?\n . rbrack . Util.eol ]\n\n(* View: hash *)\nlet hash (lns:lens) = [ Util.indent . label \"@hash\" . store Rx.word . sep\n . block_newlines lns Util.comment\n . Util.eol ]\n\n\n(************************************************************************\n * Group: ENTRY\n *************************************************************************)\n\n(* Just for typechecking *)\nlet entry_no_rec = hash (simple|array)\n\n(* View: entry *)\nlet rec entry = hash (entry|simple|array)\n\n(************************************************************************\n * Group: LENS AND FILTER\n *************************************************************************)\n\n(* View: lns *)\nlet lns = (empty|comment)* . (entry . (empty|comment)*)*\n\n(* Variable: filter *)\nlet filter = incl \"\/etc\/puppetserver\/conf.d\/*\"\n . incl \"\/etc\/puppetlabs\/puppetserver\/conf.d\/*\"\n . Util.stdexcl\n\nlet xfm = transform lns filter\n","avg_line_length":33.1451612903,"max_line_length":99,"alphanum_fraction":0.497323601} {"size":479,"ext":"aug","lang":"Augeas","max_stars_count":null,"content":"module Trafficserver_storage =\n autoload xfm\n\n let indent = Util.indent\n let spc = Util.del_ws_spc\n let eol = Util.eol | Util.comment_eol\n\n let filter = incl \"\/etc\/trafficserver\/storage.config\"\n\n let path_re = \/[^ \\t\\n#]+\/\n let size_re = \/[0-9]+[KkMmGgTt]?\/ \n\n let storage_entry = [ indent . label \"path\" . store path_re . ( [ spc . label \"size\" . store size_re ] ) ? . eol ]\n\n let lns = ( Util.empty | Util.comment | storage_entry )*\n let xfm = transform lns filter\n\n","avg_line_length":26.6111111111,"max_line_length":116,"alphanum_fraction":0.6513569937} {"size":1295,"ext":"aug","lang":"Augeas","max_stars_count":1.0,"content":"(*\nModule: Postfix_Virtual\n Parses \/etc\/postfix\/virtual\n\nAuthor: Raphael Pinson <raphael.pinson@camptocamp.com>\n\nAbout: Reference\n This lens tries to keep as close as possible to `man 5 virtual` where possible.\n\nAbout: License\n This file is licenced under the LGPL v2+, like the rest of Augeas.\n\nAbout: Lens Usage\n To be documented\n\nAbout: Configuration files\n This lens applies to \/etc\/postfix\/virtual. See <filter>.\n\nAbout: Examples\n The <Test_Postfix_Virtual> file contains various examples and tests.\n*)\n\nmodule Postfix_Virtual =\n\nautoload xfm\n\n(* Variable: space_or_eol_re *)\nlet space_or_eol_re = \/([ \\t]*\\n)?[ \\t]+\/\n\n(* View: space_or_eol *)\nlet space_or_eol (sep:regexp) (default:string) =\n del (space_or_eol_re? . sep . space_or_eol_re?) default \n\n(* View: word *)\nlet word = store \/[A-Za-z0-9@\\*.+-]+\/\n\n(* View: comma *)\nlet comma = space_or_eol \",\" \", \"\n\n(* View: destination *)\nlet destination = [ label \"destination\" . word ]\n\n(* View: record *)\nlet record =\n let destinations = Build.opt_list destination comma\n in [ label \"pattern\" . word\n . space_or_eol Rx.space \" \" . destinations\n . Util.eol ]\n\n(* View: lns *)\nlet lns = (Util.empty | Util.comment | record)*\n\n(* Variable: filter *)\nlet filter = incl \"\/etc\/postfix\/virtual\"\n\nlet xfm = transform lns filter\n","avg_line_length":22.7192982456,"max_line_length":81,"alphanum_fraction":0.6911196911} {"size":191,"ext":"aug","lang":"Augeas","max_stars_count":84.0,"content":"#600\nembiggening~\n1 0 r 185 -1\nA\n19 1\nR\n1206 1 # 1x an iridescent blue iris\nR\n1300 1 # 1x a glowing green seashell\nR\n104 1 # 1x a red bloodstone\nR\n103 1 # 1x a yellow lightning stone\nS\n$\n","avg_line_length":11.9375,"max_line_length":37,"alphanum_fraction":0.6910994764} {"size":239,"ext":"aug","lang":"Augeas","max_stars_count":6.0,"content":"AudioBufferSource abs { url assets\/wav\/pinknoise.wav, loop true} [ panner ] \nStereoPanner panner { pan \n [ setValueAtTime -1.0 t + 0.1, \n linearRampToValueAtTime 1.0 t +10 \n ] } [ gain ] \nGain gain { gain 0.5 } [ output ] \nEnd","avg_line_length":34.1428571429,"max_line_length":77,"alphanum_fraction":0.640167364} {"size":1413,"ext":"aug","lang":"Augeas","max_stars_count":null,"content":"(* Audit Module lens\nCreated by Michael Palmiotto *)\nmodule Audit =\n autoload xfm\n\n(* Define commonly used expressions *) \n let equals = del \/=[ \\t]*\/ \"= \"\n let space = Util.del_ws_spc \n let eol = del \/[ \\t]*\\n\/ \"\\n\"\n let comment = Util.comment\n let value_to_eol = store \/([^ \\t\\n].*[^ \\t\\n]|[^ \\t\\n])\/\n\n(* Define empty *)\n let empty = [ del \/[ \\t]*\\n\/ \"\" ]\n\n let control_entry (kw:string) = [ key kw . space . equals . space . value_to_eol . eol ]\n let controls = control_entry \"log_file\"\n | control_entry \"log_format\"\n | control_entry \"priority_boost\"\n | control_entry \"flush\"\n | control_entry \"freq\"\n | control_entry \"num_logs\"\n | control_entry \"max_log_file\"\n | control_entry \"max_log_file_action\"\n | control_entry \"action_mail_acct\"\n | control_entry \"space_left\"\n | control_entry \"space_left_action\"\n | control_entry \"admin_space_left\"\n | control_entry \"admin_space_left_action\"\n | control_entry \"disk_full_action\"\n | control_entry \"disk_error_action\"\n\n \n let lns = (comment|empty|control_entry)*\n let filter = incl \"\/etc\/audit\/auditd.conf\" . excl \"#*#\" . excl \".*\" . Util.stdexcl\n let xfm = transform lns filter\n\n (* Local Variables: *)\n (* mode: caml *)\n (* End: *)\n","avg_line_length":34.4634146341,"max_line_length":90,"alphanum_fraction":0.5661712668} {"size":3392,"ext":"aug","lang":"Augeas","max_stars_count":null,"content":"(*\nModule: Automaster\n Parses autofs' auto.master files\n\nAuthor: Dominic Cleal <dcleal@redhat.com>\n\nAbout: Reference\n See auto.master(5)\n\nAbout: License\n This file is licenced under the LGPL v2+, like the rest of Augeas.\n\nAbout: Lens Usage\n To be documented\n\nAbout: Configuration files\n This lens applies to \/etc\/auto.master, auto_master and \/etc\/auto.master.d\/*\n files.\n\nAbout: Examples\n The <Test_Automaster> file contains various examples and tests.\n*)\n\nmodule Automaster =\nautoload xfm\n\n(************************************************************************\n * Group: USEFUL PRIMITIVES\n *************************************************************************)\n\n(* View: eol *)\nlet eol = Util.eol\n\n(* View: empty *)\nlet empty = Util.empty\n\n(* View: comment *)\nlet comment = Util.comment\n\n(* View mount *)\nlet mount = \/[^+ \\t\\n#]+\/\n\n(* View: type\n yp, file, dir etc but not ldap *)\nlet type = Rx.word - \/ldap\/\n\n(* View: format\n sun, hesoid *)\nlet format = Rx.word\n\n(* View: name *)\nlet name = \/[^: \\t\\n]+\/\n\n(* View: host *)\nlet host = \/[^:# \\n\\t]+\/\n\n(* View: dn *)\nlet dn = \/[^:# \\n\\t]+\/\n\n(* An option label can't contain comma, comment, equals, or space *)\nlet optlabel = \/[^,#= \\n\\t]+\/\nlet spec = \/[^,# \\n\\t][^ \\n\\t]*\/\n\n(* View: optsep *)\nlet optsep = del \/[ \\t,]+\/ \",\"\n\n(************************************************************************\n * Group: ENTRIES\n *************************************************************************)\n\n(* View: map_format *)\nlet map_format = [ label \"format\" . store format ]\n\n(* View: map_type *)\nlet map_type = [ label \"type\" . store type ]\n\n(* View: map_name *)\nlet map_name = [ label \"map\" . store name ]\n\n(* View: map_generic\n Used for all except LDAP maps which are parsed further *)\nlet map_generic = ( map_type . ( Sep.comma . map_format )? . Sep.colon )?\n . map_name\n\n(* View: map_ldap_name\n Split up host:dc=foo into host\/map nodes *)\nlet map_ldap_name = ( [ label \"host\" . store host ] . Sep.colon )?\n . [ label \"map\" . store dn ]\n\n(* View: map_ldap *)\nlet map_ldap = [ label \"type\" . store \"ldap\" ]\n . ( Sep.comma . map_format )? . Sep.colon\n . map_ldap_name\n\n(* View: comma_spc_sep_list\n Parses options either for filesystems or autofs *)\nlet comma_spc_sep_list (l:string) =\n let value = [ label \"value\" . Util.del_str \"=\" . store Rx.neg1 ] in\n let lns = [ label l . store optlabel . value? ] in\n Build.opt_list lns optsep\n\n(* View: map_mount \n Mountpoint and whitespace, followed by the map info *)\nlet map_mount = [ seq \"map\" . store mount . Util.del_ws_tab\n . ( map_generic | map_ldap )\n . ( Util.del_ws_spc . comma_spc_sep_list \"opt\" )?\n . Util.eol ]\n\n(* map_master\n \"+\" to include more master entries and optional whitespace *)\nlet map_master = [ seq \"map\" . store \"+\" . Util.del_opt_ws \"\"\n . ( map_generic | map_ldap )\n . ( Util.del_ws_spc . comma_spc_sep_list \"opt\" )?\n . Util.eol ]\n\n(* View: lns *)\nlet lns = ( empty | comment | map_mount | map_master ) *\n\n(* Variable: filter *)\nlet filter = incl \"\/etc\/auto.master\"\n . incl \"\/etc\/auto_master\"\n . incl \"\/etc\/auto.master.d\/*\"\n . Util.stdexcl\n\nlet xfm = transform lns filter\n\n","avg_line_length":26.7086614173,"max_line_length":78,"alphanum_fraction":0.5356721698} {"size":1831,"ext":"aug","lang":"Augeas","max_stars_count":415.0,"content":"(*\nModule: AptPreferences\n Apt\/preferences module for Augeas\n\nAuthor: Raphael Pinson <raphael.pinson@camptocamp.com>\n*)\n\nmodule AptPreferences =\nautoload xfm\n\n(************************************************************************\n * Group: Entries\n ************************************************************************)\n\n(* View: colon *)\nlet colon = del \/:[ \\t]*\/ \": \"\n\n(* View: pin_gen\n A generic pin\n\n Parameters:\n lbl:string - the label *)\nlet pin_gen (lbl:string) = store lbl\n . [ label lbl . Sep.space . store Rx.no_spaces ]\n\n(* View: pin_keys *)\nlet pin_keys =\n let space_in = store \/[^, \\r\\t\\n][^,\\n]*[^, \\r\\t\\n]|[^, \\t\\n\\r]\/\n in Build.key_value \/[aclnov]\/ Sep.equal space_in\n\n(* View: pin_options *)\nlet pin_options =\n let comma = Util.delim \",\"\n in store \"release\" . Sep.space\n . Build.opt_list pin_keys comma\n\n(* View: version_pin *)\nlet version_pin = pin_gen \"version\"\n\n(* View: origin_pin *)\nlet origin_pin = pin_gen \"origin\"\n\n(* View: pin *)\nlet pin =\n let pin_value = pin_options | version_pin | origin_pin\n in Build.key_value_line \"Pin\" colon pin_value\n\n(* View: entries *)\nlet entries = Build.key_value_line (\"Explanation\"|\"Package\"|\"Pin-Priority\")\n colon (store Rx.space_in)\n | pin\n | Util.comment\n\n(* View: record *)\nlet record = [ seq \"record\" . entries+ ]\n\n(************************************************************************\n * Group: Lens\n ************************************************************************)\n\n(* View: lns *)\nlet lns = Util.empty* . (Build.opt_list record Util.eol+ . Util.empty*)?\n\n(* View: filter *)\nlet filter = incl \"\/etc\/apt\/preferences\"\n . incl \"\/etc\/apt\/preferences.d\/*\"\n . Util.stdexcl\n\nlet xfm = transform lns filter\n","avg_line_length":26.1571428571,"max_line_length":75,"alphanum_fraction":0.5057345713} {"size":5843,"ext":"aug","lang":"Augeas","max_stars_count":null,"content":"(*\nModule: Systemd\n Parses systemd unit files.\n\nAuthor: Dominic Cleal <dcleal@redhat.com>\n\nAbout: Reference\n This lens tries to keep as close as possible to systemd.unit(5) and\n systemd.service(5) etc where possible.\n\nAbout: License\n This file is licenced under the LGPL v2+, like the rest of Augeas.\n\nAbout: Lens Usage\n To be documented\n\nAbout: Configuration files\n This lens applies to \/lib\/systemd\/system\/* and \/etc\/systemd\/system\/*.\n See <filter>.\n*)\n\nmodule Systemd =\nautoload xfm\n\n(************************************************************************\n * Group: USEFUL PRIMITIVES\n *************************************************************************)\n\n(* View: eol *)\nlet eol = Util.eol\n\n(* View: eol_comment\n An <IniFile.comment> entry for standalone comment lines (; or #) *)\nlet comment = IniFile.comment IniFile.comment_re \"#\"\n\n(* View: eol_comment\n An <IniFile.comment> entry for end of line comments (# only) *)\nlet eol_comment = IniFile.comment \"#\" \"#\"\n\n(* View: sep\n An <IniFile.sep> entry *)\nlet sep = IniFile.sep \"=\" \"=\"\n\n(* Variable: entry_single_kw *)\nlet entry_single_kw = \"Description\"\n\n(* Variable: entry_command_kw *)\nlet entry_command_kw = \/Exec[A-Za-z][A-Za-z0-9._-]+\/\n\n(* Variable: entry_env_kw *)\nlet entry_env_kw = \"Environment\"\n\n(* Variable: entry_multi_kw *)\nlet entry_multi_kw =\n let forbidden = entry_single_kw | entry_command_kw | entry_env_kw\n in \/[A-Za-z][A-Za-z0-9._-]+\/ - forbidden\n\n(* Variable: value_single_re *)\nlet value_single_re = \/[^# \\t\\n\\\\][^#\\n\\\\]*[^# \\t\\n\\\\]|[^# \\t\\n\\\\]\/\n\n(* View: sto_value_single\n Support multiline values with a backslash *)\nlet sto_value_single = Util.del_opt_ws \"\"\n . store (value_single_re\n . (\/\\\\\\\\\\n\/ . value_single_re)*)\n\n(* View: sto_value *)\nlet sto_value = store \/[^# \\t\\n]*[^# \\t\\n\\\\]\/\n\n(* Variable: value_sep\n Multi-value entries separated by whitespace or backslash and newline *)\nlet value_sep = del \/[ \\t]+|[ \\t]*\\\\\\\\[ \\t]*\\n[ \\t]*\/ \" \"\n\n(* Variable: value_cmd_re\n Don't parse @ and - prefix flags *)\nlet value_cmd_re = \/[^#@ \\t\\n\\\\-][^#@ \\t\\n\\\\-][^# \\t\\n\\\\]*\/\n\n(* Variable: env_key *)\nlet env_key = \/[A-Za-z0-9_]+(\\[[0-9]+\\])?\/\n\n(************************************************************************\n * Group: ENTRIES\n *************************************************************************)\n\n(*\nSupported entry features, selected by key names:\n * multi-value space separated attrs (the default)\n * single-value attrs (Description)\n * systemd.service: Exec* attrs with flags, command and arguments\n * systemd.service: Environment NAME=arg\n*)\n\n(* View: entry_fn\n Prototype for our various key=value lines, with optional comment *)\nlet entry_fn (kw:regexp) (val:lens) =\n [ key kw . sep . val . (eol_comment|eol) ]\n\n(* View: entry_value\n Store a value that doesn't contain spaces *)\nlet entry_value = [ label \"value\" . sto_value ]\n\n(* View: entry_single\n Entry that takes a single value containing spaces *)\nlet entry_single = entry_fn entry_single_kw\n [ label \"value\" . sto_value_single ]?\n\n(* View: entry_command\n Entry that takes a space separated set of values (the default) *)\nlet entry_multi = entry_fn entry_multi_kw\n ( Util.del_opt_ws \"\"\n . Build.opt_list entry_value value_sep )?\n\n(* View: entry_command_flags\n Exec* flags \"@\" and \"-\". Order is important, see systemd.service(8) *)\nlet entry_command_flags =\n let exit = [ label \"ignoreexit\" . Util.del_str \"-\" ]\n in let arg0 = [ label \"arg0\" . Util.del_str \"@\" ]\n in exit? . arg0?\n\n(* View: entry_command\n Entry that takes a command, arguments and the optional prefix flags *)\nlet entry_command =\n let cmd = [ label \"command\" . store value_cmd_re ]\n in let arg = [ seq \"args\" . sto_value ]\n in let args = [ counter \"args\" . label \"arguments\"\n . (value_sep . arg)+ ]\n in entry_fn entry_command_kw ( entry_command_flags . cmd . args? )?\n\n(* View: entry_env\n Entry that takes a space separated set of ENV=value key\/value pairs *)\nlet entry_env =\n let envkv (env_val:lens) = key env_key . Util.del_str \"=\" . env_val\n (* bare has no spaces, and is optionally quoted *)\n in let bare = Quote.do_quote_opt (envkv (store \/[^#'\" \\t\\n]*[^#'\" \\t\\n\\\\]\/)?)\n in let bare_dqval = envkv (store \/\"[^#\" \\t\\n]*[^#\" \\t\\n\\\\]\"\/)\n in let bare_sqval = envkv (store \/'[^#' \\t\\n]*[^#' \\t\\n\\\\]'\/)\n (* quoted has at least one space, and must be quoted *)\n in let quoted = Quote.do_quote (envkv (store \/[^#\"'\\n]*[ \\t]+[^#\"'\\n]*\/))\n in let envkv_quoted = [ bare ] | [ bare_dqval ] | [ bare_sqval ] | [ quoted ]\n in entry_fn entry_env_kw ( Build.opt_list envkv_quoted value_sep )\n\n\n(************************************************************************\n * Group: LENS\n *************************************************************************)\n\n(* View: entry\n An <IniFile.entry> *)\nlet entry = entry_single | entry_multi | entry_command | entry_env | comment\n\n(* View: include\n Includes another file at this position *)\nlet include = [ key \".include\" . Util.del_ws_spc . sto_value\n . (eol_comment|eol) ]\n\n(* View: title\n An <IniFile.title> *)\nlet title = IniFile.title IniFile.record_re\n\n(* View: record\n An <IniFile.record> *)\nlet record = IniFile.record title (entry|include)\n\n(* View: lns\n An <IniFile.lns> *)\nlet lns = IniFile.lns record (comment|include)\n\n(* View: filter *)\nlet filter = incl \"\/usr\/lib\/systemd\/system\/*\"\n . incl \"\/usr\/lib\/systemd\/system\/*\/*\"\n . incl \"\/etc\/systemd\/system\/*\"\n . incl \"\/etc\/systemd\/system\/*\/*\"\n . incl \"\/etc\/systemd\/logind.conf\"\n . incl \"\/etc\/sysconfig\/*.systemd\"\n . Util.stdexcl\n\nlet xfm = transform lns filter\n","avg_line_length":32.8258426966,"max_line_length":79,"alphanum_fraction":0.5801814137} {"size":3989,"ext":"aug","lang":"Augeas","max_stars_count":415.0,"content":"(*\nModule: AptConf\n Parses \/etc\/apt\/apt.conf and \/etc\/apt\/apt.conf.d\/*\n\nAuthor: Raphael Pinson <raphink@gmail.com>\n\nAbout: Reference\n This lens tries to keep as close as possible to `man 5 apt.conf`\nwhere possible.\n\nAbout: License\n This file is licenced under the LGPL v2+, like the rest of Augeas.\n\nAbout: Lens Usage\n To be documented\n\nAbout: Configuration files\n This lens applies to \/etc\/apt\/apt.conf and \/etc\/apt\/apt.conf.d\/*.\nSee <filter>.\n*)\n\n\nmodule AptConf =\n autoload xfm\n\n(************************************************************************\n * Group: USEFUL PRIMITIVES\n *************************************************************************)\n\n(* View: eol\n And <Util.eol> end of line *)\nlet eol = Util.eol\n\n(* View: empty\n A C-style empty line *)\nlet empty = Util.empty_any\n\n(* View: indent\n An indentation *)\nlet indent = Util.indent\n\n(* View: comment_simple\n A one-line comment, C-style *)\nlet comment_simple = Util.comment_c_style_or_hash\n\n(* View: comment_multi\n A multiline comment, C-style *)\nlet comment_multi = Util.comment_multiline\n\n(* View: comment\n A comment, either <comment_simple> or <comment_multi> *)\nlet comment = comment_simple | comment_multi\n\n\n(************************************************************************\n * Group: ENTRIES\n *************************************************************************)\n\n(* View: name_re\n Regex for entry names *)\nlet name_re = \/[A-Za-z][A-Za-z-]*\/\n\n(* View: name_re_colons\n Regex for entry names with colons *)\nlet name_re_colons = \/[A-Za-z][A-Za-z:-]*\/\n\n\n(* View: entry\n An apt.conf entry, recursive\n\n WARNING:\n This lens exploits a put ambiguity\n since apt.conf allows for both\n APT { Clean-Installed { \"true\" } }\n and APT::Clean-Installed \"true\";\n but we're choosing to map them the same way\n\n The recursive lens doesn't seem\n to care and defaults to the first\n item in the union.\n\n This is why the APT { Clean-Installed { \"true\"; } }\n form is listed first, since it supports\n all subnodes (which Dpkg::Conf) doesn't.\n\n Exchanging these two expressions in the union\n makes tests fails since the tree cannot\n be mapped back.\n\n This situation results in existing\n configuration being modified when the\n associated tree is modified. For example,\n changing the value of\n APT::Clean-Installed \"true\"; to \"false\"\n results in\n APT { Clean-Installed \"false\"; }\n (see unit tests)\n *)\nlet rec entry_noeol =\n let value =\n Util.del_str \"\\\"\" . store \/[^\"\\n]+\/\n . del \/\";?\/ \"\\\";\" in\n let opt_eol = del \/[ \\t\\n]*\/ \"\\n\" in\n let long_eol = del \/[ \\t]*\\n+\/ \"\\n\" in\n let list_elem = [ opt_eol . label \"@elem\" . value ] in\n let eol_comment = del \/([ \\t\\n]*\\n)?\/ \"\" . comment in\n [ key name_re . Sep.space . value ]\n | [ key name_re . del \/[ \\t\\n]*\\{\/ \" {\" .\n ( (opt_eol . entry_noeol) |\n list_elem |\n eol_comment\n )* .\n del \/[ \\t\\n]*\\};?\/ \"\\n};\" ]\n | [ key name_re . Util.del_str \"::\" . entry_noeol ]\n\nlet entry = indent . entry_noeol . eol\n\n\n(* View: include\n A file inclusion\n \/!\\ The manpage is not clear on the syntax *)\nlet include =\n [ indent . key \"#include\" . Sep.space\n . store Rx.fspath . eol ]\n\n\n(* View: clear\n A list of variables to clear\n \/!\\ The manpage is not clear on the syntax *)\nlet clear =\n let name = [ label \"name\" . store name_re_colons ] in\n [ indent . key \"#clear\" . Sep.space\n . Build.opt_list name Sep.space\n . eol ]\n\n\n(************************************************************************\n * Group: LENS AND FILTER\n *************************************************************************)\n\n(* View: lns\n The apt.conf lens *)\nlet lns = (empty|comment|entry|include|clear)*\n\n\n(* View: filter *)\nlet filter = incl \"\/etc\/apt\/apt.conf\"\n . incl \"\/etc\/apt\/apt.conf.d\/*\"\n . Util.stdexcl\n\nlet xfm = transform lns filter\n","avg_line_length":26.2434210526,"max_line_length":75,"alphanum_fraction":0.552268739} {"size":5245,"ext":"aug","lang":"Augeas","max_stars_count":2.0,"content":"(* Apache HTTPD lens for Augeas\n\nAuthors:\n David Lutterkort <lutter@redhat.com>\n Francis Giraldeau <francis.giraldeau@usherbrooke.ca>\n Raphael Pinson <raphink@gmail.com>\n\nAbout: Reference\n Online Apache configuration manual: http:\/\/httpd.apache.org\/docs\/trunk\/\n\nAbout: License\n This file is licensed under the LGPL v2+.\n\nAbout: Lens Usage\n Sample usage of this lens in augtool\n\n Apache configuration is represented by two main structures, nested sections\n and directives. Sections are used as labels, while directives are kept as a\n value. Sections and directives can have positional arguments inside values\n of \"arg\" nodes. Arguments of sections must be the firsts child of the\n section node.\n\n This lens doesn't support automatic string quoting. Hence, the string must\n be quoted when containing a space.\n\n Create a new VirtualHost section with one directive:\n > clear \/files\/etc\/apache2\/sites-available\/foo\/VirtualHost\n > set \/files\/etc\/apache2\/sites-available\/foo\/VirtualHost\/arg \"172.16.0.1:80\"\n > set \/files\/etc\/apache2\/sites-available\/foo\/VirtualHost\/directive \"ServerAdmin\"\n > set \/files\/etc\/apache2\/sites-available\/foo\/VirtualHost\/*[self::directive=\"ServerAdmin\"]\/arg \"admin@example.com\"\n\nAbout: Configuration files\n This lens applies to files in \/etc\/httpd and \/etc\/apache2. See <filter>.\n\n*)\n\n\nmodule Httpd =\n\nautoload xfm\n\n(******************************************************************\n * Utilities lens\n *****************************************************************)\nlet dels (s:string) = del s s\n\n(* deal with continuation lines *)\nlet sep_spc = del \/([ \\t]+|[ \\t]*\\\\\\\\\\r?\\n[ \\t]*)+\/ \" \"\nlet sep_osp = del \/([ \\t]*|[ \\t]*\\\\\\\\\\r?\\n[ \\t]*)*\/ \"\"\nlet sep_eq = del \/[ \\t]*=[ \\t]*\/ \"=\"\n\nlet nmtoken = \/[a-zA-Z:_][a-zA-Z0-9:_.-]*\/\nlet word = \/[a-z][a-z0-9._-]*\/i\n\nlet eol = Util.doseol\nlet empty = Util.empty_dos\nlet indent = Util.indent\n\nlet comment_val_re = \/([^ \\t\\r\\n](.|\\\\\\\\\\r?\\n)*[^ \\\\\\t\\r\\n]|[^ \\t\\r\\n])\/\nlet comment = [ label \"#comment\" . del \/[ \\t]*#[ \\t]*\/ \"# \"\n . store comment_val_re . eol ]\n\n(* borrowed from shellvars.aug *)\nlet char_arg_dir = \/([^\\\\ '\"{\\t\\r\\n]|[^ '\"{\\t\\r\\n]+[^\\\\ \\t\\r\\n])|\\\\\\\\\"|\\\\\\\\'|\\\\\\\\ \/\nlet char_arg_sec = \/([^\\\\ '\"\\t\\r\\n>]|[^ '\"\\t\\r\\n>]+[^\\\\ \\t\\r\\n>])|\\\\\\\\\"|\\\\\\\\'|\\\\\\\\ \/\nlet char_arg_wl = \/([^\\\\ '\"},\\t\\r\\n]|[^ '\"},\\t\\r\\n]+[^\\\\ '\"},\\t\\r\\n])\/\n\nlet cdot = \/\\\\\\\\.\/\nlet cl = \/\\\\\\\\\\n\/\nlet dquot =\n let no_dquot = \/[^\"\\\\\\r\\n]\/\n in \/\"\/ . (no_dquot|cdot|cl)* . \/\"\/\nlet dquot_msg =\n let no_dquot = \/([^ \\t\"\\\\\\r\\n]|[^\"\\\\\\r\\n]+[^ \\t\"\\\\\\r\\n])\/\n in \/\"\/ . (no_dquot|cdot|cl)*\nlet squot =\n let no_squot = \/[^'\\\\\\r\\n]\/\n in \/'\/ . (no_squot|cdot|cl)* . \/'\/\nlet comp = \/[<>=]?=\/\n\n(******************************************************************\n * Attributes\n *****************************************************************)\n\nlet arg_dir = [ label \"arg\" . store (char_arg_dir+|dquot|squot) ]\n(* message argument starts with \" but ends at EOL *)\nlet arg_dir_msg = [ label \"arg\" . store dquot_msg ]\nlet arg_sec = [ label \"arg\" . store (char_arg_sec+|comp|dquot|squot) ]\nlet arg_wl = [ label \"arg\" . store (char_arg_wl+|dquot|squot) ]\n\n(* comma-separated wordlist as permitted in the SSLRequire directive *)\nlet arg_wordlist =\n let wl_start = Util.del_str \"{\" in\n let wl_end = Util.del_str \"}\" in\n let wl_sep = del \/[ \\t]*,[ \\t]*\/ \", \"\n in [ label \"wordlist\" . wl_start . arg_wl . (wl_sep . arg_wl)* . wl_end ]\n\nlet argv (l:lens) = l . (sep_spc . l)*\n\nlet directive =\n (* arg_dir_msg may be the last or only argument *)\n let dir_args = (argv (arg_dir|arg_wordlist) . (sep_spc . arg_dir_msg)?) | arg_dir_msg\n in [ indent . label \"directive\" . store word . (sep_spc . dir_args)? . eol ]\n\nlet section (body:lens) =\n (* opt_eol includes empty lines *)\n let opt_eol = del \/([ \\t]*#?\\r?\\n)*\/ \"\\n\" in\n let inner = (sep_spc . argv arg_sec)? . sep_osp .\n dels \">\" . opt_eol . ((body|comment) . (body|empty|comment)*)? .\n indent . dels \"<\/\" in\n let kword = key (word - \/perl\/i) in\n let dword = del (word - \/perl\/i) \"a\" in\n [ indent . dels \"<\" . square kword inner dword . del \/>[ \\t\\n\\r]*\/ \">\\n\" ]\n\nlet perl_section = [ indent . label \"Perl\" . del \/<perl>\/i \"<Perl>\"\n . store \/[^<]*\/\n . del \/<\\\/perl>\/i \"<\/Perl>\" . eol ]\n\n\nlet rec content = section (content|directive)\n | perl_section\n\nlet lns = (content|directive|comment|empty)*\n\nlet filter = (incl \"\/etc\/apache2\/apache2.conf\") .\n (incl \"\/etc\/apache2\/httpd.conf\") .\n (incl \"\/etc\/apache2\/ports.conf\") .\n (incl \"\/etc\/apache2\/conf.d\/*\") .\n (incl \"\/etc\/apache2\/conf-available\/*.conf\") .\n (incl \"\/etc\/apache2\/mods-available\/*\") .\n (incl \"\/etc\/apache2\/sites-available\/*\") .\n (incl \"\/etc\/apache2\/vhosts.d\/*.conf\") .\n (incl \"\/etc\/httpd\/conf.d\/*.conf\") .\n (incl \"\/etc\/httpd\/httpd.conf\") .\n (incl \"\/etc\/httpd\/conf\/httpd.conf\") .\n Util.stdexcl\n\nlet xfm = transform lns filter\n","avg_line_length":37.7338129496,"max_line_length":115,"alphanum_fraction":0.5374642517} {"size":4557,"ext":"aug","lang":"Augeas","max_stars_count":201.0,"content":"\/\/##1. module missing things in import\n\/\/##MODULE com.myorg.code2\n\nclass MYClass{\n\tdef result() => 9\n}\n\n\/\/##MODULE\n\nfrom com.myorg.code2 import result\nfrom com.myorg.code2 import MYClass2\n\ndef doings(){\n\t\"\"\n}\n\n~~~~~\n\/\/##2. module respects public private etc\n\/\/##MODULE com.myorg.code2\n\npublic result = 9 \/\/private by default\ndef lafunc() => \"hi\" \/\/public by default\n\n\/\/##MODULE\n\nfrom com.myorg.code2 import result, lafunc\n\ndef doings(){\n\t\"\" + [result, lafunc()]\n}\n\n~~~~~\n\/\/##3. tpyedef pppp\n\n\/\/##MODULE com.myorg.codexx\n\nprivate typedef thingPriv = int\ntypedef thingDef = int\nprotected typedef thingProt = int\npackage typedef thingPack = int\npublic typedef thingPub = int\n\n\/\/##MODULE\nfrom com.myorg.codexx import thingPriv \/\/no\nfrom com.myorg.codexx import thingDef \/\/yes public\nfrom com.myorg.codexx import thingProt\/\/no\nfrom com.myorg.codexx import thingPack\/\/no\nfrom com.myorg.codexx import thingPub\n\ndef doings(){\n\ta1 thingPriv = 3 \n\ta2 thingProt = 3 \n\ta3 thingPack = 3 \n\ta4 thingPub = 3 \n\ta5 thingDef = 3 \/\/public so ok\n\t\"fail\" \n}\n\n~~~~~\n\/\/##4. class pppp\n\n\/\/##MODULE com.myorg.codexx\n\nprivate class thingPriv\nclass thingDef\nprotected class thingProt\npackage class thingPack\npublic class thingPub\n\n\/\/##MODULE\nfrom com.myorg.codexx import thingPriv \/\/no\nfrom com.myorg.codexx import thingDef \/\/ok\nfrom com.myorg.codexx import thingProt \/\/no\nfrom com.myorg.codexx import thingPack \/\/no\nfrom com.myorg.codexx import thingPub \/\/ok\n\ndef doings(){\n\ta1 = new thingPriv() \n\ta2 = new thingDef() \n\ta3 = new thingProt() \n\ta4 = new thingPack() \n\ta5 = new thingPub()\n\t\"fail\" \n}\n\n~~~~~\n\/\/##5. enum pppp\n\n\/\/##MODULE com.myorg.codexx\n\nprivate enum thingPriv{ONE, TWO}\nenum thingDef{ONE, TWO}\nprotected enum thingProt{ONE, TWO}\npackage enum thingPack{ONE, TWO}\npublic enum thingPub{ONE, TWO}\n\n\/\/##MODULE\nfrom com.myorg.codexx import thingPriv \/\/no\nfrom com.myorg.codexx import thingDef \/\/ok\nfrom com.myorg.codexx import thingProt \/\/no\nfrom com.myorg.codexx import thingPack \/\/no\nfrom com.myorg.codexx import thingPub \/\/ok\n\ndef doings(){\n\ta1 = thingPriv.ONE\n\ta2 = thingDef.ONE\n\ta3 = thingProt.ONE\n\ta4 = thingPack.ONE\n\ta5 = thingPub.ONE\n\t\"fail\" \n}\n\n~~~~~\n\/\/##6. annotation pppp\n\n\/\/##MODULE com.myorg.codexx\n\nprivate annotation thingPriv\nannotation thingDef\nprotected annotation thingProt\npackage annotation thingPack\npublic annotation thingPub\n\n\/\/##MODULE\nfrom com.myorg.codexx import thingPriv \/\/no\nfrom com.myorg.codexx import thingDef \/\/ok\nfrom com.myorg.codexx import thingProt \/\/no\nfrom com.myorg.codexx import thingPack \/\/no\nfrom com.myorg.codexx import thingPub \/\/ok\n\n@thingPriv\ndef f1(){}\n\n@thingDef\ndef f2(){}\n\n@thingProt\ndef f3(){}\n\n@thingPack\ndef f4(){}\n\n@thingPub\ndef f5(){}\n\ndef doings(){\n\t\"fail\" \n}\n\n~~~~~\n\/\/##7. respect for protected\n\/\/expect 8 errors... since wrong package\n\n\/\/##MODULE com.myorg.code\n\nprotected def myfunc() => \"hi\"\nprotected typedef thing = int\nprotected annotation Annot{}\nprotected avar = 99\nprotected alambda = def () { \"almabda\"}\n\n@Annot\nprotected class MyClass(protected f int){\n\tprotected this(g String) {}\n\tprotected a int = 99\n\tprotected def thing() => 77\n}\n\nprotected enum MYEnum{ONE, TWO, THREE }\n\n\/\/##MODULE\nfrom com.myorg.code import MYEnum, MyClass, Annot, myfunc, thing, avar, alambda\n\n\/\/different package\n\n@Annot \/\/nope protected\ndef cannotAnnot(){}\n\ndef doings(){\n\th=avar \/\/not accessable from outside mod\n\ta thing = 3 \/\/not accessable from outside mod\n\tnope = myfunc()\/\/not accessable from outside mod\n\tone = MYEnum.ONE \/\/nope protected\n\tmc = MyClass(8) \/\/nope protected\n\th = mc.a \/\/not accessable from outside mod\n\tg = mc.thing() \/\/not accessable from outside mod\n\tlam = alambda() \/\/not accessable from outside mod\n\t\"\" \n}\n\n~~~~~\n\/\/##8. respect for package\n\n\/\/##MODULE com.myorg.code\n\npackage def myfunc() => \"hi\"\npackage typedef thing = int\npackage annotation Annot{}\npackage avar = 99\npackage alambda = def () { \"almabda\"}\n\n@Annot\npackage class MyClass(package f int){\n\tpackage this(g String) {}\n\tpackage a int = 99\n\tpackage def thing() => 77\n}\n\npackage enum MYEnum{ONE, TWO, THREE }\n\n\/\/##MODULE\nfrom com.myorg.code import MYEnum, MyClass, Annot, myfunc, thing, avar, alambda\n\n\/\/different package\n\n@Annot \/\/nope package\ndef cannotAnnot(){}\n\ndef doings(){\n\th=avar \/\/not accessable from outside mod\n\ta thing = 3 \/\/not accessable from outside mod\n\tnope = myfunc()\/\/not accessable from outside mod\n\tone = MYEnum.ONE \/\/nope package\n\tmc = MyClass(8) \/\/nope package\n\th = mc.a \/\/not accessable from outside mod\n\tg = mc.thing() \/\/not accessable from outside mod\n\tlam = alambda() \/\/not accessable from outside mod\n\t\"\" \n}","avg_line_length":19.8995633188,"max_line_length":79,"alphanum_fraction":0.7116524029} {"size":1168,"ext":"aug","lang":"Augeas","max_stars_count":null,"content":"(* Module Jaas *)\n(* Author: Simon Vocella <voxsim@gmail.com> *)\n\nmodule Jaas =\n\nautoload xfm\n\nlet space_equal = del (\/[ \\t]*\/ . \"=\" . \/[ \\t]*\/) (\" = \")\nlet lbrace = del (\/[ \\t\\n]*\/ . \"{\") \"{\"\nlet rbrace = del (\"};\") \"};\"\nlet word = \/[A-Za-z0-9_.-]+\/\n\nlet value_re =\n let value_squote = \/'[^\\n']*'\/\n in let value_squote_2 = \/'[^\\n']*';\/\n in let value_dquote = \/\"[^\\n\"]*\"\/\n in let value_dquote_2 = \/\"[^\\n\"]*\";\/\n in value_squote | value_squote_2 | value_dquote | value_dquote_2\n\nlet moduleOption = [Util.del_opt_ws \"\" . key word . space_equal . (store value_re . Util.comment_or_eol)]\nlet flag = [label \"flag\" . (store word . Util.eol) . moduleOption*]\nlet loginModuleClass = [Util.del_opt_ws \"\" . label \"loginModuleClass\" . (store word . Util.del_ws_spc) . flag]\n\nlet content = (Util.empty | Util.comment_c_style | Util.comment_multiline | loginModuleClass)*\nlet loginModule = [Util.del_opt_ws \"\" . label \"login\" . (store word . lbrace) . (content . rbrace)]\nlet lns = (Util.empty | Util.comment_c_style | Util.comment_multiline | loginModule)*\nlet filter = incl \"\/opt\/shibboleth-idp\/conf\/login.config\"\nlet xfm = transform lns filter\n","avg_line_length":40.275862069,"max_line_length":110,"alphanum_fraction":0.6327054795} {"size":4410,"ext":"aug","lang":"Augeas","max_stars_count":3.0,"content":"(* \/etc\/libvirt\/qemu.conf *)\n\nmodule Libvirtd_qemu =\n autoload xfm\n\n let eol = del \/[ \\t]*\\n\/ \"\\n\"\n let value_sep = del \/[ \\t]*=[ \\t]*\/ \" = \"\n let indent = del \/[ \\t]*\/ \"\"\n\n let array_sep = del \/,[ \\t\\n]*\/ \", \"\n let array_start = del \/\\[[ \\t\\n]*\/ \"[ \"\n let array_end = del \/\\]\/ \"]\"\n\n let str_val = del \/\\\"\/ \"\\\"\" . store \/[^\\\"]*\/ . del \/\\\"\/ \"\\\"\"\n let bool_val = store \/0|1\/\n let int_val = store \/[0-9]+\/\n let str_array_element = [ seq \"el\" . str_val ] . del \/[ \\t\\n]*\/ \"\"\n let str_array_val = counter \"el\" . array_start . ( str_array_element . ( array_sep . str_array_element ) * ) ? . array_end\n\n let str_entry (kw:string) = [ key kw . value_sep . str_val ]\n let bool_entry (kw:string) = [ key kw . value_sep . bool_val ]\n let int_entry (kw:string) = [ key kw . value_sep . int_val ]\n let str_array_entry (kw:string) = [ key kw . value_sep . str_array_val ]\n\n\n (* Config entry grouped by function - same order as example config *)\n let vnc_entry = str_entry \"vnc_listen\"\n | bool_entry \"vnc_auto_unix_socket\"\n | bool_entry \"vnc_tls\"\n | str_entry \"vnc_tls_x509_cert_dir\"\n | bool_entry \"vnc_tls_x509_verify\"\n | str_entry \"vnc_password\"\n | bool_entry \"vnc_sasl\"\n | str_entry \"vnc_sasl_dir\"\n | bool_entry \"vnc_allow_host_audio\"\n\n let spice_entry = str_entry \"spice_listen\"\n | bool_entry \"spice_tls\"\n | str_entry \"spice_tls_x509_cert_dir\"\n | str_entry \"spice_password\"\n | bool_entry \"spice_sasl\"\n | str_entry \"spice_sasl_dir\"\n\n let nogfx_entry = bool_entry \"nographics_allow_host_audio\"\n\n let remote_display_entry = int_entry \"remote_display_port_min\"\n | int_entry \"remote_display_port_max\"\n | int_entry \"remote_websocket_port_min\"\n | int_entry \"remote_websocket_port_max\"\n\n let security_entry = str_entry \"security_driver\"\n | bool_entry \"security_default_confined\"\n | bool_entry \"security_require_confined\"\n | str_entry \"user\"\n | str_entry \"group\"\n | bool_entry \"dynamic_ownership\"\n | str_array_entry \"cgroup_controllers\"\n | str_array_entry \"cgroup_device_acl\"\n | int_entry \"seccomp_sandbox\"\n\n let save_entry = str_entry \"save_image_format\"\n | str_entry \"dump_image_format\"\n | str_entry \"snapshot_image_format\"\n | str_entry \"auto_dump_path\"\n | bool_entry \"auto_dump_bypass_cache\"\n | bool_entry \"auto_start_bypass_cache\"\n\n let process_entry = str_entry \"hugetlbfs_mount\"\n | bool_entry \"clear_emulator_capabilities\"\n | str_entry \"bridge_helper\"\n | bool_entry \"set_process_name\"\n | int_entry \"max_processes\"\n | int_entry \"max_files\"\n\n let device_entry = bool_entry \"mac_filter\"\n | bool_entry \"relaxed_acs_check\"\n | bool_entry \"allow_disk_format_probing\"\n | str_entry \"lock_manager\"\n\n let rpc_entry = int_entry \"max_queued\"\n | int_entry \"keepalive_interval\"\n | int_entry \"keepalive_count\"\n\n let network_entry = str_entry \"migration_address\"\n | int_entry \"migration_port_min\"\n | int_entry \"migration_port_max\"\n | str_entry \"migration_host\"\n\n let log_entry = bool_entry \"log_timestamp\"\n\n let nvram_entry = str_array_entry \"nvram\"\n\n (* Each entry in the config is one of the following ... *)\n let entry = vnc_entry\n | spice_entry\n | nogfx_entry\n | remote_display_entry\n | security_entry\n | save_entry\n | process_entry\n | device_entry\n | rpc_entry\n | network_entry\n | log_entry\n | nvram_entry\n\n let comment = [ label \"#comment\" . del \/#[ \\t]*\/ \"# \" . store \/([^ \\t\\n][^\\n]*)?\/ . del \/\\n\/ \"\\n\" ]\n let empty = [ label \"#empty\" . eol ]\n\n let record = indent . entry . eol\n\n let lns = ( record | comment | empty ) *\n\n let filter = incl \"\/etc\/libvirt\/qemu.conf\"\n . Util.stdexcl\n\n let xfm = transform lns filter\n","avg_line_length":37.3728813559,"max_line_length":125,"alphanum_fraction":0.564399093} {"size":20555,"ext":"aug","lang":"Augeas","max_stars_count":415.0,"content":"(*\nModule: Sudoers\n Parses \/etc\/sudoers\n\nAuthor: Raphael Pinson <raphink@gmail.com>\n\nAbout: Reference\n This lens tries to keep as close as possible to `man sudoers` where possible.\n\nFor example, recursive definitions such as\n\n > Cmnd_Spec_List ::= Cmnd_Spec |\n > Cmnd_Spec ',' Cmnd_Spec_List\n\nare replaced by\n\n > let cmnd_spec_list = cmnd_spec . ( sep_com . cmnd_spec )*\n\nsince Augeas cannot deal with recursive definitions.\nThe definitions from `man sudoers` are put as commentaries for reference\nthroughout the file. More information can be found in the manual.\n\nAbout: License\n This file is licensed under the LGPL v2+, like the rest of Augeas.\n\n\nAbout: Lens Usage\n Sample usage of this lens in augtool\n\n * Set first Defaults to apply to the \"LOCALNET\" network alias\n > set \/files\/etc\/sudoers\/Defaults[1]\/type \"@LOCALNET\"\n * List all user specifications applying explicitly to the \"admin\" Unix group\n > match \/files\/etc\/sudoers\/spec\/user \"%admin\"\n * Remove the full 3rd user specification\n > rm \/files\/etc\/sudoers\/spec[3]\n\nAbout: Configuration files\n This lens applies to \/etc\/sudoers. See <filter>.\n*)\n\n\n\nmodule Sudoers =\n autoload xfm\n\n(************************************************************************\n * Group: USEFUL PRIMITIVES\n *************************************************************************)\n\n(* Group: Generic primitives *)\n(* Variable: eol *)\nlet eol = Util.eol\n\n(* Variable: indent *)\nlet indent = Util.indent\n\n\n(* Group: Separators *)\n\n(* Variable: sep_spc *)\nlet sep_spc = Sep.space\n\n(* Variable: sep_cont *)\nlet sep_cont = Sep.cl_or_space\n\n(* Variable: sep_cont_opt *)\nlet sep_cont_opt = Sep.cl_or_opt_space\n\n(* Variable: sep_cont_opt_build *)\nlet sep_cont_opt_build (sep:string) =\n del (Rx.cl_or_opt_space . sep . Rx.cl_or_opt_space) (\" \" . sep . \" \")\n\n(* Variable: sep_com *)\nlet sep_com = sep_cont_opt_build \",\"\n\n(* Variable: sep_eq *)\nlet sep_eq = sep_cont_opt_build \"=\"\n\n(* Variable: sep_col *)\nlet sep_col = sep_cont_opt_build \":\"\n\n(* Variable: sep_dquote *)\nlet sep_dquote = Util.del_str \"\\\"\"\n\n(* Group: Negation expressions *)\n\n(************************************************************************\n * View: del_negate\n * Delete an even number of '!' signs\n *************************************************************************)\nlet del_negate = del \/(!!)*\/ \"\"\n\n(************************************************************************\n * View: negate_node\n * Negation of boolean values for <defaults>. Accept one optional '!'\n * and produce a 'negate' node if there is one.\n *************************************************************************)\nlet negate_node = [ del \"!\" \"!\" . label \"negate\" ]\n\n(************************************************************************\n * View: negate_or_value\n * A <del_negate>, followed by either a negated key, or a key\/value pair\n *************************************************************************)\nlet negate_or_value (key:lens) (value:lens) =\n [ del_negate . (negate_node . key | key . value) ]\n\n(* Group: Stores *)\n\n(* Variable: sto_to_com_cmnd\nsto_to_com_cmnd does not begin or end with a space *)\n\nlet sto_to_com_cmnd = del_negate . negate_node? . (\n let alias = Rx.word - \/(NO)?(PASSWD|EXEC|SETENV)\/\n in let non_alias = \/[\\\/a-z]([^,:#()\\n\\\\]|\\\\\\\\[=:,\\\\])*[^,=:#() \\t\\n\\\\]|[^,=:#() \\t\\n\\\\]\/\n in store (alias | non_alias))\n\n(* Variable: sto_to_com\n\nThere could be a \\ in the middle of a command *)\nlet sto_to_com = store \/([^,=:#() \\t\\n\\\\][^,=:#()\\n]*[^,=:#() \\t\\n\\\\])|[^,=:#() \\t\\n\\\\]\/\n\n(* Variable: sto_to_com_host *)\nlet sto_to_com_host = store \/[^,=:#() \\t\\n\\\\]+\/\n\n\n(* Variable: sto_to_com_user\nEscaped spaces and NIS domains and allowed*)\nlet sto_to_com_user =\n let nis_re = \/([A-Z]([-A-Z0-9]|(\\\\\\\\[ \\t]))*+\\\\\\\\\\\\\\\\)\/\n in let user_re = \/[%+@a-z]([-A-Za-z0-9._+]|(\\\\\\\\[ \\t])|\\\\\\\\\\\\\\\\[A-Za-z0-9])*\/ - \/@include(dir)?\/\n in let alias_re = \/[A-Z_]+\/\n in store ((nis_re? . user_re) | alias_re)\n\n(* Variable: to_com_chars *)\nlet to_com_chars = \/[^\",=#() \\t\\n\\\\]+\/ (* \" relax emacs *)\n\n(* Variable: to_com_dquot *)\nlet to_com_dquot = \/\"[^\",=#()\\n\\\\]+\"\/ (* \" relax emacs *)\n\n(* Variable: sto_to_com_dquot *)\nlet sto_to_com_dquot = store (to_com_chars|to_com_dquot)\n\n(* Variable: sto_to_com_col *)\nlet sto_to_com_col = store to_com_chars\n\n(* Variable: sto_to_eq *)\nlet sto_to_eq = store \/[^,=:#() \\t\\n\\\\]+\/\n\n(* Variable: sto_to_spc *)\nlet sto_to_spc = store \/[^\", \\t\\n\\\\]+|\"[^\", \\t\\n\\\\]+\"\/\n\n(* Variable: sto_to_spc_no_dquote *)\nlet sto_to_spc_no_dquote = store \/[^\",# \\t\\n\\\\]+\/ (* \" relax emacs *)\n\n(* Variable: sto_integer *)\nlet sto_integer = store \/[0-9]+\/\n\n\n(* Group: Comments and empty lines *)\n\n(* View: comment\nMap comments in \"#comment\" nodes *)\nlet comment =\n let sto_to_eol = store (\/([^ \\t\\n].*[^ \\t\\n]|[^ \\t\\n])\/ - \/include(dir)?.*\/) in\n [ label \"#comment\" . del \/[ \\t]*#[ \\t]*\/ \"# \" . sto_to_eol . eol ]\n\n(* View: comment_eol\nRequires a space before the # *)\nlet comment_eol = Util.comment_generic \/[ \\t]+#[ \\t]*\/ \" # \"\n\n(* View: comment_or_eol\nA <comment_eol> or <eol> *)\nlet comment_or_eol = comment_eol | (del \/([ \\t]+#\\n|[ \\t]*\\n)\/ \"\\n\")\n\n(* View: empty\nMap empty lines *)\nlet empty = [ del \/[ \\t]*#?[ \\t]*\\n\/ \"\\n\" ]\n\n(* View: includedir *)\nlet includedir =\n [ key \/(#|@)include(dir)?\/ . Sep.space . store Rx.fspath . eol ]\n\n\n(************************************************************************\n * Group: ALIASES\n *************************************************************************)\n\n(************************************************************************\n * View: alias_field\n * Generic alias field to gather all Alias definitions\n *\n * Definition:\n * > User_Alias ::= NAME '=' User_List\n * > Runas_Alias ::= NAME '=' Runas_List\n * > Host_Alias ::= NAME '=' Host_List\n * > Cmnd_Alias ::= NAME '=' Cmnd_List\n *\n * Parameters:\n * kw:string - the label string\n * sto:lens - the store lens\n *************************************************************************)\nlet alias_field (kw:string) (sto:lens) = [ label kw . sto ]\n\n(* View: alias_list\n List of <alias_fields>, separated by commas *)\nlet alias_list (kw:string) (sto:lens) =\n Build.opt_list (alias_field kw sto) sep_com\n\n(************************************************************************\n * View: alias_name\n * Name of an <alias_entry_single>\n *\n * Definition:\n * > NAME ::= [A-Z]([A-Z][0-9]_)*\n *************************************************************************)\nlet alias_name\n = [ label \"name\" . store \/[A-Z][A-Z0-9_]*\/ ]\n\n(************************************************************************\n * View: alias_entry_single\n * Single <alias_entry>, named using <alias_name> and listing <alias_list>\n *\n * Definition:\n * > Alias_Type NAME = item1, item2, ...\n *\n * Parameters:\n * field:string - the field name, passed to <alias_list>\n * sto:lens - the store lens, passed to <alias_list>\n *************************************************************************)\nlet alias_entry_single (field:string) (sto:lens)\n = [ label \"alias\" . alias_name . sep_eq . alias_list field sto ]\n\n(************************************************************************\n * View: alias_entry\n * Alias entry, a list of comma-separated <alias_entry_single> fields\n *\n * Definition:\n * > Alias_Type NAME = item1, item2, item3 : NAME = item4, item5\n *\n * Parameters:\n * kw:string - the alias keyword string\n * field:string - the field name, passed to <alias_entry_single>\n * sto:lens - the store lens, passed to <alias_entry_single>\n *************************************************************************)\nlet alias_entry (kw:string) (field:string) (sto:lens)\n = [ indent . key kw . sep_cont . alias_entry_single field sto\n . ( sep_col . alias_entry_single field sto )* . comment_or_eol ]\n\n(* TODO: go further in user definitions *)\n(* View: user_alias\n User_Alias, see <alias_field> *)\nlet user_alias = alias_entry \"User_Alias\" \"user\" sto_to_com\n(* View: runas_alias\n Run_Alias, see <alias_field> *)\nlet runas_alias = alias_entry \"Runas_Alias\" \"runas_user\" sto_to_com\n(* View: host_alias\n Host_Alias, see <alias_field> *)\nlet host_alias = alias_entry \"Host_Alias\" \"host\" sto_to_com\n(* View: cmnd_alias\n Cmnd_Alias, see <alias_field> *)\nlet cmnd_alias = alias_entry \"Cmnd_Alias\" \"command\" sto_to_com_cmnd\n\n\n(************************************************************************\n * View: alias\n * Every kind of Alias entry,\n * see <user_alias>, <runas_alias>, <host_alias> and <cmnd_alias>\n *\n * Definition:\n * > Alias ::= 'User_Alias' User_Alias (':' User_Alias)* |\n * > 'Runas_Alias' Runas_Alias (':' Runas_Alias)* |\n * > 'Host_Alias' Host_Alias (':' Host_Alias)* |\n * > 'Cmnd_Alias' Cmnd_Alias (':' Cmnd_Alias)*\n *************************************************************************)\nlet alias = user_alias | runas_alias | host_alias | cmnd_alias\n\n(************************************************************************\n * Group: DEFAULTS\n *************************************************************************)\n\n\n(************************************************************************\n * View: default_type\n * Type definition for <defaults>\n *\n * Definition:\n * > Default_Type ::= 'Defaults' |\n * > 'Defaults' '@' Host_List |\n * > 'Defaults' ':' User_List |\n * > 'Defaults' '!' Cmnd_List |\n * > 'Defaults' '>' Runas_List\n *************************************************************************)\nlet default_type =\n let value = store \/[@:!>][^ \\t\\n\\\\]+\/ in\n [ label \"type\" . value ]\n\n(************************************************************************\n * View: parameter_flag\n * A flag parameter for <defaults>\n *\n * Flags are implicitly boolean and can be turned off via the '!' operator.\n * Some integer, string and list parameters may also be used in a boolean\n * context to disable them.\n *************************************************************************)\nlet parameter_flag_kw = \"always_set_home\" | \"authenticate\" | \"env_editor\"\n | \"env_reset\" | \"fqdn\" | \"ignore_dot\"\n | \"ignore_local_sudoers\" | \"insults\" | \"log_host\"\n | \"log_year\" | \"long_otp_prompt\" | \"mail_always\"\n | \"mail_badpass\" | \"mail_no_host\" | \"mail_no_perms\"\n | \"mail_no_user\" | \"noexec\" | \"path_info\"\n | \"passprompt_override\" | \"preserve_groups\"\n | \"requiretty\" | \"root_sudo\" | \"rootpw\" | \"runaspw\"\n | \"set_home\" | \"set_logname\" | \"setenv\"\n | \"shell_noargs\" | \"stay_setuid\" | \"targetpw\"\n | \"tty_tickets\" | \"visiblepw\" | \"closefrom_override\"\n | \"closefrom_override\" | \"compress_io\" | \"fast_glob\"\n | \"log_input\" | \"log_output\" | \"pwfeedback\"\n | \"umask_override\" | \"use_pty\" | \"match_group_by_gid\"\n | \"always_query_group_plugin\"\n\nlet parameter_flag = [ del_negate . negate_node?\n . key parameter_flag_kw ]\n\n(************************************************************************\n * View: parameter_integer\n * An integer parameter for <defaults>\n *************************************************************************)\nlet parameter_integer_nobool_kw = \"passwd_tries\"\n\nlet parameter_integer_nobool = [ key parameter_integer_nobool_kw . sep_eq\n . del \/\"?\/ \"\" . sto_integer\n . del \/\"?\/ \"\" ]\n\n\nlet parameter_integer_bool_kw = \"loglinelen\" | \"passwd_timeout\"\n | \"timestamp_timeout\" | \"umask\"\n\nlet parameter_integer_bool =\n negate_or_value\n (key parameter_integer_bool_kw)\n (sep_eq . del \/\"?\/ \"\" . sto_integer . del \/\"?\/ \"\")\n\nlet parameter_integer = parameter_integer_nobool\n | parameter_integer_bool\n\n(************************************************************************\n * View: parameter_string\n * A string parameter for <defaults>\n *\n * An odd number of '!' operators negate the value of the item;\n * an even number just cancel each other out.\n *************************************************************************)\nlet parameter_string_nobool_kw = \"badpass_message\" | \"editor\" | \"mailsub\"\n | \"noexec_file\" | \"passprompt\" | \"runas_default\"\n | \"syslog_badpri\" | \"syslog_goodpri\"\n | \"timestampdir\" | \"timestampowner\" | \"secure_path\"\n\nlet parameter_string_nobool = [ key parameter_string_nobool_kw . sep_eq\n . sto_to_com_dquot ]\n\nlet parameter_string_bool_kw = \"exempt_group\" | \"lecture\" | \"lecture_file\"\n | \"listpw\" | \"logfile\" | \"mailerflags\"\n | \"mailerpath\" | \"mailto\" | \"mailfrom\" \n | \"syslog\" | \"verifypw\"\n\nlet parameter_string_bool =\n negate_or_value\n (key parameter_string_bool_kw)\n (sep_eq . sto_to_com_dquot)\n\nlet parameter_string = parameter_string_nobool\n | parameter_string_bool\n\n(************************************************************************\n * View: parameter_lists\n * A single list parameter for <defaults>\n *\n * All lists can be used in a boolean context\n * The argument may be a double-quoted, space-separated list or a single\n * value without double-quotes.\n * The list can be replaced, added to, deleted from, or disabled\n * by using the =, +=, -=, and ! operators respectively.\n * An odd number of '!' operators negate the value of the item;\n * an even number just cancel each other out.\n *************************************************************************)\nlet parameter_lists_kw = \"env_check\" | \"env_delete\" | \"env_keep\"\nlet parameter_lists_value = [ label \"var\" . sto_to_spc_no_dquote ]\nlet parameter_lists_value_dquote = [ label \"var\"\n . del \/\"?\/ \"\" . sto_to_spc_no_dquote\n . del \/\"?\/ \"\" ]\n\nlet parameter_lists_values = parameter_lists_value_dquote\n | ( sep_dquote . parameter_lists_value\n . ( sep_cont . parameter_lists_value )+\n . sep_dquote )\n\nlet parameter_lists_sep = sep_cont_opt\n . ( [ del \"+\" \"+\" . label \"append\" ]\n | [ del \"-\" \"-\" . label \"remove\" ] )?\n . del \"=\" \"=\" . sep_cont_opt\n\nlet parameter_lists =\n negate_or_value\n (key parameter_lists_kw)\n (parameter_lists_sep . parameter_lists_values)\n\n(************************************************************************\n * View: parameter\n * A single parameter for <defaults>\n *\n * Definition:\n * > Parameter ::= Parameter '=' Value |\n * > Parameter '+=' Value |\n * > Parameter '-=' Value |\n * > '!'* Parameter\n *\n * Parameters may be flags, integer values, strings, or lists.\n *\n *************************************************************************)\nlet parameter = parameter_flag | parameter_integer\n | parameter_string | parameter_lists\n\n(************************************************************************\n * View: parameter_list\n * A list of comma-separated <parameters> for <defaults>\n *\n * Definition:\n * > Parameter_List ::= Parameter |\n * > Parameter ',' Parameter_List\n *************************************************************************)\nlet parameter_list = parameter . ( sep_com . parameter )*\n\n(************************************************************************\n * View: defaults\n * A Defaults entry\n *\n * Definition:\n * > Default_Entry ::= Default_Type Parameter_List\n *************************************************************************)\nlet defaults = [ indent . key \"Defaults\" . default_type? . sep_cont\n . parameter_list . comment_or_eol ]\n\n\n\n(************************************************************************\n * Group: USER SPECIFICATION\n *************************************************************************)\n\n(************************************************************************\n * View: runas_spec\n * A runas specification for <spec>, using <alias_list> for listing\n * users and\/or groups used to run a command\n *\n * Definition:\n * > Runas_Spec ::= '(' Runas_List ')' |\n * > '(:' Runas_List ')' |\n * > '(' Runas_List ':' Runas_List ')'\n *************************************************************************)\nlet runas_spec_user = alias_list \"runas_user\" sto_to_com\nlet runas_spec_group = Util.del_str \":\" . indent\n . alias_list \"runas_group\" sto_to_com\n\nlet runas_spec_usergroup = runas_spec_user . indent . runas_spec_group\n\nlet runas_spec = Util.del_str \"(\"\n . (runas_spec_user\n | runas_spec_group\n | runas_spec_usergroup )\n . Util.del_str \")\" . sep_cont_opt\n\n(************************************************************************\n * View: tag_spec\n * Tag specification for <spec>\n *\n * Definition:\n * > Tag_Spec ::= ('NOPASSWD:' | 'PASSWD:' | 'NOEXEC:' | 'EXEC:' |\n * > 'SETENV:' | 'NOSETENV:')\n *************************************************************************)\nlet tag_spec =\n [ label \"tag\" . store \/(NO)?(PASSWD|EXEC|SETENV)\/ . sep_col ]\n\n(************************************************************************\n * View: cmnd_spec\n * Command specification for <spec>,\n * with optional <runas_spec> and any amount of <tag_specs>\n *\n * Definition:\n * > Cmnd_Spec ::= Runas_Spec? Tag_Spec* Cmnd\n *************************************************************************)\nlet cmnd_spec =\n [ label \"command\" . runas_spec? . tag_spec* . sto_to_com_cmnd ]\n\n(************************************************************************\n * View: cmnd_spec_list\n * A list of comma-separated <cmnd_specs>\n *\n * Definition:\n * > Cmnd_Spec_List ::= Cmnd_Spec |\n * > Cmnd_Spec ',' Cmnd_Spec_List\n *************************************************************************)\nlet cmnd_spec_list = Build.opt_list cmnd_spec sep_com\n\n\n(************************************************************************\n * View: spec_list\n * Group of hosts with <cmnd_spec_list>\n *************************************************************************)\nlet spec_list = [ label \"host_group\" . alias_list \"host\" sto_to_com_host\n . sep_eq . cmnd_spec_list ]\n\n(************************************************************************\n * View: spec\n * A user specification, listing colon-separated <spec_lists>\n *\n * Definition:\n * > User_Spec ::= User_List Host_List '=' Cmnd_Spec_List \\\n * > (':' Host_List '=' Cmnd_Spec_List)*\n *************************************************************************)\nlet spec = [ label \"spec\" . indent\n . alias_list \"user\" sto_to_com_user . sep_cont\n . Build.opt_list spec_list sep_col\n . comment_or_eol ]\n\n\n(************************************************************************\n * Group: LENS & FILTER\n *************************************************************************)\n\n(* View: lns\n The sudoers lens, any amount of\n * <empty> lines\n * <comments>\n * <includedirs>\n * <aliases>\n * <defaults>\n * <specs>\n*)\nlet lns = ( empty | comment | includedir | alias | defaults | spec )*\n\n(* View: filter *)\nlet filter = (incl \"\/etc\/sudoers\")\n . (incl \"\/usr\/local\/etc\/sudoers\")\n . (incl \"\/etc\/sudoers.d\/*\")\n . (incl \"\/usr\/local\/etc\/sudoers.d\/*\")\n . (incl \"\/opt\/csw\/etc\/sudoers\")\n . (incl \"\/etc\/opt\/csw\/sudoers\")\n . Util.stdexcl\n\nlet xfm = transform lns filter\n","avg_line_length":37.3727272727,"max_line_length":99,"alphanum_fraction":0.4705424471} {"size":1576,"ext":"aug","lang":"Augeas","max_stars_count":201.0,"content":"\/\/##1. this one is ok\ndef plusTen(a int|double) => a + 10\n\ndef doings(){\n\t\"\" + [\"\"+plusTen(10.), \"\"+plusTen(10)]\n}\n\n~~~~~\n\/\/##2. cannot be used outside of func signautre\ndef plusTen(a int|double) => a + 10\n\nnope int|double = 88\/\/not definable here of like this \n\ndef doings(){\n\t\"\" + [\"\"+plusTen(10.), \"\"+plusTen(10)]\n}\n\n~~~~~\n\/\/##3. if ret then others must\ndef plusTen(a int) int|double => a + 10\n\ndef doings(){\n\t\"\" \n}\n\n~~~~~\n\/\/##4. multitype args count must match\ndef plusTen(a int|char|double) int|double => a + 10\ndef plusTen(a int|char|double, b int|char) => a + 10\n\ndef doings(){\n\t\"\" \n}\n\n~~~~~\n\/\/##5. not for use in lambda\n\nplusTen = def (a int|char|double) => a + 10\n\ndef doings(){\n\t\"\" + [\"\" + plusTen(1), \"\" + plusTen(1.)]\n}\n\n~~~~~\n\/\/##6. check count for multitypes referenced in body\n\nprivate typedef numerical = short|int|long|float|double|char|byte\nprivate typedef numericalSub = short|int\n\ndef matmult(ax numerical[2], b numerical[2]){\n\tm1 = ax.length\n\tn1 = ax[0].length\n\tm2 = b.length\n\tn2 = b[0].length\n\tif (n1 <> m2){\n\t\tthrow new RuntimeException(\"Illegal matrix dimensions.\") \n\t}\n\t\n\tc int|double[2] = new int|double[m1,n2]\n\tc2 numericalSub[2] = new numericalSub[m1,n2]\n\tfor (i = 0; i < m1; i++){\n\t for (j = 0; j < n2; j++){\n\t for (k = 0; k < n1; k++){\n\t c[i][j] += ax[i][k] * b[k][j]\n\t }\n\t\t}\n\t}\n\tc\n}\n\nA=[1 2 3 ; 4 5 6]\nB=[7 8 ; 9 10 ; 11 12]\n\ndef doings(){\n\t\"\" \/\/+ matmult(A, B)\n}\n\n~~~~~\n\/\/##7. All arry dimensions must be qualified in order to use an element wise initialiser\ndef doings(){\n\txxx = new int[2,3][](99)\n\n\t\"\" + xxx\n}\n\n","avg_line_length":18.3255813953,"max_line_length":88,"alphanum_fraction":0.5729695431} {"size":4881,"ext":"aug","lang":"Augeas","max_stars_count":null,"content":"(* Process \/etc\/corosync\/corosync.conf *)\n(* The lens is based on the corosync.conf(5) man page *)\nmodule Corosync =\n\nautoload xfm\n\nlet comment = Util.comment\nlet empty = Util.empty\nlet dels = Util.del_str\nlet eol = Util.eol\n\nlet ws = del \/[ \\t]+\/ \" \"\nlet wsc = del \/:[ \\t]+\/ \": \"\nlet indent = del \/[ \\t]*\/ \"\"\n(* We require that braces are always followed by a newline *)\nlet obr = del \/\\{([ \\t]*)\\n\/ \"{\\n\"\nlet cbr = del \/[ \\t]*}[ \\t]*\\n\/ \"}\\n\"\n\nlet ikey (k:regexp) = indent . key k\n\nlet section (n:regexp) (b:lens) =\n [ ikey n . ws . obr . (b|empty|comment)* . cbr ]\n\nlet kv (k:regexp) (v:regexp) =\n [ ikey k . wsc . store v . eol ]\n\n(* FIXME: it would be much more concise to write *)\n(* [ key k . ws . (bare | quoted) ] *)\n(* but the typechecker trips over that *)\nlet qstr (k:regexp) =\n let delq = del \/['\"]\/ \"\\\"\" in\n let bare = del \/[\"']?\/ \"\" . store \/[^\"' \\t\\n]+\/ . del \/[\"']?\/ \"\" in\n let quoted = delq . store \/.*[ \\t].*\/ . delq in\n [ ikey k . wsc . bare . eol ]\n |[ ikey k . wsc . quoted . eol ]\n\n(* A integer subsection *)\nlet interface =\n let setting =\n kv \"ringnumber\" Rx.integer\n |kv \"mcastport\" Rx.integer\n |kv \"ttl\" Rx.integer\n |qstr \/bindnetaddr|mcastaddr\/ in\n section \"interface\" setting\n\n(* The totem section *)\nlet totem =\n let setting =\n kv \"clear_node_high_bit\" \/yes|no\/\n |kv \"rrp_mode\" \/none|active|passive\/\n |kv \"vsftype\" \/none|ykd\/\n |kv \"secauth\" \/on|off\/\n |kv \"crypto_type\" \/nss|aes256|aes192|aes128|3des\/\n |kv \"crypto_cipher\" \/none|nss|aes256|aes192|aes128|3des\/\n |kv \"crypto_hash\" \/none|md5|sha1|sha256|sha384|sha512\/\n |kv \"transport\" \/udp|iba\/\n |kv \"version\" Rx.integer\n |kv \"nodeid\" Rx.integer\n |kv \"threads\" Rx.integer\n |kv \"netmtu\" Rx.integer\n |kv \"token\" Rx.integer\n |kv \"token_retransmit\" Rx.integer\n |kv \"hold\" Rx.integer\n |kv \"token_retransmits_before_loss_const\" Rx.integer\n |kv \"join\" Rx.integer\n |kv \"send_join\" Rx.integer\n |kv \"consensus\" Rx.integer\n |kv \"merge\" Rx.integer\n |kv \"downcheck\" Rx.integer\n |kv \"fail_to_recv_const\" Rx.integer\n |kv \"seqno_unchanged_const\" Rx.integer\n |kv \"heartbeat_failures_allowed\" Rx.integer\n |kv \"max_network_delay\" Rx.integer\n |kv \"max_messages\" Rx.integer\n |kv \"window_size\" Rx.integer\n |kv \"rrp_problem_count_timeout\" Rx.integer\n |kv \"rrp_problem_count_threshold\" Rx.integer\n |kv \"rrp_token_expired_timeout\" Rx.integer\n |interface in\n section \"totem\" setting\n\nlet common_logging =\n kv \"to_syslog\" \/yes|no|on|off\/\n |kv \"to_stderr\" \/yes|no|on|off\/\n |kv \"to_logfile\" \/yes|no|on|off\/\n |kv \"debug\" \/yes|no|on|off|trace\/\n |kv \"logfile_priority\" \/alert|crit|debug|emerg|err|info|notice|warning\/\n |kv \"syslog_priority\" \/alert|crit|debug|emerg|err|info|notice|warning\/\n |kv \"syslog_facility\" \/daemon|local0|local1|local2|local3|local4|local5|local6|local7\/\n |qstr \/logfile|tags\/\n\n(* A logger_subsys subsection *)\nlet logger_subsys =\n let setting =\n qstr \/subsys\/\n |common_logging in\n section \"logger_subsys\" setting\n\n\n(* The logging section *)\nlet logging =\n let setting =\n kv \"fileline\" \/yes|no|on|off\/\n |kv \"function_name\" \/yes|no|on|off\/\n |kv \"timestamp\" \/yes|no|on|off\/\n |common_logging\n |logger_subsys in\n section \"logging\" setting\n\n\n(* The resource section *)\nlet common_resource =\n kv \"max\" Rx.decimal\n |kv \"poll_period\" Rx.integer\n |kv \"recovery\" \/reboot|shutdown|watchdog|none\/\n\nlet memory_used =\n let setting =\n common_resource in\n section \"memory_used\" setting\n\n\nlet load_15min =\n let setting =\n common_resource in\n section \"load_15min\" setting\n\nlet system =\n let setting =\n load_15min\n |memory_used in\n section \"system\" setting\n\n(* The resources section *)\nlet resources =\n let setting =\n system in\n section \"resources\" setting\n\n(* The quorum section *)\nlet quorum =\n let setting =\n qstr \/provider\/\n |kv \"expected_votes\" Rx.integer\n |kv \"votes\" Rx.integer\n |kv \"wait_for_all\" Rx.integer\n |kv \"last_man_standing\" Rx.integer\n |kv \"last_man_standing_window\" Rx.integer\n |kv \"auto_tie_breaker\" Rx.integer\n |kv \"two_node\" Rx.integer in\n section \"quorum\" setting\n\n(* The service section *)\nlet service =\n let setting =\n qstr \/name|ver\/ in\n section \"service\" setting\n\n(* The uidgid section *)\nlet uidgid =\n let setting =\n qstr \/uid|gid\/ in\n section \"uidgid\" setting\n\n(* The node section *)\nlet node =\n let setting =\n qstr \/ring[0-9]_addr\/\n |kv \"nodeid\" Rx.integer\n |kv \"quorum_votes\" Rx.integer in\n section \"node\" setting\n\n(* The nodelist section *)\nlet nodelist =\n let setting =\n node in\n section \"nodelist\" setting\n\nlet lns = (comment|empty|totem|quorum|logging|resources|service|uidgid|nodelist)*\n\nlet xfm = transform lns (incl \"\/etc\/corosync\/corosync.conf\")\n","avg_line_length":26.8186813187,"max_line_length":89,"alphanum_fraction":0.6416717886} {"size":1400,"ext":"aug","lang":"Augeas","max_stars_count":1.0,"content":"(*\nModule: Test_Postfix_Transport\n Provides unit tests and examples for the <Postfix_Transport> lens.\n*)\n\nmodule Test_Postfix_Transport =\n\n(* View: conf *)\nlet conf = \"# a comment\nthe.backed-up.domain.tld relay:[their.mail.host.tld]\n.my.domain :\n* smtp:outbound-relay.my.domain\nexample.com uucp:example\nexample.com slow:\nexample.com :[gateway.example.com]\nuser.foo@example.com \n smtp:bar.example:2025\n.example.com error:mail for *.example.com is not deliverable\n\"\n\n(* Test: Postfix_Transport.lns *)\ntest Postfix_Transport.lns get conf =\n { \"#comment\" = \"a comment\" }\n { \"pattern\" = \"the.backed-up.domain.tld\"\n { \"transport\" = \"relay\" }\n { \"nexthop\" = \"[their.mail.host.tld]\" } }\n { \"pattern\" = \".my.domain\"\n { \"transport\" }\n { \"nexthop\" } }\n { \"pattern\" = \"*\"\n { \"transport\" = \"smtp\" }\n { \"nexthop\" = \"outbound-relay.my.domain\" } }\n { \"pattern\" = \"example.com\"\n { \"transport\" = \"uucp\" }\n { \"nexthop\" = \"example\" } }\n { \"pattern\" = \"example.com\"\n { \"transport\" = \"slow\" }\n { \"nexthop\" } }\n { \"pattern\" = \"example.com\"\n { \"transport\" }\n { \"nexthop\" = \"[gateway.example.com]\" } }\n { \"pattern\" = \"user.foo@example.com\"\n { \"transport\" = \"smtp\" }\n { \"nexthop\" = \"bar.example:2025\" } }\n { \"pattern\" = \".example.com\"\n { \"transport\" = \"error\" }\n { \"nexthop\" = \"mail for *.example.com is not deliverable\" } }\n\n","avg_line_length":28.5714285714,"max_line_length":68,"alphanum_fraction":0.59}