<commit_before>{merge} = require './util'

Types =
  String:
  # alias       redis command
    append: ['append']
    bitcount: ['bitcount']
    bitop: ['bitop']
    decr: ['decr']
    decrby: ['decrby']
    get: ['get']
    getbit: ['getbit']
    getrange: ['getrange']
    getset: ['getset']
    incr: ['incr']
    incrby: ['incrby']
    incrbyfloat: ['incrbyfloat']
    psetnx: ['psetnx']
    set: ['set']
    setbit: ['setbit']
    setex: ['setex']
    setnx: ['setnx']
    setrange: ['setrange']
    strlen: ['strlen']

  Hash:
  # alias       redis command
    hdel: ['hdel']
    exists: ['hexists']
    get: ['hget']
    getall: ['hgetall']
    incrby: ['hincrby']
    incrbyfloat: ['hincrbyfloat']
    keys: ['hkeys']
    len: ['hlen']
    mget: ['hmget']
    mset: ['hmset']
    set: ['hset']
    setnx: ['hsetnx']
    vals: ['hvals']

  List:
  # alias       redis command
    all: ['lrange', 0, -1]
    blpop: ['blpop']
    brpop: ['brpop']
    brpoplpush: ['brpoplpush']
    index: ['lindex']
    insert: ['linsert']
    len: ['llen']
    lpop: ['lpop']
    lpush: ['lpush']
    lpushx: ['lpushx']
    range: ['lrange']
    lrem: ['lrem']
    set: ['lset']
    sort: ['sort']
    trim: ['ltrim']
    rpop: ['rpop']
    rpoplpush: ['rpoplpush']
    rpush: ['rpush']
    rpushx: ['rpushx']

  Set:
  # alias       redis command
    add: ['sadd']
    all: ['smembers']
    belongs: ['sismember']
    count: ['scard']
    card: ['scard']
    diff: ['sdiff']
    inter: ['sinter']
    ismember: ['sismember']
    members: ['smembers']
    pop: ['spop']
    randmember: ['srandmember']
    sort: ['sort']
    srem: ['srem']
    union: ['sunion']

  SortedSet:
  # alias       redis command
    sort: ['sort']
    add: ['zadd']
    card: ['zcard']
    count: ['zcount']
    incrby: ['zincrby']
    range: ['zrange']
    rangebyscore: ['zrangebyscore']
    rank: ['zrank']
    zrem: ['zrem']
    remrangebyrank: ['zremrangebyrank']
    remrangebyscore: ['zremrangebyscore']
    revrange: ['zrevrange']<commit_msg>added 'retrieve' method to types (polymorphic get everything accessor)<commit_after>{merge} = require './util'

Types =
  String:
  # alias       redis command
    append: ['append']
    bitcount: ['bitcount']
    bitop: ['bitop']
    decr: ['decr']
    decrby: ['decrby']
    get: ['get']
    getbit: ['getbit']
    getrange: ['getrange']
    getset: ['getset']
    incr: ['incr']
    incrby: ['incrby']
    incrbyfloat: ['incrbyfloat']
    psetnx: ['psetnx']
    retrieve: ['get']
    set: ['set']
    setbit: ['setbit']
    setex: ['setex']
    setnx: ['setnx']
    setrange: ['setrange']
    strlen: ['strlen']

  Hash:
  # alias       redis command
    hdel: ['hdel']
    exists: ['hexists']
    get: ['hget']
    getall: ['hgetall']
    incrby: ['hincrby']
    incrbyfloat: ['hincrbyfloat']
    keys: ['hkeys']
    len: ['hlen']
    mget: ['hmget']
    mset: ['hmset']
    retrieve: ['hgetall']
    set: ['hset']
    setnx: ['hsetnx']
    vals: ['hvals']

  List:
  # alias       redis command
    all: ['lrange', 0, -1]
    blpop: ['blpop']
    brpop: ['brpop']
    brpoplpush: ['brpoplpush']
    index: ['lindex']
    insert: ['linsert']
    len: ['llen']
    lpop: ['lpop']
    lpush: ['lpush']
    lpushx: ['lpushx']
    range: ['lrange']
    lrem: ['lrem']
    retrieve: ['lrange', 0, -1]
    set: ['lset']
    sort: ['sort']
    trim: ['ltrim']
    rpop: ['rpop']
    rpoplpush: ['rpoplpush']
    rpush: ['rpush']
    rpushx: ['rpushx']

  Set:
  # alias       redis command
    add: ['sadd']
    all: ['smembers']
    belongs: ['sismember']
    count: ['scard']
    card: ['scard']
    diff: ['sdiff']
    inter: ['sinter']
    ismember: ['sismember']
    members: ['smembers']
    pop: ['spop']
    randmember: ['srandmember']
    retrieve: ['smembers']
    sort: ['sort']
    srem: ['srem']
    union: ['sunion']

  SortedSet:
  # alias       redis command
    sort: ['sort']
    add: ['zadd']
    card: ['zcard']
    count: ['zcount']
    incrby: ['zincrby']
    range: ['zrange']
    rangebyscore: ['zrangebyscore']
    rank: ['zrank']
    zrem: ['zrem']
    remrangebyrank: ['zremrangebyrank']
    remrangebyscore: ['zremrangebyscore']
    retrieve: ['zrange', 0, -1]
    revrange: ['zrevrange']
{'fraction_non_alphanumeric': 0.2016548463356974, 'fraction_numerical': 0.0018912529550827422, 'mean_word_length': 2.6823324630113143, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '181855', 'n_tokens_mistral': 1665, 'n_tokens_neox': 1657, 'n_words': 381}