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

{% block body %}
<form action="/save_school" method="POST">
    {% csrf_token %}
    <fieldset>
        <legend>Name of School:</legend>
        <label>Name of School: <input type="text" name="name" placeholder="Name of School"/></label>
    </fieldset>
    
    <fieldset>
        <legend>Length of Study:</legend>
            <br/>
            <input id="four_year" type="radio" name="is_four_year"
                value="True">
            <label for="four_year">Four Year</label>
            <input id="two_year" type="radio" name="is_four_year"
                value="False">
            <label for="two_year">Two Year</label>
    </fieldset>
    
    <fieldset>
        <legend>Type of School:</legend>
            <br/>
            <input id="public" type="radio" name="is_public"
                value="True">
            <label for="public">Public</label>
            <input id="private" type="radio" name="is_public"
                value="False">
            <label for="private">Private</label>
    </fieldset>
     
    <fieldset>
        <legend>School Size:</legend>
        <label>Size of School: <input type="text" name="school_size" placeholder="Enter Size"/></label>
    </fieldset>
  
    <fieldset>
        <legend>Gender of School:</legend>
        <label>Enter: 1 (co-ed), 2 (all girls), or 3 (all boys) (choose only one number): <input type="text" name="school_gender" placeholder="Enter Gender"/></label>
    </fieldset>
     
    <fieldset>
        <legend>Campus:</legend>
            <p>Residential or Commuter?:</p>
            <input id="residential" type="radio" name="is_residential"
                value="True">
            <label for="residential">Residential</label>
            <input id="commuter" type="radio" name="is_residential"
                value="False">
            <label for="commuter">Commuter</label>
    </fieldset>
    
    <fieldset>
        <legend>Campus Location:</legend>
            <br/>
            <input id="rural" type="radio" name="location_type"
                value="1">
            <label for="rural">Rural</label>
            <input id="suburban" type="radio" name="location_type"
                value="2">
            <label for="suburban">Suburban</label>
            <input id="urban" type="radio" name="location_type"
                value="3">
            <label for="urban">Urban</label>
    </fieldset>
    
    <fieldset>
        <legend>Location of School:</legend>
        <label>State: <input type="text" name="location_state" placeholder="Enter State"/></label>
    </fieldset>
    
    <fieldset>
        <legend>Majors:</legend>
            <p>Choose all Majors that Apply:</p>
                    <input type="checkbox" name="majors"
                        value="11" /> Accounting
                    <input type="checkbox" name="majors"
                        value="1" /> Biology/Biotechnology
                    <input type="checkbox" name="majors"
                        value="2" /> Business
                    <input type="checkbox" name="majors"
                        value="3" /> Communication/Journalism
                    <input type="checkbox" name="majors"
                        value="4" /> Computer Science/Computer Technology
                    <input type="checkbox" name="majors"
                        value="5" /> Criminal Justice
                    <input type="checkbox" name="majors"
                        value="6" /> Education
                    <input type="checkbox" name="majors"
                        value="7" /> Marketing
                    <input type="checkbox" name="majors"
                        value="8" /> Nursing
                    <input type="checkbox" name="majors"
                        value="9" /> Political Science/Sociology
                    <input type="checkbox" name="majors"
                        value="10" /> Psychology/Counseling
                </select>
                
<fieldset>
        <legend>Sports:</legend>
                    <input type="checkbox" name="sports"
                        value="1" /> Baseball
                    <input type="checkbox" name="sports"
                        value="2" /> Basketball
                    <input type="checkbox" name="sports"
                        value="3" /> Bowling
                    <input type="checkbox" name="sports"
                        value="4" /> Cross Country
                    <input type="checkbox" name="sports"
                        value="5" /> Fencing
                    <input type="checkbox" name="sports"
                        value="6" /> Field Hockey
                    <input type="checkbox" name="sports"
                        value="7" /> Golf
                    <input type="checkbox" name="sports"
                        value="8" /> Gymnastics
                    <input type="checkbox" name="sports"
                        value="9" /> Ice Hockey
                    <input type="checkbox" name="sports"
                        value="10" /> Lacrosse
                    <input type="checkbox" name="sports"
                        value="11" /> Rowing
                    <input type="checkbox" name="sports"
                        value="7" /> Soccer
                    <input type="checkbox" name="sports"
                        value="8" /> Softball
                    <input type="checkbox" name="sports"
                        value="9" /> Swimming
                    <input type="checkbox" name="sports"
                        value="10" /> Tennis
                    <input type="checkbox" name="sports"
                        value="11" /> Track & Field
                    <input type="checkbox" name="sports"
                        value="10" /> Volleyball
                    <input type="checkbox" name="sports"
                        value="11" /> Wrestling
                </select>

    <br/> 
    <br/>
    <input type="submit" value="Submit">
</form>
<table id="school_table">
<thead>
    <tr>
        <th>School</th>
        <th>Two Year or Four Year?</th>
        <th>Public/Private</th>
        <th>Size</th>
        <th>Gender</th>
        <th>Residential</th>
        <th>Location Type</th>
        <th>State</th>
        <th>Majors</th>
        <th>Sports</th>
    </tr>
    </thead><tbody>
        {% for school in schools %}
            <tr>
                <td><em>{{school.title}}</em></td>
                <td>{{school.name}}</td>
                <td>{% if school.is_four_year %}<commit_msg>put span on form choices<commit_after>{% extends "base.html" %}

{% block body %}
<form action="/save_school" method="POST">
    {% csrf_token %}
    <fieldset>
        <legend>Name of School:</legend>
        <label>Name of School: <input type="text" name="name" placeholder="Name of School"/></label>
    </fieldset>
    
    <fieldset>
        <legend>Length of Study:</legend>
            <br/>
            <input id="four_year" type="radio" name="is_four_year"
                value="True">
            <label for="four_year">Four Year</label>
            <input id="two_year" type="radio" name="is_four_year"
                value="False">
            <label for="two_year">Two Year</label>
    </fieldset>
    
    <fieldset>
        <legend>Type of School:</legend>
            <br/>
            <input id="public" type="radio" name="is_public"
                value="True">
            <label for="public">Public</label>
            <input id="private" type="radio" name="is_public"
                value="False">
            <label for="private">Private</label>
    </fieldset>
     
    <fieldset>
        <legend>School Size:</legend>
        <label>Size of School: <input type="text" name="school_size" placeholder="Enter Size"/></label>
    </fieldset>
  
    <fieldset>
        <legend>Gender of School:</legend>
        <label>Enter: 1 (co-ed), 2 (all girls), or 3 (all boys) (choose only one number): <input type="text" name="school_gender" placeholder="Enter Gender"/></label>
    </fieldset>
     
    <fieldset>
        <legend>Campus:</legend>
            <p>Residential or Commuter?:</p>
            <input id="residential" type="radio" name="is_residential"
                value="True">
            <label for="residential">Residential</label>
            <input id="commuter" type="radio" name="is_residential"
                value="False">
            <label for="commuter">Commuter</label>
    </fieldset>
    
    <fieldset>
        <legend>Campus Location:</legend>
            <br/>
            <input id="rural" type="radio" name="location_type"
                value="1">
            <label for="rural">Rural</label>
            <input id="suburban" type="radio" name="location_type"
                value="2">
            <label for="suburban">Suburban</label>
            <input id="urban" type="radio" name="location_type"
                value="3">
            <label for="urban">Urban</label>
    </fieldset>
    
    <fieldset>
        <legend>Location of School:</legend>
        <label>State: <input type="text" name="location_state" placeholder="Enter State"/></label>
    </fieldset>
    
    <fieldset>
        <legend>Majors:</legend>
            <p>Choose all Majors that Apply:</p>
                    <span> <input type="checkbox" name="majors"
                        value="11" /> Accounting /<span>
                    <span><input type="checkbox" name="majors"
                        value="1" /> Biology/Biotechnology </span>
                    <span><input type="checkbox" name="majors"
                        value="2" /> Business </span>
                    <span><input type="checkbox" name="majors"
                        value="3" /> Communication/Journalism </span>
                    <span><input type="checkbox" name="majors"
                        value="4" /> Computer Science/Computer Technology </span>
                    <span><input type="checkbox" name="majors"
                        value="5" /> Criminal Justice </span>
                    <span><input type="checkbox" name="majors"
                        value="6" /> Education </span>
                    <span> <input type="checkbox" name="majors"
                        value="7" /> Marketing </span>
                    <span><input type="checkbox" name="majors"
                        value="8" /> Nursing </span>
                    <span><input type="checkbox" name="majors"
                        value="9" /> Political Science/Sociology </span>
                    <input type="checkbox" name="majors"
                        value="10" /> Psychology/Counseling </span>
                </select>
                
<fieldset>
        <legend>Sports:</legend>
                    <span><input type="checkbox" name="sports"
                        value="1" /> Baseball </span>
                    <span><input type="checkbox" name="sports"
                        value="2" /> Basketball </span>
                    <span> <input type="checkbox" name="sports"
                        value="3" /> Bowling </span>
                    <span> <input type="checkbox" name="sports"
                        value="4" /> Cross Country </span>
                    <span> <input type="checkbox" name="sports"
                        value="5" /> Fencing </span>
                    <span> <input type="checkbox" name="sports"
                        value="6" /> Field Hockey </span>
                    <span> <input type="checkbox" name="sports"
                        value="7" /> Golf </span>
                    <span><input type="checkbox" name="sports"
                        value="8" /> Gymnastics </span>
                    <span><input type="checkbox" name="sports"
                        value="9" /> Ice Hockey </span>
                    <span><input type="checkbox" name="sports"
                        value="10" /> Lacrosse </span>
                    <span><input type="checkbox" name="sports"
                        value="11" /> Rowing </span>
                    <span><input type="checkbox" name="sports"
                        value="7" /> Soccer </span>
                    <span><input type="checkbox" name="sports"
                        value="8" /> Softball </span>
                    <span><input type="checkbox" name="sports"
                        value="9" /> Swimming </span>
                    <span><input type="checkbox" name="sports"
                        value="10" /> Tennis </span>
                    <span><input type="checkbox" name="sports"
                        value="11" /> Track & Field </span>
                    <span><input type="checkbox" name="sports"
                        value="10" /> Volleyball </span>
                    <span><input type="checkbox" name="sports"
                        value="11" /> Wrestling </span>
                </select>

    <br/> 
    <br/>
    <input type="submit" value="Submit">
</form>
<table id="school_table">
<thead>
    <tr>
        <th>School</th>
        <th>Two Year or Four Year?</th>
        <th>Public/Private</th>
        <th>Size</th>
        <th>Gender</th>
        <th>Residential</th>
        <th>Location Type</th>
        <th>State</th>
        <th>Majors</th>
        <th>Sports</th>
    </tr>
    </thead><tbody>
        {% for school in schools %}
            <tr>
                <td><em>{{school.title}}</em></td>
                <td>{{school.name}}</td>
                <td>{% if school.is_four_year %}
{'fraction_non_alphanumeric': 0.1466104203670811, 'fraction_numerical': 0.006364712847838958, 'mean_word_length': 1.524850523168909, 'pattern_counts': {'":': 0, '<': 368, '<?xml version=': 0, '>': 368, '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': '3015831', 'n_tokens_mistral': 3826, 'n_tokens_neox': 3525, 'n_words': 758}