<commit_before>require! {
	jade
	'./timeline-serialyzer': serialyzer
	'./textparser': textparser
	'../../config': config
}

exports = (statuses, viewer, callback) ->
	compiler = jade.compile-file __dirname + '/../views/templates/timeline.jade'
	if statuses?
		serialyzer statuses, viewrer, (timeline) ->
			html = compiler do
				statuses: timeline
				url: config.publicConfig.url
				login: viewer?
				parseText: textparser
			callback html
	else
		html = compiler do
			statuses: null
			url: config.publicConfig.url
			login: !viewer?
			parseText: textparser
		callback html<commit_msg>Fix bug<commit_after>require! {
	jade
	'./timeline-serialyzer': serialyzer
	'./textparser': textparser
	'../../config': config
}

exports = (statuses, viewer, callback) ->
	compiler = jade.compile-file __dirname + '/../views/templates/timeline.jade'
	if statuses?
		serialyzer statuses, viewrer, (timeline) ->
			html = compiler do
				statuses: timeline
				url: config.publicConfig.url
				login: viewer?
				parseText: textparser
			callback html
	else
		html = compiler do
			statuses: null
			url: config.publicConfig.url
			login: viewer?
			parseText: textparser
		callback html
{'fraction_non_alphanumeric': 0.11809685641461343, 'fraction_numerical': 0.0, 'mean_word_length': 3.462121212121212, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '1546164', 'n_tokens_mistral': 441, 'n_tokens_neox': 379, 'n_words': 98}