Team Ai
Datasetpublic

Brunobkr/llama.cpp_AlgMor24_github

ΩFFFΣLLIa • llama.cpp • AlgMor24 ██████╗ ███████╗███████╗███████╗██╗ ██╗ ██╗ █████╗ ██╔═══██╗██╔════╝██╔════╝██╔════╝██║ ██║ ██║██╔══██╗ ██║ ██║█████╗ █████╗ █████╗ ██║ ██║ ██║███████║ ██║ ██║██╔══╝ ██╔══╝ ██╔══╝ ██║ ██║ ██║██╔══██║ ╚██████╔╝██║ ██║ ███████╗███████╗███████╗██║██║ ██║ ╚═════╝ ╚═╝ ╚═╝ ╚══════╝╚══════╝╚══════╝╚═╝╚═╝ ╚═╝ High-Performance LLM / VLM Inference & Autonomous Agentic Ecosystem… See the full description on the dataset page: https://huggingface.co/datasets/Brunobkr/llama.cpp_AlgMor24_github.

sourceHugging Faceupdated 2mo agoView on Hugging Face
0likes3.1kdownloads
xml.js242 linesDownload Raw Back to languages
1/*2Language: HTML, XML3Website: https://www.w3.org/XML/4Category: common, web5Audit: 20206*/7 8/** @type LanguageFn */9function xml(hljs) {10  const regex = hljs.regex;11  // XML names can have the following additional letters: https://www.w3.org/TR/xml/#NT-NameChar12  // OTHER_NAME_CHARS = /[:\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]/;13  // Element names start with NAME_START_CHAR followed by optional other Unicode letters, ASCII digits, hyphens, underscores, and periods14  // const TAG_NAME_RE = regex.concat(/[A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/, regex.optional(/[A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*:/), /[A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*/);;15  // const XML_IDENT_RE = /[A-Z_a-z:\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]+/;16  // const TAG_NAME_RE = regex.concat(/[A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/, regex.optional(/[A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*:/), /[A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*/);17  // however, to cater for performance and more Unicode support rely simply on the Unicode letter class18  const TAG_NAME_RE = regex.concat(/[\p{L}_]/u, regex.optional(/[\p{L}0-9_.-]*:/u), /[\p{L}0-9_.-]*/u);19  const XML_IDENT_RE = /[\p{L}0-9._:-]+/u;20  const XML_ENTITIES = {21    className: 'symbol',22    begin: /&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/23  };24  const XML_META_KEYWORDS = {25    begin: /\s/,26    contains: [27      {28        className: 'keyword',29        begin: /#?[a-z_][a-z1-9_-]+/,30        illegal: /\n/31      }32    ]33  };34  const XML_META_PAR_KEYWORDS = hljs.inherit(XML_META_KEYWORDS, {35    begin: /\(/,36    end: /\)/37  });38  const APOS_META_STRING_MODE = hljs.inherit(hljs.APOS_STRING_MODE, { className: 'string' });39  const QUOTE_META_STRING_MODE = hljs.inherit(hljs.QUOTE_STRING_MODE, { className: 'string' });40  const TAG_INTERNALS = {41    endsWithParent: true,42    illegal: /</,43    relevance: 0,44    contains: [45      {46        className: 'attr',47        begin: XML_IDENT_RE,48        relevance: 049      },50      {51        begin: /=\s*/,52        relevance: 0,53        contains: [54          {55            className: 'string',56            endsParent: true,57            variants: [58              {59                begin: /"/,60                end: /"/,61                contains: [ XML_ENTITIES ]62              },63              {64                begin: /'/,65                end: /'/,66                contains: [ XML_ENTITIES ]67              },68              { begin: /[^\s"'=<>`]+/ }69            ]70          }71        ]72      }73    ]74  };75  return {76    name: 'HTML, XML',77    aliases: [78      'html',79      'xhtml',80      'rss',81      'atom',82      'xjb',83      'xsd',84      'xsl',85      'plist',86      'wsf',87      'svg'88    ],89    case_insensitive: true,90    unicodeRegex: true,91    contains: [92      {93        className: 'meta',94        begin: /<![a-z]/,95        end: />/,96        relevance: 10,97        contains: [98          XML_META_KEYWORDS,99          QUOTE_META_STRING_MODE,100          APOS_META_STRING_MODE,101          XML_META_PAR_KEYWORDS,102          {103            begin: /\[/,104            end: /\]/,105            contains: [106              {107                className: 'meta',108                begin: /<![a-z]/,109                end: />/,110                contains: [111                  XML_META_KEYWORDS,112                  XML_META_PAR_KEYWORDS,113                  QUOTE_META_STRING_MODE,114                  APOS_META_STRING_MODE115                ]116              }117            ]118          }119        ]120      },121      hljs.COMMENT(122        /<!--/,123        /-->/,124        { relevance: 10 }125      ),126      {127        begin: /<!\[CDATA\[/,128        end: /\]\]>/,129        relevance: 10130      },131      XML_ENTITIES,132      // xml processing instructions133      {134        className: 'meta',135        end: /\?>/,136        variants: [137          {138            begin: /<\?xml/,139            relevance: 10,140            contains: [141              QUOTE_META_STRING_MODE142            ]143          },144          {145            begin: /<\?[a-z][a-z0-9]+/,146          }147        ]148 149      },150      {151        className: 'tag',152        /*153        The lookahead pattern (?=...) ensures that 'begin' only matches154        '<style' as a single word, followed by a whitespace or an155        ending bracket.156        */157        begin: /<style(?=\s|>)/,158        end: />/,159        keywords: { name: 'style' },160        contains: [ TAG_INTERNALS ],161        starts: {162          end: /<\/style>/,163          returnEnd: true,164          subLanguage: [165            'css',166            'xml'167          ]168        }169      },170      {171        className: 'tag',172        // See the comment in the <style tag about the lookahead pattern173        begin: /<script(?=\s|>)/,174        end: />/,175        keywords: { name: 'script' },176        contains: [ TAG_INTERNALS ],177        starts: {178          end: /<\/script>/,179          returnEnd: true,180          subLanguage: [181            'javascript',182            'handlebars',183            'xml'184          ]185        }186      },187      // we need this for now for jSX188      {189        className: 'tag',190        begin: /<>|<\/>/191      },192      // open tag193      {194        className: 'tag',195        begin: regex.concat(196          /</,197          regex.lookahead(regex.concat(198            TAG_NAME_RE,199            // <tag/>200            // <tag>201            // <tag ...202            regex.either(/\/>/, />/, /\s/)203          ))204        ),205        end: /\/?>/,206        contains: [207          {208            className: 'name',209            begin: TAG_NAME_RE,210            relevance: 0,211            starts: TAG_INTERNALS212          }213        ]214      },215      // close tag216      {217        className: 'tag',218        begin: regex.concat(219          /<\//,220          regex.lookahead(regex.concat(221            TAG_NAME_RE, />/222          ))223        ),224        contains: [225          {226            className: 'name',227            begin: TAG_NAME_RE,228            relevance: 0229          },230          {231            begin: />/,232            relevance: 0,233            endsParent: true234          }235        ]236      }237    ]238  };239}240 241module.exports = xml;242 
Brunobkr/llama.cpp_AlgMor24_github · Team Ai