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
util.mjs81 linesDownload Raw Back to dist
1export { getLocalName } from "./getRole.mjs";2import getRole, { getLocalName } from "./getRole.mjs";3export function isElement(node) {4  return node !== null && node.nodeType === node.ELEMENT_NODE;5}6export function isHTMLTableCaptionElement(node) {7  return isElement(node) && getLocalName(node) === "caption";8}9export function isHTMLInputElement(node) {10  return isElement(node) && getLocalName(node) === "input";11}12export function isHTMLOptGroupElement(node) {13  return isElement(node) && getLocalName(node) === "optgroup";14}15export function isHTMLSelectElement(node) {16  return isElement(node) && getLocalName(node) === "select";17}18export function isHTMLTableElement(node) {19  return isElement(node) && getLocalName(node) === "table";20}21export function isHTMLTextAreaElement(node) {22  return isElement(node) && getLocalName(node) === "textarea";23}24export function safeWindow(node) {25  var _ref = node.ownerDocument === null ? node : node.ownerDocument,26    defaultView = _ref.defaultView;27  if (defaultView === null) {28    throw new TypeError("no window available");29  }30  return defaultView;31}32export function isHTMLFieldSetElement(node) {33  return isElement(node) && getLocalName(node) === "fieldset";34}35export function isHTMLLegendElement(node) {36  return isElement(node) && getLocalName(node) === "legend";37}38export function isHTMLSlotElement(node) {39  return isElement(node) && getLocalName(node) === "slot";40}41export function isSVGElement(node) {42  return isElement(node) && node.ownerSVGElement !== undefined;43}44export function isSVGSVGElement(node) {45  return isElement(node) && getLocalName(node) === "svg";46}47export function isSVGTitleElement(node) {48  return isSVGElement(node) && getLocalName(node) === "title";49}50 51/**52 *53 * @param {Node} node -54 * @param {string} attributeName -55 * @returns {Element[]} -56 */57export function queryIdRefs(node, attributeName) {58  if (isElement(node) && node.hasAttribute(attributeName)) {59    // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- safe due to hasAttribute check60    var ids = node.getAttribute(attributeName).split(" ");61 62    // Browsers that don't support shadow DOM won't have getRootNode63    var root = node.getRootNode ? node.getRootNode() : node.ownerDocument;64    return ids.map(function (id) {65      return root.getElementById(id);66    }).filter(function (element) {67      return element !== null;68    }69    // TODO: why does this not narrow?70    );71  }72 73  return [];74}75export function hasAnyConcreteRoles(node, roles) {76  if (isElement(node)) {77    return roles.indexOf(getRole(node)) !== -1;78  }79  return false;80}81//# sourceMappingURL=util.mjs.map