<commit_before>defmodule CoursePlanner.SystemVariableTest do
  use CoursePlanner.ModelCase

  alias CoursePlanner.SystemVariable

  @string_valid_attrs %{key: "sample key", value: "sample value", type: "string", visible: true, editable: true, required: true}
  @integer_valid_attrs %{key: "sample key", value: "1", type: "integer", visible: true, editable: true}		 +  @text_valid_attrs %{key: "sample key", value: "sample value", type: "text", visible: true, editable: true, required: true}
  @boolean_valid_attrs %{key: "sample key", value: "true", type: "boolean", visible: true, editable: true}		 +  @url_valid_attrs %{key: "sample key", value: "http://www.sample.com", type: "url", visible: true, editable: true, required: true}
  @list_valid_attrs %{key: "sample key", value: "value1,value2", type: "list", visible: true, editable: true}		 +  @integer_valid_attrs %{key: "sample key", value: "1", type: "integer", visible: true, editable: true, required: true}
  @boolean_valid_attrs %{key: "sample key", value: "true", type: "boolean", visible: true, editable: true, required: true}
  @list_valid_attrs %{key: "sample key", value: "value1,value2", type: "list", visible: true, editable: true, required: true}
  @invalid_attrs %{}

  test "changeset with invalid attributes" do
    changeset = SystemVariable.changeset(%SystemVariable{}, @invalid_attrs)<commit_msg>Fix the tests<commit_after>defmodule CoursePlanner.SystemVariableTest do
  use CoursePlanner.ModelCase

  alias CoursePlanner.SystemVariable

  @string_valid_attrs %{key: "sample key", value: "sample value", type: "string", visible: true, editable: true, required: true}
  @text_valid_attrs %{key: "sample key", value: "sample value", type: "text", visible: true, editable: true, required: true}
  @url_valid_attrs %{key: "sample key", value: "http://www.sample.com", type: "url", visible: true, editable: true, required: true}
  @integer_valid_attrs %{key: "sample key", value: "1", type: "integer", visible: true, editable: true, required: true}
  @boolean_valid_attrs %{key: "sample key", value: "true", type: "boolean", visible: true, editable: true, required: true}
  @list_valid_attrs %{key: "sample key", value: "value1,value2", type: "list", visible: true, editable: true, required: true}
  @invalid_attrs %{}

  test "changeset with invalid attributes" do
    changeset = SystemVariable.changeset(%SystemVariable{}, @invalid_attrs)
{'fraction_non_alphanumeric': 0.15228215767634853, 'fraction_numerical': 0.0037344398340248964, 'mean_word_length': 6.328267477203648, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4806974', 'n_tokens_mistral': 764, 'n_tokens_neox': 738, 'n_words': 243}