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
ffAccessibility.js239 linesDownload Raw Back to firefox
1"use strict";2var __defProp = Object.defineProperty;3var __getOwnPropDesc = Object.getOwnPropertyDescriptor;4var __getOwnPropNames = Object.getOwnPropertyNames;5var __hasOwnProp = Object.prototype.hasOwnProperty;6var __export = (target, all) => {7  for (var name in all)8    __defProp(target, name, { get: all[name], enumerable: true });9};10var __copyProps = (to, from, except, desc) => {11  if (from && typeof from === "object" || typeof from === "function") {12    for (let key of __getOwnPropNames(from))13      if (!__hasOwnProp.call(to, key) && key !== except)14        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });15  }16  return to;17};18var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);19var ffAccessibility_exports = {};20__export(ffAccessibility_exports, {21  getAccessibilityTree: () => getAccessibilityTree22});23module.exports = __toCommonJS(ffAccessibility_exports);24async function getAccessibilityTree(session, needle) {25  const objectId = needle ? needle._objectId : void 0;26  const { tree } = await session.send("Accessibility.getFullAXTree", { objectId });27  const axNode = new FFAXNode(tree);28  return {29    tree: axNode,30    needle: needle ? axNode._findNeedle() : null31  };32}33const FFRoleToARIARole = new Map(Object.entries({34  "pushbutton": "button",35  "checkbutton": "checkbox",36  "editcombobox": "combobox",37  "content deletion": "deletion",38  "footnote": "doc-footnote",39  "non-native document": "document",40  "grouping": "group",41  "graphic": "img",42  "content insertion": "insertion",43  "animation": "marquee",44  "flat equation": "math",45  "menupopup": "menu",46  "check menu item": "menuitemcheckbox",47  "radio menu item": "menuitemradio",48  "listbox option": "option",49  "radiobutton": "radio",50  "statusbar": "status",51  "pagetab": "tab",52  "pagetablist": "tablist",53  "propertypage": "tabpanel",54  "entry": "textbox",55  "outline": "tree",56  "tree table": "treegrid",57  "outlineitem": "treeitem"58}));59class FFAXNode {60  constructor(payload) {61    this._payload = payload;62    this._children = (payload.children || []).map((x) => new FFAXNode(x));63    this._editable = !!payload.editable;64    this._richlyEditable = this._editable && (payload.tag !== "textarea" && payload.tag !== "input");65    this._focusable = !!payload.focusable;66    this._expanded = !!payload.expanded;67    this._name = this._payload.name;68    this._role = this._payload.role;69  }70  _isPlainTextField() {71    if (this._richlyEditable)72      return false;73    if (this._editable)74      return true;75    return this._role === "entry";76  }77  _isTextOnlyObject() {78    const role = this._role;79    return role === "text leaf" || role === "text" || role === "statictext";80  }81  _hasFocusableChild() {82    if (this._cachedHasFocusableChild === void 0) {83      this._cachedHasFocusableChild = false;84      for (const child of this._children) {85        if (child._focusable || child._hasFocusableChild()) {86          this._cachedHasFocusableChild = true;87          break;88        }89      }90    }91    return this._cachedHasFocusableChild;92  }93  children() {94    return this._children;95  }96  _findNeedle() {97    if (this._payload.foundObject)98      return this;99    for (const child of this._children) {100      const found = child._findNeedle();101      if (found)102        return found;103    }104    return null;105  }106  isLeafNode() {107    if (!this._children.length)108      return true;109    if (this._isPlainTextField() || this._isTextOnlyObject())110      return true;111    switch (this._role) {112      case "graphic":113      case "scrollbar":114      case "slider":115      case "separator":116      case "progressbar":117        return true;118      default:119        break;120    }121    if (this._hasFocusableChild())122      return false;123    if (this._focusable && this._role !== "document" && this._name)124      return true;125    if (this._role === "heading" && this._name)126      return true;127    return false;128  }129  isControl() {130    switch (this._role) {131      case "checkbutton":132      case "check menu item":133      case "check rich option":134      case "combobox":135      case "combobox option":136      case "color chooser":137      case "listbox":138      case "listbox option":139      case "listbox rich option":140      case "popup menu":141      case "menupopup":142      case "menuitem":143      case "menubar":144      case "button":145      case "pushbutton":146      case "radiobutton":147      case "radio menuitem":148      case "scrollbar":149      case "slider":150      case "spinbutton":151      case "switch":152      case "pagetab":153      case "entry":154      case "tree table":155        return true;156      default:157        return false;158    }159  }160  isInteresting(insideControl) {161    if (this._focusable || this._richlyEditable)162      return true;163    if (this.isControl())164      return true;165    if (insideControl)166      return false;167    return this.isLeafNode() && !!this._name.trim();168  }169  serialize() {170    const node = {171      role: FFRoleToARIARole.get(this._role) || this._role,172      name: this._name || ""173    };174    const userStringProperties = [175      "name",176      "description",177      "roledescription",178      "valuetext",179      "keyshortcuts"180    ];181    for (const userStringProperty of userStringProperties) {182      if (!(userStringProperty in this._payload))183        continue;184      node[userStringProperty] = this._payload[userStringProperty];185    }186    const booleanProperties = [187      "disabled",188      "expanded",189      "focused",190      "modal",191      "multiline",192      "multiselectable",193      "readonly",194      "required",195      "selected"196    ];197    for (const booleanProperty of booleanProperties) {198      if (this._role === "document" && booleanProperty === "focused")199        continue;200      const value = this._payload[booleanProperty];201      if (!value)202        continue;203      node[booleanProperty] = value;204    }205    const numericalProperties = [206      "level"207    ];208    for (const numericalProperty of numericalProperties) {209      if (!(numericalProperty in this._payload))210        continue;211      node[numericalProperty] = this._payload[numericalProperty];212    }213    const tokenProperties = [214      "autocomplete",215      "haspopup",216      "orientation"217    ];218    for (const tokenProperty of tokenProperties) {219      const value = this._payload[tokenProperty];220      if (!value || value === "false")221        continue;222      node[tokenProperty] = value;223    }224    const axNode = node;225    axNode.valueString = this._payload.value;226    if ("checked" in this._payload)227      axNode.checked = this._payload.checked === true ? "checked" : this._payload.checked === "mixed" ? "mixed" : "unchecked";228    if ("pressed" in this._payload)229      axNode.pressed = this._payload.pressed === true ? "pressed" : "released";230    if ("invalid" in this._payload)231      axNode.invalid = this._payload.invalid === true ? "true" : "false";232    return axNode;233  }234}235// Annotate the CommonJS export names for ESM import in node:2360 && (module.exports = {237  getAccessibilityTree238});239 
Brunobkr/llama.cpp_AlgMor24_github · Team Ai