<commit_before>package com.ae.apps.common.mock;

import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
import java.util.Random;

import android.content.res.Resources;

import com.ae.apps.aeappslibrary.R;
import com.ae.apps.common.vo.ContactMessageVo;
import com.ae.apps.common.vo.ContactVo;
import com.ae.apps.common.vo.PhoneNumberVo;

public class MockContactDataUtils {

	private static final String	LOCALE_FR			= "fr";
	private static final String	LOCALE_ES			= "es";

	/**
	 * Mock names, TODO read from resources
	 */
	private static String		mockNamesEN[]		= { "<NAME>", "<NAME>", "<NAME>", "<NAME>",
			"<NAME>", "Catherine", "<NAME>", "<NAME>", "<NAME>" };
	private static String		mockNamesES[]		= { "<NAME>", "<NAME>",
			"<NAME>", "<NAME>", "<NAME>", "<NAME>",
			"<NAME>"					};
	private static String		mockNamesFR[]		= { "<NAME>", "<NAME>", "<NAME>",
			"<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>" };

	/**
	 * mock profile images
	 */
	private static int			mockProfileImages[]	= { R.drawable.profile_icon_1, R.drawable.profile_icon_2,
			R.drawable.profile_icon_3, R.drawable.profile_icon_4, R.drawable.profile_icon_5, R.drawable.profile_icon_6 };

	/**
	 * Returns a mock contact
	 * 
	 * @param resource
	 * @return
	 */
	public static ContactVo getMockContact() {
		ContactVo contactVo = new ContactVo();

		// Create the phone number list and add one
		ArrayList<PhoneNumberVo> phoneNumbersList = new ArrayList<PhoneNumberVo>();
		PhoneNumberVo numberVo = new PhoneNumberVo();
		numberVo.setPhoneNumber("87 7781 6267");
		phoneNumbersList.add(numberVo);

		numberVo = new PhoneNumberVo();
		numberVo.setPhoneNumber("86 2343 6789");
		phoneNumbersList.add(numberVo);

		Random random = new Random();
		int randomVal = random.nextInt(mockNamesEN.length);
		String randomName = mockNamesEN[randomVal];

		// set mock details for this contact<commit_msg>increased length of profile images array<commit_after>package com.ae.apps.common.mock;

import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
import java.util.Random;

import android.content.res.Resources;

import com.ae.apps.aeappslibrary.R;
import com.ae.apps.common.vo.ContactMessageVo;
import com.ae.apps.common.vo.ContactVo;
import com.ae.apps.common.vo.PhoneNumberVo;

public class MockContactDataUtils {

	private static final String	LOCALE_FR			= "fr";
	private static final String	LOCALE_ES			= "es";

	/**
	 * Mock names, TODO read from resources
	 */
	private static String		mockNamesEN[]		= { "<NAME>", "<NAME>", "<NAME>", "<NAME>",
			"<NAME>", "Catherine", "<NAME>", "<NAME>", "<NAME>" };
	private static String		mockNamesES[]		= { "<NAME>", "<NAME>",
			"<NAME>", "<NAME>", "<NAME>", "<NAME>",
			"<NAME>"					};
	private static String		mockNamesFR[]		= { "<NAME>", "<NAME>", "<NAME>",
			"<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>" };

	/**
	 * mock profile images
	 */
	private static int			mockProfileImages[]	= { R.drawable.profile_icon_1, R.drawable.profile_icon_2,
			R.drawable.profile_icon_3, R.drawable.profile_icon_4, R.drawable.profile_icon_5, R.drawable.profile_icon_6,
			R.drawable.profile_icon_1, R.drawable.profile_icon_5, R.drawable.profile_icon_3};

	/**
	 * Returns a mock contact
	 * 
	 * @param resource
	 * @return
	 */
	public static ContactVo getMockContact() {
		ContactVo contactVo = new ContactVo();

		// Create the phone number list and add one
		ArrayList<PhoneNumberVo> phoneNumbersList = new ArrayList<PhoneNumberVo>();
		PhoneNumberVo numberVo = new PhoneNumberVo();
		numberVo.setPhoneNumber("87 7781 6267");
		phoneNumbersList.add(numberVo);

		numberVo = new PhoneNumberVo();
		numberVo.setPhoneNumber("86 2343 6789");
		phoneNumbersList.add(numberVo);

		Random random = new Random();
		int randomVal = random.nextInt(mockNamesEN.length);
		String randomName = mockNamesEN[randomVal];

		// set mock details for this contact
{'fraction_non_alphanumeric': 0.1547741273100616, 'fraction_numerical': 0.014117043121149897, 'mean_word_length': 4.527659574468085, 'pattern_counts': {'":': 0, '<': 53, '<?xml version=': 0, '>': 53, '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': '2372837', 'n_tokens_mistral': 1385, 'n_tokens_neox': 1238, 'n_words': 303}