<commit_before>import { Rule, Tree } from '@angular-devkit/schematics';
import { migrateFile } from './migration';

export default (): Rule => {
	return (tree: Tree) => {
		tree.visit((path, entry) => {
			if (!path.endsWith('.scss') || !entry) {
				return;
			}

			tree.overwrite(path, migrateFile(entry.content.toString()));
		});
	};
};<commit_msg>fix(schematics): do not migrate node_modules<commit_after>import { Rule, Tree } from '@angular-devkit/schematics';
import { migrateFile } from './migration';

export default (): Rule => {
	return (tree: Tree) => {
		tree.visit((path, entry) => {
			if (!path.endsWith('.scss') || path.includes('node_modules') || !entry) {
				return;
			}

			tree.overwrite(path, migrateFile(entry.content.toString()));
		});
	};
};
{'fraction_non_alphanumeric': 0.2, 'fraction_numerical': 0.0, 'mean_word_length': 4.20945945945946, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '3865726', 'n_tokens_mistral': 284, 'n_tokens_neox': 251, 'n_words': 51}