<commit_before>package datasources;

import java.util.ArrayList;

import models.Person;

/**
 * This class implements a simple mockup data-provider, which is of 
 * IDataSource interface type. This data-provider obtains persons dataset from 
 * following resource: Hardcoded data collection.
 * @author Nash
 */
public class MockDataProvider implements IDataSource {
	
	private final ArrayList<Person> dataCollection = new ArrayList<>();
	
	/**
	 * This constructors a mockup data collection of persons.
	 */
	public MockDataProvider() {
		this.populateDataCollection();
	}
	
	/* -----------------
	 * INTERFACE METHODS
	 * -----------------
	 */
	/**
	 * This method returns a collection of mockup persons
	 * @return persons collection 
	 */
	@Override
	public ArrayList<Person> getPersons() {
		return dataCollection;
	}
	
	/* -------------
	 * LOCAL METHODS
	 * -------------
	 */<commit_msg>Refactor: Amend Javadocs descriptions related to class & method<commit_after>package datasources;

import java.util.ArrayList;

import models.Person;

/**
 * This class implements a simple mockup data-provider, which is of 
 * IDataSource interface type. This data-provider yeilds persons dataset from 
 * following resource >> A prebuilt static data collection.
 * @author Nash
 */
public class MockDataProvider implements IDataSource {
	
	private final ArrayList<Person> dataCollection = new ArrayList<>();
	
	/**
	 * This constructors a mockup data collection of persons.
	 */
	public MockDataProvider() {
		this.populateDataCollection();
	}
	
	/* -----------------
	 * INTERFACE METHODS
	 * -----------------
	 */
	/**
	 * This method returns a static data collection of mockup persons
	 * @return persons collection 
	 */
	@Override
	public ArrayList<Person> getPersons() {
		return dataCollection;
	}
	
	/* -------------
	 * LOCAL METHODS
	 * -------------
	 */
{'fraction_non_alphanumeric': 0.14868491680085882, 'fraction_numerical': 0.0, 'mean_word_length': 2.7886178861788617, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, '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': '7542130', 'n_tokens_mistral': 520, 'n_tokens_neox': 451, 'n_words': 161}