<commit_before>-module(janga_core_app).

-behaviour(application).

%% Application callbacks
-export([start/2, stop/1]).

%% ===================================================================
%% Application callbacks
%% ===================================================================
start(_StartType, _StartArgs) ->
    janga_core_sup:start_link().    

stop(_State) ->
    ok.<commit_msg>insert of starting mnesia<commit_after>-module(janga_core_app).

-behaviour(application).

%% Application callbacks
-export([start/2, stop/1]).

%% ===================================================================
%% Application callbacks
%% ===================================================================
start(_StartType, _StartArgs) ->
	start_mnesia(),
    janga_core_sup:start_link().    

stop(_State) ->
    ok.

start_mnesia() ->
	lager:info("create the schema for the database"),
	stopped = mnesia:stop(),    
    mnesia:create_schema([node()]),
    ok = mnesia:start(),
	lager:info("schema is created and the database is running.").
{'fraction_non_alphanumeric': 0.3746397694524496, 'fraction_numerical': 0.0038424591738712775, 'mean_word_length': 6.236111111111111, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, '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': '7520934', 'n_tokens_mistral': 294, 'n_tokens_neox': 272, 'n_words': 49}