<commit_before>#!/bin/bash
GEARSLOTH_PATH=$HOME/gearsloth
mkdir -p $GEARSLOTH_PATH
git clone /vagrant $GEARSLOTH_PATH
cd $GEARSLOTH_PATH
make build<commit_msg>Shallow copy instead of cloning<commit_after>#!/bin/bash
# Take a clean snapshot of the git repository for testing.

DIR=$HOME/gearsloth

mkdir -p $DIR || exit 1
cd /vagrant && git archive master | tar -xC $DIR

cd $DIR && make build 2> /tmp/make.log
{'fraction_non_alphanumeric': 0.10757946210268948, 'fraction_numerical': 0.004889975550122249, 'mean_word_length': 4.857142857142857, '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': '5791561', 'n_tokens_mistral': 161, 'n_tokens_neox': 147, 'n_words': 47}