<commit_before>function sw --description 'Connects to an OFS switch'
	set -l arg (echo $argv | grep -o '[0-9a-zA-Z]' | tr 'A-Z' 'a-z' | tr -d '\n')
	set -lx num (echo $argv | grep -oE '^[0-9]+')
	set -lx blk (echo $argv | sed -E 's|^[0-9]+([^0-9]+).*$|\1|')
	tmux -f ~/.sw.tmux.conf new-session -s "sw$num-pat$blk" "switch-ssh sw$num.pat$blk.ofs.edu.sg"
end
<commit_msg>Use sgrep instead of grep.<commit_after>function sw --description 'Connects to an OFS switch'
	set -l arg (echo $argv | sgrep -o '[0-9a-zA-Z]' | tr 'A-Z' 'a-z' | tr -d '\n')
	set -lx num (echo $argv | sgrep -oE '^[0-9]+')
	set -lx blk (echo $argv | sed -E 's|^[0-9]+([^0-9]+).*$|\1|')
	tmux -f ~/.sw.tmux.conf new-session -s "sw$num-pat$blk" "switch-ssh sw$num.pat$blk.ofs.edu.sg"
end

{'fraction_non_alphanumeric': 0.2503311258278146, 'fraction_numerical': 0.02384105960264901, 'mean_word_length': 3.108695652173913, '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': '2620786', 'n_tokens_mistral': 368, 'n_tokens_neox': 349, 'n_words': 98}