<commit_before><?php

/**
 * Valdecode - Cookie Law Compliance
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the The MIT License (MIT)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://www.valdecode.com/license/cookielaw/license.txt
 *
 * @category    Valdecode
 * @package     Valdecode_CookieLaw
 * @copyright   Copyright (c) 2014 Valdecode
 * @license     http://www.valdecode.com/license/cookielaw/license.txt  The MIT License (MIT)
 */
class Valdecode_CookieLaw_Helper_Data extends Mage_Core_Helper_Abstract
{
    public function isActive()
    {
        return !Mage::getStoreConfig('advanced/modules_disable_output/Valdecode_CookieLaw');
    }

    public function getType()
    {
        return Mage::getStoreConfig('cookielaw/general/type');
    }

    public function getBarPosition()
    {
        return Mage::getStoreConfig('cookielaw/general/bar_position');
    }

    public function getBoxPosition()
    {
        return Mage::getStoreConfig('cookielaw/general/box_position');
    }

    public function getSkin()
    {
        return Mage::getStoreConfig('cookielaw/general/skin');
    }

    public function getBehaviour()
    {
        return Mage::getStoreConfig('cookielaw/general/behaviour');
    }

    public function getAutohide()
    {
        return Mage::getStoreConfig('cookielaw/general/autohide');
    }

    public function getCmsPage()
    {
        return Mage::getUrl(Mage::getStoreConfig('cookielaw/content/cms_page'));
    }

    public function getShow()
    {
        return Mage::getStoreConfig('cookielaw/content/show');
    }

    public function getCustomMessage()
    {
        return Mage::getStoreConfig('cookielaw/content/custom_message');
    }

    public function getCustomMoreInfo()
    {
        return Mage::getStoreConfig('cookielaw/content/custom_more_info');
    }

    public function getCustomAccept()
    {
        return Mage::getStoreConfig('cookielaw/content/custom_accept');
    }
}<commit_msg>Fix multistore privacy polity CMS page.<commit_after><?php

/**
 * Valdecode - Cookie Law Compliance
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the The MIT License (MIT)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://www.valdecode.com/license/cookielaw/license.txt
 *
 * @category    Valdecode
 * @package     Valdecode_CookieLaw
 * @copyright   Copyright (c) 2014 Valdecode
 * @license     http://www.valdecode.com/license/cookielaw/license.txt  The MIT License (MIT)
 */
class Valdecode_CookieLaw_Helper_Data extends Mage_Core_Helper_Abstract
{
    public function isActive()
    {
        return !Mage::getStoreConfig('advanced/modules_disable_output/Valdecode_CookieLaw');
    }

    public function getType()
    {
        return Mage::getStoreConfig('cookielaw/general/type');
    }

    public function getBarPosition()
    {
        return Mage::getStoreConfig('cookielaw/general/bar_position');
    }

    public function getBoxPosition()
    {
        return Mage::getStoreConfig('cookielaw/general/box_position');
    }

    public function getSkin()
    {
        return Mage::getStoreConfig('cookielaw/general/skin');
    }

    public function getBehaviour()
    {
        return Mage::getStoreConfig('cookielaw/general/behaviour');
    }

    public function getAutohide()
    {
        return Mage::getStoreConfig('cookielaw/general/autohide');
    }

    public function getCmsPage()
    {
        $pageId = Mage::getStoreConfig('cookielaw/content/cms_page');
        $delimeterPosition = strrpos($pageId, '|');
        if ($delimeterPosition) {
            $pageId = substr($pageId, 0, $delimeterPosition);
        }
         
        return Mage::getUrl($pageId);
    }

    public function getShow()
    {
        return Mage::getStoreConfig('cookielaw/content/show');
    }

    public function getCustomMessage()
    {
        return Mage::getStoreConfig('cookielaw/content/custom_message');
    }

    public function getCustomMoreInfo()
    {
        return Mage::getStoreConfig('cookielaw/content/custom_more_info');
    }

    public function getCustomAccept()
    {
        return Mage::getStoreConfig('cookielaw/content/custom_accept');
    }
}
{'fraction_non_alphanumeric': 0.10813926677426793, 'fraction_numerical': 0.0020751671662439476, 'mean_word_length': 3.127497621313035, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '6982971', 'n_tokens_mistral': 1315, 'n_tokens_neox': 1238, 'n_words': 253}