<commit_before>define 'kryptnostic.search-credential-service', [
  'require'
  'lodash'
  'bluebird'
  'kryptnostic.logger'
  'kryptnostic.authentication-stage'
  'kryptnostic.mock.kryptnostic-engine'
  'kryptnostic.rsa-crypto-service'
  'kryptnostic.crypto-key-storage-api'
  'kryptnostic.credential-loader'
  'kryptnostic.search-key-serializer'
], (require) ->

  _                     = require 'lodash'
  Promise               = require 'bluebird'
  Logger                = require 'kryptnostic.logger'
  AuthenticationStage   = require 'kryptnostic.authentication-stage'
  CredentialLoader      = require 'kryptnostic.credential-loader'
  RsaCryptoService      = require 'kryptnostic.rsa-crypto-service'
  CryptoKeyStorageApi   = require 'kryptnostic.crypto-key-storage-api'
  MockKryptnosticEngine = require 'kryptnostic.mock.kryptnostic-engine'
  SearchKeySerializer   = require 'kryptnostic.search-key-serializer'

  log = Logger.get('SearchCredentialService')

  #
  # Enumeration of credential types which the SearchCredentialService produces.
  # Author: rbuckheit
  #
  CredentialType = {
    FHE_PRIVATE_KEY : {
      generator : (engine) -> engine.getFhePrivateKey
      getter    : (api) -> api.getFhePrivateKey<commit_msg>Use KE rather than mock.KE in SearchCredentialService<commit_after>define 'kryptnostic.search-credential-service', [
  'require'
  'lodash'
  'bluebird'
  'kryptnostic.logger'
  'kryptnostic.authentication-stage'
  'kryptnostic.kryptnostic-engine'
  'kryptnostic.rsa-crypto-service'
  'kryptnostic.crypto-key-storage-api'
  'kryptnostic.credential-loader'
  'kryptnostic.search-key-serializer'
], (require) ->

  _                     = require 'lodash'
  Promise               = require 'bluebird'
  Logger                = require 'kryptnostic.logger'
  AuthenticationStage   = require 'kryptnostic.authentication-stage'
  CredentialLoader      = require 'kryptnostic.credential-loader'
  RsaCryptoService      = require 'kryptnostic.rsa-crypto-service'
  CryptoKeyStorageApi   = require 'kryptnostic.crypto-key-storage-api'
  MockKryptnosticEngine = require 'kryptnostic.kryptnostic-engine'
  SearchKeySerializer   = require 'kryptnostic.search-key-serializer'

  log = Logger.get('SearchCredentialService')

  #
  # Enumeration of credential types which the SearchCredentialService produces.
  # Author: rbuckheit
  #
  CredentialType = {
    FHE_PRIVATE_KEY : {
      generator : (engine) -> engine.getFhePrivateKey
      getter    : (api) -> api.getFhePrivateKey
{'fraction_non_alphanumeric': 0.10095770151636073, 'fraction_numerical': 0.0, 'mean_word_length': 3.6425925925925924, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '3213834', 'n_tokens_mistral': 837, 'n_tokens_neox': 813, 'n_words': 123}