<commit_before>riakjs = require 'riak-js'

module.exports =
  getClient: () ->
    config = {}
    config.host = process.env.RIAK_HOST || '127.0.0.1'
    config.port = process.env.RIAK_PORT || 8098
    config.scheme = process.env.RIAK_SCHEME || 'http'
    config.user = process.env.RIAK_USER
    config.password = <PASSWORD>
    if config.user and config.password
      config.headers =
        Authorization: "Basic #{new Buffer("#{conf.user}:#{conf.password}").toString 'base64'}"
    riakjs.getClient config

<commit_msg>Riak.coffee use config not conf<commit_after>riakjs = require 'riak-js'

module.exports =
  getClient: () ->
    config = {}
    config.host = process.env.RIAK_HOST || '127.0.0.1'
    config.port = process.env.RIAK_PORT || 8098
    config.scheme = process.env.RIAK_SCHEME || 'http'
    config.user = process.env.RIAK_USER
    config.password = <PASSWORD>
    if config.user and config.password
      config.headers =
        Authorization: "Basic #{new Buffer("#{config.user}:#{config.password}").toString 'base64'}"
    riakjs.getClient config


{'fraction_non_alphanumeric': 0.14485981308411214, 'fraction_numerical': 0.022429906542056073, 'mean_word_length': 3.284, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '453269', 'n_tokens_mistral': 385, 'n_tokens_neox': 364, 'n_words': 66}