<commit_before>require 'spec_helper'

describe Trueman do
  it 'has a version number' do
    expect(Trueman::VERSION).not_to be nil
  end

  describe 'updating truthy values' do
    before { Trueman.true_values << 'foo' }

    it "allows a new value" do
      expect(Trueman.truthy?('foo')).to eq true
    end
  end

  describe 'updating falsy values' do
    before { Trueman.false_values << 'bar' }

    it "allows a new value" do
      expect(Trueman.truthy?('bar')).to eq false
    end
  end

  describe 'determine a falsy value' do
    [0, false, "false", "FALSE", "f", "F"].each do |value|
      it "returns true for the value #{value}" do
        expect(Trueman.falsy?(value)).to eq true
      end
    end
  end

  describe 'determine a truthy value' do
    [1, true, "true", "TRUE", "t", "T"].each do |value|
      it "returns true for the value #{value}" do
        expect(Trueman.truthy?(value)).to eq true
      end
    end
  end
end<commit_msg>Update trueman_spec.rb<commit_after>require 'spec_helper'

describe Trueman do
  it 'has a version number' do
    expect(Trueman::VERSION).not_to be nil
  end

  describe 'updating truthy values' do
    before { Trueman.true_values << 'foo' }

    it "allows a new value" do
      expect(Trueman.truthy?('foo')).to eq true
    end
  end

  describe 'updating falsy values' do
    before { Trueman.false_values << 'bar' }

    it "allows a new value" do
      expect(Trueman.truthy?('bar')).to eq false
    end
  end

  describe 'determine a falsy value' do
    [0, false, "false", "FALSE", "0", "f", "F"].each do |value|
      it "returns true for the value #{value}" do
        expect(Trueman.falsy?(value)).to eq true
      end
    end
  end

  describe 'determine a truthy value' do
    [1, true, "true", "TRUE", "1", "t", "T"].each do |value|
      it "returns true for the value #{value}" do
        expect(Trueman.truthy?(value)).to eq true
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.12389839294971487, 'fraction_numerical': 0.003110419906687403, 'mean_word_length': 2.806706114398422, 'pattern_counts': {'":': 0, '<': 11, '<?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': '2601438', 'n_tokens_mistral': 672, 'n_tokens_neox': 665, 'n_words': 222}