<commit_before>/**
 * Cette classe permet de gérer les redimensionnement de la fenêtre
 * Elle permet d'avoir un temps latence pour détecter la fin du redimensionnement
 * Elle gère également l'ordre des appels via la classe callStack
 * La pile d'appels se gère via la propriété stack
 *
 * @requires CallStack
 */
resize = {

    /*
	 * Properties
	 */
    delay: 0, //Time to resize
    classes: {
        resizing: 'resizing',
    },
    stacks: {
        core: 'core',
        main: 'main',
        last: 'last',
    },
	namespace: 'reisze',
	initialized: false,
	$window: null,
	$body: null,
    _stacks: {},
    stack: null, //shortcut to _stacks.main
    timeout: null,

	//--------------------------------------------------------------------------
	//	INITIALIZATION
	//--------------------------------------------------------------------------
	/**
	 * Initialise la classe
	 *
	 * @return {Object}
	 */
	init: function() {
		//Check
		if (this.initialized) return this;
		//Elements constant
		this.$window = $(window);
		this.$body = $('body');
        $.each(this.stacks, function(i,e) {
            this._stacks[e] = new CallStack();
        }.bind(this));
        this.stack = this._stacks.main;
		//Bind les events
        this.$window.bind('resize.'+this.namespace, function() {
			if (this.initialized) {
                //If delay
                if (this.delay>0) {
                    //Clear timeout
                    clearTimeout(this.timeout);
                    //Set new timeout
                    this.timeout = setTimeout(function () {
                        this.refresh();
                    }.bind(this), this.delay);
                } else {
                    this.refresh();<commit_msg>Insert namespace<commit_after>/**
 * @author <NAME> <https://github.com/EdouardDem>
 * @license http://opensource.org/licenses/BSD-2-Clause BSD 2-Clause License
 */

/**
 * Object djs for namespace
 */
window.djs = window.djs || {};

/**
 * Cette classe permet de gérer les redimensionnement de la fenêtre
 * Elle permet d'avoir un temps latence pour détecter la fin du redimensionnement
 * Elle gère également l'ordre des appels via la classe callStack
 * La pile d'appels se gère via la propriété stack
 *
 * @requires djs.CallStack <https://github.com/EdouardDem/djs-call-stack>
 */
djs.resize = {

    /*
	 * Properties
	 */
    delay: 0, //Time to resize
    classes: {
        resizing: 'resizing',
    },
    stacks: {
        core: 'core',
        main: 'main',
        last: 'last',
    },
	namespace: 'reisze',
	initialized: false,
	$window: null,
	$body: null,
    _stacks: {},
    stack: null, //shortcut to _stacks.main
    timeout: null,

	//--------------------------------------------------------------------------
	//	INITIALIZATION
	//--------------------------------------------------------------------------
	/**
	 * Initialise la classe
	 *
	 * @return {Object}
	 */
	init: function() {
		//Check
		if (this.initialized) return this;
		//Elements constant
		this.$window = $(window);
		this.$body = $('body');
        $.each(this.stacks, function(i,e) {
            this._stacks[e] = new djs.CallStack();
        }.bind(this));
        this.stack = this._stacks.main;
		//Bind les events
        this.$window.bind('resize.'+this.namespace, function() {
			if (this.initialized) {
                //If delay
                if (this.delay>0) {
                    //Clear timeout
                    clearTimeout(this.timeout);
                    //Set new timeout
                    this.timeout = setTimeout(function () {
                        this.refresh();
                    }.bind(this), this.delay);
                } else {
                    this.refresh();
{'fraction_non_alphanumeric': 0.20483870967741935, 'fraction_numerical': 0.0016129032258064516, 'mean_word_length': 1.4973154362416108, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 8, 'https://': 2, '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': '1602082', 'n_tokens_mistral': 1089, 'n_tokens_neox': 1040, 'n_words': 271}