<commit_before>describe("src/global/Console", () => {
    let Console = require('../../../src/global/Console').default;
    let log;
    let inc = 0;

    beforeEach(() => {
        log = console.log;
        console.log = () => inc++;
    });

    afterEach(() => console.log = log);

    it("Checking info() method in default mode", () => {
        inc = 0;
        Console.info("msg");
        expect(inc).toEqual(0);
    });
    it("Checking info() with MODE_QUIET_ALL mode", () => {
        inc = 0;
        Console.mode(Console.MODE_QUIET_ALL);
        Console.info("msg");
        expect(inc).toEqual(1);
        Console.mode(undefined);
    });
    it("Checking info() with MODE_QUIET_IMPORTANT mode", () => {
        inc = 0;
        Console.mode(Console.MODE_QUIET_IMPORTANT);
        Console.info("msg");
        expect(inc).toEqual(0);
        Console.mode(undefined);
    });
    it("Checking info() with MODE_QUIET_NO mode", () => {
        inc = 0;
        Console.mode(Console.MODE_QUIET_NO);
        Console.info("msg");
        expect(inc).toEqual(0);
        Console.mode(undefined);
    });

    it("Checking warn() method in default mode", () => {
        inc = 0;
        Console.warn("msg");
        expect(inc).toEqual(1);
    });
    it("Checking warn() with MODE_QUIET_ALL mode", () => {
        inc = 0;
        Console.mode(Console.MODE_QUIET_ALL);
        Console.warn("msg");
        expect(inc).toEqual(1);
        Console.mode(undefined);
    });
    it("Checking warn() with MODE_QUIET_IMPORTANT mode", () => {
        inc = 0;
        Console.mode(Console.MODE_QUIET_IMPORTANT);
        Console.warn("msg");
        expect(inc).toEqual(1);
        Console.mode(undefined);
    });
    it("Checking warn() with MODE_QUIET_NO mode", () => {
        inc = 0;
        Console.mode(Console.MODE_QUIET_NO);
        Console.warn("msg");
        expect(inc).toEqual(0);
        Console.mode(undefined);
    });

    it("Checking error() method in default mode", () => {
        inc = 0;
        Console.error("msg");
        expect(inc).toEqual(1);
    });
    it("Checking error() with MODE_QUIET_ALL mode", () => {
        inc = 0;
        Console.mode(Console.MODE_QUIET_ALL);
        Console.error("msg");
        expect(inc).toEqual(1);
        Console.mode(undefined);
    });
    it("Checking error() with MODE_QUIET_IMPORTANT mode", () => {
        inc = 0;
        Console.mode(Console.MODE_QUIET_IMPORTANT);
        Console.error("msg");
        expect(inc).toEqual(1);
        Console.mode(undefined);
    });
    it("Checking error() with MODE_QUIET_NO mode", () => {
        inc = 0;
        Console.mode(Console.MODE_QUIET_NO);
        Console.error("msg");
        expect(inc).toEqual(0);
        Console.mode(undefined);
    });
});<commit_msg>fixed tests<commit_after>describe("src/global/Console", () => {
    let Console = require('../../../src/global/Console').default;
    let Config  = require('../../../src/global/Config').default;
    let log;
    let inc = 0;

    beforeEach(() => {
        log = console.log;
        console.log = () => inc++;
    });

    afterEach(() => console.log = log);

    it("Checking info() method in default mode", () => {
        inc = 0;
        Console.info("msg");
        expect(inc).toEqual(0);
    });
    it("Checking info() with QUIET_ALL mode", () => {
        inc = 0;
        Console.mode(Config.QUIET_ALL);
        Console.info("msg");
        expect(inc).toEqual(1);
        Console.mode(undefined);
    });
    it("Checking info() with QUIET_IMPORTANT mode", () => {
        inc = 0;
        Console.mode(Config.QUIET_IMPORTANT);
        Console.info("msg");
        expect(inc).toEqual(0);
        Console.mode(undefined);
    });
    it("Checking info() with QUIET_NO mode", () => {
        inc = 0;
        Console.mode(Config.QUIET_NO);
        Console.info("msg");
        expect(inc).toEqual(0);
        Console.mode(undefined);
    });

    it("Checking warn() method in default mode", () => {
        inc = 0;
        Console.warn("msg");
        expect(inc).toEqual(1);
    });
    it("Checking warn() with QUIET_ALL mode", () => {
        inc = 0;
        Console.mode(Config.QUIET_ALL);
        Console.warn("msg");
        expect(inc).toEqual(1);
        Console.mode(undefined);
    });
    it("Checking warn() with QUIET_IMPORTANT mode", () => {
        inc = 0;
        Console.mode(Config.QUIET_IMPORTANT);
        Console.warn("msg");
        expect(inc).toEqual(1);
        Console.mode(undefined);
    });
    it("Checking warn() with QUIET_NO mode", () => {
        inc = 0;
        Console.mode(Config.QUIET_NO);
        Console.warn("msg");
        expect(inc).toEqual(0);
        Console.mode(undefined);
    });

    it("Checking error() method in default mode", () => {
        inc = 0;
        Console.error("msg");
        expect(inc).toEqual(1);
    });
    it("Checking error() with QUIET_ALL mode", () => {
        inc = 0;
        Console.mode(Config.QUIET_ALL);
        Console.error("msg");
        expect(inc).toEqual(1);
        Console.mode(undefined);
    });
    it("Checking error() with QUIET_IMPORTANT mode", () => {
        inc = 0;
        Console.mode(Config.QUIET_IMPORTANT);
        Console.error("msg");
        expect(inc).toEqual(1);
        Console.mode(undefined);
    });
    it("Checking error() with QUIET_NO mode", () => {
        inc = 0;
        Console.mode(Config.QUIET_NO);
        Console.error("msg");
        expect(inc).toEqual(0);
        Console.mode(undefined);
    });
});
{'fraction_non_alphanumeric': 0.17846820809248554, 'fraction_numerical': 0.009031791907514452, 'mean_word_length': 2.1730659025787964, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 35, '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': '6520524', 'n_tokens_mistral': 1777, 'n_tokens_neox': 1774, 'n_words': 296}