<commit_before>require 'spec_helper'

describe RandomUserMe do

  describe ".get_random_user" do
    it "Fetches a new random valid user" do
      user = RandomUserMe::Client.get_random_user
      expect(user).to     be_valid
    end
  end

  describe ".get_seeded_user" do
    it "Fetches a new seeded random valid user" do
      user = RandomUserMe::Client.get_seeded_user(rand(10000))
      expect(user).to     be_valid
    end
  end
  
end
<commit_msg>Type matching tests added.<commit_after>require 'spec_helper'

describe RandomUserMe do

  describe ".get_random_user" do
    context "fetches a user" do
      user = RandomUserMe::Client.get_random_user
      
      it "is a valid user" do
        expect(user).to   be_valid
      end

      it "is a valid user" do
        expect(user).to   be_a(RandomUser)
      end
    end
  end

  describe ".get_seeded_user" do
    context "Fetches a seeded user" do
      user = RandomUserMe::Client.get_seeded_user(rand(10000))

      it "is a valid user" do
        expect(user).to   be_valid
      end

      it "is a valid user" do
        expect(user).to   be_a(RandomUser)
      end
    end
  end

end

{'fraction_non_alphanumeric': 0.0735930735930736, 'fraction_numerical': 0.008658008658008658, 'mean_word_length': 2.4924471299093653, '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': '3792842', 'n_tokens_mistral': 396, 'n_tokens_neox': 375, 'n_words': 111}