<commit_before><?php
/**
 * Piwik - free/libre analytics platform
 *
 * For more information, see README.md
 *
 * @license released under BSD License http://www.opensource.org/licenses/bsd-license.php
 * @link http://piwik.org/docs/tracking-api/
 *
 * @category Piwik
 * @package PiwikTracker
 */

/**
 * PiwikTracker implements the Piwik Tracking Web API.
 *
 * For more information, see README.md
 *
 * @package PiwikTracker
 * @api
 */
class PiwikTracker
{
    /**
     * Piwik base URL, for example http://example.org/piwik/
     * Must be set before using the class by calling
     * PiwikTracker::$URL = 'http://yourwebsite.org/piwik/';
     *
     * @var string
     */
    static public $URL = '';

    /**
     * API Version
     *
     * @ignore
     * @var int
     */
    const VERSION = 1;

    /**
     * @ignore
     */
    public $DEBUG_APPEND_URL = '';

    /**
     * Visitor ID length
     *
     * @ignore
     */
    const LENGTH_VISITOR_ID = 16;

    /**
     * Charset
     * @see setPageCharset
     * @ignore
     */
    const DEFAULT_CHARSET_PARAMETER_VALUES = 'utf-8';

    /**
     * See piwik.js
     */
    const FIRST_PARTY_COOKIES_PREFIX = '_pk_';

    /**
     * Ecommerce item page view tracking stores item's metadata in these Custom Variables slots.
     */
    const CVAR_INDEX_ECOMMERCE_ITEM_PRICE = 2;
    const CVAR_INDEX_ECOMMERCE_ITEM_SKU = 3;
    const CVAR_INDEX_ECOMMERCE_ITEM_NAME = 4;
    const CVAR_INDEX_ECOMMERCE_ITEM_CATEGORY = 5;

    const DEFAULT_COOKIE_PATH = '/';

    /**
     * Builds a PiwikTracker object, used to track visits, pages and Goal conversions
     * for a specific website, by using the Piwik Tracking API.
     *
     * @param int $idSite Id site to be tracked
     * @param string $apiUrl "http://example.org/piwik/" or "http://piwik.example.org/"
     *                         If set, will overwrite PiwikTracker::$URL
     */
    public function __construct($idSite, $apiUrl = '')
    {
        $this->ecommerceItems = array();
        $this->attributionInfo = false;
        $this->eventCustomVar = false;<commit_msg>New const for number of max categories (#22)<commit_after><?php
/**
 * Piwik - free/libre analytics platform
 *
 * For more information, see README.md
 *
 * @license released under BSD License http://www.opensource.org/licenses/bsd-license.php
 * @link http://piwik.org/docs/tracking-api/
 *
 * @category Piwik
 * @package PiwikTracker
 */

/**
 * PiwikTracker implements the Piwik Tracking Web API.
 *
 * For more information, see README.md
 *
 * @package PiwikTracker
 * @api
 */
class PiwikTracker
{
    /**
     * Piwik base URL, for example http://example.org/piwik/
     * Must be set before using the class by calling
     * PiwikTracker::$URL = 'http://yourwebsite.org/piwik/';
     *
     * @var string
     */
    static public $URL = '';

    /**
     * API Version
     *
     * @ignore
     * @var int
     */
    const VERSION = 1;

    /**
     * @ignore
     */
    public $DEBUG_APPEND_URL = '';

    /**
     * Visitor ID length
     *
     * @ignore
     */
    const LENGTH_VISITOR_ID = 16;

    /**
     * Charset
     * @see setPageCharset
     * @ignore
     */
    const DEFAULT_CHARSET_PARAMETER_VALUES = 'utf-8';

    /**
     * See piwik.js
     */
    const FIRST_PARTY_COOKIES_PREFIX = '_pk_';

    /**
     * Ecommerce item page view tracking stores item's metadata in these Custom Variables slots.
     */
    const CVAR_INDEX_ECOMMERCE_ITEM_PRICE = 2;
    const CVAR_INDEX_ECOMMERCE_ITEM_SKU = 3;
    const CVAR_INDEX_ECOMMERCE_ITEM_NAME = 4;
    const CVAR_INDEX_ECOMMERCE_ITEM_CATEGORY = 5;

    /**
     * Defines how many categories can be used max when calling addEcommerceItem().
     * @var int
     */
    const MAX_NUM_ECOMMERCE_ITEM_CATEGORIES = 5;

    const DEFAULT_COOKIE_PATH = '/';

    /**
     * Builds a PiwikTracker object, used to track visits, pages and Goal conversions
     * for a specific website, by using the Piwik Tracking API.
     *
     * @param int $idSite Id site to be tracked
     * @param string $apiUrl "http://example.org/piwik/" or "http://piwik.example.org/"
     *                         If set, will overwrite PiwikTracker::$URL
     */
    public function __construct($idSite, $apiUrl = '')
    {
        $this->ecommerceItems = array();
        $this->attributionInfo = false;
        $this->eventCustomVar = false;
{'fraction_non_alphanumeric': 0.11534077957602006, 'fraction_numerical': 0.004330977889218144, 'mean_word_length': 2.3042168674698793, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1627083', 'n_tokens_mistral': 1473, 'n_tokens_neox': 1402, 'n_words': 360}