<commit_before>import { SET_MODAL } from '../shared';
import { assignCoachesToClass, enrollLearnersInClass } from './actions';

function defaultState() {
  return {
    class: {},
    facilityUsers: [],
    modalShown: false,
  };
}

export default {
  namespaced: true,
  state: defaultState(),
  mutations: {
    SET_STATE(state, payload) {
      Object.assign(state, payload);
    },
    RESET_STATE(state) {
      Object.assign(state, defaultState());
    },
    SET_MODAL,
  },
  actions: {
    assignCoachesToClass,
    enrollLearnersInClass,
  },
};<commit_msg>Update default state for classAssignMembers to better support pagination<commit_after>import { SET_MODAL } from '../shared';
import { assignCoachesToClass, enrollLearnersInClass } from './actions';

function defaultState() {
  return {
    class: {},
    facilityUsers: [],
    totalPageNumber: 0,
    totalLearners: 0,
    modalShown: false,
  };
}

export default {
  namespaced: true,
  state: defaultState(),
  mutations: {
    SET_STATE(state, payload) {
      Object.assign(state, payload);
    },
    RESET_STATE(state) {
      Object.assign(state, defaultState());
    },
    SET_MODAL,
  },
  actions: {
    assignCoachesToClass,
    enrollLearnersInClass,
  },
};
{'fraction_non_alphanumeric': 0.1305398871877518, 'fraction_numerical': 0.0016116035455278, 'mean_word_length': 3.419928825622776, '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': '3229620', 'n_tokens_mistral': 405, 'n_tokens_neox': 393, 'n_words': 80}