<commit_before>'use strict';
module.exports = options => function * pathExpansion(tokens) {
	for (const token of tokens) {
		if (token.WORD && typeof options.resolvePath === 'function') {
			token.WORD = options.resolvePath(token.WORD);
		}
		if (token.ASSIGNMENT_WORD && typeof options.resolvePath === 'function') {
			token.ASSIGNMENT_WORD = options.resolvePath(token.ASSIGNMENT_WORD);
		}
		yield token;
	}
};<commit_msg>Fix path expansion in assignments<commit_after>'use strict';
module.exports = options => function * pathExpansion(tokens) {
	for (const token of tokens) {
		if (token.WORD && typeof options.resolvePath === 'function') {
			token.WORD = options.resolvePath(token.WORD);
		}
		if (token.ASSIGNMENT_WORD && typeof options.resolvePath === 'function') {
			const parts = token.ASSIGNMENT_WORD.split('=');
			token.ASSIGNMENT_WORD = parts[0] + '=' + options.resolvePath(parts[1]);
		}
		yield token;
	}
};
{'fraction_non_alphanumeric': 0.15059588299024917, 'fraction_numerical': 0.0021668472372697724, 'mean_word_length': 4.739130434782608, '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': '4473613', 'n_tokens_mistral': 310, 'n_tokens_neox': 285, 'n_words': 62}