<commit_before>let usersData = {}

const load = (userId) => {
  return new User(userId, getState(userId))
}


class User {
    constructor(userId, initialState) {
        this.userId = userId
        this.state = initialState
    }

    setState(newState) {
        setState(this.userId, newState)
        this.state = newState
    }

    startQuiz(questionKeys) {
        this.setState({
            questionKeys: questionKeys,
            currentQuestionKey: utillArray.shuffleKeyFromQuestions(this.questionKeys),
            done: 0,
            state: 'playing'<commit_msg>test user class<commit_after>let usersData = {}

const load = async (userId) => {
  return new User(userId, getState(userId))
}


class User {
    constructor(userId, initialState) {
        this.userId = userId
        this.state = initialState
    }

    setState(newState) {
        setState(this.userId, newState)
        this.state = newState
    }

    startQuiz(questionKeys) {
        this.setState({
            questionKeys: questionKeys,
            currentQuestionKey: utillArray.shuffleKeyFromQuestions(this.questionKeys),
            done: 0,
            state: 'playing'
{'fraction_non_alphanumeric': 0.0981067125645439, 'fraction_numerical': 0.0017211703958691911, 'mean_word_length': 2.4205882352941175, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '2730429', 'n_tokens_mistral': 338, 'n_tokens_neox': 341, 'n_words': 66}