<commit_before><?php namespace System;

class Input {

	/**
	 * The input data for the request.
	 *
	 * @var array
	 */
	public static $input;

	/**
	 * Determine if the input data contains an item.
	 *
	 * @param  string  $key
	 * @return bool
	 */
	public static function has($key)
	{
		return ( ! is_null(static::get($key)));
	}

	/**
	 * Get an item from the input data.
	 *
	 * @param  string  $key<commit_msg>Tweaked Input::has method to accept multiple arguments and to return false if an argument is an empty string.<commit_after><?php namespace System;

class Input {

	/**
	 * The input data for the request.
	 *
	 * @var array
	 */
	public static $input;

	/**
	 * Determine if the input data contains an item or set of items.
	 *
	 * @return bool
	 */
	public static function has()
	{
		foreach (func_get_args() as $key)
		{
			if (is_null($value = static::get($key)) or trim((string) $value) == '')
			{
				return false;
			}
		}

		return true;
	}

	/**
	 * Get an item from the input data.
	 *
	 * @param  string  $key
{'fraction_non_alphanumeric': 0.1286266924564797, 'fraction_numerical': 0.0, 'mean_word_length': 2.723021582733813, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3900295', 'n_tokens_mistral': 370, 'n_tokens_neox': 325, 'n_words': 119}