<commit_before><commit_msg>Extract module: notifications api patch<commit_after>'use strict';

// Electron doesn't support notifications in Windows yet. https://github.com/atom/electron/issues/262
// So we hijack the Notification API.
const ipc = require('ipc');

module.exports = () => {
	const OldNotification = Notification;

	Notification = function (title, options) {
		ipc.send('notification-shim', {
			title,
			options
		});

		return new OldNotification(title, options);
	};
	Notification.prototype = OldNotification.prototype;
	Notification.permission = OldNotification.permission;
	Notification.requestPermission = OldNotification.requestPermission;
};
{'fraction_non_alphanumeric': 0.1144578313253012, 'fraction_numerical': 0.004518072289156626, 'mean_word_length': 5.333333333333333, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 1, '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': '7218077', 'n_tokens_mistral': 189, 'n_tokens_neox': 171, 'n_words': 44}