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
espree.js175 linesDownload Raw Back to espree
1/**2 * @fileoverview Main Espree file that converts Acorn into Esprima output.3 *4 * This file contains code from the following MIT-licensed projects:5 * 1. Acorn6 * 2. Babylon7 * 3. Babel-ESLint8 *9 * This file also contains code from Esprima, which is BSD licensed.10 *11 * Acorn is Copyright 2012-2015 Acorn Contributors (https://github.com/marijnh/acorn/blob/master/AUTHORS)12 * Babylon is Copyright 2014-2015 various contributors (https://github.com/babel/babel/blob/master/packages/babylon/AUTHORS)13 * Babel-ESLint is Copyright 2014-2015 Sebastian McKenzie <sebmck@gmail.com>14 *15 * Redistribution and use in source and binary forms, with or without16 * modification, are permitted provided that the following conditions are met:17 *18 * * Redistributions of source code must retain the above copyright19 *   notice, this list of conditions and the following disclaimer.20 * * Redistributions in binary form must reproduce the above copyright21 *   notice, this list of conditions and the following disclaimer in the22 *   documentation and/or other materials provided with the distribution.23 *24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"25 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE26 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE27 * ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY28 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES29 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;30 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND31 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT32 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF33 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.34 *35 * Esprima is Copyright (c) jQuery Foundation, Inc. and Contributors, All Rights Reserved.36 *37 * Redistribution and use in source and binary forms, with or without38 * modification, are permitted provided that the following conditions are met:39 *40 *   * Redistributions of source code must retain the above copyright41 *     notice, this list of conditions and the following disclaimer.42 *   * Redistributions in binary form must reproduce the above copyright43 *     notice, this list of conditions and the following disclaimer in the44 *     documentation and/or other materials provided with the distribution.45 *46 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"47 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE48 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE49 * ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY50 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES51 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;52 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND53 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT54 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF55 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.56 */57 58 59import * as acorn from "acorn";60import jsx from "acorn-jsx";61import espree from "./lib/espree.js";62import espreeVersion from "./lib/version.js";63import * as visitorKeys from "eslint-visitor-keys";64import { getLatestEcmaVersion, getSupportedEcmaVersions } from "./lib/options.js";65 66 67// To initialize lazily.68const parsers = {69    _regular: null,70    _jsx: null,71 72    get regular() {73        if (this._regular === null) {74            this._regular = acorn.Parser.extend(espree());75        }76        return this._regular;77    },78 79    get jsx() {80        if (this._jsx === null) {81            this._jsx = acorn.Parser.extend(jsx(), espree());82        }83        return this._jsx;84    },85 86    get(options) {87        const useJsx = Boolean(88            options &&89            options.ecmaFeatures &&90            options.ecmaFeatures.jsx91        );92 93        return useJsx ? this.jsx : this.regular;94    }95};96 97//------------------------------------------------------------------------------98// Tokenizer99//------------------------------------------------------------------------------100 101/**102 * Tokenizes the given code.103 * @param {string} code The code to tokenize.104 * @param {Object} options Options defining how to tokenize.105 * @returns {Token[]} An array of tokens.106 * @throws {SyntaxError} If the input code is invalid.107 * @private108 */109export function tokenize(code, options) {110    const Parser = parsers.get(options);111 112    // Ensure to collect tokens.113    if (!options || options.tokens !== true) {114        options = Object.assign({}, options, { tokens: true }); // eslint-disable-line no-param-reassign -- stylistic choice115    }116 117    return new Parser(options, code).tokenize();118}119 120//------------------------------------------------------------------------------121// Parser122//------------------------------------------------------------------------------123 124/**125 * Parses the given code.126 * @param {string} code The code to tokenize.127 * @param {Object} options Options defining how to tokenize.128 * @returns {ASTNode} The "Program" AST node.129 * @throws {SyntaxError} If the input code is invalid.130 */131export function parse(code, options) {132    const Parser = parsers.get(options);133 134    return new Parser(options, code).parse();135}136 137//------------------------------------------------------------------------------138// Public139//------------------------------------------------------------------------------140 141export const version = espreeVersion;142export const name = "espree";143 144/* istanbul ignore next */145export const VisitorKeys = (function() {146    return visitorKeys.KEYS;147}());148 149// Derive node types from VisitorKeys150/* istanbul ignore next */151export const Syntax = (function() {152    let key,153        types = {};154 155    if (typeof Object.create === "function") {156        types = Object.create(null);157    }158 159    for (key in VisitorKeys) {160        if (Object.hasOwn(VisitorKeys, key)) {161            types[key] = key;162        }163    }164 165    if (typeof Object.freeze === "function") {166        Object.freeze(types);167    }168 169    return types;170}());171 172export const latestEcmaVersion = getLatestEcmaVersion();173 174export const supportedEcmaVersions = getSupportedEcmaVersions();175 
Brunobkr/llama.cpp_AlgMor24_github · Team Ai