<commit_before>/*jslint browser: true*/
/*globals $, FB, gapi, fbLogin, setSettings, gGetEmail*/

"use strict";

function populateRentRoll(email) {
    if (email === '') {
        console.log("populateRentRoll - empty email!");
        return;
    }
    $.ajax({
        url: '/tenants',
        data: { 'email': email },
        success: function (tenants) {
            document.getElementById('tenants').innerHTML = tenants;
        }
    });
}

function gRentRoll(resp) {
    populateRentRoll(gGetEmail(resp));
}

function fbRentRoll() {
    FB.api('/me', function (response) {
        populateRentRoll(response.email);
    });
}

function rentRollNotLoggedIn() {
    window.location.href = "/submit";
    /*var signinForm = document.getElementById("signinform");
    if (signinForm == null) {
        console.log("rentRollNotLoggedIn - ERROR NO SIGNIN FORM ELEMENT");
        return;
    }
    $.ajax({
        url: '/signinform',
        success: function( form ) {
            signinForm.innerHTML = form;
        }
    });*/
}

function rentRollTemplateNotLoggedIn() {
}<commit_msg>Add blank (g, fb)RentRollTemplate js functions<commit_after>/*jslint browser: true*/
/*globals $, FB, gapi, fbLogin, setSettings, gGetEmail*/

"use strict";

function populateRentRoll(email) {
    if (email === '') {
        console.log("populateRentRoll - empty email!");
        return;
    }
    $.ajax({
        url: '/tenants',
        data: { 'email': email },
        success: function (tenants) {
            document.getElementById('tenants').innerHTML = tenants;
        }
    });
}

function gRentRoll(resp) {
    populateRentRoll(gGetEmail(resp));
}

function fbRentRoll() {
    FB.api('/me', function (response) {
        populateRentRoll(response.email);
    });
}

function rentRollNotLoggedIn() {
    window.location.href = "/submit";
    /*var signinForm = document.getElementById("signinform");
    if (signinForm == null) {
        console.log("rentRollNotLoggedIn - ERROR NO SIGNIN FORM ELEMENT");
        return;
    }
    $.ajax({
        url: '/signinform',
        success: function( form ) {
            signinForm.innerHTML = form;
        }
    });*/
}

function rentRollTemplateNotLoggedIn() { }}
function gRentRollTemplate(resp) { }
function fbRentRollTemplate() { }

{'fraction_non_alphanumeric': 0.14873140857392825, 'fraction_numerical': 0.0, 'mean_word_length': 2.6946688206785137, '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': '5747182', 'n_tokens_mistral': 725, 'n_tokens_neox': 707, 'n_words': 141}