<commit_before>#!/bin/sh

# find the occurrence of each value in each column

while read column title
do
    echo :: $title ::

    time (
        cat data/pp.tsv |
        cut -d'	' -f$column |
        sort |
        uniq -c |
        sort -rn |
        sed -e 's/^ *//' -e 's/  */⋯/g' 
    ) > data/$title.tsv

done  < etc/cols.tsv
<commit_msg>Fixed broken tab cut and pasted from vi<commit_after>#!/bin/sh

# find the occurrence of each value in each column

while read column title
do
    echo :: $title ::

    time (
        cat data/pp.tsv |
        cut -d'	' -f$column |
        sort |
        uniq -c |
        sort -rn |
        sed -e 's/^ *//' -e 's/  */	/g' 
    ) > data/$title.tsv

done  < etc/cols.tsv

{'fraction_non_alphanumeric': 0.14345403899721448, 'fraction_numerical': 0.0, 'mean_word_length': 1.5228070175438597, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4460960', 'n_tokens_mistral': 277, 'n_tokens_neox': 266, 'n_words': 81}