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
safe-parser.js101 linesDownload Raw Back to lib
1let Comment = require('postcss/lib/comment')2let Parser = require('postcss/lib/parser')3let tokenizer = require('postcss/lib/tokenize')4 5class SafeParser extends Parser {6  checkMissedSemicolon() {}7 8  comment(token) {9    let node = new Comment()10    this.init(node, token[2])11    let pos =12      this.input.fromOffset(token[3]) ||13      this.input.fromOffset(this.input.css.length - 1)14    node.source.end = {15      column: pos.col,16      line: pos.line,17      offset: token[3] + 118    }19 20    let text = token[1].slice(2)21    if (text.slice(-2) === '*/') text = text.slice(0, -2)22 23    if (/^\s*$/.test(text)) {24      node.text = ''25      node.raws.left = text26      node.raws.right = ''27    } else {28      let match = text.match(/^(\s*)([^]*\S)(\s*)$/)29      node.text = match[2]30      node.raws.left = match[1]31      node.raws.right = match[3]32    }33  }34 35  createTokenizer() {36    this.tokenizer = tokenizer(this.input, { ignoreErrors: true })37  }38 39  decl(tokens) {40    if (tokens.length > 1 && tokens.some(i => i[0] === 'word')) {41      super.decl(tokens)42    }43  }44 45  doubleColon() {}46 47  endFile() {48    if (this.current.nodes && this.current.nodes.length) {49      this.current.raws.semicolon = this.semicolon50    }51    this.current.raws.after = (this.current.raws.after || '') + this.spaces52 53    while (this.current.parent) {54      this.current = this.current.parent55      this.current.raws.after = ''56    }57    this.root.source.end = this.getPosition(this.tokenizer.position())58  }59 60  precheckMissedSemicolon(tokens) {61    let colon = this.colon(tokens)62    if (colon === false) return63 64    let nextStart, prevEnd65    for (nextStart = colon - 1; nextStart >= 0; nextStart--) {66      if (tokens[nextStart][0] === 'word') break67    }68    if (nextStart === 0 || nextStart < 0) return69 70    for (prevEnd = nextStart - 1; prevEnd >= 0; prevEnd--) {71      if (tokens[prevEnd][0] !== 'space') {72        prevEnd += 173        break74      }75    }76 77    let other = tokens.slice(nextStart)78    let spaces = tokens.slice(prevEnd, nextStart)79    tokens.splice(prevEnd, tokens.length - prevEnd)80    this.spaces = spaces.map(i => i[1]).join('')81 82    this.decl(other)83  }84 85  unclosedBracket() {}86 87  unexpectedClose() {88    this.current.raws.after += '}'89  }90 91  unknownWord(tokens) {92    this.spaces += tokens.map(i => i[1]).join('')93  }94 95  unnamedAtrule(node) {96    node.name = ''97  }98}99 100module.exports = SafeParser101 
Brunobkr/llama.cpp_AlgMor24_github · Team Ai