<commit_before>"use strict";

const path = require('path');
global.gpfSourcesPath = path.join(__dirname, "../../src/");
require("../../src/boot");

var GpfPromise = gpf.internals._GpfPromise;

function createTest (PromiseClass) {
    return function () {
        return PromiseClass.resolve()
            .then(function () {
                return PromiseClass.all([
                    PromiseClass.resolve(),
                    PromiseClass.resolve()
                ]);
            });
    };
}

module.exports = {

    "Native promise": createTest(Promise),

    "Polyfilled promise": createTest(GpfPromise)

};<commit_msg>gpf is loaded upfront<commit_after>"use strict";

var GpfPromise = gpf.internals._GpfPromise;

function createTest (PromiseClass) {
    return function () {
        return PromiseClass.resolve()
            .then(function () {
                return PromiseClass.all([
                    PromiseClass.resolve(),
                    PromiseClass.resolve()
                ]);
            });
    };
}

module.exports = {

    "Native promise": createTest(Promise),

    "Polyfilled promise": createTest(GpfPromise)

};
{'fraction_non_alphanumeric': 0.13263525305410123, 'fraction_numerical': 0.0, 'mean_word_length': 2.1, 'pattern_counts': {'":': 4, '<': 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': '7446815', 'n_tokens_mistral': 307, 'n_tokens_neox': 297, 'n_words': 58}