<commit_before>export const actionTypes = {
  setFilter: 'SET_FILTER',
  toggleTodo: 'TOGGLE_TODO',
};

export const setFilter = filter => ({ type: actionTypes.setFilter, filter });
export const toggleTodo = id => ({ type: actionTypes.toggleTodo, id });<commit_msg>action types + action creators<commit_after>export const actionTypes = {
  setRoomFormName: 'SET_ROOMFORM_NAME',
  setRoomFormState: 'SET_ROOMFORM_STATE',
  createRoom: 'CREATE_ROOM',
  createRoomFulfilled: 'CREATE_ROOM_FULFILLED',
  createRoomRejected: 'CREATE_ROOM_REJECTED',
  fetchRoomNameValidity: 'FETCH_ROOMNAME_VALIDITY',
  fetchRoomNameValidityFullfilled: 'FETCH_ROOMNAME_VALIDITY_FULFILLED',
  fetchRoomNameValidityRejected: 'FETCH_ROOMNAME_VALIDITY_REJECTED',
  fetchUserAuth: 'FETCH_USER_AUTH',
  fetchUserAuthFulfilled: 'FETCH_USER_AUTH_FULFILLED',
  fetchUserAuthRejected: 'FETCH_USER_AUTH_REJECTED',
  startWatchingRoom: 'START_WATCHING_ROOM',
  stopWatchingRoom: 'STOP_WATCHING_ROOM',
  wathingRoomRejected: 'WATCHING_ROOM_REJECTED',
  logout: 'LOGOUT',
  updateRoom: 'UPDATE_ROOM',
};

export const setRoomFormName = name => ({ type: actionTypes.setRoomFormName, name });
export const setRoomFormState = state => ({ type: actionTypes.setRoomFormState, state });

export const createRoom = name => ({ type: actionTypes.createRoom, name });
export const createRoomFulfilled = () => ({ type: actionTypes.createRoomFulfilled });
export const createRoomRejected = () => ({ type: actionTypes.createRoomRejected });

export const fetchRoomNameValidity = () => ({ type: actionTypes.fetchRoomNameValidity });
export const fetchRoomNameValidityFulfilled = isValid => ({
  type: actionTypes.fetchRoomNameValidityFullfilled,
  isValid,
});
export const fetchRoomNameValidityRejected = error => ({
  type: actionTypes.fetchRoomNameValidityRejected,
  error,
});

export const fetchUserAuth = () => ({ type: actionTypes.fetchUserAuth });
export const fetchUserAuthFulfilled = user => ({
  type: actionTypes.fetchUserAuthFulfilled,
  user,
});
export const fetchUserAuthRejected = error => ({
  type: actionTypes.fetchUserAuthRejected,
  error,
});

export const startWatchingRoom = name => ({ type: actionTypes.startWatchingRoom, name });
export const stopWatchingRoom = name => ({ type: actionTypes.stopWatchingRoom, name });
export const watchingRoomRejected = error => ({ type: actionTypes.watchingRoomRejected, error });

export const logout = () => ({ type: actionTypes.logout });
export const updateRoom = room => ({ type: actionTypes.updateRoom, room });

{'fraction_non_alphanumeric': 0.11620553359683794, 'fraction_numerical': 0.0, 'mean_word_length': 6.8602484472049685, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 21, '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': '787137', 'n_tokens_mistral': 802, 'n_tokens_neox': 784, 'n_words': 161}