<commit_before>/*
 * Copyright (c) 2019 toastkidjp.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompany this distribution.
 * The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html.
 */
package jp.toastkid.yobidashi.search.favorite

import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import java.io.Serializable

/**
 * @author toastkidjp
 */
class FavoriteSearchFragmentViewModel : ViewModel(), Serializable {

    private val _reload = MutableLiveData<Unit>()

    val reload: LiveData<Unit> = _reload

    fun reload() {
        _reload.postValue(Unit)
    }

    private val _clear = MutableLiveData<Unit>()

    val clear: LiveData<Unit> = _clear

    fun clear() {
        _clear.postValue(Unit)
    }
}<commit_msg>feature #412 Enable to use Event.<commit_after>/*
 * Copyright (c) 2019 toastkidjp.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompany this distribution.
 * The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html.
 */
package jp.toastkid.yobidashi.search.favorite

import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import jp.toastkid.lib.lifecycle.Event
import java.io.Serializable

/**
 * @author toastkidjp
 */
class FavoriteSearchFragmentViewModel : ViewModel(), Serializable {

    private val _reload = MutableLiveData<Event<Unit>>()

    val reload: LiveData<Event<Unit>> = _reload

    fun reload() {
        _reload.postValue(Event(Unit))
    }

    private val _clear = MutableLiveData<Event<Unit>>()

    val clear: LiveData<Event<Unit>> = _clear

    fun clear() {
        _clear.postValue(Event(Unit))
    }
}
{'fraction_non_alphanumeric': 0.09675759135357695, 'fraction_numerical': 0.00977869274318065, 'mean_word_length': 3.946564885496183, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '7664874', 'n_tokens_mistral': 609, 'n_tokens_neox': 558, 'n_words': 159}