<commit_before>{% extends 'MaclayServiceBundle:Profile:profile.html.twig' %}

{% block pagename %}
    Admin Profile - Upload Students
{% endblock %}
    
{% block usercontent %}
    <p>{{error}}</p>
    <p>Click below to send an inite email to all of the users who haven't been invited.</p>
    <select id="userChoice">
        <option value="0">All Users</option>
        <option value="9">Freshmen</option>
        <option value="10">Sophomores</option>
        <option value="11">Juniors</option>
        <option value="12">Seniors</option>
        <option value="-1">Other Users</option>
    </select>
    <p>&nbsp;&nbsp;&nbsp;&nbsp;Number of uninvited users: <span id="userCount">{{ count }}</span></p>
    <form action="{{ path('default', {'controller' : 'Admin', 'action' : 'EmailUninvitedUsers'}) }}" method="POST">
        <input type="hidden" id="userGrade" name="userGrade" value="0" />
        <input type="submit" value="Send Emails" />
    </form>

{% endblock %}
    
{% block endscripts %}
    <script>
        $(document).ready(function(){
            $("#userChoice").on("change", function(){
                var grade = $(this).val();
            
                var options = [];
                {#options.url = "{{ path('updateCount', {'grade' : 'text'}) }}";#}
                options.url = options.url.replace("text", grade);
                options.success = function(response){
                    $("#userCount").html(response.count);
                    $("#userGrade").val(grade);
                };
                options.error = function(a,b,c){
                    alert(a.responseText);
                };
                $.ajax(options);
            });
        });
    </script>
{% endblock %}<commit_msg>Remote Server has error<commit_after>{% extends 'MaclayServiceBundle:Profile:profile.html.twig' %}

{#{% block pagename %}
    Admin Profile - Upload Students
{% endblock %}
    
{% block usercontent %}
    <p>{{error}}</p>
    <p>Click below to send an inite email to all of the users who haven't been invited.</p>
    <select id="userChoice">
        <option value="0">All Users</option>
        <option value="9">Freshmen</option>
        <option value="10">Sophomores</option>
        <option value="11">Juniors</option>
        <option value="12">Seniors</option>
        <option value="-1">Other Users</option>
    </select>
    <p>&nbsp;&nbsp;&nbsp;&nbsp;Number of uninvited users: <span id="userCount">{{ count }}</span></p>
    <form action="{{ path('default', {'controller' : 'Admin', 'action' : 'EmailUninvitedUsers'}) }}" method="POST">
        <input type="hidden" id="userGrade" name="userGrade" value="0" />
        <input type="submit" value="Send Emails" />
    </form>

{% endblock %}
    
{% block endscripts %}
    <script>
        $(document).ready(function(){
            $("#userChoice").on("change", function(){
                var grade = $(this).val();
            
                var options = [];
                options.url = "{{ path('updateCount', {'grade' : 'text'}) }}";
                options.url = options.url.replace("text", grade);
                options.success = function(response){
                    $("#userCount").html(response.count);
                    $("#userGrade").val(grade);
                };
                options.error = function(a,b,c){
                    alert(a.responseText);
                };
                $.ajax(options);
            });
        });
    </script>
{% endblock %}
#}
{'fraction_non_alphanumeric': 0.18311874105865522, 'fraction_numerical': 0.005722460658082976, 'mean_word_length': 2.222119815668203, 'pattern_counts': {'":': 0, '<': 59, '<?xml version=': 0, '>': 59, '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': '5109663', 'n_tokens_mistral': 1040, 'n_tokens_neox': 972, 'n_words': 205}