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.
03.1k
1const KEYWORDS = [2 "as", // for exports3 "in",4 "of",5 "if",6 "for",7 "while",8 "finally",9 "var",10 "new",11 "function",12 "do",13 "return",14 "void",15 "else",16 "break",17 "catch",18 "instanceof",19 "with",20 "throw",21 "case",22 "default",23 "try",24 "switch",25 "continue",26 "typeof",27 "delete",28 "let",29 "yield",30 "const",31 "class",32 // JS handles these with a special rule33 // "get",34 // "set",35 "debugger",36 "async",37 "await",38 "static",39 "import",40 "from",41 "export",42 "extends",43 // It's reached stage 3, which is "recommended for implementation":44 "using"45];46const LITERALS = [47 "true",48 "false",49 "null",50 "undefined",51 "NaN",52 "Infinity"53];54 55// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects56const TYPES = [57 // Fundamental objects58 "Object",59 "Function",60 "Boolean",61 "Symbol",62 // numbers and dates63 "Math",64 "Date",65 "Number",66 "BigInt",67 // text68 "String",69 "RegExp",70 // Indexed collections71 "Array",72 "Float32Array",73 "Float64Array",74 "Int8Array",75 "Uint8Array",76 "Uint8ClampedArray",77 "Int16Array",78 "Int32Array",79 "Uint16Array",80 "Uint32Array",81 "BigInt64Array",82 "BigUint64Array",83 // Keyed collections84 "Set",85 "Map",86 "WeakSet",87 "WeakMap",88 // Structured data89 "ArrayBuffer",90 "SharedArrayBuffer",91 "Atomics",92 "DataView",93 "JSON",94 // Control abstraction objects95 "Promise",96 "Generator",97 "GeneratorFunction",98 "AsyncFunction",99 // Reflection100 "Reflect",101 "Proxy",102 // Internationalization103 "Intl",104 // WebAssembly105 "WebAssembly"106];107 108const ERROR_TYPES = [109 "Error",110 "EvalError",111 "InternalError",112 "RangeError",113 "ReferenceError",114 "SyntaxError",115 "TypeError",116 "URIError"117];118 119const BUILT_IN_GLOBALS = [120 "setInterval",121 "setTimeout",122 "clearInterval",123 "clearTimeout",124 125 "require",126 "exports",127 128 "eval",129 "isFinite",130 "isNaN",131 "parseFloat",132 "parseInt",133 "decodeURI",134 "decodeURIComponent",135 "encodeURI",136 "encodeURIComponent",137 "escape",138 "unescape"139];140 141const BUILT_INS = [].concat(142 BUILT_IN_GLOBALS,143 TYPES,144 ERROR_TYPES145);146 147/*148Language: LiveScript149Author: Taneli Vatanen <taneli.vatanen@gmail.com>150Contributors: Jen Evers-Corvina <jen@sevvie.net>151Origin: coffeescript.js152Description: LiveScript is a programming language that transcompiles to JavaScript. For info about language see http://livescript.net/153Website: https://livescript.net154Category: scripting155*/156 157 158function livescript(hljs) {159 const LIVESCRIPT_BUILT_INS = [160 'npm',161 'print'162 ];163 const LIVESCRIPT_LITERALS = [164 'yes',165 'no',166 'on',167 'off',168 'it',169 'that',170 'void'171 ];172 const LIVESCRIPT_KEYWORDS = [173 'then',174 'unless',175 'until',176 'loop',177 'of',178 'by',179 'when',180 'and',181 'or',182 'is',183 'isnt',184 'not',185 'it',186 'that',187 'otherwise',188 'from',189 'to',190 'til',191 'fallthrough',192 'case',193 'enum',194 'native',195 'list',196 'map',197 '__hasProp',198 '__extends',199 '__slice',200 '__bind',201 '__indexOf'202 ];203 const KEYWORDS$1 = {204 keyword: KEYWORDS.concat(LIVESCRIPT_KEYWORDS),205 literal: LITERALS.concat(LIVESCRIPT_LITERALS),206 built_in: BUILT_INS.concat(LIVESCRIPT_BUILT_INS)207 };208 const JS_IDENT_RE = '[A-Za-z$_](?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*';209 const TITLE = hljs.inherit(hljs.TITLE_MODE, { begin: JS_IDENT_RE });210 const SUBST = {211 className: 'subst',212 begin: /#\{/,213 end: /\}/,214 keywords: KEYWORDS$1215 };216 const SUBST_SIMPLE = {217 className: 'subst',218 begin: /#[A-Za-z$_]/,219 end: /(?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*/,220 keywords: KEYWORDS$1221 };222 const EXPRESSIONS = [223 hljs.BINARY_NUMBER_MODE,224 {225 className: 'number',226 begin: '(\\b0[xX][a-fA-F0-9_]+)|(\\b\\d(\\d|_\\d)*(\\.(\\d(\\d|_\\d)*)?)?(_*[eE]([-+]\\d(_\\d|\\d)*)?)?[_a-z]*)',227 relevance: 0,228 starts: {229 end: '(\\s*/)?',230 relevance: 0231 } // a number tries to eat the following slash to prevent treating it as a regexp232 },233 {234 className: 'string',235 variants: [236 {237 begin: /'''/,238 end: /'''/,239 contains: [ hljs.BACKSLASH_ESCAPE ]240 },241 {242 begin: /'/,243 end: /'/,244 contains: [ hljs.BACKSLASH_ESCAPE ]245 },246 {247 begin: /"""/,248 end: /"""/,249 contains: [250 hljs.BACKSLASH_ESCAPE,251 SUBST,252 SUBST_SIMPLE253 ]254 },255 {256 begin: /"/,257 end: /"/,258 contains: [259 hljs.BACKSLASH_ESCAPE,260 SUBST,261 SUBST_SIMPLE262 ]263 },264 {265 begin: /\\/,266 end: /(\s|$)/,267 excludeEnd: true268 }269 ]270 },271 {272 className: 'regexp',273 variants: [274 {275 begin: '//',276 end: '//[gim]*',277 contains: [278 SUBST,279 hljs.HASH_COMMENT_MODE280 ]281 },282 {283 // regex can't start with space to parse x / 2 / 3 as two divisions284 // regex can't start with *, and it supports an "illegal" in the main mode285 begin: /\/(?![ *])(\\.|[^\\\n])*?\/[gim]*(?=\W)/ }286 ]287 },288 { begin: '@' + JS_IDENT_RE },289 {290 begin: '``',291 end: '``',292 excludeBegin: true,293 excludeEnd: true,294 subLanguage: 'javascript'295 }296 ];297 SUBST.contains = EXPRESSIONS;298 299 const PARAMS = {300 className: 'params',301 begin: '\\(',302 returnBegin: true,303 /* We need another contained nameless mode to not have every nested304 pair of parens to be called "params" */305 contains: [306 {307 begin: /\(/,308 end: /\)/,309 keywords: KEYWORDS$1,310 contains: [ 'self' ].concat(EXPRESSIONS)311 }312 ]313 };314 315 const SYMBOLS = { begin: '(#=>|=>|\\|>>|-?->|!->)' };316 317 const CLASS_DEFINITION = {318 variants: [319 { match: [320 /class\s+/,321 JS_IDENT_RE,322 /\s+extends\s+/,323 JS_IDENT_RE324 ] },325 { match: [326 /class\s+/,327 JS_IDENT_RE328 ] }329 ],330 scope: {331 2: "title.class",332 4: "title.class.inherited"333 },334 keywords: KEYWORDS$1335 };336 337 return {338 name: 'LiveScript',339 aliases: [ 'ls' ],340 keywords: KEYWORDS$1,341 illegal: /\/\*/,342 contains: EXPRESSIONS.concat([343 hljs.COMMENT('\\/\\*', '\\*\\/'),344 hljs.HASH_COMMENT_MODE,345 SYMBOLS, // relevance booster346 {347 className: 'function',348 contains: [349 TITLE,350 PARAMS351 ],352 returnBegin: true,353 variants: [354 {355 begin: '(' + JS_IDENT_RE + '\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B->\\*?',356 end: '->\\*?'357 },358 {359 begin: '(' + JS_IDENT_RE + '\\s*(?:=|:=)\\s*)?!?(\\(.*\\)\\s*)?\\B[-~]{1,2}>\\*?',360 end: '[-~]{1,2}>\\*?'361 },362 {363 begin: '(' + JS_IDENT_RE + '\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B!?[-~]{1,2}>\\*?',364 end: '!?[-~]{1,2}>\\*?'365 }366 ]367 },368 CLASS_DEFINITION,369 {370 begin: JS_IDENT_RE + ':',371 end: ':',372 returnBegin: true,373 returnEnd: true,374 relevance: 0375 }376 ])377 };378}379 380module.exports = livescript;381 