<commit_before><?php
/**
 * @package		Nautik
 * @version		1.0-$Id$
 * @link		http://github.com/gglnx/nautik
 * @author		<NAME> <<EMAIL>>
 * @copyright	Copyright 2012, <NAME>
 *
 * Permission is hereby granted, free of charge, to any person
 * obtaining a copy of this software and associated documentation
 * files (the "Software"), to deal in the Software without
 * restriction, including without limitation the rights to use,
 * copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the
 * Software is furnished to do so, subject to the following
 * conditions:
 *
 * The above copyright notice and this permission notice shall be
 * included in all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 * OTHER DEALINGS IN THE SOFTWARE.
 */

/**
 * Declare UTF-8 and the namespace
 */
declare(encoding='UTF-8');
namespace Nautik\Action;

/**
 * Manages the response date for a request
 */
class Response {
	/**
	 * HTTP header codes
	 */
	protected static $reasons = array(
		100 => 'Continue', 'Switching Protocols',
		200 => 'OK', 'Created', 'Accepted', 'Non-Authoritative Information',
		       'No Content', 'Reset Content', 'Partial Content',
		300 => 'Multiple Choices', 'Moved Permanently', 'Found', 'See Other',
		       'Not Modified', 'Use Proxy', '(Unused)', 'Temporary Redirect',
		400 => 'Bad Request', 'Unauthorized', 'Payment Required','Forbidden', 'Not Found',
		       'Method Not Allowed', 'Not Acceptable', 'Proxy Authentication Required',
		       'Request Timeout', 'Conflict', 'Gone', 'Length Required', 'Precondition Failed',
		       'Request Entity Too Large', 'Request-URI Too Long', 'Unsupported Media Type',
		       'Requested Range Not Satisfiable', 'Expectation Failed',
		500 => 'Internal Server Error', 'Not Implemented', 'Bad Gateway', 'Service Unavailable',
		       'Gateway Timeout', 'HTTP Version Not Supported'
	);
	
	/**
	 * List of supported minetypes
	 */
	protected static $minetypes = array(
		'xml' => 'application/xml',
		'json' => 'application/javascript',
		'serialized' => 'application/vnd.php.serialized',
		'plain' => 'text/plain',
		'html' => 'text/html',
		'csv' => 'application/csv',
	);
	
	/**
	 *
	 */
	protected static $minetype = "html";
	
	/**
	 * Current HTTP status code of the document
	 */
	protected static $status = 200;<commit_msg>Add minetypes for CSS and JavaScript<commit_after><?php
/**
 * @package		Nautik
 * @version		1.0-$Id$
 * @link		http://github.com/gglnx/nautik
 * @author		<NAME> <<EMAIL>>
 * @copyright	Copyright 2012, <NAME>
 *
 * Permission is hereby granted, free of charge, to any person
 * obtaining a copy of this software and associated documentation
 * files (the "Software"), to deal in the Software without
 * restriction, including without limitation the rights to use,
 * copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the
 * Software is furnished to do so, subject to the following
 * conditions:
 *
 * The above copyright notice and this permission notice shall be
 * included in all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 * OTHER DEALINGS IN THE SOFTWARE.
 */

/**
 * Declare UTF-8 and the namespace
 */
declare(encoding='UTF-8');
namespace Nautik\Action;

/**
 * Manages the response date for a request
 */
class Response {
	/**
	 * HTTP header codes
	 */
	protected static $reasons = array(
		100 => 'Continue', 'Switching Protocols',
		200 => 'OK', 'Created', 'Accepted', 'Non-Authoritative Information',
		       'No Content', 'Reset Content', 'Partial Content',
		300 => 'Multiple Choices', 'Moved Permanently', 'Found', 'See Other',
		       'Not Modified', 'Use Proxy', '(Unused)', 'Temporary Redirect',
		400 => 'Bad Request', 'Unauthorized', 'Payment Required','Forbidden', 'Not Found',
		       'Method Not Allowed', 'Not Acceptable', 'Proxy Authentication Required',
		       'Request Timeout', 'Conflict', 'Gone', 'Length Required', 'Precondition Failed',
		       'Request Entity Too Large', 'Request-URI Too Long', 'Unsupported Media Type',
		       'Requested Range Not Satisfiable', 'Expectation Failed',
		500 => 'Internal Server Error', 'Not Implemented', 'Bad Gateway', 'Service Unavailable',
		       'Gateway Timeout', 'HTTP Version Not Supported'
	);
	
	/**
	 * List of supported minetypes
	 */
	protected static $minetypes = array(
		'xml' => 'application/xml',
		'json' => 'application/javascript',
		'serialized' => 'application/vnd.php.serialized',
		'plain' => 'text/plain',
		'html' => 'text/html',
		'csv' => 'application/csv',
		'css' => 'text/css',
		'js' => 'text/javascript'
	);
	
	/**
	 *
	 */
	protected static $minetype = "html";
	
	/**
	 * Current HTTP status code of the document
	 */
	protected static $status = 200;
{'fraction_non_alphanumeric': 0.12311733800350262, 'fraction_numerical': 0.009106830122591943, 'mean_word_length': 3.8728668941979523, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 35, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '3285649', 'n_tokens_mistral': 1728, 'n_tokens_neox': 1568, 'n_words': 652}