<commit_before>/* ---------------------------------------------------- +/

## Client Router ##

Client-side Router.

/+ ---------------------------------------------------- */

// Config

Router.configure({
    layoutTemplate: 'layout',
    loadingTemplate: 'loading',
    notFoundTemplate: 'notFound',
});

// Filters

var filters = {

    myFilter: function () {
        // do something
    },


}

Router.onBeforeAction(filters.myFilter, {only: ['items']});

// Routes

Router.map(function() {

    // Items

    this.route('items', {
        waitOn: function () {
            return Meteor.subscribe('allItems');
        },
        data: function () {
            return {
                items: Items.find()
            }
        }
    });

    this.route('item', {
        path: '/items/:_id',
        waitOn: function () {
            return Meteor.subscribe('singleItem', this.params._id);
        },
        data: function () {
            return {
                item: Items.findOne(this.params._id)
            }
        }
    });


    // Pages

    this.route('homepage', {
        path: '/'
    });

    this.route('content');

});
<commit_msg>Fixing semicolons<commit_after>/* ---------------------------------------------------- +/

## Client Router ##

Client-side Router.

/+ ---------------------------------------------------- */

// Config

Router.configure({
    layoutTemplate: 'layout',
    loadingTemplate: 'loading',
    notFoundTemplate: 'notFound',
});

// Filters

var filters = {

    myFilter: function () {
        // do something
    },


};

Router.onBeforeAction(filters.myFilter, {only: ['items']});

// Routes

Router.map(function() {

    // Items

    this.route('items', {
        waitOn: function () {
            return Meteor.subscribe('allItems');
        },
        data: function () {
            return {
                items: Items.find()
            };
        }
    });

    this.route('item', {
        path: '/items/:_id',
        waitOn: function () {
            return Meteor.subscribe('singleItem', this.params._id);
        },
        data: function () {
            return {
                item: Items.findOne(this.params._id)
            };
        }
    });


    // Pages

    this.route('homepage', {
        path: '/'
    });

    this.route('content');

});

{'fraction_non_alphanumeric': 0.23870967741935484, 'fraction_numerical': 0.0, 'mean_word_length': 1.2848722986247545, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3690026', 'n_tokens_mistral': 669, 'n_tokens_neox': 632, 'n_words': 107}