<commit_before>MergenAdapter = require './mergenadapter'
DummyAdapter = require './dummyadapter'
DataStore = require '../index'

module.exports = class KiteDataStoreAdapterFactory
  # default data store is mergen. (https://github.com/ybrs/mergen)
  @create:(name="mergen", config, callback) ->
    switch name
      when 'mergen' then callback new MergenAdapter config
      when 'dummy'  then callback new DummyAdapter config
      else throw new Error 'Unsupported adapter name'<commit_msg>[koding_node_modules][kd-kite-datastore] removed extra space before arrow<commit_after>MergenAdapter = require './mergenadapter'
DummyAdapter = require './dummyadapter'
DataStore = require '../index'

module.exports = class KiteDataStoreAdapterFactory
  # default data store is mergen. (https://github.com/ybrs/mergen)
  @create:(name="mergen", config, callback)->
    switch name
      when 'mergen' then callback new MergenAdapter config
      when 'dummy'  then callback new DummyAdapter config
      else throw new Error 'Unsupported adapter name'
{'fraction_non_alphanumeric': 0.0977948226270374, 'fraction_numerical': 0.0, 'mean_word_length': 4.465968586387435, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '1798991', 'n_tokens_mistral': 288, 'n_tokens_neox': 290, 'n_words': 92}