<commit_before>Router.configure({
  layoutTemplate: '_layout'
});

//From what I can tell this has been depreciated
//https://github.com/iron-meteor/iron-router/blob/739bcc1445db3ad6bf90bda4e0cab3203a0ae526/lib/router.js#L88
Router.map(function() {
  // initiative routes
  this.route('initiatives', {
    path: '/',
    template: 'initiatives',
    data: {
      initiatives: function() {
        return Initiatives.find({}, {$sort: {votes: -1}});
      }
    }
  });

  this.route('initiative', {
    path: '/initiative/:_id',
    template: 'initiativeShow',
    data: function () {
      return {
        initiative: Initiatives.findOne(this.params._id)
      }
    }
  });

  // login routes
  this.route('login', {
    path: '/login',
    template: 'publicLogin'
  });<commit_msg>Fix Initiative sorting on landing page.<commit_after>Router.configure({
  layoutTemplate: '_layout'
});

//From what I can tell this has been depreciated
//https://github.com/iron-meteor/iron-router/blob/739bcc1445db3ad6bf90bda4e0cab3203a0ae526/lib/router.js#L88
Router.map(function() {
  // initiative routes
  this.route('initiatives', {
    path: '/',
    template: 'initiatives',
    data: function() {
        return {
          initiatives: Initiatives.find({}, {sort: {votes: -1}})
      }
    }
  });

  this.route('initiative', {
    path: '/initiative/:_id',
    template: 'initiativeShow',
    data: function () {
      return {
        initiative: Initiatives.findOne(this.params._id)
      }
    }
  });

  // login routes
  this.route('login', {
    path: '/login',
    template: 'publicLogin'
  });
{'fraction_non_alphanumeric': 0.1620775969962453, 'fraction_numerical': 0.030037546933667083, 'mean_word_length': 2.9095354523227384, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3458936', 'n_tokens_mistral': 571, 'n_tokens_neox': 546, 'n_words': 95}