<commit_before>"use strict";
/**
 * Create a notification
 * @constructor
 */
function Notification (payload) {
	this.encoding = "utf8";

	this.payload = payload || {};
	this.expiry = 0;
	this.priority = 10;

	this.retryLimit = -1;

	/** @deprecated since v1.3.0 used connection#pushNotification instead which accepts device token separately **/
	this.device = undefined;

	this.compiled = false;

	this.truncateAtWordEnd = false;
}

Notification.prototype = {
	get alert() {
		return this._alert;
	},
	set alert(value) {
		var type = typeof value;
		if (type == "string" || type == "object" || value === undefined) {
			this._alert = value;
		}
	},

	get badge() {
		return this._badge;
	},
	set badge(value) {
		if (typeof value === "number" || value === undefined) {
			this._badge = value;
		}
	},

	get sound() {
		return this._sound;
	},
	set sound(value) {
		if (typeof value == "string" || value === undefined) {
			this._sound = value;
		}
	},

	get contentAvailable() {
		return this._contentAvailable;
	},
	set contentAvailable(value) {
		if (typeof value == "boolean" || value === undefined) {
			this._contentAvailable = value;
		}
	},

	get newsstandAvailable() {
		return this.contentAvailable;
	},
	set newsstandAvailable(value) {
		this.contentAvailable = value;
	},

	get mdm() {
		return this._mdm;
	},
	set mdm(value) {
		this._mdm = value;
	},

	get urlArgs() {
		return this._urlArgs;
	},
	set urlArgs(value) {
		this._urlArgs = value;
	},

	get category() {
		return this._category;
	},
	set category(value) {
		this._category = value;
	}
}

/**
 * Clone a notification to send to multiple devices
 * @param {Device} [device] Device the notification will be sent to
 * @returns {Notification} A notification containing the same properties as the receiver
 * @since v1.2.0
 * @deprecated Since v1.3.0, notifications are not tied to a device so do not need cloning.
 */
Notification.prototype.clone = function (device) {
	var notification = new Notification();

	notification.encoding = this.encoding;
	notification.payload = this.payload;
	notification.expiry = this.expiry;
	notification.priority = this.priority;
	notification.device = device;

	notification.alert = this.alert;
	notification.badge = this.badge;
	notification.sound = this.sound;
	notification.newsstandAvailable = this.newsstandAvailable;<commit_msg>Lint stuff<commit_after>"use strict";
/**
 * Create a notification
 * @constructor
 */
function Notification (payload) {
	this.encoding = "utf8";

	this.payload = payload || {};
	this.expiry = 0;
	this.priority = 10;

	this.retryLimit = -1;

	/** @deprecated since v1.3.0 used connection#pushNotification instead which accepts device token separately **/
	this.device = undefined;

	this.compiled = false;

	this.truncateAtWordEnd = false;
}

Notification.prototype = {
	get alert() {
		return this._alert;
	},
	set alert(value) {
		var type = typeof value;
		if (type === "string" || type === "object" || value === undefined) {
			this._alert = value;
		}
	},

	get badge() {
		return this._badge;
	},
	set badge(value) {
		if (typeof value === "number" || value === undefined) {
			this._badge = value;
		}
	},

	get sound() {
		return this._sound;
	},
	set sound(value) {
		if (typeof value === "string" || value === undefined) {
			this._sound = value;
		}
	},

	get contentAvailable() {
		return this._contentAvailable;
	},
	set contentAvailable(value) {
		if (typeof value === "boolean" || value === undefined) {
			this._contentAvailable = value;
		}
	},

	get newsstandAvailable() {
		return this.contentAvailable;
	},
	set newsstandAvailable(value) {
		this.contentAvailable = value;
	},

	get mdm() {
		return this._mdm;
	},
	set mdm(value) {
		this._mdm = value;
	},

	get urlArgs() {
		return this._urlArgs;
	},
	set urlArgs(value) {
		this._urlArgs = value;
	},

	get category() {
		return this._category;
	},
	set category(value) {
		this._category = value;
	}
};

/**
 * Clone a notification to send to multiple devices
 * @param {Device} [device] Device the notification will be sent to
 * @returns {Notification} A notification containing the same properties as the receiver
 * @since v1.2.0
 * @deprecated Since v1.3.0, notifications are not tied to a device so do not need cloning.
 */
Notification.prototype.clone = function (device) {
	var notification = new Notification();

	notification.encoding = this.encoding;
	notification.payload = this.payload;
	notification.expiry = this.expiry;
	notification.priority = this.priority;
	notification.device = device;

	notification.alert = this.alert;
	notification.badge = this.badge;
	notification.sound = this.sound;
	notification.newsstandAvailable = this.newsstandAvailable;
{'fraction_non_alphanumeric': 0.1350832266325224, 'fraction_numerical': 0.00597524541186513, 'mean_word_length': 3.763211382113821, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2805415', 'n_tokens_mistral': 1577, 'n_tokens_neox': 1467, 'n_words': 402}