<commit_before>{% extends 'app/base.html' %}

{% load i18n %}

{% block script %}
    <style>
        div.my-hidden {
            display: none;
        }
    </style>
    <script type="text/javascript">
        function startConnect(){
            FB.login(function(response) {
                if (response.authResponse) {
                    window.location = window.location + 'app/login_fb' +
                            '?access_token=' + response.authResponse.accessToken +
                            '&expires=' + response.authResponse.expiresIn +
                            '&signed_request=' + response.authResponse.signedRequest +
                            '&user_id=' + response.authResponse.userID;
                } else {
                    checkStatusCallback(response);
                }
            }, {scope: 'public_profile,email,publish_actions,user_friends'})
        };
        function checkStatusCallback(response) {
            if (response.status === 'connected') {
                $.ajax({
                    url: window.location + 'app/check_user' + '?user_id=' + response.authResponse.userID,
                    success: function(result) {
                        if (result) {
                            document.getElementById('button').style.display = 'block';
                            document.getElementById('pushing-msg').style.display= 'block';
                            document.getElementById('status').className = 'alert alert-info';
                            document.getElementById('status').style.display = 'block';
                            document.getElementById('status').innerHTML = result;
                        }
                    }
                });
            } else if (response.status === 'not_authorized') {
                // The person is logged into Facebook, but not your app.
                document.getElementById('button').style.display = 'block';
                document.getElementById('pushing-msg').style.display = 'block';<commit_msg>Fix a bug in the display of the logging button<commit_after>{% extends 'app/base.html' %}

{% load i18n %}

{% block script %}
    <style>
        div.my-hidden {
            display: none;
        }
    </style>
    <script type="text/javascript">
        function startConnect(){
            FB.login(function(response) {
                if (response.authResponse) {
                    window.location = window.location + 'app/login_fb' +
                            '?access_token=' + response.authResponse.accessToken +
                            '&expires=' + response.authResponse.expiresIn +
                            '&signed_request=' + response.authResponse.signedRequest +
                            '&user_id=' + response.authResponse.userID;
                } else {
                    checkStatusCallback(response);
                }
            }, {scope: 'public_profile,email,publish_actions,user_friends'})
        };
        function checkStatusCallback(response) {
            if (response.status === 'connected') {
                $.ajax({
                    url: window.location + 'app/check_user' + '?user_id=' + response.authResponse.userID,
                    success: function(result) {
                        if (result) {
                            document.getElementById('button').style.display = 'block';
                            document.getElementById('pushing-msg').style.display= 'block';
                            document.getElementById('status').className = 'alert alert-info';
                            document.getElementById('status').style.display = 'block';
                            document.getElementById('status').innerHTML = result;
                        } else {
                            document.getElementById('button').style.display = 'block';
                            document.getElementById('pushing-msg').style.display= 'block';
                            document.getElementById('status').style.display = 'none';
                        }
                    }
                });
            } else if (response.status === 'not_authorized') {
                // The person is logged into Facebook, but not your app.
                document.getElementById('button').style.display = 'block';
                document.getElementById('pushing-msg').style.display = 'block';
{'fraction_non_alphanumeric': 0.1178082191780822, 'fraction_numerical': 0.0009132420091324201, 'mean_word_length': 1.4765404183154325, 'pattern_counts': {'":': 0, '<': 9, '<?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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2617220', 'n_tokens_mistral': 1023, 'n_tokens_neox': 973, 'n_words': 171}