<commit_before><?php
namespace CLMVC\Helpers;
/**
 * Class Http
 */
class Http {
    /**
     * Retrieve the user agent from request
     * @return string
     */
    public static function get_useragent(){
		return htmlspecialchars(strip_tags($_SERVER['HTTP_USER_AGENT']));
	}

    /**
     * Retrieve the requesting domain
     * @return string
     */
    public static function get_request_domain(){
		if(isset($_SERVER['HTTP_REFERER'])){
   		$parseUrl = parse_url(trim($_SERVER['HTTP_REFERER']));
		$domain=trim($parseUrl['host'] ? $parseUrl['host'] : array_shift(explode('/', $parseUrl['path'], 2)));
		}
   		if(empty($domain))
   			$domain=trim($_SERVER['HTTP_HOST']);
		$domain=strtolower($domain);
		return $domain;<commit_msg>fix function call with reference<commit_after><?php
namespace CLMVC\Helpers;
/**
 * Class Http
 */
class Http {
    /**
     * Retrieve the user agent from request
     * @return string
     */
    public static function get_useragent(){
		return htmlspecialchars(strip_tags($_SERVER['HTTP_USER_AGENT']));
	}

    /**
     * Retrieve the requesting domain
     * @return string
     */
    public static function get_request_domain(){
		if(isset($_SERVER['HTTP_REFERER'])){
	   		$parseUrl = parse_url(trim($_SERVER['HTTP_REFERER']));
			$temp=explode('/', $parseUrl['path'], 2);
			$domain=trim($parseUrl['host'] ? $parseUrl['host'] : array_shift($temp));
		}
   		if(empty($domain))
   			$domain=trim($_SERVER['HTTP_HOST']);
		$domain=strtolower($domain);
		return $domain;
{'fraction_non_alphanumeric': 0.16633663366336635, 'fraction_numerical': 0.0013201320132013201, 'mean_word_length': 4.003300330033003, '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': '5483262', 'n_tokens_mistral': 506, 'n_tokens_neox': 484, 'n_words': 92}