<commit_before>import os from 'os';

export function getIPS() {
	const interfaces = os.networkInterfaces();
	return Object.keys(interfaces)
		.map((name) => {
			return interfaces[name].filter(
				(binding: any) => binding.family === 'IPv4'
			)[0];
		})
		.filter(Boolean)
		.map((binding) => binding.address);
}
<commit_msg>fix(webpack): unit test runner with node 18+ (#9952)<commit_after>import os from 'os';

export function getIPS() {
	const interfaces = os.networkInterfaces();
	return Object.keys(interfaces)
		.map((name) => {
			return interfaces[name].filter(
				(binding: any) => binding.family === 'IPv4' || binding.family === 4
			)[0];
		})
		.filter((binding) => !!binding)
		.map((binding) => binding.address);
}

{'fraction_non_alphanumeric': 0.18442622950819673, 'fraction_numerical': 0.015027322404371584, 'mean_word_length': 4.350364963503649, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 10, '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': '7233123', 'n_tokens_mistral': 273, 'n_tokens_neox': 239, 'n_words': 56}