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
utils.d.ts310 linesDownload Raw Back to dist
1import type { BaseType, CurveFactory } from 'd3';2import type { MermaidConfig } from './config.type.js';3import type { D3Element, Point, TextDimensionConfig, TextDimensions } from './types.js';4export declare const ZERO_WIDTH_SPACE = "\u200B";5/**6 * Detects the init config object from the text7 *8 * @param text - The text defining the graph. For example:9 *10 * ```mermaid11 * %%{init: {"theme": "debug", "logLevel": 1 }}%%12 * graph LR13 *      a-->b14 *      b-->c15 *      c-->d16 *      d-->e17 *      e-->f18 *      f-->g19 *      g-->h20 * ```21 *22 * Or23 *24 * ```mermaid25 * %%{initialize: {"theme": "dark", logLevel: "debug" }}%%26 * graph LR27 *    a-->b28 *    b-->c29 *    c-->d30 *    d-->e31 *    e-->f32 *    f-->g33 *    g-->h34 * ```35 *36 * @param config - Optional mermaid configuration object.37 * @returns The json object representing the init passed to mermaid.initialize()38 */39export declare const detectInit: (text: string, config?: MermaidConfig) => MermaidConfig | undefined;40interface Directive {41    type?: string;42    args?: unknown;43}44/**45 * Detects the directive from the text.46 *47 * Text can be single line or multiline. If type is null or omitted,48 * the first directive encountered in text will be returned49 *50 * ```mermaid51 * graph LR52 * %%{someDirective}%%53 *    a-->b54 *    b-->c55 *    c-->d56 *    d-->e57 *    e-->f58 *    f-->g59 *    g-->h60 * ```61 *62 * @param text - The text defining the graph63 * @param type - The directive to return (default: `null`)64 * @returns An object or Array representing the directive(s) matched by the input type.65 * If a single directive was found, that directive object will be returned.66 */67export declare const detectDirective: (text: string, type?: string | RegExp | null) => Directive | Directive[];68export declare const removeDirectives: (text: string) => string;69/**70 * Detects whether a substring in present in a given array71 *72 * @param str - The substring to detect73 * @param arr - The array to search74 * @returns The array index containing the substring or -1 if not present75 */76export declare const isSubstringInArray: (str: string, arr: string[]) => number;77/**78 * Returns a d3 curve given a curve name79 *80 * @param interpolate - The interpolation name81 * @param defaultCurve - The default curve to return82 * @returns The curve factory to use83 */84export declare function interpolateToCurve(interpolate: string | undefined, defaultCurve: CurveFactory): CurveFactory;85/**86 * Formats a URL string87 *88 * @param linkStr - String of the URL89 * @param config - Configuration passed to MermaidJS90 * @returns The formatted URL or `undefined`.91 */92export declare function formatUrl(linkStr: string, config: MermaidConfig): string | undefined;93/**94 * Runs a function95 *96 * @param functionName - A dot separated path to the function relative to the `window`97 * @param params - Parameters to pass to the function98 */99export declare const runFunc: (functionName: string, ...params: unknown[]) => void;100/**101 * {@inheritdoc traverseEdge}102 */103declare function calcLabelPosition(points: Point[]): Point;104export declare const roundNumber: (num: number, precision?: number) => number;105export declare const calculatePoint: (points: Point[], distanceToTraverse: number) => Point;106/**107 * Calculates the terminal label position.108 *109 * @param terminalMarkerSize - Terminal marker size.110 * @param position - Position of label relative to points.111 * @param _points - Array of points.112 * @returns - The `cardinalityPosition`.113 */114declare function calcTerminalLabelPosition(terminalMarkerSize: number, position: 'start_left' | 'start_right' | 'end_left' | 'end_right', _points: Point[]): Point;115/**116 * Gets styles from an array of declarations117 *118 * @param arr - Declarations119 * @returns The styles grouped as strings120 */121export declare function getStylesFromArray(arr: string[]): {122    style: string;123    labelStyle: string;124};125export declare const generateId: () => string;126export declare const random: (options: {127    length: number;128}) => string;129export declare const getTextObj: () => {130    x: number;131    y: number;132    fill: undefined;133    anchor: string;134    style: string;135    width: number;136    height: number;137    textMargin: number;138    rx: number;139    ry: number;140    valign: undefined;141    text: string;142};143/**144 * Adds text to an element145 *146 * @param elem - SVG Element to add text to147 * @param textData - Text options.148 * @returns Text element with given styling and content149 */150export declare const drawSimpleText: (elem: SVGElement, textData: {151    text: string;152    x: number;153    y: number;154    anchor: "start" | "middle" | "end";155    fontFamily: string;156    fontSize: string | number;157    fontWeight: string | number;158    fill: string;159    class: string | undefined;160    textMargin: number;161}) => SVGTextElement;162interface WrapLabelConfig {163    fontSize: number;164    fontFamily: string;165    fontWeight: number;166    joinWith: string;167}168export declare const wrapLabel: (label: string, maxWidth: number, config: WrapLabelConfig) => string;169/**170 * This calculates the text's height, taking into account the wrap breaks and both the statically171 * configured height, width, and the length of the text (in pixels).172 *173 * If the wrapped text has greater height, we extend the height, so it's value won't overflow.174 *175 * @param text - The text to measure176 * @param config - The config for fontSize, fontFamily, and fontWeight all impacting the177 *   resulting size178 * @returns The height for the given text179 */180export declare function calculateTextHeight(text: Parameters<typeof calculateTextDimensions>[0], config: Parameters<typeof calculateTextDimensions>[1]): ReturnType<typeof calculateTextDimensions>['height'];181/**182 * This calculates the width of the given text, font size and family.183 *184 * @param text - The text to calculate the width of185 * @param config - The config for fontSize, fontFamily, and fontWeight all impacting the186 *   resulting size187 * @returns The width for the given text188 */189export declare function calculateTextWidth(text: Parameters<typeof calculateTextDimensions>[0], config: Parameters<typeof calculateTextDimensions>[1]): ReturnType<typeof calculateTextDimensions>['width'];190/**191 * This calculates the dimensions of the given text, font size, font family, font weight, and192 * margins.193 *194 * @param text - The text to calculate the width of195 * @param config - The config for fontSize, fontFamily, fontWeight, and margin all impacting196 *   the resulting size197 * @returns The dimensions for the given text198 */199export declare const calculateTextDimensions: (text: string, config: TextDimensionConfig) => TextDimensions;200export declare class InitIDGenerator {201    private count;202    next: () => number;203    constructor(deterministic?: boolean, seed?: string);204}205/**206 * Decodes HTML, source: {@link https://github.com/shrpne/entity-decode/blob/v2.0.1/browser.js}207 *208 * @param html - HTML as a string209 * @returns Unescaped HTML210 */211export declare const entityDecode: (html: string) => string;212export interface DetailedError {213    str: string;214    hash: any;215    error?: any;216    message?: string;217}218/** @param error - The error to check */219export declare function isDetailedError(error: any): error is DetailedError;220/** @param error - The error to convert to an error message */221export declare function getErrorMessage(error: unknown): string;222/**223 * Appends <text> element with the given title and css class.224 *225 * @param parent - d3 svg object to append title to226 * @param cssClass - CSS class for the <text> element containing the title227 * @param titleTopMargin - Margin in pixels between title and rest of the graph228 * @param title - The title. If empty, returns immediately.229 */230export declare const insertTitle: (parent: D3Element, cssClass: string, titleTopMargin: number, title?: string) => void;231/**232 * Parses a raw fontSize configuration value into a number and string value.233 *234 * @param fontSize - a string or number font size configuration value235 *236 * @returns parsed number and string style font size values, or nulls if a number value can't237 * be parsed from an input string.238 */239export declare const parseFontSize: (fontSize: string | number | undefined) => [number?, string?];240export declare function cleanAndMerge<T>(defaultData: T, data?: Partial<T>): T;241declare const _default: {242    assignWithDepth: (dst: any, src: any, { depth, clobber }?: {243        depth?: number;244        clobber?: boolean;245    }) => any;246    wrapLabel: (label: string, maxWidth: number, config: WrapLabelConfig) => string;247    calculateTextHeight: typeof calculateTextHeight;248    calculateTextWidth: typeof calculateTextWidth;249    calculateTextDimensions: (text: string, config: TextDimensionConfig) => TextDimensions;250    cleanAndMerge: typeof cleanAndMerge;251    detectInit: (text: string, config?: MermaidConfig) => MermaidConfig | undefined;252    detectDirective: (text: string, type?: string | RegExp | null) => Directive | Directive[];253    isSubstringInArray: (str: string, arr: string[]) => number;254    interpolateToCurve: typeof interpolateToCurve;255    calcLabelPosition: typeof calcLabelPosition;256    calcCardinalityPosition: (isRelationTypePresent: boolean, points: Point[], initialPosition: Point) => {257        x: number;258        y: number;259    };260    calcTerminalLabelPosition: typeof calcTerminalLabelPosition;261    formatUrl: typeof formatUrl;262    getStylesFromArray: typeof getStylesFromArray;263    generateId: () => string;264    random: (options: {265        length: number;266    }) => string;267    runFunc: (functionName: string, ...params: unknown[]) => void;268    entityDecode: (html: string) => string;269    insertTitle: (parent: D3Element, cssClass: string, titleTopMargin: number, title?: string) => void;270    isLabelCoordinateInPath: typeof isLabelCoordinateInPath;271    parseFontSize: (fontSize: string | number | undefined) => [number?, string?];272    InitIDGenerator: typeof InitIDGenerator;273};274export default _default;275/**276 * @param  text - text to be encoded277 * @returns278 */279export declare const encodeEntities: (text: string) => string;280/**281 * Partially reverts encoding done via {@link encodeEntities}282 *283 * @param  text - text to be decoded284 * @returns285 */286export declare const decodeEntities: (text: string) => string;287export declare const isString: (value: unknown) => value is string;288export declare const getEdgeId: (from: string, to: string, { counter, prefix, suffix, }: {289    counter?: number;290    prefix?: string;291    suffix?: string;292}, id?: string) => string;293/**294 * D3's `selection.attr` method doesn't officially support `undefined`.295 *296 * However, it seems if you do pass `undefined`, it seems to be treated as `null`297 * (e.g. it removes the attribute).298 */299export declare function handleUndefinedAttr(attrValue: Parameters<d3.Selection<BaseType, unknown, HTMLElement, any>['attr']>[1] | undefined): string | number | boolean | readonly (string | number)[] | import("d3-selection").ValueFn<BaseType, unknown, string | number | boolean | readonly (string | number)[] | null> | null;300/**301 * Checks if the  x or y coordinate of the edge label302 * appears in the given SVG path data string.303 *304 * @param point  - The Point object with x and y properties to check.305 * @param dAttr  - SVG path data string (the 'd' attribute of an SVG path element).306 * @returns      - True if the rounded x or y coordinate of the edge label is found307 *                 in the sanitized path data string; otherwise, false.308 */309export declare function isLabelCoordinateInPath(point: Point, dAttr: string): boolean;310 
Brunobkr/llama.cpp_AlgMor24_github · Team Ai