<commit_before># Cleanup old hashes
#rm -f *.sha256sum
# Generate new, single file.
#cat urls.tsv | awk -F'\t' '(NR>1){print $6"  "$1"-"$2"-"$3"-"$4}' > cpc.sha256sum

# Renaming files into folders.
echo 'set -x' > mkdir.txt
cat urls.tsv | awk -F'\t' '(NR>1){a=$1"_"$2"_"$3"_"$4".tar.gz"; print "mkdir -p "$1"; mv "$6" "$1"/"a}' >> mkdir.txt
cat mkdir.txt | bash

# Remove existing SHA256SUMs files.
find . -name 'SHA256SUMS' -exec rm '{}' \;

# Update the individual files.
echo 'set -x' > mv.txt
cat urls.tsv | awk -F'\t' '(NR>1){a=$1"_"$2"_"$3"_"$4".tar.gz"; print "echo "$6" >> "$1"/SHA256SUMS"}' >> mv.txt
cat mv.txt | bash<commit_msg>Correct which column to pull from<commit_after># Cleanup old hashes
#rm -f *.sha256sum
# Generate new, single file.
#cat urls.tsv | awk -F'\t' '(NR>1){print $6"  "$1"-"$2"-"$3"-"$4}' > cpc.sha256sum

# Renaming files into folders.
echo 'set -x' > mkdir.txt
cat urls.tsv | awk -F'\t' '(NR>1){a=$1"_"$2"_"$3"_"$4".tar.gz"; print "mkdir -p "$1"; mv "$7" "$1"/"a}' >> mkdir.txt
cat mkdir.txt | bash

# Remove existing SHA256SUMs files.
find . -name 'SHA256SUMS' -exec rm '{}' \;

# Update the individual files.
echo 'set -x' > mv.txt
cat urls.tsv | awk -F'\t' '(NR>1){a=$1"_"$2"_"$3"_"$4".tar.gz"; print "echo "$7" >> "$1"/SHA256SUMS"}' >> mv.txt
cat mv.txt | bash
{'fraction_non_alphanumeric': 0.25076923076923074, 'fraction_numerical': 0.055384615384615386, 'mean_word_length': 3.8185185185185184, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 27, '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': '5230530', 'n_tokens_mistral': 639, 'n_tokens_neox': 587, 'n_words': 150}