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 3module.exports = convert4 5function convert(test) {6 if (test == null) {7 return ok8 }9 10 if (typeof test === 'string') {11 return typeFactory(test)12 }13 14 if (typeof test === 'object') {15 return 'length' in test ? anyFactory(test) : allFactory(test)16 }17 18 if (typeof test === 'function') {19 return test20 }21 22 throw new Error('Expected function, string, or object as test')23}24 25// Utility assert each property in `test` is represented in `node`, and each26// values are strictly equal.27function allFactory(test) {28 return all29 30 function all(node) {31 var key32 33 for (key in test) {34 if (node[key] !== test[key]) return false35 }36 37 return true38 }39}40 41function anyFactory(tests) {42 var checks = []43 var index = -144 45 while (++index < tests.length) {46 checks[index] = convert(tests[index])47 }48 49 return any50 51 function any() {52 var index = -153 54 while (++index < checks.length) {55 if (checks[index].apply(this, arguments)) {56 return true57 }58 }59 60 return false61 }62}63 64// Utility to convert a string into a function which checks a given node’s type65// for said string.66function typeFactory(test) {67 return type68 69 function type(node) {70 return Boolean(node && node.type === test)71 }72}73 74// Utility to return true.75function ok() {76 return true77}78 