<commit_before>-module(action_jq).
-author('<NAME>').
-author('<NAME>').
-include_lib("nitro/include/nitro.hrl").
-compile(export_all).

-define(B(E), nitro:to_binary(E)).
-define(R(E), nitro:render(E)).
-define(T(T), wf_event:target(T)).
-define(U, undefined).

render_action(#jq{property=?U,target=T,method=Methods,args=Args0,format=F}) ->
    Args = case F of "'~s'" -> [ ?R(Args0) ]; _ -> Args0 end,
    Format = fun(A) when is_tuple(A) orelse is_integer(A) -> ?R(A); (A) -> A end,
    RenderedArgs = string:join([ Format(A) || A <- Args], ","),<commit_msg>Any type of args allowed<commit_after>-module(action_jq).
-author('<NAME>').
-author('<NAME>').
-include_lib("nitro/include/nitro.hrl").
-compile(export_all).

-define(B(E), nitro:to_binary(E)).
-define(R(E), nitro:render(E)).
-define(T(T), wf_event:target(T)).
-define(U, undefined).

render_action(#jq{property=?U,target=T,method=Methods,args=Args0,format=F}) ->
    Args = case F of "'~s'" -> [ ?R(Args0) ]; _ -> Args0 end,
    Format = fun(A) when is_tuple(A) orelse is_integer(A) -> ?R(A); (A) -> nitro:to_list(A) end,
    RenderedArgs = string:join([ Format(A) || A <- Args], ","),
{'fraction_non_alphanumeric': 0.2465156794425087, 'fraction_numerical': 0.005226480836236934, 'mean_word_length': 5.144385026737968, 'pattern_counts': {'":': 0, '<': 9, '<?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': '326280', 'n_tokens_mistral': 477, 'n_tokens_neox': 463, 'n_words': 78}