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.
03.1k
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 EnumerableOwnPropertyNames = require('./EnumerableOwnPropertyNames');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/11.0/#sec-internalizejsonproperty17 18module.exports = function InternalizeJSONProperty(holder, name, reviver) {19 if (!isObject(holder)) {20 throw new $TypeError('Assertion failed: `holder` is not an Object');21 }22 if (typeof name !== 'string') {23 throw new $TypeError('Assertion failed: `name` is not a String');24 }25 if (typeof reviver !== 'function') {26 throw new $TypeError('Assertion failed: `reviver` is not a Function');27 }28 29 var val = Get(holder, name); // step 130 31 if (isObject(val)) { // step 232 var isArray = IsArray(val); // step 2.a33 if (isArray) { // step 2.b34 var I = 0; // step 2.b.i35 36 var len = LengthOfArrayLike(val, 'length'); // step 2.b.ii37 38 while (I < len) { // step 2.b.iii39 var newElement = InternalizeJSONProperty(val, ToString(I), reviver); // step 2.b.iv.140 41 if (typeof newElement === 'undefined') { // step 2.b.iii.242 delete val[ToString(I)]; // step 2.b.iii.2.a43 } else { // step 2.b.iii.344 CreateDataProperty(val, ToString(I), newElement); // step 2.b.iii.3.a45 }46 47 I += 1; // step 2.b.iii.448 }49 } else { // step 2.c50 var keys = EnumerableOwnPropertyNames(val, 'key'); // step 2.c.i51 52 forEach(keys, function (P) { // step 2.c.ii53 // eslint-disable-next-line no-shadow54 var newElement = InternalizeJSONProperty(val, P, reviver); // step 2.c.ii.155 56 if (typeof newElement === 'undefined') { // step 2.c.ii.257 delete val[P]; // step 2.c.ii.2.a58 } else { // step 2.c.ii.359 CreateDataProperty(val, P, newElement); // step 2.c.ii.3.a60 }61 });62 }63 }64 65 return Call(reviver, holder, [name, val]); // step 366};67 