<commit_before>﻿<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>widget</title>
    <script type="text/javascript" src="../../../scripts/angular/angular.min.js"></script>
    <script type="text/javascript" src="../../../scripts/buildfire.js"></script>
    <style>
        div.link-verified {
            height: 100%;
            min-height: 300px;
            position: relative;
            display: none;
        }

        /* 1 */
        div.link-verified > div {
            margin: 0;
            position: absolute; /* 2 */
            top: 50%; /* 3 */
            transform: translate(0, -50%);
            width: 100%;
        }

        div.link-verified .glyphicon {
            border: 2px solid;
            padding: 10px;
            border-radius: 50%;
            margin-bottom: 20px;
        }
    </style>
</head>
<body>
<div class="text-center link-verified">
    <div class="col-md-12">
        <span class="glyphicon glyphicon-ok" aria-hidden="true"></span>
        <p>
            We were able to verify the link you provided. The link will only appear on your mobile device.
        </p>
    </div>
</div>
<script>
    buildfire.spinner.show();

    function dataLoadedHandler(result) {
        var content = null;
        if (result && result.data && !angular.equals({}, result.data)) {
            if (result.data.content) {
                content = result.data.content;
                buildfire.spinner.hide();
                buildfire.getContext(function (err, context) {
                    if (context.device.platform != "web") {
                        buildfire.navigation.openWindow(content.opentableId, "system");
                        buildfire.navigation.goBack();
                    } else {
                        document.querySelector(".link-verified").style.display = "block";
                    }
                });
            }
        } else {
            buildfire.spinner.hide();
        }
    }
    /*
     * Go pull saved data
     * */
    var loadData = function () {
        buildfire.datastore.get(function (err, result) {
            if (err) {
                console.error("Error: ", err);
                buildfire.spinner.hide();

            } else {
                dataLoadedHandler(result);
            }<commit_msg>navigate to home after 200ms<commit_after>﻿<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>widget</title>
    <script type="text/javascript" src="../../../scripts/angular/angular.min.js"></script>
    <script type="text/javascript" src="../../../scripts/buildfire.js"></script>
    <style>
        div.link-verified {
            height: 100%;
            min-height: 300px;
            position: relative;
            display: none;
        }

        /* 1 */
        div.link-verified > div {
            margin: 0;
            position: absolute; /* 2 */
            top: 50%; /* 3 */
            transform: translate(0, -50%);
            width: 100%;
        }

        div.link-verified .glyphicon {
            border: 2px solid;
            padding: 10px;
            border-radius: 50%;
            margin-bottom: 20px;
        }
    </style>
</head>
<body>
<div class="text-center link-verified">
    <div class="col-md-12">
        <span class="glyphicon glyphicon-ok" aria-hidden="true"></span>
        <p>
            We were able to verify the link you provided. The link will only appear on your mobile device.
        </p>
    </div>
</div>
<script>
    buildfire.spinner.show();

    function dataLoadedHandler(result) {
        var content = null;
        if (result && result.data && !angular.equals({}, result.data)) {
            if (result.data.content) {
                content = result.data.content;
                buildfire.spinner.hide();
                buildfire.getContext(function (err, context) {
                    if (context.device.platform != "web") {
                        buildfire.navigation.openWindow(content.opentableId, "system");
                        setTimeout(function () {
                            buildfire.navigation.goBack();
                        },200);
                    } else {
                        document.querySelector(".link-verified").style.display = "block";
                    }
                });
            }
        } else {
            buildfire.spinner.hide();
        }
    }
    /*
     * Go pull saved data
     * */
    var loadData = function () {
        buildfire.datastore.get(function (err, result) {
            if (err) {
                console.error("Error: ", err);
                buildfire.spinner.hide();

            } else {
                dataLoadedHandler(result);
            }
{'fraction_non_alphanumeric': 0.1394169835234474, 'fraction_numerical': 0.01309674693705112, 'mean_word_length': 1.4344473007712082, 'pattern_counts': {'":': 0, '<': 49, '<?xml version=': 0, '>': 51, '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': '1155507', 'n_tokens_mistral': 1364, 'n_tokens_neox': 1259, 'n_words': 272}