<commit_before>import { compareSequences } from './util';

describe('compareSequences', () => {
    it('matches at pos 0', () => {
        expect(
            compareSequences([0x01, 0x02, 0x03], [0x01, 0x02, 0x03], 0)
        ).toBeTruthy();
    });

    it('matches at pos 1', () => {
        expect(
            compareSequences([0x00, 0x01, 0x02, 0x03], [0x01, 0x02, 0x03], 1)
        ).toBeTruthy();
    });
});<commit_msg>fix test typing<commit_after>import { compareSequences } from './util';

describe('compareSequences', () => {
    it('matches at pos 0', () => {
        expect(
            compareSequences(
                new Uint8Array([0x01, 0x02, 0x03]),
                [0x01, 0x02, 0x03],
                0
            )
        ).toBeTruthy();
    });

    it('matches at pos 1', () => {
        expect(
            compareSequences(
                new Uint8Array([0x00, 0x01, 0x02, 0x03]),
                [0x01, 0x02, 0x03],
                1
            )
        ).toBeTruthy();
    });
});
{'fraction_non_alphanumeric': 0.16765285996055226, 'fraction_numerical': 0.08678500986193294, 'mean_word_length': 1.7066666666666668, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '748949', 'n_tokens_mistral': 399, 'n_tokens_neox': 340, 'n_words': 70}