<commit_before>% commit representation for Wallaroo
% Copyright (c) 2011 Red Hat, Inc., and <NAME>

-module(wallaroo_commit).
-compile(export_all).

empty() ->
    {wallaroo_commit, empty}.

new(Parent, Tree, Changes) when is_list(Changes), is_bitstring(Parent) ->
    {wallaroo_commit, {Parent, Tree, Changes}}.

store({wallaroo_commit, {_P,_T,_C}}=Commit, StoreFunc) ->
    {SHA, _} = wallaroo_tree:hash_and_store(Commit, StoreFunc),
    SHA.<commit_msg>commits can have multiple parents<commit_after>% commit representation for Wallaroo
% Copyright (c) 2011 Red Hat, Inc., and <NAME>

-module(wallaroo_commit).
-compile(export_all).

empty() ->
    {wallaroo_commit, empty}.

new(Parents, Tree, Changes) when is_list(Changes), is_bitstring(Changes) ->
    {wallaroo_commit, {Parents, Tree, Changes}}.

store({wallaroo_commit, {_P,_T,_C}}=Commit, StoreFunc) ->
    {SHA, _} = wallaroo_tree:hash_and_store(Commit, StoreFunc),
    SHA.
{'fraction_non_alphanumeric': 0.1497326203208556, 'fraction_numerical': 0.008556149732620321, 'mean_word_length': 5.36734693877551, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '1763653', 'n_tokens_mistral': 337, 'n_tokens_neox': 330, 'n_words': 73}