<commit_before>package com.tylersuehr.cleanarchitecture.domain;

/**
 * Copyright 2017 <NAME>
 * Created by tyler on 7/3/2017.
 *
 * <b>Summary</b>
 * This is the base 'executable' task to push work into a worker thread quickly
 * and handle using the given request and return a response on the UI thread.
 *
 * NOTE: All use cases are executed with {@link UseCaseScheduler}.
 */
public abstract class UseCase<T, V> {
    private UseCaseCallback<V> callback;
    private T request;


    public UseCase() {}

    protected abstract void onExecute();

    public UseCaseCallback<V> getCallback() {
        return callback;
    }

    void setCallback(UseCaseCallback<V> callback) {
        this.callback = callback;
    }

    public T getRequest() {
        return request;
    }

    void setRequest(T request) {
        this.request = request;
    }
}<commit_msg>Added method to log an exception<commit_after>package com.tylersuehr.cleanarchitecture.domain;
import android.util.Log;
/**
 * Copyright 2017 <NAME>
 * Created by tyler on 7/3/2017.
 *
 * <b>Summary</b>
 * This is the base 'executable' task to push work into a worker thread quickly
 * and handle using the given request and return a response on the UI thread.
 *
 * NOTE: All use cases are executed with {@link UseCaseScheduler}.
 */
public abstract class UseCase<T, V> {
    private UseCaseCallback<V> callback;
    private T request;


    public UseCase() {}

    protected abstract void onExecute();

    protected void logFail(Exception ex) {
        Log.wtf("USE_CASE", ex);
    }

    public UseCaseCallback<V> getCallback() {
        return callback;
    }

    void setCallback(UseCaseCallback<V> callback) {
        this.callback = callback;
    }

    public T getRequest() {
        return request;
    }

    void setRequest(T request) {
        this.request = request;
    }
}
{'fraction_non_alphanumeric': 0.09590517241379311, 'fraction_numerical': 0.010775862068965518, 'mean_word_length': 2.9594882729211087, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '1695234', 'n_tokens_mistral': 559, 'n_tokens_neox': 524, 'n_words': 183}