<commit_before>module ZookeeperExceptions
  # exceptions/errors
  ZOK                    =  0
  ZSYSTEMERROR           = -1
  ZRUNTIMEINCONSISTENCY  = -2
  ZDATAINCONSISTENCY     = -3
  ZCONNECTIONLOSS        = -4
  ZMARSHALLINGERROR      = -5
  ZUNIMPLEMENTED         = -6
  ZOPERATIONTIMEOUT      = -7
  ZBADARGUMENTS          = -8
  ZINVALIDSTATE          = -9
  
  # api errors
  ZAPIERROR                 = -100
  ZNONODE                   = -101
  ZNOAUTH                   = -102
  ZBADVERSION               = -103
  ZNOCHILDRENFOREPHEMERALS  = -108
  ZNODEEXISTS               = -110
  ZNOTEMPTY                 = -111
  ZSESSIONEXPIRED           = -112
  ZINVALIDCALLBACK          = -113
  ZINVALIDACL               = -114
  ZAUTHFAILED               = -115
  ZCLOSING                  = -116
  ZNOTHING                  = -117
  ZSESSIONMOVED             = -118

  class ZookeeperException < Exception
    class EverythingOk            < ZookeeperException; end
    class SystemError             < ZookeeperException; end
    class RunTimeInconsistency    < ZookeeperException; end
    class DataInconsistency       < ZookeeperException; end
    class ConnectionLoss          < ZookeeperException; end
    class MarshallingError        < ZookeeperException; end<commit_msg>ugh, make ZookeeperException a StandardError<commit_after>module ZookeeperExceptions
  # exceptions/errors
  ZOK                    =  0
  ZSYSTEMERROR           = -1
  ZRUNTIMEINCONSISTENCY  = -2
  ZDATAINCONSISTENCY     = -3
  ZCONNECTIONLOSS        = -4
  ZMARSHALLINGERROR      = -5
  ZUNIMPLEMENTED         = -6
  ZOPERATIONTIMEOUT      = -7
  ZBADARGUMENTS          = -8
  ZINVALIDSTATE          = -9
  
  # api errors
  ZAPIERROR                 = -100
  ZNONODE                   = -101
  ZNOAUTH                   = -102
  ZBADVERSION               = -103
  ZNOCHILDRENFOREPHEMERALS  = -108
  ZNODEEXISTS               = -110
  ZNOTEMPTY                 = -111
  ZSESSIONEXPIRED           = -112
  ZINVALIDCALLBACK          = -113
  ZINVALIDACL               = -114
  ZAUTHFAILED               = -115
  ZCLOSING                  = -116
  ZNOTHING                  = -117
  ZSESSIONMOVED             = -118

  class ZookeeperException < StandardError
    class EverythingOk            < ZookeeperException; end
    class SystemError             < ZookeeperException; end
    class RunTimeInconsistency    < ZookeeperException; end
    class DataInconsistency       < ZookeeperException; end
    class ConnectionLoss          < ZookeeperException; end
    class MarshallingError        < ZookeeperException; end
{'fraction_non_alphanumeric': 0.051134179161860825, 'fraction_numerical': 0.03998462129950019, 'mean_word_length': 1.4249767008387697, 'pattern_counts': {'":': 0, '<': 17, '<?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': '5257441', 'n_tokens_mistral': 854, 'n_tokens_neox': 762, 'n_words': 163}