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');4 5var SameValue = require('./SameValue');6 7var IsArray = require('../helpers/IsArray');8var every = require('../helpers/every');9var forEach = require('../helpers/forEach');10 11var hasOwn = require('hasown');12 13var isKeyedGroup = function (group) {14 return hasOwn(group, '[[Key]]')15 && hasOwn(group, '[[Elements]]')16 && IsArray(group['[[Elements]]']);17};18 19// https://262.ecma-international.org/15.0/#sec-add-value-to-keyed-group20 21module.exports = function AddValueToKeyedGroup(groups, key, value) {22 if (!IsArray(groups) || (groups.length > 0 && !every(groups, isKeyedGroup))) {23 throw new $TypeError('Assertion failed: `groups` must be a List of Records with [[Key]] and [[Elements]]');24 }25 26 var matched = 0;27 forEach(groups, function (g) { // step 128 if (SameValue(g['[[Key]]'], key)) { // step 229 matched += 1;30 if (matched > 1) {31 throw new $TypeError('Assertion failed: Exactly one element of groups meets this criterion'); // step 2.a32 }33 34 var arr = g['[[Elements]]'];35 arr[arr.length] = value; // step 2.b36 }37 });38 39 if (matched === 0) {40 var group = { '[[Key]]': key, '[[Elements]]': [value] }; // step 241 42 // eslint-disable-next-line no-param-reassign43 groups[groups.length] = group; // step 344 }45};46 