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";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 language_exports = {};20__export(language_exports, {21 fromKeyboardModifiers: () => fromKeyboardModifiers,22 generateCode: () => generateCode,23 sanitizeDeviceOptions: () => sanitizeDeviceOptions,24 toClickOptionsForSourceCode: () => toClickOptionsForSourceCode,25 toKeyboardModifiers: () => toKeyboardModifiers,26 toSignalMap: () => toSignalMap27});28module.exports = __toCommonJS(language_exports);29function generateCode(actions, languageGenerator, options) {30 const header = languageGenerator.generateHeader(options);31 const footer = languageGenerator.generateFooter(options.saveStorage);32 const actionTexts = actions.map((a) => generateActionText(languageGenerator, a, !!options.generateAutoExpect)).filter(Boolean);33 const text = [header, ...actionTexts, footer].join("\n");34 return { header, footer, actionTexts, text };35}36function generateActionText(generator, action, generateAutoExpect) {37 let text = generator.generateAction(action);38 if (!text)39 return;40 if (generateAutoExpect && action.action.preconditionSelector) {41 const expectAction = {42 frame: action.frame,43 startTime: action.startTime,44 endTime: action.startTime,45 action: {46 name: "assertVisible",47 selector: action.action.preconditionSelector,48 signals: []49 }50 };51 const expectText = generator.generateAction(expectAction);52 if (expectText)53 text = expectText + "\n\n" + text;54 }55 return text;56}57function sanitizeDeviceOptions(device, options) {58 const cleanedOptions = {};59 for (const property in options) {60 if (JSON.stringify(device[property]) !== JSON.stringify(options[property]))61 cleanedOptions[property] = options[property];62 }63 return cleanedOptions;64}65function toSignalMap(action) {66 let popup;67 let download;68 let dialog;69 for (const signal of action.signals) {70 if (signal.name === "popup")71 popup = signal;72 else if (signal.name === "download")73 download = signal;74 else if (signal.name === "dialog")75 dialog = signal;76 }77 return {78 popup,79 download,80 dialog81 };82}83function toKeyboardModifiers(modifiers) {84 const result = [];85 if (modifiers & 1)86 result.push("Alt");87 if (modifiers & 2)88 result.push("ControlOrMeta");89 if (modifiers & 4)90 result.push("ControlOrMeta");91 if (modifiers & 8)92 result.push("Shift");93 return result;94}95function fromKeyboardModifiers(modifiers) {96 let result = 0;97 if (!modifiers)98 return result;99 if (modifiers.includes("Alt"))100 result |= 1;101 if (modifiers.includes("Control"))102 result |= 2;103 if (modifiers.includes("ControlOrMeta"))104 result |= 2;105 if (modifiers.includes("Meta"))106 result |= 4;107 if (modifiers.includes("Shift"))108 result |= 8;109 return result;110}111function toClickOptionsForSourceCode(action) {112 const modifiers = toKeyboardModifiers(action.modifiers);113 const options = {};114 if (action.button !== "left")115 options.button = action.button;116 if (modifiers.length)117 options.modifiers = modifiers;118 if (action.clickCount > 2)119 options.clickCount = action.clickCount;120 if (action.position)121 options.position = action.position;122 return options;123}124// Annotate the CommonJS export names for ESM import in node:1250 && (module.exports = {126 fromKeyboardModifiers,127 generateCode,128 sanitizeDeviceOptions,129 toClickOptionsForSourceCode,130 toKeyboardModifiers,131 toSignalMap132});133 