<commit_before>'use strict';

/**
 * bagcilar : A tiny modular application mediator project
 *
 */

/**
 * MODULES are the main wrapper object which keeps the modules
 * initialized with mediator.module method
 */
var MODULES = MODULES || {};

/**
 * mediator main module creation object
 *
 * @param <Function> IIFE
 */
var bagcilar = (function () {

	var mainModule = 'main';

	return {

		/**
		 * module() is a module creation method
		 *
		 * @param <String> name
		 * @param <Function> fn
		 * @param <Boolean> initOnLoad
		 */
		module : function (name, fn, initOnLoad) {
			MODULES[name] = new fn();
			if (name === mainModule) {
				this.init(mainModule);
			} else {
				if (initOnLoad) {
					this.start(name);
				}
			}
		},

		/**
		 * start() is a module initializing method
		 * that makes modules starting to work
		 *
		 * @param <String> name
		 */
		start : function (name) {
			for(var key in MODULES[name]) {
				if (MODULES[name][key] instanceof Function) {
					MODULES[name][key]();
				}
			}
		},

			/**
			 * init() is a main module initializing method
			 * that makes modules starting to work
			 *
			 * @param <String> mainModule
			 */
			init : function(mainModule){
				MODULES[mainModule]['init'];
			}

	}

})();<commit_msg>Edited indentation.<commit_after>'use strict';

/**
 * bagcilar : A tiny modular application mediator project
 *
 */

/**
 * MODULES are the main wrapper object which keeps the modules
 * initialized with mediator.module method
 */
var MODULES = MODULES || {};

/**
 * mediator main module creation object
 *
 * @param <Function> IIFE
 */
var bagcilar = (function () {

	var mainModule = 'main';

	return {

    /**
    * module() is a module creation method
    *
    * @param <String> name
    * @param <Function> fn
    * @param <Boolean> initOnLoad
    */
    module : function (name, fn, initOnLoad) {
      MODULES[name] = new fn();
      if (name === mainModule) {
        this.init(mainModule);
      } else {
        if (initOnLoad) {
          this.start(name);
        }
      }
    },

    /**
    * start() is a module initializing method
    * that makes modules starting to work
    *
    * @param <String> name
    */
    start : function (name) {
      for(var key in MODULES[name]) {
        if (MODULES[name][key] instanceof Function) {
          MODULES[name][key]();
        }
      }
    },

    /**
    * init() is a main module initializing method
    * that makes modules starting to work
    *
    * @param <String> mainModule
    */
    init : function(mainModule){
      MODULES[mainModule]['init'];
    }

	}

})();
{'fraction_non_alphanumeric': 0.13699155794320797, 'fraction_numerical': 0.0, 'mean_word_length': 2.398956975228162, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '284830', 'n_tokens_mistral': 891, 'n_tokens_neox': 799, 'n_words': 237}