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
1/**2 * https://github.com/mathiasbynens/CSS.escape3 *4 * @param value - The value to escape for use as a CSS identifier5 * @returns The escaped CSS identifier string6 */7export function cssEscape(value) {8 if (typeof CSS !== "undefined" && typeof CSS.escape === "function") {9 return CSS.escape(value);10 }11 const length = value.length;12 let index = -1;13 let codeUnit;14 let result = "";15 const firstCodeUnit = value.charCodeAt(0);16 // If the character is the first character and is a `-` (U+002D), and17 // there is no second character, escape it18 if (length === 1 && firstCodeUnit === 0x002d)19 return "\\" + value;20 while (++index < length) {21 codeUnit = value.charCodeAt(index);22 // If the character is NULL (U+0000), then the REPLACEMENT CHARACTER (U+FFFD)23 if (codeUnit === 0x0000) {24 result += "\uFFFD";25 continue;26 }27 if (28 // If the character is in the range [\1-\1F] (U+0001 to U+001F) or is U+007F29 (codeUnit >= 0x0001 && codeUnit <= 0x001f) ||30 codeUnit === 0x007f ||31 // If the character is the first character and is in the range [0-9] (U+0030 to U+0039)32 (index === 0 && codeUnit >= 0x0030 && codeUnit <= 0x0039) ||33 // If the character is the second character and is in the range [0-9] (U+0030 to U+0039)34 // and the first character is a `-` (U+002D)35 (index === 1 && codeUnit >= 0x0030 && codeUnit <= 0x0039 && firstCodeUnit === 0x002d)) {36 // https://drafts.csswg.org/cssom/#escape-a-character-as-code-point37 result += "\\" + codeUnit.toString(16) + " ";38 continue;39 }40 // If the character is not handled by one of the above rules and is41 // greater than or equal to U+0080, is `-` (U+002D) or `_` (U+005F), or42 // is in one of the ranges [0-9] (U+0030 to U+0039), [A-Z] (U+0041 to U+005A),43 // or [a-z] (U+0061 to U+007A)44 if (codeUnit >= 0x0080 ||45 codeUnit === 0x002d ||46 codeUnit === 0x005f ||47 (codeUnit >= 0x0030 && codeUnit <= 0x0039) ||48 (codeUnit >= 0x0041 && codeUnit <= 0x005a) ||49 (codeUnit >= 0x0061 && codeUnit <= 0x007a)) {50 // Use the character itself51 result += value.charAt(index);52 continue;53 }54 // Otherwise, escape the character55 // https://drafts.csswg.org/cssom/#escape-a-character56 result += "\\" + value.charAt(index);57 }58 return result;59}60 