<commit_before># coffeelint: disable=cyclomatic_complexity

define 'kryptnostic.user-directory-api', [
  'require'
  'axios'
  'bluebird'
  'kryptnostic.logger'
  'kryptnostic.configuration'
  'kryptnostic.caching-service'
  'kryptnostic.requests'
  'kryptnostic.validators'
], (require) ->
  axios         = require 'axios'
  Promise       = require 'bluebird'
  Logger        = require 'kryptnostic.logger'
  Configuration = require 'kryptnostic.configuration'
  Cache         = require 'kryptnostic.caching-service'
  Requests      = require 'kryptnostic.requests'
  Validators    = require 'kryptnostic.validators'

  getUserUrl   = -> Configuration.get('heraclesUrlV2') + '/directory/user'
  getUsersUrl  = -> Configuration.get('heraclesUrlV2') + '/directory/users'
  usersInRealmUrl = -> Configuration.get('servicesUrl') + '/directory'

  log = Logger.get('UserDirectoryApi')
<commit_msg>use v2 endpoint now<commit_after># coffeelint: disable=cyclomatic_complexity

define 'kryptnostic.user-directory-api', [
  'require'
  'axios'
  'bluebird'
  'kryptnostic.logger'
  'kryptnostic.configuration'
  'kryptnostic.caching-service'
  'kryptnostic.requests'
  'kryptnostic.validators'
], (require) ->
  axios         = require 'axios'
  Promise       = require 'bluebird'
  Logger        = require 'kryptnostic.logger'
  Configuration = require 'kryptnostic.configuration'
  Cache         = require 'kryptnostic.caching-service'
  Requests      = require 'kryptnostic.requests'
  Validators    = require 'kryptnostic.validators'

  getUserUrl   = -> Configuration.get('heraclesUrlV2') + '/directory/user'
  getUsersUrl  = -> Configuration.get('heraclesUrlV2') + '/directory/users'
  usersInRealmUrl = -> Configuration.get('servicesUrlV2') + '/directory'

  log = Logger.get('UserDirectoryApi')

{'fraction_non_alphanumeric': 0.12472160356347439, 'fraction_numerical': 0.0033407572383073497, 'mean_word_length': 4.076271186440678, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '2214014', 'n_tokens_mistral': 595, 'n_tokens_neox': 586, 'n_words': 95}