<commit_before>defmodule CalgyApi.Calendar do
  use CalgyApi.Web, :model

  schema "calendars" do
    field :state, :string, default: "pending"
    field :title
    field :description
    timestamps
  end

  def changeset(struct, params) do
    struct
    |> cast(params, [:title, :description])
    |> validate_length(:title, max: 100, message: "too_long")
    |> validate_length(:description, max: 2000, message: "too_long")
  end

end<commit_msg>Add missing types to ecto schema for calendar :title and :description<commit_after>defmodule CalgyApi.Calendar do
  use CalgyApi.Web, :model

  schema "calendars" do
    field :state, :string, default: "pending"
    field :title, :string
    field :description, :string
    timestamps
  end

  def changeset(struct, params) do
    struct
    |> cast(params, [:title, :description])
    |> validate_length(:title, max: 100, message: "too_long")
    |> validate_length(:description, max: 2000, message: "too_long")
  end

end
{'fraction_non_alphanumeric': 0.11522633744855967, 'fraction_numerical': 0.01440329218106996, 'mean_word_length': 4.0942408376963355, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '1514183', 'n_tokens_mistral': 329, 'n_tokens_neox': 303, 'n_words': 91}