<commit_before>/* This module definition is by no means complete. A lot of methods of the RedisClient class are missing */

declare type $npm$redis$SetCallbackAllOk = (error: ?Error, result: 'OK') => void

declare type $npm$redis$SetCallback = (error: ?Error, result: ?'OK') => void

declare type $npm$redis$SetStandard = (
  key: string,
  value: string,
  callback?: $npm$redis$SetCallbackAllOk
) => void

declare type $npm$redis$SetWithCondition = (
  key: string,
  value: string,
  condition: 'NX' | 'XX',
  callback?: $npm$redis$SetCallbackAllOk
) => void

declare type $npm$redis$SetWithExpire = (
  key: string,
  value: string,
  expire: 'EX' | 'PX',
  time: number,
  callback?: $npm$redis$SetCallbackAllOk
) => void

declare type $npm$redis$SetWithExpireAndConditionBefore = (
  key: string,
  value: string,
  condition: 'NX' | 'XX',
  expire: 'EX' | 'PX',
  time: number,
  callback?: $npm$redis$SetCallback // When using XX or NX the result may be null
) => void

declare type $npm$redis$SetWithExpireAndConditionAfter = (
  key: string,
  value: string,
  expire: 'EX' | 'PX',
  time: number,
  condition: 'NX' | 'XX',
  callback?: $npm$redis$SetCallback // When using XX or NX the result may be null
) => void

declare type $npm$redis$SetF = $npm$redis$SetStandard
  & $npm$redis$SetWithExpire
  & $npm$redis$SetWithCondition
  & $npm$redis$SetWithExpireAndConditionBefore
  & $npm$redis$SetWithExpireAndConditionAfter

declare type $npm$redis$DelCallback = (error: ?Error, numRemoved: number) => void

declare type $npm$redis$DelWithArrayKeys =  (
  keys: Array<string>,
  callback?: $npm$redis$DelCallback
) => void

declare type $npm$redis$DelWithRestKeys =  (
  ...keys: Array<string>
) => void

declare type $npm$redis$DelWithRestKeys1 =  (
  key: string,
  callback: $npm$redis$DelCallback
) => void

declare type $npm$redis$DelWithRestKeys2 =  (
  key1: string,
  key2: string,
  callback: $npm$redis$DelCallback
) => void

declare type $npm$redis$DelWithRestKeys3 =  (
  key1: string,
  key2: string,
  key3: string,
  callback: $npm$redis$DelCallback
) => void

declare type $npm$redis$DelWithRestKeys4 =  (
  key1: string,
  key2: string,
  key3: string,
  key4: string,
  callback: $npm$redis$DelCallback
) => void

declare type $npm$redis$DelWithRestKeys5 =  (
  key1: string,
  key2: string,
  key3: string,
  key4: string,
  key5: string,
  callback: $npm$redis$DelCallback
) => void

declare type $npm$redis$DelF = $npm$redis$DelWithArrayKeys
  & $npm$redis$DelWithRestKeys
  & $npm$redis$DelWithRestKeys1
  & $npm$redis$DelWithRestKeys2
  & $npm$redis$DelWithRestKeys3
  & $npm$redis$DelWithRestKeys4
  & $npm$redis$DelWithRestKeys5

declare module "redis" {
  declare class RedisClient extends events$EventEmitter mixins RedisClientPromisified {
    hmset: (
      key: string,
      map: {[key: string]: string},
      callback?: (error: ?Error) => void
    ) => void;
    rpush: (
      key: string,
      value: string,
      callback?: (error: ?Error) => void
    ) => void;
    lpush: (
      key: string,
      value: string,
      callback?: (error: ?Error, newLength: number) => void
    ) => void;
    lrem: (
      topic: string,
      count: number,
      value: string,
      callback?: (error: ?Error, entries: number) => void
    ) => void;
    lrange: (
      topic: string,
      cursor: number,
      cursor2: number,
      callback: (error: ?Error, entries: Array<string>) => void
    ) => void;<commit_msg>Add missing libdefs `client.connected` to redis_v2.x.x (#2201)<commit_after>/* This module definition is by no means complete. A lot of methods of the RedisClient class are missing */

declare type $npm$redis$SetCallbackAllOk = (error: ?Error, result: 'OK') => void

declare type $npm$redis$SetCallback = (error: ?Error, result: ?'OK') => void

declare type $npm$redis$SetStandard = (
  key: string,
  value: string,
  callback?: $npm$redis$SetCallbackAllOk
) => void

declare type $npm$redis$SetWithCondition = (
  key: string,
  value: string,
  condition: 'NX' | 'XX',
  callback?: $npm$redis$SetCallbackAllOk
) => void

declare type $npm$redis$SetWithExpire = (
  key: string,
  value: string,
  expire: 'EX' | 'PX',
  time: number,
  callback?: $npm$redis$SetCallbackAllOk
) => void

declare type $npm$redis$SetWithExpireAndConditionBefore = (
  key: string,
  value: string,
  condition: 'NX' | 'XX',
  expire: 'EX' | 'PX',
  time: number,
  callback?: $npm$redis$SetCallback // When using XX or NX the result may be null
) => void

declare type $npm$redis$SetWithExpireAndConditionAfter = (
  key: string,
  value: string,
  expire: 'EX' | 'PX',
  time: number,
  condition: 'NX' | 'XX',
  callback?: $npm$redis$SetCallback // When using XX or NX the result may be null
) => void

declare type $npm$redis$SetF = $npm$redis$SetStandard
  & $npm$redis$SetWithExpire
  & $npm$redis$SetWithCondition
  & $npm$redis$SetWithExpireAndConditionBefore
  & $npm$redis$SetWithExpireAndConditionAfter

declare type $npm$redis$DelCallback = (error: ?Error, numRemoved: number) => void

declare type $npm$redis$DelWithArrayKeys =  (
  keys: Array<string>,
  callback?: $npm$redis$DelCallback
) => void

declare type $npm$redis$DelWithRestKeys =  (
  ...keys: Array<string>
) => void

declare type $npm$redis$DelWithRestKeys1 =  (
  key: string,
  callback: $npm$redis$DelCallback
) => void

declare type $npm$redis$DelWithRestKeys2 =  (
  key1: string,
  key2: string,
  callback: $npm$redis$DelCallback
) => void

declare type $npm$redis$DelWithRestKeys3 =  (
  key1: string,
  key2: string,
  key3: string,
  callback: $npm$redis$DelCallback
) => void

declare type $npm$redis$DelWithRestKeys4 =  (
  key1: string,
  key2: string,
  key3: string,
  key4: string,
  callback: $npm$redis$DelCallback
) => void

declare type $npm$redis$DelWithRestKeys5 =  (
  key1: string,
  key2: string,
  key3: string,
  key4: string,
  key5: string,
  callback: $npm$redis$DelCallback
) => void

declare type $npm$redis$DelF = $npm$redis$DelWithArrayKeys
  & $npm$redis$DelWithRestKeys
  & $npm$redis$DelWithRestKeys1
  & $npm$redis$DelWithRestKeys2
  & $npm$redis$DelWithRestKeys3
  & $npm$redis$DelWithRestKeys4
  & $npm$redis$DelWithRestKeys5

declare module "redis" {
  declare class RedisClient extends events$EventEmitter mixins RedisClientPromisified {
    connected: boolean,
    hmset: (
      key: string,
      map: {[key: string]: string},
      callback?: (error: ?Error) => void
    ) => void;
    rpush: (
      key: string,
      value: string,
      callback?: (error: ?Error) => void
    ) => void;
    lpush: (
      key: string,
      value: string,
      callback?: (error: ?Error, newLength: number) => void
    ) => void;
    lrem: (
      topic: string,
      count: number,
      value: string,
      callback?: (error: ?Error, entries: number) => void
    ) => void;
    lrange: (
      topic: string,
      cursor: number,
      cursor2: number,
      callback: (error: ?Error, entries: Array<string>) => void
    ) => void;
{'fraction_non_alphanumeric': 0.1367863785949349, 'fraction_numerical': 0.007869509228788096, 'mean_word_length': 4.007163323782235, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 59, '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': '12145', 'n_tokens_mistral': 2615, 'n_tokens_neox': 2495, 'n_words': 609}