<commit_before>﻿<!DOCTYPE html>
<html>
<head>
    <title>SimpleEventMonitor.Sample</title>
    <meta charset="utf-8" />
    <!--<script src="/Scripts/jquery-2.2.1.min.js"></script>-->
    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js">
    </script>

</head>
<body>
    <h1>Simple Event Monitor</h1>

    <ul id="SEMLIST">
        <!--@foreach (var simpleEvent in Model)
        {
        <li class="SEMEventListItem">
            <div class="SEMEventName">
                <b>Name:</b> @simpleEvent.Name
            </div>
            <div class="SEMEventTime">
                <b>EventTime:</b> @simpleEvent.LocalTime
            </div>
            <div class="SEMEventContent">
                <b>Content:</b> @simpleEvent.Content
            </div>
        </li>
        }-->
    </ul>

    <!--<script type="text/javascript">
        var list = document.getElementById('SEMLIST');
        var firstElement = list.childNodes[0];
        var entry = document.createElement('li');
        var div = document.createElement('div');
        div.appendChild(document.createTextNode('Nums'));

        entry.appendChild(div);
        //entry.appendChild('<div>røv</div>');
    //    entry.insertBefore(document.createElement('<div>røv</div>'), firstElement);
        list.insertBefore(entry, firstElement);
        </script>-->
    <script type="text/javascript">
        $(document).ready(function () {
            alert("hej");
            $.ajax({
                url: "/Events"
            }).then(function (data) {
                alert("hej");
                //$('.greeting-id').append(data.id);
                //$('.greeting-content').append(data.content);
            });
        });
    </script>

</body>
</html>
<commit_msg>Can show events<commit_after>﻿<!DOCTYPE html>
<html>
<head>
    <title>SimpleEventMonitor.Sample</title>
    <meta charset="utf-8" />
    <!--<script src="/Scripts/jquery-2.2.1.min.js"></script>-->
    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js">
    </script>

</head>
<body>
    <h1>Simple Event Monitor</h1>

    <ul id="SEMLIST">
        <!--@foreach (var simpleEvent in Model)
        {
        <li class="SEMEventListItem">
            <div class="SEMEventName">
                <b>Name:</b> @simpleEvent.Name
            </div>
            <div class="SEMEventTime">
                <b>EventTime:</b> @simpleEvent.LocalTime
            </div>
            <div class="SEMEventContent">
                <b>Content:</b> @simpleEvent.Content
            </div>
        </li>
        }-->
    </ul>

    <!--<script type="text/javascript">
        var list = document.getElementById('SEMLIST');
        var firstElement = list.childNodes[0];
        var entry = document.createElement('li');
        var div = document.createElement('div');
        div.appendChild(document.createTextNode('Nums'));

        entry.appendChild(div);
        //entry.appendChild('<div>røv</div>');
    //    entry.insertBefore(document.createElement('<div>røv</div>'), firstElement);
        list.insertBefore(entry, firstElement);
        </script>-->
    <script type="text/javascript">
        $(document).ready(function () {
            $.ajax({
                url: "/Events"
            }).then(function (data) {
                var len = data.length;
                for (var i = 0; i < len; i++) {

                    var listitem = '<li class="SEMEventListItem"><div class="SEMEventName"><b>Name:</b> ' + data[i].name + '</div><div class="SEMEventTime"><b>EventTime:</b> ' + data[i].localTime + '</div><div class="SEMEventContent"><b>Content:</b> ' + data[i].content + '</div></li>';

                    $("#SEMLIST").append(listitem);
                }
            });
        });
    </script>

</body>
</html>

{'fraction_non_alphanumeric': 0.1868188894654904, 'fraction_numerical': 0.005448884276076803, 'mean_word_length': 2.0354330708661417, 'pattern_counts': {'":': 0, '<': 104, '<?xml version=': 0, '>': 103, 'https://': 2, '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': '2630953', 'n_tokens_mistral': 1185, 'n_tokens_neox': 1150, 'n_words': 184}