<commit_before>package org.lichess.stockfish;

import org.apache.cordova.CallbackContext;
import org.apache.cordova.CordovaPlugin;
import org.json.JSONArray;
import org.json.JSONException;

public final class CordovaPluginStockfish extends CordovaPlugin {
  @Override
  public boolean execute(String action, JSONArray args, CallbackContext callbackContext) throws JSONException {
    if (action.equals("init")) {
      init(callbackContext);
    } else if (action.equals("cmd") {
      cmd(args, callbackContext);
    } else if (action.equals("exit") {
      exit(callbackContext);
    } else {
      return false;
    }
    return true;
  }

  private void init(CallbackContext callbackContext) throws JSONException {
    callbackContext.success();
  }

  private void cmd(JSONArray args, CallbackContext callbackContext) throws JSONException {
    callbackContext.success(args.getString(0));
  }

  private void exit(CallbackContext callbackContext) throws JSONException {
    callbackContext.success();
  }
}<commit_msg>cmd returns a stub bestmove<commit_after>package org.lichess.stockfish;

import org.apache.cordova.CallbackContext;
import org.apache.cordova.CordovaPlugin;
import org.json.JSONArray;
import org.json.JSONException;

public final class CordovaPluginStockfish extends CordovaPlugin {
  @Override
  public boolean execute(String action, JSONArray args, CallbackContext callbackContext) throws JSONException {
    if (action.equals("init")) {
      init(callbackContext);
    } else if (action.equals("cmd") {
      cmd(args, callbackContext);
    } else if (action.equals("exit") {
      exit(callbackContext);
    } else {
      return false;
    }
    return true;
  }

  private void init(CallbackContext callbackContext) throws JSONException {
    callbackContext.success();
  }

  private void cmd(JSONArray args, CallbackContext callbackContext) throws JSONException {
    callbackContext.success("bestmove e7e5");
  }

  private void exit(CallbackContext callbackContext) throws JSONException {
    callbackContext.success();
  }
}
{'fraction_non_alphanumeric': 0.09280855199222546, 'fraction_numerical': 0.0014577259475218659, 'mean_word_length': 4.461538461538462, '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': '5922581', 'n_tokens_mistral': 561, 'n_tokens_neox': 551, 'n_words': 139}