<commit_before><?php
/**
 * Pimf
 *
 * PHP Version 5
 *
 * LICENSE
 *
 * This source file is subject to the new BSD license that is bundled
 * with this package in the file LICENSE.
 * It is also available through the world-wide-web at this URL:
 * http://krsteski.de/new-bsd-license/
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to <EMAIL> so we can send you a copy immediately.
 *
 * @copyright Copyright (c)  <NAME> (http://krsteski.de)
 * @license http://krsteski.de/new-bsd-license New BSD License
 */

namespace Pimf;
use Pimf\Param;

/**
 * Server and execution environment information.
 *
 * @package Pimf
 * @author <NAME> <<EMAIL>>
 */
class Environment extends Sapi
{
  /**
   * @var Param
   */
  private $envData;

  /**
   * @param array $envData Like $_SERVER
   */
  public function __construct(array $envData)
  {
    $this->envData = new Param($envData);
  }

  /**
   * @return Param
   */
  public function getData()
  {
    return $this->envData;
  }

  /**
   * @param $key<commit_msg>adding a @property annotation<commit_after><?php
/**
 * Pimf
 *
 * PHP Version 5
 *
 * LICENSE
 *
 * This source file is subject to the new BSD license that is bundled
 * with this package in the file LICENSE.
 * It is also available through the world-wide-web at this URL:
 * http://krsteski.de/new-bsd-license/
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to <EMAIL> so we can send you a copy immediately.
 *
 * @copyright Copyright (c)  <NAME> (http://krsteski.de)
 * @license http://krsteski.de/new-bsd-license New BSD License
 */

namespace Pimf;
use Pimf\Param;

/**
 * Server and execution environment information.
 *
 * @package Pimf
 * @author <NAME> <<EMAIL>>
 *
 * @property string X_REQUESTED_WITH
 * @property string HTTP
 * @property string HTTPS
 * @property string SERVER_PROTOCOL
 * @property string CONTENT_LENGTH
 * @property string HOST
 * @property string SERVER_NAME
 * @property string SERVER_PORT
 * @property string PHP_SELF
 * @property string SCRIPT_NAME
 * @property string PATH_INFO
 * @property string X_FORWARDED_FOR
 * @property string CLIENT_IP
 * @property string REMOTE_ADDR
 * @property string HTTP_REFERER
 * @property string USER_AGENT
 * @property string HTTP_USER_AGENT
 * @property string REQUEST_URI
 * @property string REQUEST_METHOD
 */
class Environment extends Sapi
{
  /**
   * @var Param
   */
  private $envData;

  /**
   * @param array $envData Like $_SERVER
   */
  public function __construct(array $envData)
  {
    $this->envData = new Param($envData);
  }

  /**
   * @return Param
   */
  public function getData()
  {
    return $this->envData;
  }

  /**
   * @param $key
{'fraction_non_alphanumeric': 0.11178355286578853, 'fraction_numerical': 0.000711997152011392, 'mean_word_length': 3.2640364188163886, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 17, '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': '5253796', 'n_tokens_mistral': 910, 'n_tokens_neox': 894, 'n_words': 305}