<commit_before>require! {
	'../user': User
	'../status': Status
}

# Status -> Promise Statuses
module.exports = (status) ->
	| !status.replies? => callback null
	| _ => Promise.all status.replies |> map (reply-status-id) ->
		resolve, reject <- new Promise
		Status.find-by-id reply-status-id, (, reply-status) ->
			| reply-status? => resolve reply-status
			| _ => resolve null<commit_msg>Fix bug<commit_after>require! {
	'../user': User
	'../status': Status
}

# Status -> Promise Statuses
module.exports = (status) ->
	| !status.replies? => new Promise((resolve) -> resolve null)
	| _ => Promise.all status.replies |> map (reply-status-id) ->
		resolve, reject <- new Promise
		Status.find-by-id reply-status-id, (, reply-status) ->
			| reply-status? => resolve reply-status
			| _ => resolve null
{'fraction_non_alphanumeric': 0.18181818181818182, 'fraction_numerical': 0.0, 'mean_word_length': 3.369565217391304, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 22, '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': '4137800', 'n_tokens_mistral': 279, 'n_tokens_neox': 266, 'n_words': 60}