<commit_before>function __z_add -d "Add PATH to .z file"
  set -l path (command dirname (status -f))

  for i in $Z_EXCLUDE
    if contains -- $PWD $i
      return 0 #Path excluded
    end
  end

  set -l tmpfile (mktemp $Z_DATA.XXXXXX)

  if test -f $tmpfile
    command awk -v path="$PWD" -v now=(date +%s) -F "|" -f $path/zadd.awk $Z_DATA ^ /dev/null > $tmpfile
    cat $tmpfile > $Z_DATA
    rm $tmpfile
  end
<commit_msg>Use base `rm` for removing tempfile<commit_after>function __z_add -d "Add PATH to .z file"
  set -l path (command dirname (status -f))

  for i in $Z_EXCLUDE
    if contains -- $PWD $i
      return 0 #Path excluded
    end
  end

  set -l tmpfile (mktemp $Z_DATA.XXXXXX)

  if test -f $tmpfile
    command awk -v path="$PWD" -v now=(date +%s) -F "|" -f $path/zadd.awk $Z_DATA ^ /dev/null > $tmpfile
    cat $tmpfile > $Z_DATA
    command rm $tmpfile
  end

{'fraction_non_alphanumeric': 0.12698412698412698, 'fraction_numerical': 0.0022675736961451248, 'mean_word_length': 2.574898785425101, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '773900', 'n_tokens_mistral': 356, 'n_tokens_neox': 341, 'n_words': 120}