<commit_before>#!/bin/bash
# Copyright (c) 2013-2014 <NAME>
# Released under the Expat license, see LICENSE file for details

set -e
set -x

rm -r dota2_nohats || true
rm dota2_nohats.7z || true
rm -r nohats || true
rm -r dota || true

fusermount -u ~/dota_unpacked || true
~/unvpk/build/vpkfs/vpkfs "/mnt/steam/steamapps/common/dota 2 beta/dota/pak01_dir.vpk" ~/dota_unpacked
# ~/unvpk/build/vpkfs/vpkfs "/mnt/steam/steamapps/common/dota 2 test/dota/pak01_dir.vpk" ~/dota_unpacked
python3 -u nohats.py ~/dota_unpacked dota2_nohats "$@" > nohats_log.txt 2> nohats_warnings.txt

unix2dos -n README.md readme.txt

mkdir nohats
python3 vpk.py a nohats/pak01 dota2_nohats/

mkdir dota
cp gameinfo.txt dota/gameinfo.txt

7z a -mx -ms=off dota2_nohats.7z nohats dota nohats_log.txt nohats_warnings.txt readme.txt > /dev/null<commit_msg>two log files is one too many<commit_after>#!/bin/bash
# Copyright (c) 2013-2014 <NAME>
# Released under the Expat license, see LICENSE file for details

set -e
set -x

rm -r dota2_nohats || true
rm dota2_nohats.7z || true
rm -r nohats || true
rm -r dota || true

fusermount -u ~/dota_unpacked || true
~/unvpk/build/vpkfs/vpkfs "/mnt/steam/steamapps/common/dota 2 beta/dota/pak01_dir.vpk" ~/dota_unpacked
# ~/unvpk/build/vpkfs/vpkfs "/mnt/steam/steamapps/common/dota 2 test/dota/pak01_dir.vpk" ~/dota_unpacked
python3 -u nohats.py ~/dota_unpacked dota2_nohats "$@" > nohats_log.txt 2>&1

unix2dos -n README.md readme.txt

mkdir nohats
python3 vpk.py a nohats/pak01 dota2_nohats/

mkdir dota
cp gameinfo.txt dota/gameinfo.txt

7z a -mx -ms=off dota2_nohats.7z nohats dota nohats_log.txt readme.txt > /dev/null
{'fraction_non_alphanumeric': 0.12148962148962149, 'fraction_numerical': 0.0347985347985348, 'mean_word_length': 4.105919003115265, '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': '4954010', 'n_tokens_mistral': 780, 'n_tokens_neox': 739, 'n_words': 169}