<commit_before>if (Meteor.isClient) {
    Router.map( function () {
        this.route('admin', {
            path: '/admin'
        });

        this.route('adminTeams', {
            path: '/admin/teams',
            waitOn: function() {
                return [Meteor.subscribe('Teams')];
            },
            data: function() {
                return {
                    teams: Teams.find({}, {sort: {name: 1}})
                };
            }
        });

        this.route('adminTeamCreate', {
            path: '/admin/teams/create',
            waitOn: function() {
                return [Meteor.subscribe('Teams')];
            }
        });

        this.route('adminTeamDetail', {
            path: '/admin/teams/:code',
            waitOn: function() {
                return [
                    Meteor.subscribe('Team', this.params.code),
                    Meteor.subscribe('TeamLogo', this.params.code)
                ];
            },
            notFoundTemplate: 'teamNotFound',
            data: function() {
                return {
                    team: Teams.findOne({code: this.params.code})
                };
            }
        });

        this.route('adminTeamEdit', {
            path: '/admin/teams/:code/edit',
            waitOn: function() {
                return [
                    Meteor.subscribe('Team', this.params.code),
                    Meteor.subscribe('TeamLogo', this.params.code)
                ];
            },
            notFoundTemplate: 'teamNotFound',
            data: function() {
                return {
                    team: Teams.findOne({code: this.params.code})
                };
            }
        });

        this.route('adminTeamDelete', {
            path: '/admin/teams/:code/delete',
            waitOn: function() {
                return [
                    Meteor.subscribe('Team', this.params.code),
                ];
            },
            notFoundTemplate: 'teamNotFound',
            data: function() {
                return {
                    team: Teams.findOne({code: this.params.code})
                };
            }
        });

        this.route('adminTickers', {
            path: '/admin/tickers',
            waitOn: function() {
                return [
                    Meteor.subscribe('Tickers'),
                    Meteor.subscribe('Teams')
                ];
            },
            data: function() {
                return {
                    tickers: Tickers.find({}, {sort: {kickoff: -1}})
                };
            }
        });

        this.route('adminTickerCreate', {
            path: '/admin/tickers/create',
            waitOn: function() {
                return [
                    Meteor.subscribe('Tickers'),
                    Meteor.subscribe('Teams')
                ];
            }
        });

        this.route('adminTickerDetail', {
            path: '/admin/tickers/:_id',
            notFoundTemplate: 'tickerNotFound',
            waitOn: function() {
                var tickerId = this.params._id;
                return [
                    Meteor.subscribe('Ticker', tickerId),
                    Meteor.subscribe('Teams'),
                    Meteor.subscribe('Images'),
                    Meteor.subscribe('UserPresence', tickerId)
                ];
            },
            data: function() {
                var presences = Presences.find().fetch();

                var presencesOnline = presences.filter( function (entry) {<commit_msg>reduced data usage by transferring only ticker teams in adminTickerDetail<commit_after>if (Meteor.isClient) {
    Router.map( function () {
        this.route('admin', {
            path: '/admin'
        });

        this.route('adminTeams', {
            path: '/admin/teams',
            waitOn: function() {
                return [Meteor.subscribe('Teams')];
            },
            data: function() {
                return {
                    teams: Teams.find({}, {sort: {name: 1}})
                };
            }
        });

        this.route('adminTeamCreate', {
            path: '/admin/teams/create',
            waitOn: function() {
                return [Meteor.subscribe('Teams')];
            }
        });

        this.route('adminTeamDetail', {
            path: '/admin/teams/:code',
            waitOn: function() {
                return [
                    Meteor.subscribe('Team', this.params.code),
                    Meteor.subscribe('TeamLogo', this.params.code)
                ];
            },
            notFoundTemplate: 'teamNotFound',
            data: function() {
                return {
                    team: Teams.findOne({code: this.params.code})
                };
            }
        });

        this.route('adminTeamEdit', {
            path: '/admin/teams/:code/edit',
            waitOn: function() {
                return [
                    Meteor.subscribe('Team', this.params.code),
                    Meteor.subscribe('TeamLogo', this.params.code)
                ];
            },
            notFoundTemplate: 'teamNotFound',
            data: function() {
                return {
                    team: Teams.findOne({code: this.params.code})
                };
            }
        });

        this.route('adminTeamDelete', {
            path: '/admin/teams/:code/delete',
            waitOn: function() {
                return [
                    Meteor.subscribe('Team', this.params.code),
                ];
            },
            notFoundTemplate: 'teamNotFound',
            data: function() {
                return {
                    team: Teams.findOne({code: this.params.code})
                };
            }
        });

        this.route('adminTickers', {
            path: '/admin/tickers',
            waitOn: function() {
                return [
                    Meteor.subscribe('Tickers'),
                    Meteor.subscribe('Teams')
                ];
            },
            data: function() {
                return {
                    tickers: Tickers.find({}, {sort: {kickoff: -1}})
                };
            }
        });

        this.route('adminTickerCreate', {
            path: '/admin/tickers/create',
            waitOn: function() {
                return [
                    Meteor.subscribe('Tickers'),
                    Meteor.subscribe('Teams')
                ];
            }
        });

        this.route('adminTickerDetail', {
            path: '/admin/tickers/:_id',
            notFoundTemplate: 'tickerNotFound',
            waitOn: function() {
                var tickerId = this.params._id;
                return [
                    Meteor.subscribe('Ticker', tickerId),
                    Meteor.subscribe('TickerTeams', tickerId),
                    Meteor.subscribe('Images'),
                    Meteor.subscribe('UserPresence', tickerId)
                ];
            },
            data: function() {
                var presences = Presences.find().fetch();

                var presencesOnline = presences.filter( function (entry) {
{'fraction_non_alphanumeric': 0.12776378393506857, 'fraction_numerical': 0.000559753708368318, 'mean_word_length': 1.0916008194322504, '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': '4514948', 'n_tokens_mistral': 1862, 'n_tokens_neox': 1709, 'n_words': 274}