<commit_before>define [
	"base"
], (App) ->
	mathjaxConfig =
		messageStyle: "none"
		imageFont:null
		"HTML-CSS": { availableFonts: ["TeX"] },
		TeX:
			equationNumbers: { autoNumber: "AMS" },
			useLabelIDs: false
		tex2jax:
			inlineMath: [ ['$','$'], ["\\(","\\)"] ],
			displayMath: [ ['$$','$$'], ["\\[","\\]"] ],
			processEscapes: true
		skipStartupTypeset: true

	MathJax?.Hub?.Config(mathjaxConfig);
	
	App.directive "mathjax", () -><commit_msg>Use the MathJax `Safe.js` extension to prevent XSS<commit_after>define [
	"base"
], (App) ->
	mathjaxConfig =
		extensions: ["Safe.js"]
		messageStyle: "none"
		imageFont:null
		"HTML-CSS": { availableFonts: ["TeX"] },
		TeX:
			equationNumbers: { autoNumber: "AMS" },
			useLabelIDs: false
		tex2jax:
			inlineMath: [ ['$','$'], ["\\(","\\)"] ],
			displayMath: [ ['$$','$$'], ["\\[","\\]"] ],
			processEscapes: true
		skipStartupTypeset: true

	MathJax?.Hub?.Config(mathjaxConfig);
	
	App.directive "mathjax", () ->
{'fraction_non_alphanumeric': 0.2394655704008222, 'fraction_numerical': 0.0020554984583761563, 'mean_word_length': 3.9693877551020407, 'pattern_counts': {'":': 2, '<': 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': '7654950', 'n_tokens_mistral': 407, 'n_tokens_neox': 357, 'n_words': 61}