<commit_before>
chunks() {
  if [ -z "$1" ]; then
    echo >&2 "missing extension"
    return 1
  fi
  $EDITOR "$DOTFILES/chunks/chunks.$1"
}

_chunks() {
  compadd $(ls "$DOTFILES/chunks/" | awk -F. '{print $NF}')
}
compdef _chunks chunks
<commit_msg>Open chunks in read-only mode #zsh<commit_after>
chunks() {
  if [ -z "$1" ]; then
    echo >&2 "missing extension"
    return 1
  fi
  $EDITOR -R "$DOTFILES/chunks/chunks.$1"
}

_chunks() {
  compadd $(ls "$DOTFILES/chunks/" | awk -F. '{print $NF}')
}
compdef _chunks chunks

{'fraction_non_alphanumeric': 0.17992424242424243, 'fraction_numerical': 0.015151515151515152, 'mean_word_length': 3.232, 'pattern_counts': {'":': 0, '<': 3, '<?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': '203873', 'n_tokens_mistral': 220, 'n_tokens_neox': 217, 'n_words': 58}