<commit_before>/*
 * https://github.com/starzou
 *
 * Copyright (c) 2014 StarZou
 * Licensed under the MIT license.
 */

/**
 * @class execute
 * @description
 * @time 2014-11-28 21:31
 * @author StarZou
 **/
'use strict';

function a() {
    var name = 'a';
    b(name);

    this['<return>'] = {name: name};
}

function b(n) {
    var name = 'b';
    console.log(arguments);
    c();
}

function c() {
    var name = 'c';
    console.log(Date.now());
}

var obj = new a();
console.log(obj);


(function t() {
    setTimeout(function createA() {
        new a();
    }, 2000);
})();

(function t2() {
    setTimeout(function createA() {
        new a();
    }, 1980);
})();


var clickButton = document.getElementById('clickButton');

clickButton.addEventListener('click', function () {
    console.log(arguments);
});

clickButton.onclick = function () {
    console.log(arguments);
};
<commit_msg>study js execute<commit_after>/*
 * https://github.com/starzou
 *
 * Copyright (c) 2014 StarZou
 * Licensed under the MIT license.
 */

/**
 * @class execute
 * @description
 * @time 2014-11-28 21:31
 * @author StarZou
 **/
'use strict';

var name = 'window';

function a() {
    var name = 'a';
    b(name);

    this['<return>'] = {name: name};

    return b();
}

function b(n) {
    var name = 'b';
    console.log(arguments);
    return c();
}

function c() {
    var name = 'c', now = Date.now();
    console.log(name, now);

    function otherInC() {
        var name = 'otherInC';
        console.log(name, this);
    }

    otherInC();

    return function childC() {
        console.log(name, this);
    };
}

var obj = new a();
console.log(obj);
obj();

//(function t() {
//    setTimeout(function createA() {
//        new a();
//    }, 2000);
//})();
//
//(function t2() {
//    setTimeout(function createA() {
//        new a();
//    }, 1980);
//})();

var clickButton = document.getElementById('clickButton');

clickButton.addEventListener('click', function () {
    console.log(arguments);
});

clickButton.onclick = function () {
    console.log(arguments);
};

{'fraction_non_alphanumeric': 0.19480519480519481, 'fraction_numerical': 0.02405002405002405, 'mean_word_length': 2.741007194244604, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3000829', 'n_tokens_mistral': 754, 'n_tokens_neox': 706, 'n_words': 167}