<commit_before>package com.flyingsoftgames.ondestroyplugin;

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

import org.json.JSONArray;
import org.json.JSONException;

import android.util.Log;

public class OnPausePlugin extends CordovaPlugin {
 
 private CallbackContext onPauseCallback = null;
 private final String LOG_TAG = "onPausePlugin";
 
 public boolean execute (String action, JSONArray inputs, CallbackContext callbackContext) throws JSONException {
  onPauseCallback = callbackContext;
  return true;
 }
 
 @Override public void onPause () {
  if (onPauseCallback != null) onPauseCallback.sendPluginResult (pluginResultKeep());
  super.onPause ();
 };
 
 private PluginResult pluginResultKeep () {
  PluginResult pluginResult = new PluginResult (PluginResult.Status.OK);
  pluginResult.setKeepCallback (true);
  return pluginResult;
 }
}
<commit_msg>Update OnPausePlugin.java<commit_after>package com.flyingsoftgames.ondestroyplugin;

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

import org.json.JSONArray;
import org.json.JSONException;

import android.util.Log;

public class OnPausePlugin extends CordovaPlugin {
 
 private CallbackContext onPauseCallback = null;
 private final String LOG_TAG = "onPausePlugin";
 
 public boolean execute (String action, JSONArray inputs, CallbackContext callbackContext) throws JSONException {
  onPauseCallback = callbackContext;
  return true;
 }
 
 protected void onPause () {
  if (onPauseCallback != null) onPauseCallback.sendPluginResult (pluginResultKeep());
  super.onPause ();
 };
 
 private PluginResult pluginResultKeep () {
  PluginResult pluginResult = new PluginResult (PluginResult.Status.OK);
  pluginResult.setKeepCallback (true);
  return pluginResult;
 }
}

{'fraction_non_alphanumeric': 0.08390865639936272, 'fraction_numerical': 0.0, 'mean_word_length': 5.826086956521739, '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': '2465589', 'n_tokens_mistral': 547, 'n_tokens_neox': 522, 'n_words': 130}