<commit_before>%%%-------------------------------------------------------------------
%%% File : loggers.erl
%%% Author : <NAME> <<EMAIL>>
%%% Created : 2009/07/17
%%% Description :
%%%     Provides logging facilities
%%%
%%% Copyright 2009 <NAME> <<EMAIL>>
%%%
%%% This software is licensed as described in the file LICENSE, which
%%% you should have received as part of this distribution.
%%%-------------------------------------------------------------------
-module(loggers).

-compile(export_all).

log(Format, Args) ->
        SF1 = string:concat("[@] -- ", Format),
        SF2 = string:concat(SF1, "\n"),
        Msg = io_lib:format(SF2, Args),
        gen_event:notify(sm_msg_man, Msg).


%% END<commit_msg>Trying adding some time info ...<commit_after>%%%-------------------------------------------------------------------
%%% File : loggers.erl
%%% Author : <NAME> <<EMAIL>>
%%% Created : 2009/07/17
%%% Description :
%%%     Provides logging facilities
%%%
%%% Copyright 2009 <NAME> <<EMAIL>>
%%%
%%% This software is licensed as described in the file LICENSE, which
%%% you should have received as part of this distribution.
%%%-------------------------------------------------------------------
-module(loggers).

-compile(export_all).

log(Format, Args) ->
	{_Date, Time} = calendar:local_time(),
	LocalArgs = [Time | Args],
        SF1 = string:concat("[~p] -- ", Format),
        SF2 = string:concat(SF1, "\n"),
        Msg = io_lib:format(SF2, LocalArgs),
        gen_event:notify(sm_msg_man, Msg).


%% END
{'fraction_non_alphanumeric': 0.32786885245901637, 'fraction_numerical': 0.02098360655737705, 'mean_word_length': 1.825925925925926, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 17, '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': '203365', 'n_tokens_mistral': 452, 'n_tokens_neox': 426, 'n_words': 114}