<commit_before>defmodule Core.UserTest do
  use Core.ModelCase

  alias Core.User

  @valid_attrs %{crypted_password: "<PASSWORD>", email: "some content"}
  @invalid_attrs %{}

  test "changeset with valid attributes" do
    changeset = User.changeset(%User{}, @valid_attrs)
    assert changeset.valid?
  end

  test "changeset with invalid attributes" do
    changeset = User.changeset(%User{}, @invalid_attrs)
    refute changeset.valid?
  end
end<commit_msg>Add some tests for User parameters<commit_after>defmodule Core.UserTest do
  use Core.ModelCase

  alias Core.User

  @valid_attrs %{password: "<PASSWORD>", email: "<EMAIL>"}

  test "User creation with valid attributes" do
    changeset = User.changeset(%User{}, @valid_attrs)
    assert changeset.valid?
  end

  test "User creation with no attributes" do
    invalid_attrs = %{}
    changeset = User.changeset(%User{}, invalid_attrs)
    refute changeset.valid?
  end

  test "User creation with no password" do
    invalid_attrs = %{email: "<EMAIL>"}
    changeset = User.changeset(%User{}, invalid_attrs)
    refute changeset.valid?
  end

  test "User creation with no email" do
    invalid_attrs = %{password: "<PASSWORD>"}
    changeset = User.changeset(%User{}, invalid_attrs)
    refute changeset.valid?
  end
end
{'fraction_non_alphanumeric': 0.10981308411214953, 'fraction_numerical': 0.0, 'mean_word_length': 4.099206349206349, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, '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': '6581087', 'n_tokens_mistral': 401, 'n_tokens_neox': 386, 'n_words': 115}