<commit_before># TODO:
# * move Methods to different modules
# * add private/protected
# * add class_names to CacheKey per default
# * if key allready used, transform values to array
# * somehow handle "cache-overflow"
# * use symbols freely

# FIXME:
# * Avoid @class_variables, issues if "subclassed"


require 'look_up_table'

module LookUpTable
  extend ActiveSupport::Autoload
  extend ActiveSupport::Concern

  require 'look_up_table/base'
  #autoload :Base # CHECK
end

ActiveRecord::Base.send :include, LookUpTable
<commit_msg>some more cleanup<commit_after># TODO:
# * use symbols freely
# * add some locking on CacheWriting
# * may find a solution for non-static data

require 'look_up_table'

module LookUpTable
  extend ActiveSupport::Autoload
  extend ActiveSupport::Concern

  require 'look_up_table/base' # HACK
  #autoload :Base # CHECK
end

ActiveRecord::Base.send :include, LookUpTable

{'fraction_non_alphanumeric': 0.08517699115044247, 'fraction_numerical': 0.0, 'mean_word_length': 5.156462585034014, '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': '1264146', 'n_tokens_mistral': 284, 'n_tokens_neox': 276, 'n_words': 89}