<commit_before>#include <allegro.h>

#include <iostream>
#include "mugen/character.h"
#include "mugen/mugen_exception.h"

using namespace std;

int main(){
    install_allegro(SYSTEM_NONE, &errno, atexit);
    set_color_depth(16);
    set_color_conversion(COLORCONV_NONE);

    // for (int i = 0; i < 3; i++){
        try{
            Mugen::Character kfm("kfm");
            kfm.load();
        } catch (const MugenException & e){
            cout << "Test failure!: " << e.getReason() << endl;
        }
    // }
}<commit_msg>get the full path to kfm<commit_after>#include <allegro.h>

#include <iostream>
#include "util/file-system.h"
#include "mugen/character.h"
#include "mugen/mugen_exception.h"

using namespace std;

int main(){
    install_allegro(SYSTEM_NONE, &errno, atexit);
    set_color_depth(16);
    set_color_conversion(COLORCONV_NONE);

    // for (int i = 0; i < 3; i++){
        try{
            Mugen::Character kfm(Filesystem::find("mugen/chars/kfm/kfm.def"));
            kfm.load();
        } catch (const MugenException & e){
            cout << "Test failure!: " << e.getReason() << endl;
        }
    // }
}
{'fraction_non_alphanumeric': 0.15859030837004406, 'fraction_numerical': 0.007048458149779736, 'mean_word_length': 2.724590163934426, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 7, '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': '4003400', 'n_tokens_mistral': 421, 'n_tokens_neox': 392, 'n_words': 83}