<commit_before>source $stdenv/setup

tagtext=""
tagflags=""
if test -n "$tag"; then
    tagtext="(tag $tag) "
    tagflags="--tag=$tag"
fi

header "getting $url ${tagtext}into $out"

darcs get --no-pristine-tree $tagflags "$url" "$out"
# remove metadata, because it can change
rm -rf "$out/_darcs"

actual=$(nix-hash $out)
if test "$actual" != "$outputHash"; then
    echo "hash is $actual, expected $outputHash" >&2
    exit 1
fi
<commit_msg>hash check removed because the nix system does it..<commit_after>source $stdenv/setup

tagtext=""
tagflags=""
if test -n "$tag"; then
    tagtext="(tag $tag) "
    tagflags="--tag=$tag"
fi

header "getting $url ${tagtext}into $out"

darcs get --no-pristine-tree --partial $tagflags "$url" "$out"
# remove metadata, because it can change
rm -rf "$out/_darcs"

{'fraction_non_alphanumeric': 0.16729088639200998, 'fraction_numerical': 0.0024968789013732834, 'mean_word_length': 4.207792207792208, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '3299740', 'n_tokens_mistral': 288, 'n_tokens_neox': 285, 'n_words': 92}