<commit_before><?php
/**
 * User: <NAME> <<EMAIL>>
 * Date: 29.07.15
 * Time: 17:57
 * Project: sandbox
 */<commit_msg>allowed and is_guest functions added<commit_after><?php
/**
 * User: <NAME> <<EMAIL>>
 * Date: 29.07.15
 * Time: 17:57
 * Project: sandbox
 */

function allowed($sAction = null,$sRole = null) {
    return \Helper::allowed($sAction, $sRole);
}

/**
 * to check user is a guest
 *
 * @return bool
 */
function is_guest() {
    return !\Auth::check();
}
{'fraction_non_alphanumeric': 0.19616204690831557, 'fraction_numerical': 0.042643923240938165, 'mean_word_length': 3.6534653465346536, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 9, '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': '6063310', 'n_tokens_mistral': 186, 'n_tokens_neox': 173, 'n_words': 43}