<commit_before>

AuthRouteController = RouteController.extend({
	onBeforeAction: function() {
	    if(_.isNull(Meteor.user())) {
	      Router.go(Router.path('ConceptIndex'));
	    }
  	}
});

ConceptIndexController = AuthRouteController.extend({
	waitOn: function () {
	},

	data: function () {
	},

	action: function () {
		this.render();
	}
});

ReportListController = RouteController.extend({
  	waitOn: function () {
  		return Meteor.subscribe('reports');
  	},

  	data: function () {
  	},

  	action: function () {
    	this.render();
  	}
});

AdminCreateReportController = AuthRouteController.extend({
	waitOn: function () {
		return [ Meteor.subscribe('images'), Meteor.subscribe('files') ];
	},

	data: function () {
		
	},

	action: function () {
		this.render();
	}
});

ReportViewController = AuthRouteController.extend({
	waitOn: function () {
		return Meteor.subscribe('report', this.params._id);
	},

	data: function () {
		return Reports.findOne({_id: this.params._id});
	},

	action: function () {
		this.render();
	}
});<commit_msg>Fix for reports not showing up for not logged in users<commit_after>

AuthRouteController = RouteController.extend({
	onBeforeAction: function() {
	    if(_.isNull(Meteor.user())) {
	      Router.go(Router.path('ConceptIndex'));
	    }
  	}
});

ConceptIndexController = AuthRouteController.extend({
	waitOn: function () {
	},

	data: function () {
	},

	action: function () {
		this.render();
	}
});

ReportListController = RouteController.extend({
  	waitOn: function () {
  		return Meteor.subscribe('reports');
  	},

  	data: function () {
  	},

  	action: function () {
    	this.render();
  	}
});

AdminCreateReportController = AuthRouteController.extend({
	waitOn: function () {
		return [ Meteor.subscribe('images'), Meteor.subscribe('files') ];
	},

	data: function () {
		
	},

	action: function () {
		this.render();
	}
});

ReportViewController = RouteController.extend({
	waitOn: function () {
		return Meteor.subscribe('report', this.params._id);
	},

	data: function () {
		return Reports.findOne({_id: this.params._id});
	},

	action: function () {
		this.render();
	}
});
{'fraction_non_alphanumeric': 0.17156177156177158, 'fraction_numerical': 0.0, 'mean_word_length': 3.7373068432671084, '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': '1550146', 'n_tokens_mistral': 748, 'n_tokens_neox': 691, 'n_words': 118}