<commit_before># Add an initialized singleton instance with accessor to the GeoIP class
#
class GeoIP
  @@singleton = GeoIP.new("#{Rails.root}/public/GeoLiteCity.dat")
  
  def self.lookup
    @@singleton
  end
  
end<commit_msg>Fixed GeoIP initializer so doesn't fail on precompile during deployment<commit_after># Add an initialized singleton instance with accessor to the GeoIP class
#
class GeoIP
  @@singleton = nil
  
  def self.lookup
    @@singleton = GeoIP.new("#{Rails.root}/public/GeoLiteCity.dat") if @@singleton.nil?
    @@singleton
  end
  
end
{'fraction_non_alphanumeric': 0.0967741935483871, 'fraction_numerical': 0.0, 'mean_word_length': 4.175925925925926, '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': '2733539', 'n_tokens_mistral': 192, 'n_tokens_neox': 175, 'n_words': 54}