<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 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
	 * @param  mixed   $default
	 * @return string
	 */
	public static function get($key = null, $default = null)
	{
		if (is_null(static::$input))
		{
			static::hydrate();
		}

		return static::from_array(static::$input, $key, $default);
	}

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

		return true;
	}

	/**
	 * Get input data from the previous request.
	 *
	 * @param  string  $key
	 * @param  mixed   $default
	 * @return string
	 */
	public static function old($key = null, $default = null)
	{
		if (Config::get('session.driver') == '')
		{<commit_msg>Added Input::filled, Input::had, and Input::was_filled.<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(static::get($key)))
			{
				return false;
			}
		}

		return true;
	}

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

		return true;
	}

	/**
	 * Get an item from the input data.
	 *
	 * @param  string  $key
	 * @param  mixed   $default
	 * @return string
	 */
	public static function get($key = null, $default = null)
	{
		if (is_null(static::$input))
		{
			static::hydrate();
		}

		return static::from_array(static::$input, $key, $default);
	}

	/**
	 * Determine if the old input data contains an item or set of items.
	 *
	 * @return bool
	 */
	public static function had()
	{
		foreach (func_get_args() as $key)
		{
			if (is_null(static::old($key)))
			{
				return false;
			}
		}

		return true;
	}

	/**
	 * Determine if the old input data contains an item or set of items that are not empty.
	 *
	 * @return bool
	 */
	public static function was_filled()
	{
		foreach (func_get_args() as $key)
		{
			if ( ! static::had($key) or trim((string) static::old($key)) == '')
			{
				return false;
			}
		}

		return true;
	}

	/**
	 * Get input data from the previous request.
	 *
	 * @param  string  $key
	 * @param  mixed   $default
	 * @return string
	 */
	public static function old($key = null, $default = null)
	{
		if (Config::get('session.driver') == '')
		{
{'fraction_non_alphanumeric': 0.14769900497512436, 'fraction_numerical': 0.0, 'mean_word_length': 2.701956271576525, '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': '6153459', 'n_tokens_mistral': 1246, 'n_tokens_neox': 1073, 'n_words': 335}