<commit_before>import android.util.Log;

import org.apache.cordova.LOG;

import org.apache.cordova.CallbackContext;
import org.apache.cordova.PluginResult;

import org.json.JSONObject;

public class PluginResultSender {

    private CallbackContext callbackContext;

    public PluginResultSender(final CallbackContext foo) {
        callbackContext = foo;
    }

    public void closing(JSONObject obj) {
        sendUpdate(obj, false, PluginResult.Status.OK);
    }

    public void error(JSONObject obj) {
        sendUpdate(obj, true, PluginResult.Status.ERROR);
    }

    public void ok() {
        sendOKUpdate("");
    }

    public void ok(String response) {
        sendUpdate(response, true, PluginResult.Status.OK);
    }

    public void update(String response, boolean keepCallback, PluginResult.Status status) {
        if (callbackContext != null) {
            PluginResult pluginResult = new PluginResult(status, response);
            pluginResult.setKeepCallback(keepCallback);
            this.callbackContext.sendPluginResult(pluginResult);
        }
    }

    /**
     * Create a new plugin success result and send it back to JavaScript
     *
     * @param obj a JSONObject contain event payload information
     */
    public void ok(JSONObject obj) {
        sendUpdate(obj, true, PluginResult.Status.OK);
    }

    /**
     * Create a new plugin result and send it back to JavaScript
     *
     * @param obj    a JSONObject contain event payload information
     * @param status the status code to return to the JavaScript environment
     */
    public void update(JSONObject obj, boolean keepCallback, PluginResult.Status status) {
        if (callbackContext != null) {
            PluginResult result = new PluginResult(status, obj);
            result.setKeepCallback(keepCallback);
            callbackContext.sendPluginResult(result);
            if (!keepCallback) {
                callbackContext = null;
            }
        }
    }
}<commit_msg>Missed renaming<commit_after>import android.util.Log;

import org.apache.cordova.LOG;

import org.apache.cordova.CallbackContext;
import org.apache.cordova.PluginResult;

import org.json.JSONObject;

public class PluginResultSender {

    private CallbackContext callbackContext;

    public PluginResultSender(final CallbackContext foo) {
        callbackContext = foo;
    }

    public void closing(JSONObject obj) {
        update(obj, false, PluginResult.Status.OK);
    }

    public void error(JSONObject obj) {
        update(obj, true, PluginResult.Status.ERROR);
    }

    public void ok() {
        ok("");
    }

    public void ok(String response) {
        update(response, true, PluginResult.Status.OK);
    }

    public void update(String response, boolean keepCallback, PluginResult.Status status) {
        if (callbackContext != null) {
            PluginResult pluginResult = new PluginResult(status, response);
            pluginResult.setKeepCallback(keepCallback);
            this.callbackContext.sendPluginResult(pluginResult);
        }
    }

    /**
     * Create a new plugin success result and send it back to JavaScript
     *
     * @param obj a JSONObject contain event payload information
     */
    public void ok(JSONObject obj) {
        update(obj, true, PluginResult.Status.OK);
    }

    /**
     * Create a new plugin result and send it back to JavaScript
     *
     * @param obj    a JSONObject contain event payload information
     * @param status the status code to return to the JavaScript environment
     */
    public void update(JSONObject obj, boolean keepCallback, PluginResult.Status status) {
        if (callbackContext != null) {
            PluginResult result = new PluginResult(status, obj);
            result.setKeepCallback(keepCallback);
            callbackContext.sendPluginResult(result);
            if (!keepCallback) {
                callbackContext = null;
            }
        }
    }
}
{'fraction_non_alphanumeric': 0.08248987854251012, 'fraction_numerical': 0.0, 'mean_word_length': 2.61996336996337, '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': '4134217', 'n_tokens_mistral': 1036, 'n_tokens_neox': 992, 'n_words': 289}