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
InternalizeJSONProperty.js69 linesDownload Raw Back to 2023
1'use strict';2 3var $TypeError = require('es-errors/type');4var isObject = require('es-object-atoms/isObject');5 6var Call = require('./Call');7var CreateDataProperty = require('./CreateDataProperty');8var EnumerableOwnProperties = require('./EnumerableOwnProperties');9var Get = require('./Get');10var IsArray = require('./IsArray');11var LengthOfArrayLike = require('./LengthOfArrayLike');12var ToString = require('./ToString');13 14var forEach = require('../helpers/forEach');15 16// https://262.ecma-international.org/14.0/#sec-internalizejsonproperty17 18// note: `reviver` was implicitly closed-over until ES2020, where it becomes a third argument19 20module.exports = function InternalizeJSONProperty(holder, name, reviver) {21	if (!isObject(holder)) {22		throw new $TypeError('Assertion failed: `holder` is not an Object');23	}24	if (typeof name !== 'string') {25		throw new $TypeError('Assertion failed: `name` is not a String');26	}27	if (typeof reviver !== 'function') {28		throw new $TypeError('Assertion failed: `reviver` is not a Function');29	}30 31	var val = Get(holder, name); // step 132 33	if (isObject(val)) { // step 234		var isArray = IsArray(val); // step 2.a35		if (isArray) { // step 2.b36			var I = 0; // step 2.b.i37 38			var len = LengthOfArrayLike(val); // step 2.b.ii39 40			while (I < len) { // step 2.b.iii41				var newElement = InternalizeJSONProperty(val, ToString(I), reviver); // step 2.b.iv.142 43				if (typeof newElement === 'undefined') { // step 2.b.iii.244					delete val[ToString(I)]; // step 2.b.iii.2.a45				} else { // step 2.b.iii.346					CreateDataProperty(val, ToString(I), newElement); // step 2.b.iii.3.a47				}48 49				I += 1; // step 2.b.iii.450			}51		} else { // step 2.c52			var keys = EnumerableOwnProperties(val, 'key'); // step 2.c.i53 54			forEach(keys, function (P) { // step 2.c.ii55				// eslint-disable-next-line no-shadow56				var newElement = InternalizeJSONProperty(val, P, reviver); // step 2.c.ii.157 58				if (typeof newElement === 'undefined') { // step 2.c.ii.259					delete val[P]; // step 2.c.ii.2.a60				} else { // step 2.c.ii.361					CreateDataProperty(val, P, newElement); // step 2.c.ii.3.a62				}63			});64		}65	}66 67	return Call(reviver, holder, [name, val]); // step 368};69 
Brunobkr/llama.cpp_AlgMor24_github · Team Ai