<commit_before>describe Tok::Configuration do
  before :all do
    User = Class.new 
    Account = Class.new
  end

  describe "#resource" do
    it "has a default value User" do
      expect(Tok::Configuration.new.resource).to eq ::User
    end
  end

  describe "#resource=" do
    before do
      Tok.configure do |config|
        config.resource = Account
      end
    end

    it { expect(Tok.configuration.resource).to eq Account }
  end<commit_msg>Remove User object (not necessary as User is defined elsewhere now)<commit_after>describe Tok::Configuration do
  before :all do
    Account = Class.new
  end

  describe "#resource" do
    it "has a default value User" do
      expect(Tok::Configuration.new.resource).to eq ::User
    end
  end

  describe "#resource=" do
    before do
      Tok.configure do |config|
        config.resource = Account
      end
    end

    it { expect(Tok.configuration.resource).to eq Account }
  end
{'fraction_non_alphanumeric': 0.0847457627118644, 'fraction_numerical': 0.0, 'mean_word_length': 2.69140625, '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': '5913183', 'n_tokens_mistral': 271, 'n_tokens_neox': 260, 'n_words': 93}