<commit_before>#include <stdio.h>

#include "py/lexer.h"

mp_import_stat_t mp_import_stat(const char *path) {
    return MP_IMPORT_STAT_NO_EXIST;
}

mp_lexer_t *mp_lexer_new_from_file(const char *filename) {
    return NULL;
}<commit_msg>teensy/lexerfrozen: Make mp_lexer_new_from_file raise an exception.<commit_after>#include <stdio.h>

#include "py/lexer.h"
#include "py/runtime.h"
#include "py/mperrno.h"

mp_import_stat_t mp_import_stat(const char *path) {
    return MP_IMPORT_STAT_NO_EXIST;
}

mp_lexer_t *mp_lexer_new_from_file(const char *filename) {
    mp_raise_OSError(MP_ENOENT);
}
{'fraction_non_alphanumeric': 0.10942760942760943, 'fraction_numerical': 0.0, 'mean_word_length': 6.345679012345679, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7351259', 'n_tokens_mistral': 254, 'n_tokens_neox': 249, 'n_words': 40}