<commit_before>{% extends "organization/edit_base.html" %}
{% set action_url = h.url_for('') %}
{% set cancel_url = h.url_for('') %}
{% set user = c.userobj %}
{% set org = c.group_dict %}
{% set form_info = h.yammer_config(user.id + "." + org.id) or {}%}
{% set yammerid = h.get_yammer_clientid() %}


{% import 'macros/form.html' as form %}
{{ config }}
{% block subtitle %}{{ _('Yammer Coinfiguration') }} - {{ super() }}{% endblock %}

{% block primary_content_inner %}

{% block yammer_configuration %}
{% if organization and h.check_access('organization_update', {'id': c.id}) %}
    <h3>Yammer configuration options </h3>
    <script type="text/javascript" data-app-id="{{ yammerid }}" src="https://c64.assets-yammer.com/assets/platform_js_sdk.js"></script>

    <span id="yammer-login"></span>
    <script>
    var form
    //add the yammer login button to the manage orgs page
    yam.connect.loginButton('#yammer-login', function (resp) {
        if (resp.authResponse) {
            document.getElementById('yammer-login').innerHTML = 'You are authenticated to Yammer!';
            document.getElementById('field-ckanext.yammer.token').value = resp.access_token.token;

        }
        else {
            //authResponse = false if the user is not logged in, or is logged in but hasn't authorized your app yet
            alert("You are not logged into yammer and we cannot get an access token for Organization posting to " +
                "Yammer groups. If there is not one in the Yammer token file you must re-authenticate to get a new one and save");
        }
    });
<commit_msg>fixed spelling error<commit_after>{% extends "organization/edit_base.html" %}
{% set action_url = h.url_for('') %}
{% set cancel_url = h.url_for('') %}
{% set user = c.userobj %}
{% set org = c.group_dict %}
{% set form_info = h.yammer_config(user.id + "." + org.id) or {}%}
{% set yammerid = h.get_yammer_clientid() %}


{% import 'macros/form.html' as form %}
{{ config }}
{% block subtitle %}{{ _('Yammer Configuration') }} - {{ super() }}{% endblock %}

{% block primary_content_inner %}

{% block yammer_configuration %}
{% if organization and h.check_access('organization_update', {'id': c.id}) %}
    <h3>Yammer configuration options </h3>
    <script type="text/javascript" data-app-id="{{ yammerid }}" src="https://c64.assets-yammer.com/assets/platform_js_sdk.js"></script>

    <span id="yammer-login"></span>
    <script>
    var form
    //add the yammer login button to the manage orgs page
    yam.connect.loginButton('#yammer-login', function (resp) {
        if (resp.authResponse) {
            document.getElementById('yammer-login').innerHTML = 'You are authenticated to Yammer!';
            document.getElementById('field-ckanext.yammer.token').value = resp.access_token.token;

        }
        else {
            //authResponse = false if the user is not logged in, or is logged in but hasn't authorized your app yet
            alert("You are not logged into yammer and we cannot get an access token for Organization posting to " +
                "Yammer groups. If there is not one in the Yammer token file you must re-authenticate to get a new one and save");
        }
    });

{'fraction_non_alphanumeric': 0.1472239550842171, 'fraction_numerical': 0.002495321272613849, 'mean_word_length': 3.247682119205298, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 2, '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': '10939', 'n_tokens_mistral': 1057, 'n_tokens_neox': 988, 'n_words': 284}