<commit_before>import Metatags from '/imports/Metatags.js';

Router.map(function () {
	this.route('framePropose', {
		path: '/frame/propose',
		template: 'framePropose',
		layoutTemplate: 'frameLayout',
		waitOn: function () {
			this.filter = Filtering(EventPredicates).read(this.params.query).done();

			var filterParams = this.filter.toParams();
			filterParams.after = minuteTime.get();

			var limit = parseInt(this.params.query.count, 10) || 6;

			return [
				Meteor.subscribe('eventsFind', filterParams, limit*2),
				Meteor.subscribe('regions')
			];
		},

		data: function() {
			regions = Regions.find();
			return regions;
		},

		onAfterAction: function() {
			Metatags.setCommonTags(mf('course.propose.windowtitle', 'Propose new course'));
		}
	});
});<commit_msg>return regions cursor directly<commit_after>import Metatags from '/imports/Metatags.js';

Router.map(function () {
	this.route('framePropose', {
		path: '/frame/propose',
		template: 'framePropose',
		layoutTemplate: 'frameLayout',
		waitOn: function () {
			this.filter = Filtering(EventPredicates).read(this.params.query).done();

			var filterParams = this.filter.toParams();
			filterParams.after = minuteTime.get();

			var limit = parseInt(this.params.query.count, 10) || 6;

			return [
				Meteor.subscribe('eventsFind', filterParams, limit*2),
				Meteor.subscribe('regions')
			];
		},

		data: function() {
			return Regions.find();
		},

		onAfterAction: function() {
			Metatags.setCommonTags(mf('course.propose.windowtitle', 'Propose new course'));
		}
	});
});
{'fraction_non_alphanumeric': 0.16334405144694533, 'fraction_numerical': 0.005144694533762058, 'mean_word_length': 4.292517006802721, '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': '7477106', 'n_tokens_mistral': 585, 'n_tokens_neox': 499, 'n_words': 87}