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
SourceLocation.ts42 linesDownload Raw Back to src
1import type {LexerInterface} from "./Token";2 3/**4 * Lexing or parsing positional information for error reporting.5 * This object is immutable.6 */7export default class SourceLocation {8    // The + prefix indicates that these fields aren't writeable9    readonly lexer: LexerInterface; // Lexer holding the input string.10    readonly start: number;         // Start offset, zero-based inclusive.11    readonly end: number;           // End offset, zero-based exclusive.12 13    constructor(lexer: LexerInterface, start: number, end: number) {14        this.lexer = lexer;15        this.start = start;16        this.end = end;17    }18 19    /**20     * Merges two `SourceLocation`s from location providers, given they are21     * provided in order of appearance.22     * - Returns the first one's location if only the first is provided.23     * - Returns a merged range of the first and the last if both are provided24     *   and their lexers match.25     * - Otherwise, returns null.26     */27    static range(28        first?: {loc?: SourceLocation | null | undefined},29        second?: {loc?: SourceLocation | null | undefined},30    ): SourceLocation | null | undefined {31        if (!second) {32            return first && first.loc;33        } else if (!first || !first.loc || !second.loc ||34                   first.loc.lexer !== second.loc.lexer) {35            return null;36        } else {37            return new SourceLocation(38                    first.loc.lexer, first.loc.start, second.loc.end);39        }40    }41}42 
Brunobkr/llama.cpp_AlgMor24_github · Team Ai