<commit_before><?php
namespace Core\Lib\Http;

/**
 * Class handles cookie related stuff
 *
 * @author Michael "Tekkla" Zorn <<EMAIL>
 * @copyright 2014 by author
 * @version 1.0.0
 * @license MIT
 */
class Cookie
{

	/**
	 * Cookie name
	 *
	 * @var string
	 */
	private $name = '';

	/**
	 * Cookie value
	 *
	 * @var mixed
	 */
	private $value = '';

	/**
	 * Days after cookie expires
	 *
	 * @var int
	 */
	private $expire = 0;

	/**
	 * Path parameter
	 *
	 * @var string
	 */
	private $path = '/';

	/**
	 * Domain
	 *
	 * @var string
	 */
	private $domain = '';

	/**
	 * Secure flag
	 *
	 * @var boolean
	 */
	private $secure = false;

	/**
	 * Httponly flag
	 *
	 * @var boolean
	 */
	private $httponly = false;

	public function __construct()
	{}

	/**
	 * Returns cookie name
	 *
	 * @return the $name
	 */
	public function getName()
	{
		return $this->name;
	}

	/**
	 * Returns cookie value
	 *
	 * @return the $value
	 */
	public function getValue()
	{
		return $this->value;
	}

	/**
	 * Returns cookie expire time
	 *
	 * @return the $expire
	 */
	public function getExpire()
	{
		return $this->expire;
	}
<commit_msg>Implements getInstance() factory method<commit_after><?php
namespace Core\Lib\Http;

/**
 * Class handles cookie related stuff
 *
 * @author Michael "Tekkla" Zorn <<EMAIL>
 * @copyright 2014 by author
 * @version 1.0.0
 * @license MIT
 */
class Cookie
{

	/**
	 * Cookie name
	 *
	 * @var string
	 */
	private $name = '';

	/**
	 * Cookie value
	 *
	 * @var mixed
	 */
	private $value = '';

	/**
	 * Days after cookie expires
	 *
	 * @var int
	 */
	private $expire = 0;

	/**
	 * Path parameter
	 *
	 * @var string
	 */
	private $path = '/';

	/**
	 * Domain
	 *
	 * @var string
	 */
	private $domain = '';

	/**
	 * Secure flag
	 *
	 * @var boolean
	 */
	private $secure = false;

	/**
	 * Httponly flag
	 *
	 * @var boolean
	 */
	private $httponly = false;

	public function __construct()
	{}

	/**
	 * Creates new instance
	 *
	 * @return Cookie
	 */
	public function getInstance()
	{
	    return new self;
	}

	/**
	 * Returns cookie name
	 *
	 * @return the $name
	 */
	public function getName()
	{
		return $this->name;
	}

	/**
	 * Returns cookie value
	 *
	 * @return the $value
	 */
	public function getValue()
	{
		return $this->value;
	}

	/**
	 * Returns cookie expire time
	 *
	 * @return the $expire
	 */
	public function getExpire()
	{
		return $this->expire;
	}

{'fraction_non_alphanumeric': 0.15741507870753935, 'fraction_numerical': 0.006628003314001657, 'mean_word_length': 2.290190735694823, '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': '6476860', 'n_tokens_mistral': 946, 'n_tokens_neox': 800, 'n_words': 226}