<commit_before>-module(membership_app).
-author('<EMAIL>').

-behaviour(application).

-include("membership.hrl").

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

%% @doc start required apps, join cluster, start supervisor
start(_Type, _StartArgs) ->
    couch_api:create_db(<<"dbs">>, []), % all nodes have local 'dbs' db
    % start membership supervisor
    membership_sup:start_link().

stop({_, Sup}) ->
    ?LOG_ALERT("membership application stopped", []),
    exit(Sup, normal),
    ok.<commit_msg>clean up membership application callback mod<commit_after>-module(membership_app).
-behaviour(application).
-export([start/2, stop/1]).

start(_Type, []) ->
    DbName = couch_config:get("membership", "db", "dbs"),
    couch_server:create(list_to_binary(DbName), []),
    membership_sup:start_link().

stop([]) ->
    ok.
{'fraction_non_alphanumeric': 0.1788715486194478, 'fraction_numerical': 0.004801920768307323, 'mean_word_length': 4.8321678321678325, 'pattern_counts': {'":': 0, '<': 6, '<?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': '3673924', 'n_tokens_mistral': 278, 'n_tokens_neox': 274, 'n_words': 54}