<commit_before>module Jarvis
  module Commands
    module Configure
      def self.twitter
        ask_keys
        write_keys
      end

      def self.ask_keys
        @keys = {}
        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
      end

      def self.write_keys
        unless Dir.exists?('../config/')
          Dir.mkdir('../config/', 0700)
        end
        File.open('../config/keys.yml', 'w') do |f|
          f.write(@keys.to_yaml)
        end
      end
    end
  end
end<commit_msg>add folder & file variables<commit_after>module Jarvis
  module Commands
    module Configure
      def self.twitter
        ask_keys
        write_keys
      end

      def self.ask_keys
        @keys = {}
        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
      end

      def self.write_keys
        folder = '../config/'
        file   = 'keys.yml'
        unless Dir.exists?(folder)
          Dir.mkdir(folder, 0700)
        end
        File.open(File.join(folder, file), 'w') do |f|
          f.write(@keys.to_yaml)
        end
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.11188405797101449, 'fraction_numerical': 0.00463768115942029, 'mean_word_length': 1.8718801996672212, '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': '1201260', 'n_tokens_mistral': 544, 'n_tokens_neox': 534, 'n_words': 129}