<commit_before>package com.apps.adrcotfas.goodtime.BL;
import android.support.annotation.NonNull;
import com.apps.adrcotfas.goodtime.Util.Constants;
import androidx.work.Worker;
import de.greenrobot.event.EventBus;

public class FinishSessionWorker extends Worker{

    public final static String WORK_TAG = "Work";

    @NonNull
    @Override
    public Result doWork() {
        EventBus.getDefault().post(getTags().contains(WORK_TAG) ?
                new Constants.FinishWorkEvent() : new Constants.FinishBreakEvent());
        return Result.SUCCESS;
    }
}
<commit_msg>fix bug for session type<commit_after>package com.apps.adrcotfas.goodtime.BL;
import android.support.annotation.NonNull;
import com.apps.adrcotfas.goodtime.Util.Constants;
import androidx.work.Worker;
import de.greenrobot.event.EventBus;

public class FinishSessionWorker extends Worker{

    @NonNull
    @Override
    public Result doWork() {
        EventBus.getDefault().post(getTags().contains(SessionType.WORK.toString()) ?
                new Constants.FinishWorkEvent() : new Constants.FinishBreakEvent());
        return Result.SUCCESS;
    }
}

{'fraction_non_alphanumeric': 0.10451727192205491, 'fraction_numerical': 0.0, 'mean_word_length': 3.9344978165938866, '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': '5760289', 'n_tokens_mistral': 335, 'n_tokens_neox': 334, 'n_words': 64}