<commit_before><html>
    <title>pbnh</title>
    <link rel="stylesheet" href="{{url_for('static', filename='codemirror.css')}}">
    <link rel="stylesheet" href="{{url_for('static', filename='fullscreen.css')}}">
    <link rel="stylesheet" href="{{url_for('static', filename='monokai.css')}}">
    <link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.4.0/css/font-awesome.min.css">
    <script src="{{url_for('static', filename='codemirror.js')}}"></script>
    <script src="{{url_for('static', filename='fullscreen.js')}}"></script>

    {% block langs %}{% endblock %}

    <div id="newicon" style="
       z-index: 100;
       position: absolute;
       right: 60;
       color: #fff;
       padding: 10;
    "><span style="
       cursor: pointer;
       "><i class="fa fa-file-o fa-lg"></i>
    </span></div>
    <div id="saveicon" style="
       z-index: 100;
       position: absolute;
       right: 30;
       color: #fff;
       padding: 10;
    "><span style="
       cursor: pointer;
       "><i class="fa fa-save fa-lg"></i>
    </span></div>
    <div id="helpicon" style="
       z-index: 100;
       position: absolute;
       right: 10;
       color: #fff;
       padding: 10;
    "><span style="
       cursor: pointer;
       "><i class="fa fa-question fa-lg" aria-hidden="true"></i>
    </span></div>

    <textarea id="paste" name="content">{{paste}}</textarea>

    <script>
        var editor = CodeMirror.fromTextArea(paste, {
            lineNumbers: true,
            theme: 'monokai',
            indentUnit: 4,
            fullScreen: true,
            autofocus: true,
            mode: '{{mime}}',
        });
        newicon.addEventListener("click", function(){
                window.location.href = '/';
        });
        helpicon.addEventListener("click", function(){
                window.location.href = '/about.md';
        });
    </script>

    {% block body %}{% endblock %}

</html><commit_msg>added ctrl-s and ctrl-n as options in the webui<commit_after><html>
    <title>pbnh</title>
    <link rel="stylesheet" href="{{url_for('static', filename='codemirror.css')}}">
    <link rel="stylesheet" href="{{url_for('static', filename='fullscreen.css')}}">
    <link rel="stylesheet" href="{{url_for('static', filename='monokai.css')}}">
    <link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.4.0/css/font-awesome.min.css">
    <script src="{{url_for('static', filename='codemirror.js')}}"></script>
    <script src="{{url_for('static', filename='fullscreen.js')}}"></script>

    {% block langs %}{% endblock %}

    <div title="Ctrl-N" id="newicon" style="
       z-index: 100;
       position: absolute;
       right: 60;
       color: #fff;
       padding: 10;
    "><span style="
       cursor: pointer;
       "><i class="fa fa-file-o fa-lg"></i>
    </span></div>
    <div title="Ctrl-S" id="saveicon" style="
       z-index: 100;
       position: absolute;
       right: 30;
       color: #fff;
       padding: 10;
    "><span style="
       cursor: pointer;
       "><i class="fa fa-save fa-lg"></i>
    </span></div>
    <div id="helpicon" style="
       z-index: 100;
       position: absolute;
       right: 10;
       color: #fff;
       padding: 10;
    "><span style="
       cursor: pointer;
       "><i class="fa fa-question fa-lg" aria-hidden="true"></i>
    </span></div>

    <textarea id="paste" name="content">{{paste}}</textarea>

    <script>
        var editor = CodeMirror.fromTextArea(paste, {
            lineNumbers: true,
            theme: 'monokai',
            indentUnit: 4,
            fullScreen: true,
            autofocus: true,
            mode: '{{mime}}',
            extraKeys: {"Ctrl-S": function() { saveicon.click(); },
                        "Ctrl-N": function() { newicon.click(); },
                       }
        });
        newicon.addEventListener("click", function(){
                window.location.href = '/';
        });
        helpicon.addEventListener("click", function(){
                window.location.href = '/about.md';
        });
    </script>

    {% block body %}{% endblock %}

</html>
{'fraction_non_alphanumeric': 0.1911976911976912, 'fraction_numerical': 0.012025012025012025, 'mean_word_length': 2.3113057324840764, 'pattern_counts': {'":': 2, '<': 71, '<?xml version=': 0, '>': 71, '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': '1982371', 'n_tokens_mistral': 1383, 'n_tokens_neox': 1280, 'n_words': 264}