<commit_before>Meteor.publish 'userData', ->
	unless this.userId
		return this.ready()

	RocketChat.models.Users.find this.userId,
		fields:
			name: 1
			username: 1
			status: 1
			statusDefault: 1
			statusConnection: 1
			avatarOrigin: 1
			utcOffset: 1
			language: 1
			settings: 1
			roles: 1
			active: 1
			defaultRoom: 1
			'services.github': 1
			'services.gitlab': 1
			requirePasswordChange: 1
			requirePasswordChangeReason: 1
			'services.password.bcrypt': 1
			statusLivechat: 1 # @TODO create an API so a package could add fields here
			photo: 1
			declaration: 1
			location: 1
<commit_msg>fetch all user data<commit_after>Meteor.publish 'userData', ->
	unless this.userId
		return this.ready()

	RocketChat.models.Users.find {},
		fields:
			name: 1
			username: 1
			status: 1
			statusDefault: 1
			statusConnection: 1
			avatarOrigin: 1
			utcOffset: 1
			language: 1
			settings: 1
			roles: 1
			active: 1
			defaultRoom: 1
			'services.github': 1
			'services.gitlab': 1
			requirePasswordChange: 1
			requirePasswordChangeReason: 1
			'services.password.bcrypt': 1
			statusLivechat: 1 # @TODO create an API so a package could add fields here
			photo: 1
			declaration: 1
			location: 1

{'fraction_non_alphanumeric': 0.08641975308641975, 'fraction_numerical': 0.0345679012345679, 'mean_word_length': 3.1220338983050846, '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': '1063067', 'n_tokens_mistral': 533, 'n_tokens_neox': 405, 'n_words': 126}