<commit_before>package net.bgta.phonegap.plugins;

import org.apache.cordova.CallbackContext;
import org.apache.cordova.PluginResult;
import org.json.JSONArray;
import android.content.pm.PackageManager.NameNotFoundException;
import android.content.pm.PackageManager;

public class AppVersion extends BasePlugin {

    @Override
    public boolean execute(String action, JSONArray args, CallbackContext callback) {
        try {
            PackageManager packageManager = this.cordova.getActivity().getPackageManager();
            String version = packageManager.getPackageInfo(this.cordova.getActivity().getPackageName(), 0).versionName;
            logD("@@ VERSION @@ - Native : " + version);
            callback.sendPluginResult(new PluginResult(PluginResult.Status.OK, version));
            return true;
        } catch (NameNotFoundException e) {
            callback.sendPluginResult(new PluginResult(PluginResult.Status.ERROR, ""));
            return false;
        }
    }

}
<commit_msg>Corrected little mistake of old code.<commit_after>package net.bgta.phonegap.plugins;

import org.apache.cordova.CordovaPlugin;
import org.apache.cordova.CallbackContext;
import org.apache.cordova.PluginResult;
import org.json.JSONArray;
import android.content.pm.PackageManager.NameNotFoundException;
import android.content.pm.PackageManager;

public class AppVersion extends CordovaPlugin {

    @Override
    public boolean execute(String action, JSONArray args, CallbackContext callback) {
        try {
            PackageManager packageManager = this.cordova.getActivity().getPackageManager();
            String version = packageManager.getPackageInfo(this.cordova.getActivity().getPackageName(), 0).versionName;
            callback.sendPluginResult(new PluginResult(PluginResult.Status.OK, version));
            return true;
        } catch (NameNotFoundException e) {
            callback.sendPluginResult(new PluginResult(PluginResult.Status.ERROR, ""));
            return false;
        }
    }

}

{'fraction_non_alphanumeric': 0.09488325881768504, 'fraction_numerical': 0.0009935419771485345, 'mean_word_length': 3.6192660550458715, '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': '636460', 'n_tokens_mistral': 524, 'n_tokens_neox': 512, 'n_words': 103}