<commit_before>Accounts.onCreateUser(function(options, user) {
	user.inGame = false;

	if(options.profile) {
		user.profile = options.profile;
	}

	return user;
});

Meteor.publish("adminInfo", function() {
	if(!Roles.userIsInRole(this.userId, "admin")) {
		this.ready();
	}

	return [
		Meteor.users.find({"inGame": true}, {
			fields: {
				"alive": 1,
				"inGame": 1,
				"kills": 1,
				"assassin": 1,
				"target": 1,
				"profile.name": 1
			}
		}),
		Actions.find()
	];
});

Meteor.publish("target", function() {
	return Meteor.users.find(this.userId, {<commit_msg>Publish all users<commit_after>Accounts.onCreateUser(function(options, user) {
	user.inGame = false;

	if(options.profile) {
		user.profile = options.profile;
	}

	return user;
});

Meteor.publish("adminInfo", function() {
	if(!Roles.userIsInRole(this.userId, "admin")) {
		this.ready();
	}

	return [
		Meteor.users.find({}, {
			fields: {
				"alive": 1,
				"inGame": 1,
				"kills": 1,
				"assassin": 1,
				"target": 1,
				"profile.name": 1
			}
		}),
		Actions.find()
	];
});

Meteor.publish("target", function() {
	return Meteor.users.find(this.userId, {
{'fraction_non_alphanumeric': 0.19454225352112675, 'fraction_numerical': 0.01056338028169014, 'mean_word_length': 3.5846774193548385, 'pattern_counts': {'":': 13, '<': 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': '320890', 'n_tokens_mistral': 517, 'n_tokens_neox': 440, 'n_words': 71}