<commit_before>%%%-------------------------------------------------------------------
%%% This file is part of the CernVM File System.
%%%
%%% @doc cvmfs_lease top level supervisor.
%%%
%%% @end
%%%-------------------------------------------------------------------

-module(cvmfs_auth_sup).

-behaviour(supervisor).

%% API
-export([start_link/0]).

%% Supervisor callbacks
-export([init/1]).

-define(SERVER, ?MODULE).

%%====================================================================
%% API functions
%%====================================================================

start_link() ->
    supervisor:start_link({local, ?SERVER}, ?MODULE, []).

%%====================================================================
%% Supervisor callbacks
%%====================================================================

%% Child :: {Id,StartFunc,Restart,Shutdown,Type,Modules}
init([]) ->
    SupervisorSpecs = #{strategy => one_for_all,
                        intensity => 5,
                        period => 5},
    CvmfsAuthMainSpecs = #{id => cvmfs_auth,
                             start => {cvmfs_auth, start_link, []},
                             restart => permanent,
                             shutdown => 2000,
                             type => worker,
                             modules => [cvmfs_auth,cvmfs_auth_storage]},
    {ok, {SupervisorSpecs, [CvmfsAuthMainSpecs]}}.

%%====================================================================
%% Internal functions
%%====================================================================<commit_msg>Fixing dependent module list in cvmfs_auth_sup.erl<commit_after>%%%-------------------------------------------------------------------
%%% This file is part of the CernVM File System.
%%%
%%% @doc cvmfs_lease top level supervisor.
%%%
%%% @end
%%%-------------------------------------------------------------------

-module(cvmfs_auth_sup).

-behaviour(supervisor).

%% API
-export([start_link/0]).

%% Supervisor callbacks
-export([init/1]).

-define(SERVER, ?MODULE).

%%====================================================================
%% API functions
%%====================================================================

start_link() ->
    supervisor:start_link({local, ?SERVER}, ?MODULE, []).

%%====================================================================
%% Supervisor callbacks
%%====================================================================

%% Child :: {Id,StartFunc,Restart,Shutdown,Type,Modules}
init([]) ->
    SupervisorSpecs = #{strategy => one_for_all,
                        intensity => 5,
                        period => 5},
    CvmfsAuthMainSpecs = #{id => cvmfs_auth,
                             start => {cvmfs_auth, start_link, []},
                             restart => permanent,
                             shutdown => 2000,
                             type => worker,
                             modules => [cvmfs_auth,cvmfs_auth_db]},
    {ok, {SupervisorSpecs, [CvmfsAuthMainSpecs]}}.

%%====================================================================
%% Internal functions
%%====================================================================
{'fraction_non_alphanumeric': 0.44413057124921534, 'fraction_numerical': 0.005021971123666039, 'mean_word_length': 2.3940362087326945, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 25, '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': '2227050', 'n_tokens_mistral': 752, 'n_tokens_neox': 692, 'n_words': 129}