<commit_before>require 'spec_helper'

RSpec.describe Traitor::Config do
  after do
    Traitor::Config.reset!
  end

  describe '.configure_for_rails!' do
    it 'sets all the required variables' do
      Traitor::Config.configure_for_rails!
      expect(Traitor::Config.save_method).to eq :save
      expect(Traitor::Config.save_kwargs).to eq({ validate: false })
      expect(Traitor::Config.build_kwargs).to eq({ without_validation: true })
    end
  end

  describe '.configure_safe_for_rails!' do
    it 'sets all the required variables' do
      Traitor::Config.configure_safe_for_rails!
      expect(Traitor::Config.save_method).to eq :save
      expect(Traitor::Config.save_kwargs).to eq({})
      expect(Traitor::Config.build_kwargs).to eq({})
    end
  end
end
<commit_msg>Fix typo in method.<commit_after>require 'spec_helper'

RSpec.describe Traitor::Config do
  after do
    Traitor::Config.reset!
  end

  describe '.configure_for_rails!' do
    it 'sets all the required variables' do
      Traitor::Config.configure_for_rails!
      expect(Traitor::Config.save_method).to eq :save
      expect(Traitor::Config.save_kwargs).to eq({ validate: false })
      expect(Traitor::Config.build_kwargs).to eq({ without_protection: true })
    end
  end

  describe '.configure_safe_for_rails!' do
    it 'sets all the required variables' do
      Traitor::Config.configure_safe_for_rails!
      expect(Traitor::Config.save_method).to eq :save
      expect(Traitor::Config.save_kwargs).to eq({})
      expect(Traitor::Config.build_kwargs).to eq({})
    end
  end
end

{'fraction_non_alphanumeric': 0.11259541984732824, 'fraction_numerical': 0.0, 'mean_word_length': 3.9310344827586206, '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': '3800414', 'n_tokens_mistral': 500, 'n_tokens_neox': 484, 'n_words': 111}