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
minlength.test.ts114 linesDownload Raw Back to tests
1import Sqids, { defaultOptions } from '../sqids'2 3describe('min length', () => {4  it('simple', () => {5    const sqids = new Sqids({6      minLength: defaultOptions.alphabet.length,7    })8 9    const numbers = [1, 2, 3]10    const id = '86Rf07xd4zBmiJXQG6otHEbew02c3PWsUOLZxADhCpKj7aVFv9I8RquYrNlSTM'11 12    expect(sqids.encode(numbers)).toBe(id)13    expect(sqids.decode(id)).toEqual(numbers)14  })15 16  it('incremental', () => {17    const numbers = [1, 2, 3]18 19    const map = {20      6: '86Rf07',21      7: '86Rf07x',22      8: '86Rf07xd',23      9: '86Rf07xd4',24      10: '86Rf07xd4z',25      11: '86Rf07xd4zB',26      12: '86Rf07xd4zBm',27      13: '86Rf07xd4zBmi',28      [defaultOptions.alphabet.length + 0]:29        '86Rf07xd4zBmiJXQG6otHEbew02c3PWsUOLZxADhCpKj7aVFv9I8RquYrNlSTM',30      [defaultOptions.alphabet.length + 1]:31        '86Rf07xd4zBmiJXQG6otHEbew02c3PWsUOLZxADhCpKj7aVFv9I8RquYrNlSTMy',32      [defaultOptions.alphabet.length + 2]:33        '86Rf07xd4zBmiJXQG6otHEbew02c3PWsUOLZxADhCpKj7aVFv9I8RquYrNlSTMyf',34      [defaultOptions.alphabet.length + 3]:35        '86Rf07xd4zBmiJXQG6otHEbew02c3PWsUOLZxADhCpKj7aVFv9I8RquYrNlSTMyf1',36    }37 38    for (const [minLength, id] of Object.entries(map)) {39      const sqids = new Sqids({40        minLength: Number(minLength),41      })42 43      expect(sqids.encode(numbers)).toBe(id)44      expect(sqids.encode(numbers)).toHaveLength(Number(minLength))45      expect(sqids.decode(id)).toEqual(numbers)46    }47  })48 49  it('incremental numbers', () => {50    const sqids = new Sqids({51      minLength: defaultOptions.alphabet.length,52    })53 54    const ids = {55      SvIzsqYMyQwI3GWgJAe17URxX8V924Co0DaTZLtFjHriEn5bPhcSkfmvOslpBu: [0, 0],56      n3qafPOLKdfHpuNw3M61r95svbeJGk7aAEgYn4WlSjXURmF8IDqZBy0CT2VxQc: [0, 1],57      tryFJbWcFMiYPg8sASm51uIV93GXTnvRzyfLleh06CpodJD42B7OraKtkQNxUZ: [0, 2],58      eg6ql0A3XmvPoCzMlB6DraNGcWSIy5VR8iYup2Qk4tjZFKe1hbwfgHdUTsnLqE: [0, 3],59      rSCFlp0rB2inEljaRdxKt7FkIbODSf8wYgTsZM1HL9JzN35cyoqueUvVWCm4hX: [0, 4],60      sR8xjC8WQkOwo74PnglH1YFdTI0eaf56RGVSitzbjuZ3shNUXBrqLxEJyAmKv2: [0, 5],61      uY2MYFqCLpgx5XQcjdtZK286AwWV7IBGEfuS9yTmbJvkzoUPeYRHr4iDs3naN0: [0, 6],62      '74dID7X28VLQhBlnGmjZrec5wTA1fqpWtK4YkaoEIM9SRNiC3gUJH0OFvsPDdy': [0, 7],63      '30WXpesPhgKiEI5RHTY7xbB1GnytJvXOl2p0AcUjdF6waZDo9Qk8VLzMuWrqCS': [0, 8],64      moxr3HqLAK0GsTND6jowfZz3SUx7cQ8aC54Pl1RbIvFXmEJuBMYVeW9yrdOtin: [0, 9],65    }66 67    for (const [id, numbers] of Object.entries(ids)) {68      expect(sqids.encode(numbers)).toBe(id)69      expect(sqids.decode(id)).toEqual(numbers)70    }71  })72 73  it('min lengths', () => {74    for (const minLength of [0, 1, 5, 10, defaultOptions.alphabet.length]) {75      for (const numbers of [76        [0],77        [0, 0, 0, 0, 0],78        [1, 2, 3, 4, 5, 6, 7, 8, 9, 10],79        [100, 200, 300],80        [1_000, 2_000, 3_000],81        [1_000_000],82        [Number.MAX_SAFE_INTEGER],83      ]) {84        const sqids = new Sqids({85          minLength,86        })87 88        const id = sqids.encode(numbers)89        expect(id.length).toBeGreaterThanOrEqual(minLength)90        expect(sqids.decode(id)).toEqual(numbers)91      }92    }93  })94 95  it('out-of-range invalid min length', () => {96    const minLengthLimit = 25597    const minLengthError = `Minimum length has to be between 0 and ${minLengthLimit}`98 99    expect(100      () =>101        new Sqids({102          minLength: -1,103        }),104    ).toThrow(minLengthError)105 106    expect(107      () =>108        new Sqids({109          minLength: minLengthLimit + 1,110        }),111    ).toThrow(minLengthError)112  })113})114 
Brunobkr/llama.cpp_AlgMor24_github · Team Ai