<commit_before>module Jarvis
  class Config
    def self.config_keys
      keys = Hash.new
      puts "Enter your consumer key :"
      keys["consumer_key"] = $stdin.gets.chomp
      puts "Enter your consumer secret :"
      keys["consumer_secret"] = $stdin.gets.chomp
      puts "Enter your access token :"
      keys["access_token"] = $stdin.gets.chomp
      puts "Enter your access token secret :"
      keys["access_token_secret"] = $stdin.gets.chomp

      File.open("../config/keys.yml", "w") { |f|
        f.write(keys.to_yaml)
      }
    end
  end
end<commit_msg>add verification & creation of config directory<commit_after>module Jarvis
  class Config
    def self.config_keys
      keys = Hash.new
      puts "Enter your consumer key :"
      keys["consumer_key"] = $stdin.gets.chomp
      puts "Enter your consumer secret :"
      keys["consumer_secret"] = $stdin.gets.chomp
      puts "Enter your access token :"
      keys["access_token"] = $stdin.gets.chomp
      puts "Enter your access token secret :"
      keys["access_token_secret"] = $stdin.gets.chomp

      unless Dir.exists?("../config/")
        Dir.mkdir(File.join(Dir.home, "config"), 0700)
      end
      File.open("../config/keys.yml", "w") { |f|
        f.write(keys.to_yaml)
      }
    end
  end
end
{'fraction_non_alphanumeric': 0.12792511700468018, 'fraction_numerical': 0.0031201248049922, 'mean_word_length': 2.573816155988858, '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': '6478093', 'n_tokens_mistral': 422, 'n_tokens_neox': 417, 'n_words': 98}