<commit_before>%%%----------------------------------------------------------------------
%%% File    : alog_if_logger.erl
%%% Author  : <NAME> <<EMAIL>>
%%% Purpose :
%%% Created : 09 Jul 2011 by <NAME> <<EMAIL>>
%%%
%%% alogger, Copyright (C) 2011  Siberian Fast Food
%%%----------------------------------------------------------------------

-module(alog_if_default).

-compile([{parse_transform, alog_parse_trans}, nowarn_unused_vars]).
-include("alogger.hrl").
-export([log/7, default_mod_ast/0, default_modlogs_ast/0]).

% will return list of loggers for module/tag
get_mod_logs(_, _, _) ->
    [].

% main logging function  
log(Format, Args, Level, Tags, Module, Line, Pid) when is_list(Tags) ->
    [log(Format, Args, Level, Tag, Module, Line, Pid) || Tag <- Tags];

% main logging function 
log(Format, Args, Level, Tag, Module, Line, Pid) ->
    lists:foreach(fun(Mod) ->
			  Formatted = Mod:format(Format, Args, Tag, Module, Line, Pid),
			  Mod:log(Level, Formatted)
		  end, get_mod_logs(Level, Module, Tag)).
%    [begin
%         Formatted = Mod:format(Format, Args, Tag, Module, Line, Pid),
%         Mod:log(Level, Formatted)
%	 end || Mod <- get_mod_logs(Level, Module, Tag)].
<commit_msg>changes in alog_if_logger<commit_after>%%%----------------------------------------------------------------------
%%% File    : alog_if_logger.erl
%%% Author  : <NAME> <<EMAIL>>
%%% Purpose :
%%% Created : 09 Jul 2011 by <NAME> <<EMAIL>>
%%%
%%% alogger, Copyright (C) 2011  Siberian Fast Food
%%%----------------------------------------------------------------------

-module(alog_if_default).

-compile([{parse_transform, alog_parse_trans}, nowarn_unused_vars]).
-include("alogger.hrl").
-export([log/7, default_mod_ast/0, default_modlogs_ast/0]).

% will return list of loggers for module/tag
get_mod_logs(_, _, _) ->
    [].

% main logging function  
log(Format, Args, Level, Tags, Module, Line, Pid) when is_list(Tags) ->
    [log(Format, Args, Level, Tag, Module, Line, Pid) || Tag <- Tags];

% main logging function 
log(Format, Args, Level, Tag, Module, Line, Pid) ->
    lists:foreach(fun(Mod) ->
			  Formatted = Mod:format(Format, Args, Tag, Module, Line, Pid),
			  Mod:log(Level, Formatted)
		  end, get_mod_logs(Level, Module, Tag)).

{'fraction_non_alphanumeric': 0.2752659574468085, 'fraction_numerical': 0.01152482269503546, 'mean_word_length': 2.424886191198786, 'pattern_counts': {'":': 0, '<': 18, '<?xml version=': 0, '>': 23, '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': '5865595', 'n_tokens_mistral': 775, 'n_tokens_neox': 737, 'n_words': 181}