<commit_before><commit_msg>Add a release script<commit_after>#!/usr/bin/env zsh

function {
  emulate -LR zsh
  setopt extended_glob clobber

  local __tsm_script_name="tsm"
  local __tsm_root="${${(%):-%x}:A:h}"
  local __tsm_build_dir="${__tsm_root}/build"
  local __tsm_dist_dir="${__tsm_root}/dist"
  local __tsm_build_script="${__tsm_root}/build.zsh"

  if [[ ! -s "${__tsm_build_dir}/${__tsm_script_name}" ]]; then
    "${__tsm_build_script}" || return $status
  fi

  {
    command mkdir "${__tsm_dist_dir}"
    command rm -f "${__tsm_dist_dir}/${__tsm_script_name}"
    command cp "${__tsm_build_dir}/${__tsm_script_name}" "${__tsm_dist_dir}"
  } &>/dev/null
}
{'fraction_non_alphanumeric': 0.1721556886227545, 'fraction_numerical': 0.0, 'mean_word_length': 5.194444444444445, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '1715979', 'n_tokens_mistral': 276, 'n_tokens_neox': 271, 'n_words': 42}