<commit_before>var checks = new g.Collection('id');
var nodes = new g.Collection('name');
var agents = new g.Collection('name');
var notifiers = new g.Collection('name');
var evaluations = new g.Collection('id');
var lastEvaluations = new g.Collection('check_id');
var checkresults = new g.Collection('id');
var contacts = new g.Collection('id');
var contactgroups = new g.Collection('id');
var hosts = new g.Collection('id');

var listHosts = Vue.component('list-hosts', {
    data: function() {
        return {
            hosts: hosts
        };
    },

    computed: {
        sorted: function() {
            return this.hosts.dataset.get().sort(function(a, b) {
                a = a.address;
                b = b.address;
                return (a === b ? 0 : a > b ? 1 : -1);
            });
        }
    },

    template: '#template-hosts'
});

Vue.component('host-line', {<commit_msg>Use correct id for checkresult collection.<commit_after>var checks = new g.Collection('id');
var nodes = new g.Collection('name');
var agents = new g.Collection('name');
var notifiers = new g.Collection('name');
var evaluations = new g.Collection('id');
var lastEvaluations = new g.Collection('check_id');
var checkresults = new g.Collection('check_host_id');
var contacts = new g.Collection('id');
var contactgroups = new g.Collection('id');
var hosts = new g.Collection('id');

var listHosts = Vue.component('list-hosts', {
    data: function() {
        return {
            hosts: hosts
        };
    },

    computed: {
        sorted: function() {
            return this.hosts.dataset.get().sort(function(a, b) {
                a = a.address;
                b = b.address;
                return (a === b ? 0 : a > b ? 1 : -1);
            });
        }
    },

    template: '#template-hosts'
});

Vue.component('host-line', {
{'fraction_non_alphanumeric': 0.1608505997818975, 'fraction_numerical': 0.003271537622682661, 'mean_word_length': 2.455743879472693, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7169128', 'n_tokens_mistral': 557, 'n_tokens_neox': 538, 'n_words': 143}