<commit_before><?php defined('BX_DOL') or die('hack attempt');
/**
 * Copyright (c) UNA, Inc - https://una.io
 * MIT License - https://opensource.org/licenses/MIT
 *
 * @defgroup    FontAwesome Font Awesome Pro integration
 * @ingroup     UnaModules
 *
 * @{
 */

class BxFontAwesomeModule extends BxDolModule
{
    function __construct(&$aModule)
    {
        parent::__construct($aModule);
    }

    public function serviceSwitchLightFont($bEnable)
    {
        $this->_oDb->switchLightFont($bEnable);
        BxDolCacheUtilities::getInstance()->clear('css');
    }
}

/** @} */<commit_msg>#1432 FontAwesome Pro: css cache isn't cleared when switching to/from light icons<commit_after><?php defined('BX_DOL') or die('hack attempt');
/**
 * Copyright (c) UNA, Inc - https://una.io
 * MIT License - https://opensource.org/licenses/MIT
 *
 * @defgroup    FontAwesome Font Awesome Pro integration
 * @ingroup     UnaModules
 *
 * @{
 */

class BxFontAwesomeModule extends BxDolModule
{
    function __construct(&$aModule)
    {
        parent::__construct($aModule);
    }

    public function serviceSwitchLightFont($bEnable)
    {
        $this->_oDb->switchLightFont($bEnable);
        BxDolCacheUtilities::getInstance()->clear('css');
        BxDolCacheUtilities::getInstance()->clear('db');
    }
}

/** @} */
{'fraction_non_alphanumeric': 0.14980988593155894, 'fraction_numerical': 0.003041825095057034, 'mean_word_length': 3.461016949152542, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 10, 'https://': 4, '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': '7318401', 'n_tokens_mistral': 417, 'n_tokens_neox': 412, 'n_words': 78}