<commit_before><?php

/**
 * Created by PhpStorm.
 * User: <NAME>
 */
class GluuOxd_Openid_Helper_Data extends Mage_Core_Helper_Abstract
{
    /**
     * Displaying message
     * @return string
     */
    public function displayMessage($message, $type) {
        Mage::getSingleton ( 'core/session' )->getMessages ( true );
        if (strcasecmp ( $type, "SUCCESS" ) == 0)
            Mage::getSingleton ( 'core/session' )->addSuccess ( $message );
        else if (strcasecmp ( $type, "ERROR" ) == 0)
            Mage::getSingleton ( 'core/session' )->addError ( $message );
        else if (strcasecmp ( $type, "NOTICE" ) == 0)
            Mage::getSingleton ( 'core/session' )->addNotice ( $message );
        else
            Mage::getSingleton ( 'core/session' )->addWarning ( $message );
    }

}<commit_msg>checking config and getting result<commit_after><?php

/**
 * Created by PhpStorm.
 * User: <NAME>
 */
class GluuOxd_Openid_Helper_Data extends Mage_Core_Helper_Abstract
{
    /**
     * displaying message
     * @return string
     */
    public function displayMessage($message, $type) {
        Mage::getSingleton ( 'core/session' )->getMessages ( true );
        if (strcasecmp ( $type, "SUCCESS" ) == 0)
            Mage::getSingleton ( 'core/session' )->addSuccess ( $message );
        else if (strcasecmp ( $type, "ERROR" ) == 0)
            Mage::getSingleton ( 'core/session' )->addError ( $message );
        else if (strcasecmp ( $type, "NOTICE" ) == 0)
            Mage::getSingleton ( 'core/session' )->addNotice ( $message );
        else
            Mage::getSingleton ( 'core/session' )->addWarning ( $message );
    }

    /**
     * checking config and getting result
     * @return array or string
     */
    function getConfig($config, $id) {
        foreach(unserialize(Mage::getStoreConfig ( 'gluu/oxd/oxd_openid_custom_scripts' )) as $custom_script){
            if ($config == $custom_script['value'].'Enable') {
                return Mage::getStoreConfig ( 'GluuOxd/Openid/'.$custom_script['value'].'Enable' );

            }
        }
        switch ($config) {
            case 'loginTheme' :
                $result = Mage::getStoreConfig ( 'GluuOxd/Openid/loginTheme' );
                break;
            case 'loginCustomTheme' :
                $result = Mage::getStoreConfig ( 'GluuOxd/Openid/loginCustomTheme' );
                break;
            case 'iconSpace' :
                $result = Mage::getStoreConfig ( 'GluuOxd/Openid/iconSpace' );
                break;
            case 'iconCustomSize' :
                $result = Mage::getStoreConfig ( 'GluuOxd/Openid/iconCustomSize' );
                break;
            case 'iconCustomWidth' :
                $result = Mage::getStoreConfig ( 'GluuOxd/Openid/iconCustomWidth' );
                break;
            case 'iconCustomHeight' :
                $result = Mage::getStoreConfig ( 'GluuOxd/Openid/iconCustomHeight' );
                break;
            case 'iconCustomColor' :
                $result = Mage::getStoreConfig ( 'GluuOxd/Openid/iconCustomColor' );
                break;
            default :
                return;
                break;
        }
        return $result;
    }
}
{'fraction_non_alphanumeric': 0.13445378151260504, 'fraction_numerical': 0.0018674136321195146, 'mean_word_length': 2.043560606060606, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 15, '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': '4733194', 'n_tokens_mistral': 977, 'n_tokens_neox': 939, 'n_words': 187}