<commit_before>/*
 * action types
 */
export const SUBMIT_RESPONSE = 'SUBMIT_RESPONSE'
export const SUBMIT_RESPONSE_ANON = 'SUBMIT_RESPONSE_ANON'
export const NEXT_QUESTION = 'NEXT_QUESTION'
export const LOAD_DATA = 'LOAD_DATA'
export const EXIT = 'EXIT'
export const CLEAR_RESPONSES = 'CLEAR_RESPONSES'
export const CLEAR_RESPONSES_ANON = 'CLEAR_RESPONSES_ANON'
export const UPDATE_NAME = 'UPDATE_NAME'
export const START_QUESTION = 'START_QUESTION'

export const SubmitActions = {
  SUBMIT_RESPONSE,
  SUBMIT_RESPONSE_ANON,
  NEXT_QUESTION,
  LOAD_DATA,
  EXIT,
  CLEAR_RESPONSES,
  CLEAR_RESPONSES_ANON,
  UPDATE_NAME,
  START_QUESTION
}

/*
 * action creators
 */

export function submitResponse(response) {
  return { type: SUBMIT_RESPONSE, response}
}

export function clearResponses() {
  return { type: CLEAR_RESPONSES}
}

export function submitResponseAnon(response) {
  return { type: SUBMIT_RESPONSE_ANON, response}
}

export function clearResponsesAnon() {
  return { type: CLEAR_RESPONSES_ANON}
}

export function nextQuestion() {
  return { type: NEXT_QUESTION}
}

export function loadData(data) {
  return { type: LOAD_DATA, data}
}

export function exitToHome() {<commit_msg>add a clear data action to the lessons actions.<commit_after>/*
 * action types
 */
export const SUBMIT_RESPONSE = 'SUBMIT_RESPONSE'
export const SUBMIT_RESPONSE_ANON = 'SUBMIT_RESPONSE_ANON'
export const NEXT_QUESTION = 'NEXT_QUESTION'
export const LOAD_DATA = 'LOAD_DATA'
export const CLEAR_DATA = 'CLEAR_DATA'
export const EXIT = 'EXIT'
export const CLEAR_RESPONSES = 'CLEAR_RESPONSES'
export const CLEAR_RESPONSES_ANON = 'CLEAR_RESPONSES_ANON'
export const UPDATE_NAME = 'UPDATE_NAME'
export const START_QUESTION = 'START_QUESTION'

export const SubmitActions = {
  SUBMIT_RESPONSE,
  SUBMIT_RESPONSE_ANON,
  NEXT_QUESTION,
  LOAD_DATA,
  CLEAR_DATA,
  EXIT,
  CLEAR_RESPONSES,
  CLEAR_RESPONSES_ANON,
  UPDATE_NAME,
  START_QUESTION
}

/*
 * action creators
 */

export function submitResponse(response) {
  return { type: SUBMIT_RESPONSE, response}
}

export function clearResponses() {
  return { type: CLEAR_RESPONSES}
}

export function submitResponseAnon(response) {
  return { type: SUBMIT_RESPONSE_ANON, response}
}

export function clearResponsesAnon() {
  return { type: CLEAR_RESPONSES_ANON}
}

export function nextQuestion() {
  return { type: NEXT_QUESTION}
}

export function loadData(data) {
  return { type: LOAD_DATA, data}
}

export function clearData(data) {
  return { type: CLEAR_DATA, data}
}

export function exitToHome() {
{'fraction_non_alphanumeric': 0.08303817394726486, 'fraction_numerical': 0.0, 'mean_word_length': 5.602597402597403, 'pattern_counts': {'":': 0, '<': 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': '2303042', 'n_tokens_mistral': 1002, 'n_tokens_neox': 952, 'n_words': 210}