<commit_before>#!/usr/bin/python

try:
    import cgi

    # Get the user input
    form = cgi.FieldStorage()

    # ***** SANITIZE USER INPUT HERE ****

    start_page = '''<!DOCTYPE HTML>
    <html>
    <head>
        <title>Room Finder Extraordinaire -- Start Page</title>
    </head>

    <body>
        <h1>Room Finder Extraordinaire</h1>
        <h2> Which Room can I get? </h2>
        <form action="webapp.py" method="get">
            <p>Room Draw Number? <input type="text" name="draw_number" /></p>
            <p><input type="submit" value="FIND ME A ROOM!!" /></p>
        </form>

        <h2> Can I get my dream room?? </h2>
        <form action="webapp.py" method="get">
            <p>Room Draw Number? <input type="text" name="draw_number" /></p>
            <p>Hall or House Name? <input type="text" name="building" /></p>
            <p>Number of Desired Room? <input type="text" name="room_number" /></p>
            <p>Desired Occupancy? <input type="text" name="occupancy" /></p>
            <p>Desired Environment? <input type="radio" name="environment" value"subfree">Sub-Free 
               <input type="radio" name="environment" value"quiet">Quiet</p>
            <p><input type="submit" value="FIND ME A ROOM!!" /></p>

        <h2> What's the best room I can find near my favorite location on campus? </h2>
        <form action="webapp.py" method="get">
            <p>Room Draw Number? <input type="text" name="draw_number" /></p>
            <p>Favorite Location? <input type="text" name="favorite_loc" /></p>
            <p><input type="submit" value="FIND ME A ROOM!!" /></p>
        </form>

        <h2> How can I avoid my mortal enemy? </h2>
        <form action="webapp.py" method="get">
            <p>YOUR Room Draw Number? <input type="text" name="my_draw_number" /></p>
            <p>ENEMY'S Room Draw Number? <input type="text" name="enemy_draw_number" /></p>
            <p><input type="submit" value="FIND ME A ROOM!!" /></p>
        </form><commit_msg>ADD Dropdown and Radio<commit_after>#!/usr/bin/python

try:
    import cgi

    # Get the user input
    form = cgi.FieldStorage()

    # ***** SANITIZE USER INPUT HERE ****

    start_page = '''<!DOCTYPE HTML>
    <html>
    <head>
        <title>Room Finder Extraordinaire -- Start Page</title>
    </head>

    <body>
        <h1>Room Finder Extraordinaire</h1>
        <h2> Which Room can I get? </h2>
        <form action="webapp.py" method="get">
            <p>Room Draw Number? <input type="text" name="draw_number" /></p>
            <p><input type="submit" value="FIND ME A ROOM!!" /></p>
        </form>

        <h2> Can I get my dream room?? </h2>
        <form action="webapp.py" method="get">
            <p>Room Draw Number? <input type="text" name="draw_number" /></p>
            <p>Hall or House Name? <select name="dorms_houses">\
                                    <option value="">Select A Hall/House</option>
                                    <option value="burton">Burton</option>
                                    <option value="cassat">Cassat</option>
                                    <option value="davis">Davis</option>
                                    <option value="evans">Evans</option>
                                    <option value="goodhue">Goodhue</option>
                                    <option value="james">James</option>
                                    <option value="myers">Myers</option>
                                    <option value="nourse">Nourse</option>
                                    <option value="severance">Severance</option>
                                    <option value="watson">Watson</option>
                                    <option value="allen">Allen</option>
                                    <option value="benton">Benton</option>
                                    <option value="berg">Berg</option>
                                    <option value="brooks">Brooks</option>
                                    <option value="chaney">Chaney</option>
                                    <option value="clader">Clader</option>
                                    <option value="collier">Collier</option>
                                    <option value="colwell">Colwell</option>
                                    <option value="dacie_moses">Dacie Moses</option>
                                    <option value="dixon">Dixon</option>
                                    <option value="douglas">Douglas</option>
                                    <option value="dow">Dow</option>
                                    <option value="eugster">Eugster</option>
                                    <option value="faculty_club">Faculty Club</option>
                                    <option value="farm">Farm</option>
                                    <option value="geffert">Geffert</option>
                                    <option value="hall">Hall</option>
                                    <option value="henrickson">Henrickson</option>
                                    <option value="hill">Hill</option>
                                    <option value="hunt_cottage">Hunt Cottage </option>
                                    <option value="hunt">Hunt</option>
                                    <option value="huntington">Huntington</option>
                                    <option value="jewett">Jewett</option>
                                    <option value="nason">Nason</option>
                                    <option value="owens">Owens</option>
                                    <option value="page">Page</option>
                                    <option value="parish">parish</option>
                                    <option value="parr">Parr</option>
                                    <option value="prentice">Prentice</option>
                                    <option value="rice">Rice</option>
                                    <option value="scott">Scott</option>
                                    <option value="stimson">Stimson</option>
                                    <option value="williams">Williams</option>
                                    <option value="wilson">Wilson</option>
                                    </p>
            <p>Number of Desired Room? <input type="text" name="room_number" /></p>
            <p>Desired Occupancy? <input type="radio" name="environment" value"single">Single 
                <input type="radio" name="environment" value"double">Double
                <input type="radio" name="environment" value"triple">Triple
                <input type="radio" name="environment" value"quad_plus">Quad+</p>
            <p>Desired Environment? <input type="radio" name="environment" value"subfree">Sub-Free 
               <input type="radio" name="environment" value"quiet">Quiet</p>
               <input type="radio" name="environment" value"single_gender">Single Gender</p>
               <input type="radio" name="environment" value"interest_house">Interest House</p>
            <p><input type="submit" value="FIND ME A ROOM!!" /></p>

        <h2> What's the best room I can find near my favorite location on campus? </h2>
        <form action="webapp.py" method="get">
            <p>Room Draw Number? <input type="text" name="draw_number" /></p>
            <p>Favorite Location? <input type="text" name="favorite_loc" /></p>
            <p><input type="submit" value="FIND ME A ROOM!!" /></p>
        </form>

        <h2> How can I avoid my mortal enemy? </h2>
        <form action="webapp.py" method="get">
            <p>YOUR Room Draw Number? <input type="text" name="my_draw_number" /></p>
            <p>ENEMY'S Room Draw Number? <input type="text" name="enemy_draw_number" /></p>
            <p><input type="submit" value="FIND ME A ROOM!!" /></p>
        </form>
{'fraction_non_alphanumeric': 0.14160639512752188, 'fraction_numerical': 0.0025377490166222563, 'mean_word_length': 1.5868066951099442, 'pattern_counts': {'":': 0, '<': 234, '<?xml version=': 0, '>': 234, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 46, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1107613', 'n_tokens_mistral': 2239, 'n_tokens_neox': 2089, 'n_words': 491}