<commit_before>-module(helper).

-export([
        fake_account/0,
        fake_account/1,
        fake_system/0,
        fake_system/1,
        random_string/0,
        unixtime/0
]).

fake_account() ->
    fake_account(random_string()).

fake_account(Username) when is_binary(Username) ->
    Salt = rand:uniform(trunc(math:pow(2,64))),
    Email = <<(random_string())/binary, "@", (random_string())/binary>>,
    #{
        id       => base64:encode(<<Username/binary, $:, Salt:64>>),
        username => Username,
        password => <PASSWORD>(),
        title    => Username,
        email    => Email,
        date     => unixtime(),<commit_msg>Оказывается rand:uniform нет еще в 17.5.<commit_after>-module(helper).

-export([
        fake_account/0,
        fake_account/1,
        fake_system/0,
        fake_system/1,
        random_string/0,
        unixtime/0
]).

fake_account() ->
    fake_account(random_string()).

fake_account(Username) when is_binary(Username) ->
    Email = <<(random_string())/binary, "@", (random_string())/binary>>,
    #{
        id       => base64:encode(<<Username/binary, $:, (random_string())/binary>>),
        username => Username,
        password => <PASSWORD>(),
        title    => Username,
        email    => Email,
        date     => unixtime(),
{'fraction_non_alphanumeric': 0.16615384615384615, 'fraction_numerical': 0.018461538461538463, 'mean_word_length': 2.3880208333333335, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 29, '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': '5726325', 'n_tokens_mistral': 429, 'n_tokens_neox': 419, 'n_words': 64}