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
IsLessThan.js98 linesDownload Raw Back to 2023
1'use strict';2 3var GetIntrinsic = require('get-intrinsic');4 5var $Number = GetIntrinsic('%Number%');6var $TypeError = require('es-errors/type');7var min = require('math-intrinsics/min');8var $isNaN = require('math-intrinsics/isNaN');9 10var $charCodeAt = require('call-bound')('String.prototype.charCodeAt');11 12var StringToBigInt = require('./StringToBigInt');13var ToNumeric = require('./ToNumeric');14var ToPrimitive = require('./ToPrimitive');15 16var BigIntLessThan = require('./BigInt/lessThan');17var NumberLessThan = require('./Number/lessThan');18 19// https://262.ecma-international.org/14.0/#sec-islessthan20 21// eslint-disable-next-line max-statements, max-lines-per-function22module.exports = function IsLessThan(x, y, LeftFirst) {23	if (typeof LeftFirst !== 'boolean') {24		throw new $TypeError('Assertion failed: LeftFirst argument must be a Boolean');25	}26	var px;27	var py;28	if (LeftFirst) {29		px = ToPrimitive(x, $Number);30		py = ToPrimitive(y, $Number);31	} else {32		py = ToPrimitive(y, $Number);33		px = ToPrimitive(x, $Number);34	}35 36	if (typeof px === 'string' && typeof py === 'string') { // step 337		// a. Let lx be the length of px.38		// b. Let ly be the length of py.39		// c. For each integer i starting with 0 such that i < min(lx, ly), in ascending order, do40		// i. Let cx be the integer that is the numeric value of the code unit at index i within px.41		// ii. Let cy be the integer that is the numeric value of the code unit at index i within py.42		// iii. If cx < cy, return true.43		// iv. If cx > cy, return false.44		// d. If lx < ly, return true. Otherwise, return false.45 46		var lx = px.length; // step 3.a47		var ly = py.length; // step 3.b48		for (var i = 0; i < min(lx, ly); i++) { // step 3.c49			var cx = $charCodeAt(px, i); // step 3.c.i50			var cy = $charCodeAt(py, i); // step 3.c.ii51			if (cx < cy) {52				return true; // step 3.c.iii53			}54			if (cx > cy) {55				return false; // step 3.c.iv56			}57		}58		return lx < ly; // step 3.d59	}60 61	var nx;62	var ny;63	if (typeof px === 'bigint' && typeof py === 'string') {64		ny = StringToBigInt(py);65		if (typeof ny === 'undefined') {66			return void undefined;67		}68		return BigIntLessThan(px, ny);69	}70	if (typeof px === 'string' && typeof py === 'bigint') {71		nx = StringToBigInt(px);72		if (typeof nx === 'undefined') {73			return void undefined;74		}75		return BigIntLessThan(nx, py);76	}77 78	nx = ToNumeric(px);79	ny = ToNumeric(py);80 81	if (typeof nx === typeof ny) {82		return typeof nx === 'number' ? NumberLessThan(nx, ny) : BigIntLessThan(nx, ny);83	}84 85	if ($isNaN(nx) || $isNaN(ny)) {86		return void undefined;87	}88 89	if (nx === -Infinity || ny === Infinity) {90		return true;91	}92	if (nx === Infinity || ny === -Infinity) {93		return false;94	}95 96	return nx < ny; // by now, these are both finite, and the same type97};98