<commit_before>define(
	[
		"../meta",
		"../class",
		"./base"
	],
	function (meta, Class, Base) {

		var Singleton = Class(
			meta({
				"name": "Singleton",
				"extends":  Base
			}),
			constructor
		);

		Singleton.method(
			meta({
				"entity": "method",
				"for": "Singleton",
				"static": true,
				"name": "getInstance",
				"description": "Useful for getting the singleton instance from class constructor."
			}),
			getInstance
		);

		function constructor () {
			this.invoke(addInstance);
			this.invoke(attachStaticGetInstance);
		}

		function addInstance () {
			var constructor = this.constructor;
			if (!constructor.instances) {
				constructor.instances = [];<commit_msg>changing extends meta param to a string module name<commit_after>define(
	[
		"../meta",
		"../class",
		"./base"
	],
	function (meta, Class) {

		var Singleton = Class(
			meta({
				"name": "Singleton",
				"extends":  "solv/abstract/base"
			}),
			constructor
		);

		Singleton.method(
			meta({
				"entity": "method",
				"for": "Singleton",
				"static": true,
				"name": "getInstance",
				"description": "Useful for getting the singleton instance from class constructor."
			}),
			getInstance
		);

		function constructor () {
			this.invoke(addInstance);
			this.invoke(attachStaticGetInstance);
		}

		function addInstance () {
			var constructor = this.constructor;
			if (!constructor.instances) {
				constructor.instances = [];
{'fraction_non_alphanumeric': 0.15625, 'fraction_numerical': 0.0, 'mean_word_length': 3.09375, 'pattern_counts': {'":': 14, '<': 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': '4480177', 'n_tokens_mistral': 562, 'n_tokens_neox': 443, 'n_words': 107}