<commit_before>﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <script src="Scripts/jquery-1.6.4.js"></script>
    <script src="Scripts/jquery.signalR-2.0.3.js"></script>
    
    <script src="Scripts/rx.js"></script>
    <script src="Scripts/rx.async.js"></script>
    <script src="Scripts/rx.binding.js"></script>

    <script src="Scripts/relmah.js"></script>

    <script>

        $(function() {
            var $errors = $('#errors'),
                $groups = $('#groups'),
                $totals = $('#totals');

            var r       = relmah("http://localhost:50360/signalr"),
                errors  = r.errors;

            var bs = errors.filter(function (e) {
                return e.Detail.Message.substring(0, 1) === 'B';
            });
            var totals = bs.scan(0, function (a, e) {
                return a + 1;
            });
            var groups = bs.groupBy(function (e) {
                return e.Detail.Message;
            });

            bs.subscribe(function (e) {
                $errors.prepend($('<li/>').text(e.Detail.Message + ' @ ' + e.Detail.Time));
            });
            totals.subscribe(function (e) {
                $totals.text(e);
            });
<commit_msg>Remapping<commit_after>﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <script src="Scripts/jquery-1.6.4.js"></script>
    <script src="Scripts/jquery.signalR-2.0.3.js"></script>
    
    <script src="Scripts/rx.js"></script>
    <script src="Scripts/rx.async.js"></script>
    <script src="Scripts/rx.binding.js"></script>

    <script src="Scripts/relmah.js"></script>

    <script>

        $(function() {
            var $errors = $('#errors'),
                $groups = $('#groups'),
                $totals = $('#totals');

            var r       = relmah("http://localhost:50360/signalr"),
                errors  = r.errors;

            errors = errors.map(function (e) {
                return { m: e.Detail.Message, t: e.Detail.Time };
            });

            var bs = errors.filter(function (e) {
                return e.m.substring(0, 1) === 'B';
            });
            var totals = bs.scan(0, function (a, e) {
                return a + 1;
            });
            var groups = bs.groupBy(function (e) {
                return e.m;
            });

            bs.subscribe(function (e) {
                $errors.prepend($('<li/>').text(e.m + ' @ ' + e.t));
            });
            totals.subscribe(function (e) {
                $totals.text(e);
            });

{'fraction_non_alphanumeric': 0.18618042226487524, 'fraction_numerical': 0.015355086372360844, 'mean_word_length': 1.595617529880478, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 41, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, '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': '4615442', 'n_tokens_mistral': 862, 'n_tokens_neox': 797, 'n_words': 132}