<commit_before>defmodule RemoteRetro.UserTest do
  use RemoteRetro.DataCase

  alias RemoteRetro.User

  @mock_google_user_info Application.get_env(:remote_retro, :mock_google_user_info)

  @valid_attrs %{
    email: "<EMAIL>",
    google_user_info: %{test: "one two"},
    family_name: "<NAME>",
    given_name: "Travis",
    locale: "en",
    name: "<NAME>",
    picture: "https://lh6.googleusercontent.com/-cZI40d8YpIQ/AAAAAAAAAAI/AAAAAAAAABs/gmDI7LQ2Lo0/photo.jpg?sz=50",
    last_login: ~N[2010-04-03 23:00:07],
  }
  @invalid_attrs %{}

  test "changeset with valid attributes" do
    changeset = User.changeset(%User{}, @valid_attrs)<commit_msg>Test cleanliness: use string keys to better map to inputs seen in application<commit_after>defmodule RemoteRetro.UserTest do
  use RemoteRetro.DataCase

  alias RemoteRetro.User

  @mock_google_user_info Application.get_env(:remote_retro, :mock_google_user_info)

  @valid_attrs %{
    "email" => "<EMAIL>",
    "google_user_info" => %{test: "one two"},
    "family_name" => "<NAME>",
    "given_name" => "Travis",
    "locale" => "en",
    "name" => "<NAME>",
    "picture" => "https://lh6.googleusercontent.com/-cZI40d8YpIQ/AAAAAAAAAAI/AAAAAAAAABs/gmDI7LQ2Lo0/photo.jpg?sz=50",
    "last_login" => ~N[2010-04-03 23:00:07],
  }
  @invalid_attrs %{}

  test "changeset with valid attributes" do
    changeset = User.changeset(%User{}, @valid_attrs)
{'fraction_non_alphanumeric': 0.15071428571428572, 'fraction_numerical': 0.032857142857142856, 'mean_word_length': 4.581673306772909, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 17, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 4, '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': '2456186', 'n_tokens_mistral': 549, 'n_tokens_neox': 505, 'n_words': 91}