<commit_before>import { validatePresence, validateFormat } from "ember-changeset-validations/validators"

export default {
  submitterName: validatePresence(true),
  submitterEmail: validateFormat({ type: "email" }),
  "standardSet.educationLevels": validatePresence(true),
  "standardSet.document.sourceURL": validateFormat({ type: "url" }),
  "standardSet.document.title": validateFormat(true),
  "standardSet.standards.subject": validatePresence(true),
  "standardSet.title": validatePresence(true),
  "standardSet.jurisdiction.title": validatePresence(true),
}<commit_msg>[front] Add custom validation  messages.<commit_after>import { validatePresence, validateFormat } from "ember-changeset-validations/validators"

export default {
  submitterName: validatePresence({ presence: true, message: "please enter your name" }),
  submitterEmail: validateFormat({ type: "email", message: "must be a valid email address" }),
  "standardSet.educationLevels": validatePresence({ presence: true, message: "please select an education level" }),
  "standardSet.document.sourceURL": validateFormat({ type: "url", message: "must be a valid URL" }),
  "standardSet.document.title": validatePresence({ presence: true, message: "please enter the title of the source" }),
  "standardSet.standards.subject": validatePresence({ presence: true, message: "please enter a subject" }),
  "standardSet.title": validatePresence({ presence: true, message: "please enter the grade or course name" }),
  "standardSet.jurisdiction.title": validatePresence({
    presence: true,
    message: "please select the name of the organization",
  }),
}
{'fraction_non_alphanumeric': 0.12847436689314393, 'fraction_numerical': 0.0, 'mean_word_length': 6.6415094339622645, 'pattern_counts': {'":': 12, '<': 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': '653430', 'n_tokens_mistral': 450, 'n_tokens_neox': 443, 'n_words': 123}