<commit_before><?php
namespace Simox;

class Request extends SimoxServiceBase
{
    public function __construct() {}
    
	public function isPost()
	{
		if ($_SERVER["REQUEST_METHOD"] == "POST")
		{
			return true;
		}
		else
		{
			return false;
		}
	}
	
	public function getPost( $var )
	{
		if ( isset($_POST[$var]) )
		{
			return $_POST[$var];
		}
		else
		{
			return false;
		}
	}
}<commit_msg>Add getServer<commit_after><?php
namespace Simox;

class Request extends SimoxServiceBase
{
    public function __construct() {}
    
	public function isPost()
	{
		if ($_SERVER["REQUEST_METHOD"] == "POST")
		{
			return true;
		}
		else
		{
			return false;
		}
	}
	
	public function getPost( $name )
	{
		if ( isset($_POST[$name]) )
		{
			return $_POST[$name];
		}
		else
		{
			return false;
		}
	}
    
    public function getServer( $name )
    {
		if ( isset($_SERVER[$name]) )
		{
			return $_SERVER[$name];
		}
		else
		{
			return false;
		}
    }
}
{'fraction_non_alphanumeric': 0.140625, 'fraction_numerical': 0.0, 'mean_word_length': 2.6264150943396225, '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': '2797478', 'n_tokens_mistral': 404, 'n_tokens_neox': 353, 'n_words': 76}