<commit_before><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Quest Schedule Exporter</title>
    <meta name="viewport" content="width=device-width">
    <link rel="shortcut icon" href="/img/favicon.ico" type="image/x-icon" />
</head>
<body>

<noscript>
    <aside>
        <div class="container">
            Please enable JavaScript to use this tool
        </div>
    </aside>
</noscript>

<div class="container">
    <header>
        <h1 class="title">Quest Schedule Exporter</h1>
        <p>
            This unofficial tool allows University of Waterloo students to export their schedule from Quest. This generates an iCalendar file that you can import anywhere. Everything is done on the client-side using JavaScript so you can rest assured that your personal information won't be leaked.
        </p>
        <p>
            This tool was originally created by <a href="http://viktorstanchev.com"><NAME></a>. This page is a JavaScript port created and rehosted by <a href="https://www.stephenli.ca"><NAME></a>. The source code is available on <a href="https://github.com/Trinovantes/Quest-Schedule-Exporter">GitHub</a>.
        </p>

        <h2>How to use:</h2>
        <ol>
            <li>Log into Quest at <a href="https://quest.pecs.uwaterloo.ca/psp/SS/?cmd=login">https://quest.pecs.uwaterloo.ca/psp/SS/?cmd=login</a></li>
            <li>Click "Enroll"</li>
            <li>Choose your term and click "Continue"</li>
            <li>You should be in "List View". Copy the whole page by pressing <code>Ctrl+A</code> and then <code>Ctrl+C</code></li>
            <li>Come back here and paste everything into the text field by pressing <code>Ctrl+V</code></li>
            <li>Click "Generate"</li>
            <li>Use the iCalendar file to import your schedule into any calendar software such as Google Calendar, Outlook, etc.</li>
        </ol>
    </header>

    <article>
        <form id="mainForm">
            <div class="formGroup">
                <label for="dateFormat">Date Format: <span title="Quest exports dates differently based on your system's locale configuration. It's just easier to ask you to enter this once instead of making me iterate over all possible locales.">(?)</span></label>
                <select name="dateFormatType" id="dateFormatType">
                    <option value="DD/MM/YYYY">DD/MM/YYYY</option>
                    <option value="MM/DD/YYYY" selected="selected">MM/DD/YYYY</option>
                    <option value="YYYY/MM/DD">YYYY/MM/DD</option>
                </select>
            </div>
            <div class="formGroup">
                <label for="questData">Quest Data:</label>
                <textarea name="questData" id="questData" cols="30" rows="10" placeholder="Paste your schedule here"></textarea>
            </div>
            <div class="formGroup">
                <label for="summary">Summary:</label>
                <input type="text" title="This is the title of the event in your calendar" name="summary" id="summary" value="{{ summary }}">
            </div>
            <div class="formGroup">
                <label for="description">Description:</label>
                <input type="text" title="This is the detailed description of the event in your calendar" name="description" id="description" value="{{ description }}">
            </div>
            <table id="placeholders">
                <thead>
                    <tr>
                        <th>Placeholder</th>
                        <th>Description</th>
                        <th>Example</th>
                    </tr>
                </thead>
                <tbody>
                    {{#each placeholders}}
                    <tr>
                        <td><code>{{ placeholder }}</code></td>
                        <td>{{ description }}</td>
                        <td>{{ example }}</td>
                    </tr>
                    {{/each}}
                </tbody>
            </table>
            <button id="generateBtn">Generate</button>
        </form>
    </article>
</div>

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js" integrity="sha512-bLT0Qm9VnAYZDflyKcBaQ2gg0hSYNQrJ8RilYldYQ1FxQYoCLtUjuuRuZo+fjqhx/qtq/1itJ0C2ejDxltZVFg==" crossorigin="anonymous"></script>

</body>
</html>
<commit_msg>Fix mismatch label for form input<commit_after><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Quest Schedule Exporter</title>
    <meta name="viewport" content="width=device-width">
    <link rel="shortcut icon" href="/img/favicon.ico" type="image/x-icon" />
</head>
<body>

<noscript>
    <aside>
        <div class="container">
            Please enable JavaScript to use this tool
        </div>
    </aside>
</noscript>

<div class="container">
    <header>
        <h1 class="title">Quest Schedule Exporter</h1>
        <p>
            This unofficial tool allows University of Waterloo students to export their schedule from Quest. This generates an iCalendar file that you can import anywhere. Everything is done on the client-side using JavaScript so you can rest assured that your personal information won't be leaked.
        </p>
        <p>
            This tool was originally created by <a href="http://viktorstanchev.com"><NAME></a>. This page is a JavaScript port created and rehosted by <a href="https://www.stephenli.ca">Stephen Li</a>. The source code is available on <a href="https://github.com/Trinovantes/Quest-Schedule-Exporter">GitHub</a>.
        </p>

        <h2>How to use:</h2>
        <ol>
            <li>Log into Quest at <a href="https://quest.pecs.uwaterloo.ca/psp/SS/?cmd=login">https://quest.pecs.uwaterloo.ca/psp/SS/?cmd=login</a></li>
            <li>Click "Enroll"</li>
            <li>Choose your term and click "Continue"</li>
            <li>You should be in "List View". Copy the whole page by pressing <code>Ctrl+A</code> and then <code>Ctrl+C</code></li>
            <li>Come back here and paste everything into the text field by pressing <code>Ctrl+V</code></li>
            <li>Click "Generate"</li>
            <li>Use the iCalendar file to import your schedule into any calendar software such as Google Calendar, Outlook, etc.</li>
        </ol>
    </header>

    <article>
        <form id="mainForm">
            <div class="formGroup">
                <label for="dateFormatType">Date Format: <span title="Quest exports dates differently based on your system's locale configuration. It's just easier to ask you to enter this once instead of making me iterate over all possible locales.">(?)</span></label>
                <select name="dateFormatType" id="dateFormatType">
                    <option value="DD/MM/YYYY">DD/MM/YYYY</option>
                    <option value="MM/DD/YYYY" selected="selected">MM/DD/YYYY</option>
                    <option value="YYYY/MM/DD">YYYY/MM/DD</option>
                </select>
            </div>
            <div class="formGroup">
                <label for="questData">Quest Data:</label>
                <textarea name="questData" id="questData" cols="30" rows="10" placeholder="Paste your schedule here"></textarea>
            </div>
            <div class="formGroup">
                <label for="summary">Summary:</label>
                <input type="text" title="This is the title of the event in your calendar" name="summary" id="summary" value="{{ summary }}">
            </div>
            <div class="formGroup">
                <label for="description">Description:</label>
                <input type="text" title="This is the detailed description of the event in your calendar" name="description" id="description" value="{{ description }}">
            </div>
            <table id="placeholders">
                <thead>
                    <tr>
                        <th>Placeholder</th>
                        <th>Description</th>
                        <th>Example</th>
                    </tr>
                </thead>
                <tbody>
                    {{#each placeholders}}
                    <tr>
                        <td><code>{{ placeholder }}</code></td>
                        <td>{{ description }}</td>
                        <td>{{ example }}</td>
                    </tr>
                    {{/each}}
                </tbody>
            </table>
            <button id="generateBtn">Generate</button>
        </form>
    </article>
</div>

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js" integrity="sha512-bLT0Qm9VnAYZDflyKcBaQ2gg0hSYNQrJ8RilYldYQ1FxQYoCLtUjuuRuZo+fjqhx/qtq/1itJ0C2ejDxltZVFg==" crossorigin="anonymous"></script>

</body>
</html>

{'fraction_non_alphanumeric': 0.13894639981596504, 'fraction_numerical': 0.005521048999309869, 'mean_word_length': 2.106466595212576, 'pattern_counts': {'":': 0, '<': 250, '<?xml version=': 0, '>': 250, 'https://': 10, 'lorem ipsum': 0, 'www.': 2, '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': '1145372', 'n_tokens_mistral': 2558, 'n_tokens_neox': 2407, 'n_words': 668}