<commit_before>require 'rails_helper'

RSpec.describe User, type: :model do

  describe "create new user" do

     it "requires an email" do
      user = User.new(password: 'password')
      user.save

      expect(user.valid?).to be(false)<commit_msg>Passing create new user test<commit_after>require 'rails_helper'

RSpec.describe User, type: :model do

  describe "create new user" do

     it "creates a new user with a password and valid email" do
       user = build(:user)
       user.save

       expect(user.valid?).to be(true)
       expect(user.id).not_to be(nil)
     end

     it "requires an email" do
      user = User.new(password: 'password')
      user.save

      expect(user.valid?).to be(false)
{'fraction_non_alphanumeric': 0.1062937062937063, 'fraction_numerical': 0.0, 'mean_word_length': 2.8702702702702703, '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': '6685227', 'n_tokens_mistral': 236, 'n_tokens_neox': 217, 'n_words': 69}