<commit_before><!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>Davine - Vine Analytics</title>

    <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
    <link href="//fonts.googleapis.com/css?family=Lily+Script+One" rel="stylesheet" type="text/css">
    <link href="/css/main.css" rel="stylesheet" type="text/css">
    <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
    <link rel="icon" type="image/png" href="/icon.png">
    
    <meta name="description" content="Davine is a site where users of Vine can view their social metrics and find how well they rank among the most popular Viners.">
    <meta name="keywords" content="vine,vine users,social statisics,vine analytics,vine stats,vine statistics,popular vine users,find vine stats,vine data,popular viners,vine post tracking">
</head>
<body>
    <div class="jumbotron vertical-center">
    <div class="container text-center">
        <h1 id="head-link">Davine</h1>
        <h4 id="head-motto">Plant your vines, we'll watch them grow.</h4>
        <form id="userSearch">
            <div id="head-search-cont" class="input-group">
                <input type="text" class="form-control userId" placeholder="Vine Profile Link (e.g. https://vine.co/AustinDizzy or https://vine.co/907787504051171328)">
                <span class="input-group-btn">
                    <button class="btn btn-default" type="submit"><i class="fa fa-search"></i></button>
                </span>
            </div>
        </form>
        <a href="/about" style="color: #7c7c7c;font-weight: bold;">Learn More</a> |
        <a href="/random/user" style="color: #7c7c7c;font-weight: bold;">Random User</a>
        <div class="alert alert-danger user-alert alert-dismissible" role="alert" style="display:none;margin:1em 20%">
            <button type="button" class="close">
                <span aria-hidden="true">&times;</span>
                <span class="sr-only">Close</span>
            </button>
            <span class="user-message">
                <strong>Warning!</strong> There's been an error. Please try again.
            </span>
        </div>
    </div>
    </div>

    <nav class="navbar navbar-default bottom-nav" style="border-color: #E7E7E7;">
        <div class="container-fluid" style="width:100%">
            <p class="navbar-text navbar-left">
                <a class="navbar-link" href="/top">Top 10</a> | <a class="navbar-link" href="/discover">Discover</a>
            </p>
            <p class="navbar-text navbar-right">
                <a class="navbar-link" href="/about">About</a> | <a class="navbar-link" href="/about#faq">FAQ</a>
            </p>
        </div>
    </nav>

    <script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
    <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
    <script type="text/javascript" charset="utf-8">
    $(function(){
        $('#userSearch').submit(function(e){
            e.preventDefault();

            var user = $(".userId").val();
            var match = user.match(/^(?!\s*$)(?:https?\:\/\/vine.co\/(?:u\/)?)?([a-zA-Z_0-9\.]*$)/);
            if (match) {
                $.post(document.URL + "user?id=" + match[1], function(data){
                    if (data.stored) {
                        document.location = document.URL + "u/" + match[1];
                    } else if (data.queued) {
                         var msg = "<strong>Success!</strong> We haven't seen that user yet,";
                        msg += " so we've added the to our list. Come back in a bit and check";
                        msg += " out their metrics";
                        showMessage("success", msg);
                    } else if (!data.exists) {
                        var msg = "<strong>Warning:</strong> The user you've submitted doesn't seem to";
                        msg += " be a user that exists on Vine. Please make sure you've entered their profile";
                        msg += " corrently and that there are no trailing whitespaces or misspellings.";
                        showMessage("warning", msg);
                    } else if (!data.stored && data.exists) {
                        var msg = "<strong>Success!</strong> The user you've submitted has been recently discovered";
                        msg += " by our service and its profile will soon be crawled. Please come back later or";
                        msg += " bookmark <a href='/u/" + match[1] + "'><b>this page</b></a>.";
                        showMessage("success", msg);
                    }
                });
            } else {
                var msg = "<strong>Error</strong>: The text you've entered is in the incorrect format.<br>";
                msg += " Please enter it in the correct format: <strong>https://vine.co/AustinDizzy</strong>,";
                msg += " <strong>https://vine.co/u/907787504051171328</strong>, or <Strong>AustinDizzy</strong>.";
                showMessage("danger", msg);
            }
        });

        $('.close').click(function(){
           $(this).parent().hide();
        });

        function showMessage(type, msg) {<commit_msg>Fixed caching problem for getting random users.<commit_after><!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>Davine - Vine Analytics</title>

    <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
    <link href="//fonts.googleapis.com/css?family=Lily+Script+One" rel="stylesheet" type="text/css">
    <link href="/css/main.css" rel="stylesheet" type="text/css">
    <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
    <link rel="icon" type="image/png" href="/icon.png">
    
    <meta name="description" content="Davine is a site where users of Vine can view their social metrics and find how well they rank among the most popular Viners.">
    <meta name="keywords" content="vine,vine users,social statisics,vine analytics,vine stats,vine statistics,popular vine users,find vine stats,vine data,popular viners,vine post tracking">
</head>
<body>
    <div class="jumbotron vertical-center">
    <div class="container text-center">
        <h1 id="head-link">Davine</h1>
        <h4 id="head-motto">Plant your vines, we'll watch them grow.</h4>
        <form id="userSearch">
            <div id="head-search-cont" class="input-group">
                <input type="text" class="form-control userId" placeholder="Vine Profile Link (e.g. https://vine.co/AustinDizzy or https://vine.co/907787504051171328)">
                <span class="input-group-btn">
                    <button class="btn btn-default" type="submit"><i class="fa fa-search"></i></button>
                </span>
            </div>
        </form>
        <a href="/about" style="color: #7c7c7c;font-weight: bold;">Learn More</a> |
        <a href="/random/user" style="color: #7c7c7c;font-weight: bold;">Random User</a>
        <div class="alert alert-danger user-alert alert-dismissible" role="alert" style="display:none;margin:1em 20%">
            <button type="button" class="close">
                <span aria-hidden="true">&times;</span>
                <span class="sr-only">Close</span>
            </button>
            <span class="user-message">
                <strong>Warning!</strong> There's been an error. Please try again.
            </span>
        </div>
    </div>
    </div>

    <nav class="navbar navbar-default bottom-nav" style="border-color: #E7E7E7;">
        <div class="container-fluid" style="width:100%">
            <p class="navbar-text navbar-left">
                <a class="navbar-link" href="/top">Top 10</a> | <a class="navbar-link" href="/discover">Discover</a>
            </p>
            <p class="navbar-text navbar-right">
                <a class="navbar-link" href="/about">About</a> | <a class="navbar-link" href="/about#faq">FAQ</a>
            </p>
        </div>
    </nav>

    <script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
    <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
    <script type="text/javascript" charset="utf-8">
    $(function(){
        $('#userSearch').submit(function(e){
            e.preventDefault();

            var user = $(".userId").val();
            var match = user.match(/^(?!\s*$)(?:https?\:\/\/vine.co\/(?:u\/)?)?([a-zA-Z_0-9\.]*$)/);
            if (match) {
                $.post(document.URL + "user?id=" + match[1], function(data){
                    if (data.stored) {
                        document.location = document.URL + "u/" + match[1];
                    } else if (data.queued) {
                         var msg = "<strong>Success!</strong> We haven't seen that user yet,";
                        msg += " so we've added the to our list. Come back in a bit and check";
                        msg += " out their metrics";
                        showMessage("success", msg);
                    } else if (!data.exists) {
                        var msg = "<strong>Warning:</strong> The user you've submitted doesn't seem to";
                        msg += " be a user that exists on Vine. Please make sure you've entered their profile";
                        msg += " corrently and that there are no trailing whitespaces or misspellings.";
                        showMessage("warning", msg);
                    } else if (!data.stored && data.exists) {
                        var msg = "<strong>Success!</strong> The user you've submitted has been recently discovered";
                        msg += " by our service and its profile will soon be crawled. Please come back later or";
                        msg += " bookmark <a href='/u/" + match[1] + "'><b>this page</b></a>.";
                        showMessage("success", msg);
                    }
                });
            } else {
                var msg = "<strong>Error</strong>: The text you've entered is in the incorrect format.<br>";
                msg += " Please enter it in the correct format: <strong>https://vine.co/AustinDizzy</strong>,";
                msg += " <strong>https://vine.co/u/907787504051171328</strong>, or <Strong>AustinDizzy</strong>.";
                showMessage("danger", msg);
            }
        });

        $('.close').click(function(){
           $(this).parent().hide();
        });

        $('a[href="/random/user"]').attr('href', '/random/user?' + new Date().getTime());

        function showMessage(type, msg) {
{'fraction_non_alphanumeric': 0.1662759073431492, 'fraction_numerical': 0.01425490012191691, 'mean_word_length': 2.1236086701816053, 'pattern_counts': {'":': 0, '<': 183, '<?xml version=': 0, '>': 183, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1729720', 'n_tokens_mistral': 3308, 'n_tokens_neox': 3039, 'n_words': 736}