<commit_before>-module(dderl).
-author('<NAME> <<EMAIL>>').

-include("dderl.hrl").

%% API.
-export([ start/0
        , init/3
        , handle/2
        , terminate/3
        , encrypt_id/1
        , decrypt_id/1
        ]).

%% API.
start() ->
    ssl:start(),
    ok = application:load(lager),
    ok = application:set_env(lager, handlers, [{lager_console_backend, info},
                                               {lager_file_backend, [{file, "log/error.log"},
                                                                     {level, error},
                                                                     {size, 10485760},
                                                                     {date, "$D0"},
                                                                     {count, 5}]},
                                               {lager_file_backend, [{file, "log/console.log"},
                                                                     {level, info},
                                                                     {size, 10485760},
                                                                     {date, "$D0"},
                                                                     {count, 5}]}]),
    ok = application:set_env(lager, error_logger_redirect, false),
    ok = application:start(lager),
    ok = application:load(sasl),
    ok = application:set_env(sasl, sasl_error_logger, false),
    ok = application:start(sasl),
    ok = application:start(os_mon),
	%ok = application:start(crypto),
	ok = application:start(ranch),
	ok = application:start(cowboy),
    erlimem:start(),
    application:start(sqlparse),% maybe already started by imem 
    imem:start(),
	ok = application:start(?MODULE).

<commit_msg>Added start applications needed for the new version of lager.<commit_after>-module(dderl).
-author('<NAME> <<EMAIL>>').

-include("dderl.hrl").

%% API.
-export([ start/0
        , init/3
        , handle/2
        , terminate/3
        , encrypt_id/1
        , decrypt_id/1
        ]).

%% API.
start() ->
    ssl:start(),
    ok = application:load(lager),
    ok = application:set_env(lager, handlers, [{lager_console_backend, info},
                                               {lager_file_backend, [{file, "log/error.log"},
                                                                     {level, error},
                                                                     {size, 10485760},
                                                                     {date, "$D0"},
                                                                     {count, 5}]},
                                               {lager_file_backend, [{file, "log/console.log"},
                                                                     {level, info},
                                                                     {size, 10485760},
                                                                     {date, "$D0"},
                                                                     {count, 5}]}]),
    ok = application:set_env(lager, error_logger_redirect, false),
    ok = application:start(compiler),
    ok = application:start(syntax_tools),
    ok = application:start(goldrush),
    ok = application:start(lager),
    ok = application:load(sasl),
    ok = application:set_env(sasl, sasl_error_logger, false),
    ok = application:start(sasl),
    ok = application:start(os_mon),
	%ok = application:start(crypto),
	ok = application:start(ranch),
	ok = application:start(cowboy),
    erlimem:start(),
    application:start(sqlparse),% maybe already started by imem 
    imem:start(),
	ok = application:start(?MODULE).


{'fraction_non_alphanumeric': 0.11653116531165311, 'fraction_numerical': 0.014092140921409214, 'mean_word_length': 1.080608793686584, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 56, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7285632', 'n_tokens_mistral': 896, 'n_tokens_neox': 851, 'n_words': 167}