<commit_before>describe("Date", function() {
    describe("#parseFromApi", function() {
        it("parses dates with one-digit milliseconds", function() {
            var time = Date.parseFromApi("2011-11-16 09:40:27.6").getTime();
            expect(time).toBeTruthy();
            expect(time).toBe(new Date("2011-11-16 09:40:27").getTime())
        })

        it("parses dates with two-digit milliseconds", function() {
            var time = Date.parseFromApi("2011-11-16 09:40:27.16").getTime();
            expect(time).toBeTruthy();
            expect(time).toBe(new Date("2011-11-16 09:40:27").getTime())
        })

        it("parses dates with three-digit milliseconds", function() {
            var time = Date.parseFromApi("2011-11-16 09:40:27.456").getTime();
            expect(time).toBeTruthy();
            expect(time).toBe(new Date("2011-11-16 09:40:27").getTime())
        })

        it("parses dates without milliseconds", function() {
            var time = Date.parseFromApi("2011-11-16 09:40:27").getTime();
            expect(time).toBeTruthy();
            expect(time).toBe(new Date("2011-11-16 09:40:27").getTime())
        })

        it("parses dates with milliseconds and timezone", function() {
            var time = Date.parseFromApi("2011-11-16 09:40:27.146-8").getTime();
            expect(time).toBeTruthy();
            expect(time).toBe(new Date("2011-11-16 09:40:27").getTime())
        })

        it("returns a falsy value when the date is in a bogus format", function() {
            expect(Date.parseFromApi("fooey")).toBeFalsy();
        })

        it("returns a falsy value when the date is a falsey value", function() {
            expect(Date.parseFromApi(false)).toBeFalsy();
        })
    })
})<commit_msg>Fix date tests<commit_after>describe("Date", function() {
    describe("#parseFromApi", function() {
        it("parses dates with one-digit milliseconds", function() {
            var time = Date.parseFromApi("2011-11-16 09:40:27.6").getTime();
            expect(time).toBeTruthy();
            expect(time).toBe(Date.parse("2011-11-16 09:40:27").getTime())
        })

        it("parses dates with two-digit milliseconds", function() {
            var time = Date.parseFromApi("2011-11-16 09:40:27.16").getTime();
            expect(time).toBeTruthy();
            expect(time).toBe(Date.parse("2011-11-16 09:40:27").getTime())
        })

        it("parses dates with three-digit milliseconds", function() {
            var time = Date.parseFromApi("2011-11-16 09:40:27.456").getTime();
            expect(time).toBeTruthy();
            expect(time).toBe(Date.parse("2011-11-16 09:40:27").getTime())
        })

        it("parses dates without milliseconds", function() {
            var time = Date.parseFromApi("2011-11-16 09:40:27").getTime();
            expect(time).toBeTruthy();
            expect(time).toBe(Date.parse("2011-11-16 09:40:27").getTime())
        })

        it("parses dates with milliseconds and timezone", function() {
            var time = Date.parseFromApi("2011-11-16 09:40:27.146-8").getTime();
            expect(time).toBeTruthy();
            expect(time).toBe(Date.parse("2011-11-16 09:40:27").getTime())
        })

        it("returns a falsy value when the date is in a bogus format", function() {
            expect(Date.parseFromApi("fooey")).toBeFalsy();
        })

        it("returns a falsy value when the date is a falsey value", function() {
            expect(Date.parseFromApi(false)).toBeFalsy();
        })
    })
})
{'fraction_non_alphanumeric': 0.1670907548770144, 'fraction_numerical': 0.08481764206955046, 'mean_word_length': 2.458455522971652, 'pattern_counts': {'":': 0, '<': 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': '5308059', 'n_tokens_mistral': 1274, 'n_tokens_neox': 1053, 'n_words': 199}