<commit_before>-module(test).

-compile(export_all).

start() ->
    start_sasl(),
    application:start(crypto),
    application:start(inets),
    application:start(timer),
    application:set_env(etorrent, dir, "/home/jlouis/etorrent_test"),
    application:set_env(etorrent, port, 1729),
    etorrent:start_link().

start_sasl() ->
    application:set_env(sasl, errlog_type, all),
    application:set_env(sasl, error_logger_mf_dir, "error_logs"),
    application:set_env(sasl, error_logger_mf_maxbytes, 1024*1024*5),
    application:set_env(sasl, error_logger_mf_maxfiles, 255),
    application:start(sasl).

run() ->
    etorrent:start_link().
<commit_msg>Add a start_rb() function to test.elr.<commit_after>-module(test).

-compile(export_all).

start() ->
    start_sasl(),
    application:start(crypto),
    application:start(inets),
    application:start(timer),
    application:set_env(etorrent, dir, "/home/jlouis/etorrent_test"),
    application:set_env(etorrent, port, 1729),
    etorrent:start_link().

start_sasl() ->
    application:set_env(sasl, errlog_type, all),
    application:set_env(sasl, error_logger_mf_dir, "error_logs"),
    application:set_env(sasl, error_logger_mf_maxbytes, 1024*1024*5),
    application:set_env(sasl, error_logger_mf_maxfiles, 255),
    application:start(sasl).

start_rb() ->
    application:start(sasl),
    rb:start([{report_dir, "error_logs"}]).

run() ->
    etorrent:start_link().

{'fraction_non_alphanumeric': 0.14863921842288905, 'fraction_numerical': 0.022330774598743892, 'mean_word_length': 5.2894736842105265, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 10, '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': '1182854', 'n_tokens_mistral': 561, 'n_tokens_neox': 529, 'n_words': 69}