<commit_before>-module(sumo_events_SUITE).

-export([all/0]).

-export([events_manager_supervisor_running/1]).

-type config() :: [{atom(), term()}].

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Common test
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

-spec all() -> [atom()].
all() -> [events_manager_supervisor_running].

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Common test
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

-spec events_manager_supervisor_running(Config::config()) ->
  {comment, string()}.
events_manager_supervisor_running(_Config) ->
  Events = application:get_env(sumo_db, events, []),
  Fun = fun(Module) ->
    case lists:keyfind(Module, 1, Events) of
      false -> ok;<commit_msg>[#218] Fix sumo_events test suite<commit_after>-module(sumo_events_SUITE).

-export([
         all/0,
         init_per_suite/1,
         end_per_suite/1
        ]).

-export([events_manager_supervisor_running/1]).

-type config() :: [{atom(), term()}].

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Common test
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

-spec all() -> [atom()].
all() -> [events_manager_supervisor_running].

-spec init_per_suite(Config::config()) -> config().
init_per_suite(Config) ->
  sumo_test_utils:start_apps(),
  Config.

-spec end_per_suite(Config::config()) -> config().
end_per_suite(Config) ->
  Config.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Common test
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

-spec events_manager_supervisor_running(Config::config()) ->
  {comment, string()}.
events_manager_supervisor_running(_Config) ->
  Events = application:get_env(sumo_db, events, []),
  Fun = fun(Module) ->
    case lists:keyfind(Module, 1, Events) of
      false -> ok;
{'fraction_non_alphanumeric': 0.43613861386138614, 'fraction_numerical': 0.005445544554455445, 'mean_word_length': 6.684410646387833, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 19, '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': '2458328', 'n_tokens_mistral': 563, 'n_tokens_neox': 515, 'n_words': 83}