<commit_before>require "tandem/engine"
require "cancan"
require "slim-rails"
require "paperclip"

module Tandem
  module Configuration
    mattr_accessor :unauthorized_path, :layouts_dir, :uploaded_images_dir, :uploaded_images_template

    self.unauthorized_path = nil
    self.layouts_dir = "tandem"
    self.uploaded_images_dir = ":rails_root/public"
    self.uploaded_images_template = "/assets/images/:id/:style/:basename.:extension"

    def self.current_user_proc(&block)
      @@current_user = block
    end

    def self.user_abilities_proc(&block)
      @@user_abilities = block
    end

    def self.current_user
      debugger
      raise(ConfigurationNotFound.new("Tandem::Configuration.current_user { ... }")) unless @@current_user
      @@current_user
    end

    def self.user_abilities
      raise(ConfigurationNotFound.new("Tandem::Configuration.user_abilities { |user| ... }")) unless @@user_abilities
      @@user_abilities
    end
  end<commit_msg>Removed a debugger Jay left in.<commit_after>require "tandem/engine"
require "cancan"
require "slim-rails"
require "paperclip"

module Tandem
  module Configuration
    mattr_accessor :unauthorized_path, :layouts_dir, :uploaded_images_dir, :uploaded_images_template

    self.unauthorized_path = nil
    self.layouts_dir = "tandem"
    self.uploaded_images_dir = ":rails_root/public"
    self.uploaded_images_template = "/assets/images/:id/:style/:basename.:extension"

    def self.current_user_proc(&block)
      @@current_user = block
    end

    def self.user_abilities_proc(&block)
      @@user_abilities = block
    end

    def self.current_user
      raise(ConfigurationNotFound.new("Tandem::Configuration.current_user { ... }")) unless @@current_user
      @@current_user
    end

    def self.user_abilities
      raise(ConfigurationNotFound.new("Tandem::Configuration.user_abilities { |user| ... }")) unless @@user_abilities
      @@user_abilities
    end
  end
{'fraction_non_alphanumeric': 0.10550694801852804, 'fraction_numerical': 0.0, 'mean_word_length': 4.010309278350515, 'pattern_counts': {'":': 2, '<': 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': '5235098', 'n_tokens_mistral': 618, 'n_tokens_neox': 587, 'n_words': 107}