<commit_before>#!/usr/bin/env bash
cd "$(dirname "$0")"

cat /dfs/scratch0/thodrek/signalmedia/signalmedia-1m.jsonl |
grep -E 'wife|husband|married' |
head -100 |
jq -r '[.id, .content] | @tsv'<commit_msg>Fixes script for loading articles to drop \r<commit_after>#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")"

cat /dfs/scratch0/thodrek/signalmedia/signalmedia-1m.jsonl |
grep -E 'wife|husband|married' |
head -100 |
jq -r '[.id, .content | gsub("[\r]"; "")] | @tsv'
{'fraction_non_alphanumeric': 0.20292887029288703, 'fraction_numerical': 0.02510460251046025, 'mean_word_length': 4.382022471910112, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3936885', 'n_tokens_mistral': 214, 'n_tokens_neox': 197, 'n_words': 44}