<commit_before>module Wat
  class DataStore
    attr_accessor :name, :destination

    def initialize(name)
      @name = name
      @destination = Pathname.new(File.join(ENV["HOME"], '.wat'))
      @destination.mkpath
    end

    def write(time, message = nil)
      statement = [Time.now.to_i, Time.now.strftime("%Y-%m-%d"), time, message].compact.join(";")
      file_name = "#{name}.csv"
      File.open(destination.join(file_name), 'a') do |f|
        f.write("#{statement}\n")
      end
    end
  end
end
<commit_msg>adding the key in the CSV file<commit_after>module Wat
  class DataStore
    attr_accessor :name, :destination

    def initialize(name)
      @name = name
      @destination = Pathname.new(File.join(ENV["HOME"], '.wat'))
      @destination.mkpath
    end

    def write(time, message = nil)
      statement = [name, Time.now.to_i, Time.now.strftime("%Y-%m-%d"), time, message].compact.join(";")
      file_name = "#{name}.csv"
      File.open(destination.join(file_name), 'a') do |f|
        f.write("#{statement}\n")
      end
    end
  end
end

{'fraction_non_alphanumeric': 0.15966386554621848, 'fraction_numerical': 0.0, 'mean_word_length': 2.8840579710144927, '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': '196969', 'n_tokens_mistral': 366, 'n_tokens_neox': 354, 'n_words': 79}