<commit_before>-define(LOG(Log_Level, Log_Format, Log_Args), 
        % try
        case event_manager:notify({log, Log_Level, Log_Format, Log_Args}) of
          ok -> ok;
          {error, _} -> throw({error, logging_exception})
        end
        ).

-define (CONFIG_FILE, case os:getenv("ROUTER_CONFIG") of
	undefined -> "include/config.cfg";
	F -> F
end).

-define (FIXTURES_DIR, file_utils:relative_path("test/fixtures")).
% Figure this out... Hm
-define (CONFIGS_DIR, file_utils:relative_path("webapp/config")).
-define (SHELL_SCRIPTS_DIR, file_utils:relative_path("./../shell")).

-define (SHELL_SCRIPT_PATH (Name), filename:join([?SHELL_SCRIPTS_DIR, lists:append([Name, ".sh"])])).
-define (SHELL_SCRIPT (Name), fun() ->
  {ok, Binary} = file:read_file(?SHELL_SCRIPT_PATH(Name)),
  erlang:binary_to_list(Binary)
 end()
).<commit_msg>Added ?TEMPLATE_SHELL_SCRIPT_PARSED for templating, running and parsing shell scripts<commit_after>-define(LOG(Log_Level, Log_Format, Log_Args), 
        % try
        case event_manager:notify({log, Log_Level, Log_Format, Log_Args}) of
          ok -> ok;
          {error, _} -> throw({error, logging_exception})
        end
        ).

-define (CONFIG_FILE, case os:getenv("ROUTER_CONFIG") of
	undefined -> "include/config.cfg";
	F -> F
end).

-define (FIXTURES_DIR, file_utils:relative_path("test/fixtures")).
% Figure this out... Hm
-define (CONFIGS_DIR, file_utils:relative_path("webapp/config")).
-define (SHELL_SCRIPTS_DIR, file_utils:relative_path("./../shell")).

-define (SHELL_SCRIPT_PATH (Name), filename:join([?SHELL_SCRIPTS_DIR, lists:append([Name, ".sh"])])).
-define (SHELL_SCRIPT (Name), fun() ->
  {ok, Binary} = file:read_file(?SHELL_SCRIPT_PATH(Name)),
  erlang:binary_to_list(Binary)
 end()
).
-define (TEMPLATE_SHELL_SCRIPT (Name, Params), fun() ->
    string_utils:template_command_string(?SHELL_SCRIPT(Name), Params)
  end()
).
-define (TEMPLATE_SHELL_SCRIPT_PARSED (Name, Params), misc_utils:shell_fox(Name, Params)).
{'fraction_non_alphanumeric': 0.16263846928499495, 'fraction_numerical': 0.0, 'mean_word_length': 4.612994350282486, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 14, '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': '5911577', 'n_tokens_mistral': 746, 'n_tokens_neox': 729, 'n_words': 130}