<commit_before>require "barrel/version"
require "barrel/railtie"
require "barrel/store"

module Barrel

end
<commit_msg>add store and find functions<commit_after>require "barrel/version"
require "barrel/railtie"
require "barrel/store"

module Barrel

  def self.store(title, value)
    store = Barrel::Store.find_or_initialize_by(title: title)
    store.value = value

    store.save
  end

  def self.find(title)
    store = Barrel::Store.find_by(title: title)
    store.nil? ? nil : store.value
  end

end

{'fraction_non_alphanumeric': 0.10433070866141732, 'fraction_numerical': 0.0, 'mean_word_length': 4.302083333333333, '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': '3569908', 'n_tokens_mistral': 180, 'n_tokens_neox': 176, 'n_words': 41}