<commit_before>module Velibe
  module Config
    #  §see: http://stackoverflow.com/questions/7828066/accessing-files-packaged-into-a-ruby-gem

    DB_NAME = '~/.velib.db' # TODO: more generic + config
    DB_PATH = Pathname.new(DB_NAME).expand_path # .to_s?
    DATA_CSV = '../../data/Paris.csv'

    DATA_CSV_FILE = File.join(File.dirname(File.expand_path(__FILE__)), DATA_CSV)

    KV_NAME = '~/.velib.yaml' # TODO: more generic
    KV_PATH = Pathname.new(KV_NAME).expand_path


  end
end<commit_msg>refactor: config now depends on VELIBE_DB_PATH and VELIBE_CONFIG_PATH ENV variables<commit_after>module Velibe
  module Config
    #  §see: http://stackoverflow.com/questions/7828066/accessing-files-packaged-into-a-ruby-gem

    DB_NAME = ENV['VELIBE_DB_PATH'] || '~/.velib.db'
    DB_PATH = Pathname.new(DB_NAME).expand_path # .to_s?
    DATA_CSV = '../../data/Paris.csv'

    DATA_CSV_FILE = File.join(File.dirname(File.expand_path(__FILE__)), DATA_CSV)

    KV_NAME =  ENV['VELIBE_CONFIG_PATH']|| '~/.velib.yaml'
    KV_PATH = Pathname.new(KV_NAME).expand_path

  end
end
{'fraction_non_alphanumeric': 0.14312267657992564, 'fraction_numerical': 0.013011152416356878, 'mean_word_length': 3.7866666666666666, 'pattern_counts': {'":': 0, '<': 3, '<?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': '2807807', 'n_tokens_mistral': 433, 'n_tokens_neox': 412, 'n_words': 61}