<commit_before>function fonts.install -a name

  if not contains $name (__fonts.repo.list)
    echo "Font $name not available for installing"
    return 1
  end

  if test -e "$FONTS_CONFIG/$name"
    echo "Font $name already installed"
    return 1
  end

  if set tmpdir (mktemp -d "/tmp/font-$name.XXXXXX" ^&-)
    if wget -P $tmpdir -q --show-progress -- (__fonts.repo.urls "$name")
      echo 'Fonts downloaded with success'
    else
      echo 'Failed downloading font file'
      rm -rf $tmpdir
      return 1
    end

    basename $tmpdir/* > $FONTS_CONFIG/$name

    mkdir -p $FONTS_PATH

    if not mv $tmpdir/* $FONTS_PATH
      rm -rf $FONTS_CONFIG/$name
      echo 'Error installing font files'
    end

    rm -rf $tmpdir
  end

end<commit_msg>Return error when mv fails<commit_after>function fonts.install -a name

  if not contains $name (__fonts.repo.list)
    echo "Font $name not available for installing"
    return 1
  end

  if test -e "$FONTS_CONFIG/$name"
    echo "Font $name already installed"
    return 1
  end

  if set tmpdir (mktemp -d "/tmp/font-$name.XXXXXX" ^&-)
    if wget -P $tmpdir -q --show-progress -- (__fonts.repo.urls "$name")
      echo 'Fonts downloaded with success'
    else
      echo 'Failed downloading font file'
      rm -rf $tmpdir
      return 1
    end

    basename $tmpdir/* > $FONTS_CONFIG/$name

    mkdir -p $FONTS_PATH

    if not mv $tmpdir/* $FONTS_PATH ^&-
      rm -rf $FONTS_CONFIG/$name
      echo 'Error installing font files'
      return 1
    end

    rm -rf $tmpdir
  end

end
{'fraction_non_alphanumeric': 0.10142118863049096, 'fraction_numerical': 0.004521963824289405, 'mean_word_length': 2.374727668845316, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5296885', 'n_tokens_mistral': 552, 'n_tokens_neox': 513, 'n_words': 179}