<commit_before>Meteor.methods
	getUserId: (username) ->
		user = RocketChat.models.Users.findOne {username: username}
		return user and user._id<commit_msg>Updated method getUserId to throw an error if username is not found.<commit_after>Meteor.methods
	getUserId: (username) ->
		user = RocketChat.models.Users.findOne(username: username)
		if user
			return user._id
		else
			throw new (Meteor.Error)('user-not-found', username + ' not found in users collection.')
		return
{'fraction_non_alphanumeric': 0.10294117647058823, 'fraction_numerical': 0.0, 'mean_word_length': 4.6117647058823525, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6063222', 'n_tokens_mistral': 157, 'n_tokens_neox': 146, 'n_words': 42}