<commit_before>%%%-------------------------------------------------------------------
%%% File    : bh_storage_sup.erl
%%% Author  : <NAME>
%%% Description : 
%%%
%%% Created :  Wed Dec  2 21:09:27 PST 2009
%%%-------------------------------------------------------------------

-module (bh_storage_sup).

-include ("beehive.hrl").
-behaviour(supervisor).
-compile([verbose, report_errors, report_warnings, trace, debug_info]).

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

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

-define(SERVER, ?MODULE).

%%====================================================================
%% API functions
%%====================================================================
%%--------------------------------------------------------------------
%% Function: start_link() -> {ok,Pid} | ignore | {error,Error}
%% Description: Starts the supervisor
%%--------------------------------------------------------------------
start_link(Args) ->
  supervisor:start_link({local, ?SERVER}, ?MODULE, Args).

%%====================================================================
%% Supervisor callbacks
%%====================================================================
%%--------------------------------------------------------------------
%% Func: init(Args) -> {ok,  {SupFlags,  [ChildSpec]}} |
%%                     ignore                          |
%%                     {error, Reason}
%% Description: Whenever a supervisor is started using
%% supervisor:start_link/[2,3], this function is called by the new process
%% to find out about restart strategy, maximum restart frequency and child
%% specifications.
%%--------------------------------------------------------------------
init(_Args) ->
  GitServer  = {the_git_server,{bh_git_srv, start_link,[]}, permanent, 2000, worker, dynamic},
  
  {ok,{{one_for_one,5,10}, [GitServer]}}.

%%====================================================================
%% Internal functions
%%====================================================================<commit_msg>Changed the git server to start to be the bh_storage_srv, rather than the bh_git_srv<commit_after>%%%-------------------------------------------------------------------
%%% File    : bh_storage_sup.erl
%%% Author  : <NAME>
%%% Description : 
%%%
%%% Created :  Wed Dec  2 21:09:27 PST 2009
%%%-------------------------------------------------------------------

-module (bh_storage_sup).

-include ("beehive.hrl").
-behaviour(supervisor).
-compile([verbose, report_errors, report_warnings, trace, debug_info]).

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

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

-define(SERVER, ?MODULE).

%%====================================================================
%% API functions
%%====================================================================
%%--------------------------------------------------------------------
%% Function: start_link() -> {ok,Pid} | ignore | {error,Error}
%% Description: Starts the supervisor
%%--------------------------------------------------------------------
start_link(Args) ->
  supervisor:start_link({local, ?SERVER}, ?MODULE, Args).

%%====================================================================
%% Supervisor callbacks
%%====================================================================
%%--------------------------------------------------------------------
%% Func: init(Args) -> {ok,  {SupFlags,  [ChildSpec]}} |
%%                     ignore                          |
%%                     {error, Reason}
%% Description: Whenever a supervisor is started using
%% supervisor:start_link/[2,3], this function is called by the new process
%% to find out about restart strategy, maximum restart frequency and child
%% specifications.
%%--------------------------------------------------------------------
init(_Args) ->
  GitStorageSrv = {the_storage_server, {bh_storage_srv, start_link, []}, permanent, 2000, worker, dynamic},
  _GitServer  = {the_git_server,{bh_git_srv, start_link,[]}, permanent, 2000, worker, dynamic},
  
  {ok,{{one_for_one,5,10}, [GitStorageSrv]}}.

%%====================================================================
%% Internal functions
%%====================================================================
{'fraction_non_alphanumeric': 0.4882186616399623, 'fraction_numerical': 0.011310084825636193, 'mean_word_length': 2.1444444444444444, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '6262985', 'n_tokens_mistral': 995, 'n_tokens_neox': 897, 'n_words': 213}