<commit_before><?xml version="1.0" encoding="UTF-8" ?>
<html version="XHTML+RDFa 1.0" xmlns="http://www.w3.org/1999/xhtml"
        xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
        xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
        xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
        xmlns:calli="http://callimachusproject.org/rdf/2009/framework#">
<head>
    <title resource="?this">{rdfs:label} Sign In</title>
    <link rel="help" href="../../callimachus-for-web-developers" target="_blank" title="Help" />
    <script type="text/javascript" src="../assets/jshash/md5.js"></script>
    <script type="text/javascript">
    // <![CDATA[
    jQuery(function($){
        $('#form').submit(function(event){
            var username = $("#username").val();
            var authName = $("#authName").text();
            var password = $("#password").val();
            var persistent = $('#persistent:checked').val();
            var options = {type: "POST", url: "?login",
                username: username,
                password: password,
                xhrFields: {withCredentials: true},
                contentType: 'application/x-www-form-urlencoded; charset=UTF-8',
                data: {persistent: persistent},
                success: function(doc) {
                    if (persistent && window.localStorage) {
                        var hash = hex_md5(username + ':' + authName + ':' + password);
                        var digestPassword = hex_md5(hash + ':' + doc);
                        var digestProfile = calli.getPageUrl().replace(/\?.*/,'?profile');
                        localStorage.setItem("username", username);
                        localStorage.setItem("digestPassword", digestPassword);
                        localStorage.setItem("digestProfile", digestProfile);
                    }
                    calli.login(username);
                    var return_to = /&return_to=([^&]*)/.exec(window.location.search);
                    if (return_to && return_to[1]) {
                        return_to = decodeURIComponent(return_to[1]);
                    } else {
                        return_to = '/';
                    }
                    window.location.replace(return_to);
                },
                error: calli.error
            };
            try {
                calli.resolve($.ajax(options));
            } catch (e) {
                // Opera don't support spaces in ajax passwords<commit_msg>Fix stay-signed-in feature<commit_after><?xml version="1.0" encoding="UTF-8" ?>
<html version="XHTML+RDFa 1.0" xmlns="http://www.w3.org/1999/xhtml"
        xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
        xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
        xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
        xmlns:calli="http://callimachusproject.org/rdf/2009/framework#">
<head>
    <title resource="?this">{rdfs:label} Sign In</title>
    <link rel="help" href="../../callimachus-for-web-developers" target="_blank" title="Help" />
    <script type="text/javascript" src="../assets/jshash/md5.js"></script>
    <script type="text/javascript">
    // <![CDATA[
    jQuery(function($){
        $('#form').submit(function(event){
            var username = $("#username").val();
            var authName = $("#authName").text();
            var password = $("#password").val();
            var persistent = $('#persistent:checked').val();
            var options = {type: "POST", url: "?login",
                username: username,
                password: password,
                xhrFields: {withCredentials: true},
                contentType: 'application/x-www-form-urlencoded; charset=UTF-8',
                data: {persistent: persistent},
                success: function(doc) {
                    if (persistent && window.localStorage) {
                        var hash = hex_md5(username + ':' + authName + ':' + password);
                        var digestPassword = hex_md5(hash + ':' + doc);
                        var digestProfile = document.createElement('a');
                        digestProfile.setAttribute('href', "/?profile");
                        localStorage.setItem("username", username);
                        localStorage.setItem("digestPassword", <PASSWORD>);
                        localStorage.setItem("digestProfile", digestProfile.href);
                    }
                    calli.login(username);
                    var return_to = /&return_to=([^&]*)/.exec(window.location.search);
                    if (return_to && return_to[1]) {
                        return_to = decodeURIComponent(return_to[1]);
                    } else {
                        return_to = '/';
                    }
                    window.location.replace(return_to);
                },
                error: calli.error
            };
            try {
                calli.resolve($.ajax(options));
            } catch (e) {
                // Opera don't support spaces in ajax passwords
{'fraction_non_alphanumeric': 0.15737249454256796, 'fraction_numerical': 0.01627307005358206, 'mean_word_length': 1.7169811320754718, 'pattern_counts': {'":': 0, '<': 24, '<?xml version=': 2, '>': 22, 'https://': 0, 'lorem ipsum': 0, 'www.': 10, 'xml': 12}, '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': '6252155', 'n_tokens_mistral': 1455, 'n_tokens_neox': 1347, 'n_words': 219}