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.
03.1k
1import Sqids from '../sqids'2 3describe('alphabet', () => {4 it('simple', () => {5 const sqids = new Sqids({6 alphabet: '0123456789abcdef',7 })8 9 const numbers = [1, 2, 3]10 const id = '489158'11 12 expect(sqids.encode(numbers)).toBe(id)13 expect(sqids.decode(id)).toEqual(numbers)14 })15 16 it('short alphabet', () => {17 const sqids = new Sqids({18 alphabet: 'abc',19 })20 21 const numbers = [1, 2, 3]22 expect(sqids.decode(sqids.encode(numbers))).toEqual(numbers)23 })24 25 it('long alphabet', () => {26 const sqids = new Sqids({27 alphabet:28 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()-_+|{}[];:\'"/?.>,<`~',29 })30 31 const numbers = [1, 2, 3]32 expect(sqids.decode(sqids.encode(numbers))).toEqual(numbers)33 })34 35 it('multibyte characters', () => {36 expect(37 () =>38 new Sqids({39 alphabet: 'ë1092',40 }),41 ).toThrow('Alphabet cannot contain multibyte characters')42 })43 44 it('repeating alphabet characters', () => {45 expect(46 () =>47 new Sqids({48 alphabet: 'aabcdefg',49 }),50 ).toThrow('Alphabet must contain unique characters')51 })52 53 it('too short of an alphabet', () => {54 expect(55 () =>56 new Sqids({57 alphabet: 'ab',58 }),59 ).toThrow('Alphabet length must be at least 3')60 })61})62 