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
ToNumber.js49 linesDownload Raw Back to 2017
1'use strict';2 3var GetIntrinsic = require('get-intrinsic');4 5var $TypeError = require('es-errors/type');6var $Number = GetIntrinsic('%Number%');7var $RegExp = GetIntrinsic('%RegExp%');8var $parseInteger = GetIntrinsic('%parseInt%');9 10var callBound = require('call-bound');11var regexTester = require('safe-regex-test');12var isPrimitive = require('../helpers/isPrimitive');13 14var $strSlice = callBound('String.prototype.slice');15var isBinary = regexTester(/^0b[01]+$/i);16var isOctal = regexTester(/^0o[0-7]+$/i);17var isInvalidHexLiteral = regexTester(/^[-+]0x[0-9a-f]+$/i);18var nonWS = ['\u0085', '\u200b', '\ufffe'].join('');19var nonWSregex = new $RegExp('[' + nonWS + ']', 'g');20var hasNonWS = regexTester(nonWSregex);21 22var $trim = require('string.prototype.trim');23 24var ToPrimitive = require('./ToPrimitive');25 26// https://262.ecma-international.org/6.0/#sec-tonumber27 28module.exports = function ToNumber(argument) {29	var value = isPrimitive(argument) ? argument : ToPrimitive(argument, $Number);30	if (typeof value === 'symbol') {31		throw new $TypeError('Cannot convert a Symbol value to a number');32	}33	if (typeof value === 'string') {34		if (isBinary(value)) {35			return ToNumber($parseInteger($strSlice(value, 2), 2));36		} else if (isOctal(value)) {37			return ToNumber($parseInteger($strSlice(value, 2), 8));38		} else if (hasNonWS(value) || isInvalidHexLiteral(value)) {39			return NaN;40		}41		var trimmed = $trim(value);42		if (trimmed !== value) {43			return ToNumber(trimmed);44		}45 46	}47	return +value;48};49 
Brunobkr/llama.cpp_AlgMor24_github · Team Ai