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.js63 linesDownload Raw Back to src
1const isPlainObject = require('lodash.isplainobject')2 3const parser = require('postcss-selector-parser')4const parseSelector = parser()5 6module.exports = {7  isUsableColor(color, values) {8    return isPlainObject(values) && color !== 'gray' && values[600]9  },10 11  /**12   * @param {string} selector13   */14  commonTrailingPseudos(selector) {15    let ast = parseSelector.astSync(selector)16 17    /** @type {import('postcss-selector-parser').Pseudo[][]} */18    let matrix = []19 20    // Put the pseudo elements in reverse order in a sparse, column-major 2D array21    for (let [i, sel] of ast.nodes.entries()) {22      for (const [j, child] of [...sel.nodes].reverse().entries()) {23        // We only care about pseudo elements24        if (child.type !== 'pseudo' || !child.value.startsWith('::')) {25          break26        }27 28        matrix[j] = matrix[j] || []29        matrix[j][i] = child30      }31    }32 33    let trailingPseudos = parser.selector()34 35    // At this point the pseudo elements are in a column-major 2D array36    // This means each row contains one "column" of pseudo elements from each selector37    // We can compare all the pseudo elements in a row to see if they are the same38    for (const pseudos of matrix) {39      // It's a sparse 2D array so there are going to be holes in the rows40      // We skip those41      if (!pseudos) {42        continue43      }44 45      let values = new Set(pseudos.map((p) => p.value))46 47      // The pseudo elements are not the same48      if (values.size > 1) {49        break50      }51 52      pseudos.forEach((pseudo) => pseudo.remove())53      trailingPseudos.prepend(pseudos[0])54    }55 56    if (trailingPseudos.nodes.length) {57      return [trailingPseudos.toString(), ast.toString()]58    }59 60    return [null, selector]61  },62}63 
Brunobkr/llama.cpp_AlgMor24_github · Team Ai