<commit_before><head>
<meta name="google-site-verification" content="8FHyn_C58Vv6WmuCrfI_LhKWr_2FMBFAVxDdgodjm1I" />
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
</head>
<body>
    <form action="/shorten" method="post" id="shorten">
        <label for="orig_url"> URL to shorten </label>
        <input type=url label="url to shorten" id="orig_url" name="orig_url">
        <button type="submit">Shorten</button>
        </input>
    </form>

    <form method="get" id="stats">
    <pre>
    <b>Stats:</b>
    <label for = "urls"> Urls Shortened:</label>
    <input type=text label="Urls Shortened:" id="urls" name="urls" readOnly>
    <label for = "redirects"> Redirect Counts:</label>
    <input type=text label="Redirect Counts:" id="redirects" name="redirects" readOnly >
    </pre>
    </form>

<a href="https://github.com/emofeedback/urlshortener">
    <img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/e7bbb0521b397edbd5fe43e7f760759336b5e05f/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f677265656e5f3030373230302e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_green_007200.png">
</a>
    <script>
        $(document).ready(function() {
            var xmlHttp = null;
            xmlHttp = new XMLHttpRequest();
            xmlHttp.open( "GET", "/stats", false );
            xmlHttp.send( null );
            var stats = $.parseJSON(xmlHttp.responseText);
            $('#urls').val(stats.urls.toString());
            $('#urls').readOnly = true;
            $('#redirects').val(stats.redirects.toString());
            $('#redirects').readOnly = true;
            });

    </script>
</body>
<footer>
    <p> A blog post about this project can be found <a href="http://www.anandjeyahar.net/urlshortener-in-python/"> here. </a>
<commit_msg>omuoe<commit_after><head>
<meta name="google-site-verification" content="<KEY>" />
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
</head>
<body>
    <form action="/shorten" method="post" id="shorten">
        <label for="orig_url"> URL to shorten </label>
        <input type=url label="url to shorten" id="orig_url" name="orig_url">
        <button type="submit">Shorten</button>
        </input>
    </form>

    <form method="get" id="stats">
    <pre>
    <b>Stats:</b>
    <label for = "urls"> Urls Shortened:</label>
    <input type=text label="Urls Shortened:" id="urls" name="urls" readOnly>
    <label for = "redirects"> Redirect Counts:</label>
    <input type=text label="Redirect Counts:" id="redirects" name="redirects" readOnly >
    </pre>
    </form>

    <script>
        $(document).ready(function() {
            var xmlHttp = null;
            xmlHttp = new XMLHttpRequest();
            xmlHttp.open( "GET", "/stats", false );
            xmlHttp.send( null );
            var stats = $.parseJSON(xmlHttp.responseText);
            $('#urls').val(stats.urls.toString());
            $('#urls').readOnly = true;
            $('#redirects').val(stats.redirects.toString());
            $('#redirects').readOnly = true;
            });

    </script>
<a href="https://github.com/emofeedback/urlshortener">
    <img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/e7bbb0521b397edbd5fe43e7f760759336b5e05f/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f677265656e5f3030373230302e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_green_007200.png">
</a>
</body>
<footer>
    <p> A blog post about this project can be found <a href="http://www.anandjeyahar.net/urlshortener-in-python/"> here. </a>

{'fraction_non_alphanumeric': 0.16752843846949328, 'fraction_numerical': 0.07911065149948293, 'mean_word_length': 3.493612078977933, 'pattern_counts': {'":': 0, '<': 76, '<?xml version=': 0, '>': 76, 'https://': 6, 'lorem ipsum': 0, 'www.': 2, 'xml': 10}, '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': '1602263', 'n_tokens_mistral': 1529, 'n_tokens_neox': 1355, 'n_words': 236}