<commit_before>package nativedialog;

import android.content.DialogInterface;
import android.app.AlertDialog;
import org.haxe.lime.GameActivity;

public class NativeDialog {
    
	public static void showMessage( final String title, final String text, final String buttonText) {

		AlertDialog.Builder dialog = new AlertDialog.Builder(GameActivity.getInstance().getContext());

		DialogInterface.OnClickListener onClickListener = new DialogInterface.OnClickListener() {
			public void onClick(DialogInterface dialog, int which) { }
		};

		dialog.setTitle(title);
		dialog.setMessage(text);
		dialog.setNeutralButton(buttonText, onClickListener);
		dialog.show();

	}

	public static Boolean confirmMessage(String title, String text, String okText, String cancelText) {

		AlertDialog.Builder dialog = new AlertDialog.Builder(GameActivity.getInstance().getContext());

		DialogInterface.OnClickListener onClickListener = new DialogInterface.OnClickListener() {
			public void onClick(DialogInterface dialog, int which) { }
		};

		dialog.setTitle(title);
		dialog.setMessage(text);
		dialog.setPositiveButton(buttonText, onText);
		dialog.setNegativeButton(buttonText, cancelText);
		dialog.show();

		return true;
		
	}
}<commit_msg>Bug fix on showConfirm for Android<commit_after>package nativedialog;

import android.content.DialogInterface;
import android.app.AlertDialog;
import org.haxe.lime.GameActivity;

public class NativeDialog {
    
	public static void showMessage( final String title, final String text, final String buttonText) {

		AlertDialog.Builder dialog = new AlertDialog.Builder(GameActivity.getInstance().getContext());

		DialogInterface.OnClickListener onClickListener = new DialogInterface.OnClickListener() {
			public void onClick(DialogInterface dialog, int which) { }
		};

		dialog.setTitle(title);
		dialog.setMessage(text);
		dialog.setNeutralButton(buttonText, onClickListener);
		dialog.show();

	}

	public static Boolean confirmMessage(String title, String text, String okText, String cancelText) {

		AlertDialog.Builder dialog = new AlertDialog.Builder(GameActivity.getInstance().getContext());

		DialogInterface.OnClickListener onClickListener = new DialogInterface.OnClickListener() {
			public void onClick(DialogInterface dialog, int which) { }
		};

		dialog.setTitle(title);
		dialog.setMessage(text);
		dialog.setPositiveButton(okText, onText);
		dialog.setNegativeButton(cancelText, cancelText);
		dialog.show();

		return true;
		
	}
}
{'fraction_non_alphanumeric': 0.09585179218687072, 'fraction_numerical': 0.0, 'mean_word_length': 5.67741935483871, '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': '138665', 'n_tokens_mistral': 718, 'n_tokens_neox': 639, 'n_words': 159}