<commit_before>package com.example.samplemodule;

import java.util.List;

import com.artech.application.MyApplication;
import com.artech.externalapi.ExternalApi;

public class BasicExternalObject extends ExternalApi {
	private static final String METHOD_HELLO = "Hello";
	private static final String METHOD_MESSAGE = "Message";

	public BasicExternalObject() {
		addSimpleMethodHandler(METHOD_HELLO, 0, mMethodHello);
		addSimpleMethodHandler(METHOD_MESSAGE, 1, mMethodMessage);
	}

	private final ISimpleMethodInvoker mMethodHello = new ISimpleMethodInvoker() {
		@Override
		public Object invoke(List<Object> parameters) {
			MyApplication.getInstance().showMessage(getContext().getString(com.example.genexusmodule.R.string.hello_message));
			return null;
		}
	};

	private final ISimpleMethodInvoker mMethodMessage = new ISimpleMethodInvoker() {
		@Override
		public Object invoke(List<Object> parameters) {
			final String text = (String) parameters.get(0);
			MyApplication.getInstance().showMessage(text);
			return null;
		}
	};
}
<commit_msg>Use the more generic IMethodInvoker interface instead of ISimpleMethodInvoker<commit_after>package com.example.samplemodule;

import java.util.List;

import android.support.annotation.NonNull;

import com.artech.actions.ActionResult;
import com.artech.application.MyApplication;
import com.artech.externalapi.ExternalApi;
import com.artech.externalapi.ExternalApiResult;

public class BasicExternalObject extends ExternalApi {
	private static final String METHOD_HELLO = "Hello";
	private static final String METHOD_MESSAGE = "Message";

	public BasicExternalObject() {
		addMethodHandler(METHOD_HELLO, 0, mMethodHello);
		addMethodHandler(METHOD_MESSAGE, 1, mMethodMessage);
	}

	private final IMethodInvoker mMethodHello = new IMethodInvoker() {
		@Override
		public @NonNull ExternalApiResult invoke(List<Object> parameters) {
			MyApplication.getInstance().showMessage(getContext().getString(com.example.genexusmodule.R.string.hello_message));
			return new ExternalApiResult(ActionResult.SUCCESS_CONTINUE);
		}
	};

	private final IMethodInvoker mMethodMessage = new IMethodInvoker() {
		@Override
		public @NonNull ExternalApiResult invoke(List<Object> parameters) {
			final String text = (String) parameters.get(0);
			MyApplication.getInstance().showMessage(text);
			return new ExternalApiResult(ActionResult.SUCCESS_CONTINUE);
		}
	};
}

{'fraction_non_alphanumeric': 0.0917048770320967, 'fraction_numerical': 0.0025010421008753647, 'mean_word_length': 6.2948328267477205, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '6724260', 'n_tokens_mistral': 736, 'n_tokens_neox': 675, 'n_words': 150}