<commit_before>%%%-------------------------------------------------------------------
%%% File    : etorrent.erl
%%% Author  : User Jlouis <<EMAIL>>
%%% Description : Start up etorrent and supervise it.
%%%
%%% Created : 30 Jan 2007 by User Jlouis <<EMAIL>>
%%%-------------------------------------------------------------------
-module(etorrent).

-behaviour(supervisor).

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

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

-define(SERVER, ?MODULE).

%%====================================================================
%% API functions
%%====================================================================
start_link() ->
    supervisor:start_link(etorrent, []).

%%====================================================================
%% Supervisor callbacks
%%====================================================================
init([]) ->
    RandomSource = {random_source,
		    {random_source, start_link, []},
		    permanent, brutal_kill, worker, [random_source]},
    Serializer = {serializer,
		  {serializer, start_link, []},
		  permanent, 2000, worker, [serializer]},
    DirWatcher = {dirwatcher,
		  {dirwatcher, start_link, []},
		  permanent, 2000, worker, [dirwatcher]},
    TorrentMgr = {torrent_manager,
		  {torrent_manager, start_link, []},
		  permanent, 2000, worker, [torrent_manager]},
    {ok, {{one_for_all, 1, 60},
	  [RandomSource, Serializer, DirWatcher, TorrentMgr]}}.

%%====================================================================
%% Internal functions
%%====================================================================<commit_msg>Update supervisor tree.<commit_after>%%%-------------------------------------------------------------------
%%% File    : etorrent.erl
%%% Author  : User Jlouis <<EMAIL>>
%%% Description : Start up etorrent and supervise it.
%%%
%%% Created : 30 Jan 2007 by User Jlouis <<EMAIL>>
%%%-------------------------------------------------------------------
-module(etorrent).

-behaviour(supervisor).

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

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

-define(SERVER, ?MODULE).

%%====================================================================
%% API functions
%%====================================================================
start_link() ->
    supervisor:start_link(etorrent, []).

%%====================================================================
%% Supervisor callbacks
%%====================================================================
init([]) ->
    RandomSourceSup = {random_source_sup,
		       {random_source_sup, start_link, []},
		       permanent, infinity, supervisor, [random_source_sup]},
    Serializer = {serializer,
		  {serializer, start_link, []},
		  permanent, 2000, worker, [serializer]},
    DirWatcherSup = {dirwatcher_sup,
		  {dirwatcher_sup, start_link, []},
		  permanent, infinity, supervisor, [dirwatcher]},
    TorrentMgr = {torrent_manager,
		  {torrent_manager, start_link, []},
		  permanent, 2000, worker, [torrent_manager]},
    {ok, {{one_for_all, 1, 60},
	  [RandomSourceSup, Serializer, DirWatcherSup, TorrentMgr]}}.

%%====================================================================
%% Internal functions
%%====================================================================
{'fraction_non_alphanumeric': 0.44726383369000305, 'fraction_numerical': 0.012840110058086213, 'mean_word_length': 3.783625730994152, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 15, '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': '3803483', 'n_tokens_mistral': 908, 'n_tokens_neox': 800, 'n_words': 162}