<commit_before>import ckan.plugins as p

def sysadmin(context, data_dict):
    return {'success':  False}

def org_admin(context, data_dict):
    return p.toolkit.check_access('group_update', context, data_dict)

def anyone(context, data_dict):
    return {'success': True}

if p.toolkit.check_ckan_version(min_version='2.2'):
    anyone = p.toolkit.auth_allow_anonymous_access(anyone)


pages_show = anyone
pages_update = org_admin
pages_delete = org_admin
pages_list = org_admin<commit_msg>Set auth functions for subdashboards<commit_after>import ckan.plugins as p

def sysadmin(context, data_dict):
    return {'success':  False}

def org_admin(context, data_dict):
    return p.toolkit.check_access('group_update', context, data_dict)

def anyone(context, data_dict):
    return {'success': True}

if p.toolkit.check_ckan_version(min_version='2.2'):
    anyone = p.toolkit.auth_allow_anonymous_access(anyone)


pages_show = anyone
pages_update = org_admin
pages_delete = org_admin
pages_list = anyone

subdashboards_show = anyone
subdashboards_update = org_admin
subdashboards_delete = org_admin
subdashboards_list = anyone
{'fraction_non_alphanumeric': 0.09582963620230701, 'fraction_numerical': 0.00354924578527063, 'mean_word_length': 6.139240506329114, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5418093', 'n_tokens_mistral': 374, 'n_tokens_neox': 373, 'n_words': 81}