<commit_before>{% extends "base.html" %}

{% block content %}

    <p>This is the home page</p>


    <p>Want to be one of Kyle's Kids?</p>
    <div id="fb-root"><!-- required for facebook --></div>
    <fb:login-button show-faces="true" width="200" max-rows="1"></fb:login-button>
{% endblock %}

{% block js %}
<script>
    window.fbAsyncInit = function() {
        FB.init({
            appId: {{ fb_app_id }},
            status: true,
            cookie: true,
            xfbml: true
        });

        FB.Event.subscribe('auth.authResponseChange', function(response) {
            if(response.status === 'connected') {
                // They are connected.
            } else if (response.status === 'not_authorized') {
                // They are not authorized the app, but they are logged into FB
            } else {
                // Not logged into Facebook

            }
        });
    };

    var login_user = function() {
        // Fetch their FB info<commit_msg>I totally meant to add that before<commit_after>{% extends "base.html" %}

{% block content %}

    <p>This is the home page</p>


    <p>Want to be one of Kyle's Kids?</p>
    <div id="fb-root"><!-- required for facebook --></div>
    <fb:login-button show-faces="true" width="200" max-rows="1"></fb:login-button>
{% endblock %}

{% block js %}
<script>
    window.fbAsyncInit = function() {
        FB.init({
            appId: {{ fb_app_id }},
            status: true,
            cookie: true,
            xfbml: true
        });

        FB.Event.subscribe('auth.authResponseChange', function(response) {
            if(response.status === 'connected') {
                // They are connected.
                login_user();
            } else if (response.status === 'not_authorized') {
                // They are not authorized the app, but they are logged into FB
            } else {
                // Not logged into Facebook

            }
        });
    };

    var login_user = function() {
        // Fetch their FB info
{'fraction_non_alphanumeric': 0.14483440434997527, 'fraction_numerical': 0.003954522985664854, 'mean_word_length': 1.7574931880108993, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, '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': '7419391', 'n_tokens_mistral': 618, 'n_tokens_neox': 564, 'n_words': 160}