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 2016
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 EnumerableOwnNames = require('./EnumerableOwnNames');9var Get = require('./Get');10var IsArray = require('./IsArray');11var ToLength = require('./ToLength');12var ToString = require('./ToString');13 14var forEach = require('../helpers/forEach');15 16// https://262.ecma-international.org/6.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 334		var isArray = IsArray(val); // step 3.a35		if (isArray) { // step 3.c36			var I = 0; // step 3.c.i37 38			var len = ToLength(Get(val, 'length')); // step 3.b.ii39 40			while (I < len) { // step 3.b.iv41				var newElement = InternalizeJSONProperty(val, ToString(I), reviver); // step 3.b.iv.142 43				if (typeof newElement === 'undefined') { // step 3.b.iv.344					delete val[ToString(I)]; // step 3.b.iv.3.a45				} else { // step 3.b.iv.446					CreateDataProperty(val, ToString(I), newElement); // step 3.b.iv.4.a47				}48 49				I += 1; // step 3.b.iv.650			}51		} else {52			var keys = EnumerableOwnNames(val); // step 3.d.i53 54			forEach(keys, function (P) { // step 3.d.iii55				// eslint-disable-next-line no-shadow56				var newElement = InternalizeJSONProperty(val, P, reviver); // step 3.d.iii.157 58				if (typeof newElement === 'undefined') { // step 3.d.iii.359					delete val[P]; // step 3.d.iii.3.a60				} else { // step 3.d.iii.461					CreateDataProperty(val, P, newElement); // step 3.d.iii.4.a62				}63			});64		}65	}66 67	return Call(reviver, holder, [name, val]); // step 468};69