<commit_before><?php
/*
 * This file is part of the e-Spectacles API package.
 * (c) 2011-2012 <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

//include_once 'eSpectacleApiData.class.php';

/**
 * eSpectaclesApiGet offers convenience methods to call the eSpectacles API (function GET) :
 * - generates HTML request
 * - parses the response
 * - manages a cache process (requires a directory with write permission)
 * - offers easy access to the XML fields
 * 
 * @package	eSpectaclesApi
 * @author	<NAME> <<EMAIL>>
 */
//namespace eSpectacle\eSpectacleApi;;

class eSpectacleApiGet
{
	public $object;
	public $id;
	public $key;
	
	public $cacheOn		= false;	// Active the cache
	public $cachePath	= '';		// Path to the Cache directory
	public $cacheDelay	= 86400;	// Delay to the next loading
	
	public $datas;
	public $errors;
	
	/**
	 * Constructor
	 * @param string $object	e-Spectacles API key
	 * @param string $object	object's name
	 * @param integer $id		object's unique id
	 * @return void
	 */
	public function __construct($key, $object, $id)
	{
		$this->object = $object;<commit_msg>namespace<commit_after><?php
/*
 * This file is part of the e-Spectacles API package.
 * (c) 2011-2012 <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

//include_once 'eSpectacleApiData.class.php';

/**
 * eSpectaclesApiGet offers convenience methods to call the eSpectacles API (function GET) :
 * - generates HTML request
 * - parses the response
 * - manages a cache process (requires a directory with write permission)
 * - offers easy access to the XML fields
 * 
 * @package	eSpectaclesApi
 * @author	<NAME> <<EMAIL>>
 */
namespace eSpectacle\eSpectacleApi;

class eSpectacleApiGet
{
	public $object;
	public $id;
	public $key;
	
	public $cacheOn		= false;	// Active the cache
	public $cachePath	= '';		// Path to the Cache directory
	public $cacheDelay	= 86400;	// Delay to the next loading
	
	public $datas;
	public $errors;
	
	/**
	 * Constructor
	 * @param string $object	e-Spectacles API key
	 * @param string $object	object's name
	 * @param integer $id		object's unique id
	 * @return void
	 */
	public function __construct($key, $object, $id)
	{
		$this->object = $object;
{'fraction_non_alphanumeric': 0.10859538784067085, 'fraction_numerical': 0.01090146750524109, 'mean_word_length': 3.6692759295499022, 'pattern_counts': {'":': 0, '<': 17, '<?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': '1052690', 'n_tokens_mistral': 796, 'n_tokens_neox': 720, 'n_words': 271}