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
Canonicalize.js52 linesDownload Raw Back to 2016
1'use strict';2 3var $TypeError = require('es-errors/type');4 5var callBound = require('call-bound');6var hasOwn = require('hasown');7 8var $charCodeAt = callBound('String.prototype.charCodeAt');9var $toUpperCase = callBound('String.prototype.toUpperCase');10 11var caseFolding = require('../helpers/caseFolding.json');12 13// https://262.ecma-international.org/6.0/#sec-runtime-semantics-canonicalize-ch14 15module.exports = function Canonicalize(ch, IgnoreCase, Unicode) {16	if (typeof ch !== 'string') {17		throw new $TypeError('Assertion failed: `ch` must be a character');18	}19 20	if (typeof IgnoreCase !== 'boolean' || typeof Unicode !== 'boolean') {21		throw new $TypeError('Assertion failed: `IgnoreCase` and `Unicode` must be Booleans');22	}23 24	if (!IgnoreCase) {25		return ch; // step 126	}27 28	if (Unicode) { // step 229		if (hasOwn(caseFolding.C, ch)) {30			return caseFolding.C[ch];31		}32		if (hasOwn(caseFolding.S, ch)) {33			return caseFolding.S[ch];34		}35		return ch; // step 2.b36	}37 38	var u = $toUpperCase(ch); // step 239 40	if (u.length !== 1) {41		return ch; // step 342	}43 44	var cu = u; // step 445 46	if ($charCodeAt(ch, 0) >= 128 && $charCodeAt(cu, 0) < 128) {47		return ch; // step 548	}49 50	return cu;51};52 
Brunobkr/llama.cpp_AlgMor24_github · Team Ai