<commit_before>package recursion.cons.ismember;

import plm.universe.bat.BatTest;
import plm.universe.cons.ConsEntity;
import plm.universe.cons.RecList;

public class IsMemberEntity extends ConsEntity {

	@Override
	public void run(BatTest t) {
		RecList parameter = RecList.fromArray( (int[]) t.getParameter(0) );
		t.setResult( isMember( parameter, (int)t.getParameter(1) ) );
	}

	/* BEGIN TEMPLATE */
	Boolean isMember(RecList seq, int val) {
		/* BEGIN SOLUTION */
		if (seq == null)
			return false;<commit_msg>Fix Java entity of exercise 'IsMember'<commit_after>package recursion.cons.ismember;

import plm.universe.bat.BatTest;
import plm.universe.cons.ConsEntity;
import plm.universe.cons.RecList;

public class IsMemberEntity extends ConsEntity {

	@Override
	public void run(BatTest t) {
		RecList parameter = RecList.fromArray( (int[]) t.getParameter(0) );
		t.setResult( isMember( parameter, (int)t.getParameter(1) ) );
	}

	/* BEGIN TEMPLATE */
	boolean isMember(RecList seq, int val) {
		/* BEGIN SOLUTION */
		if (seq == null)
			return false;
{'fraction_non_alphanumeric': 0.12464589235127478, 'fraction_numerical': 0.003777148253068933, 'mean_word_length': 4.578947368421052, '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': '6435159', 'n_tokens_mistral': 389, 'n_tokens_neox': 359, 'n_words': 86}