<commit_before>-module(beamjs_mod_sys).
-export([exports/0]).
-include_lib("erlv8/include/erlv8.hrl").

exports() ->
	[{"print", fun print/3}].

print(_Script, #erlv8_fun_invocation{} = _Invocation, Expr) ->
	io:format("~p",[Expr]),
	undefined.
<commit_msg>Make sys.print() use v8's detail string for the object it is printing<commit_after>-module(beamjs_mod_sys).
-export([exports/0]).
-include_lib("erlv8/include/erlv8.hrl").

exports() ->
	[{"print", fun print/3}].

print(Script, #erlv8_fun_invocation{} = _Invocation, Expr) ->
	io:format("~s",[erlv8_script:to_detail_string(Script,Expr)]),
	undefined.

{'fraction_non_alphanumeric': 0.20098846787479407, 'fraction_numerical': 0.019769357495881382, 'mean_word_length': 6.152941176470589, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '4786654', 'n_tokens_mistral': 243, 'n_tokens_neox': 237, 'n_words': 37}