<commit_before>class Nodenv < Formula
  homepage "https://github.com/OiNutter/nodenv"
  head "https://github.com/OiNutter/nodenv.git"
  url "https://github.com/OiNutter/nodenv/archive/v0.2.0.tar.gz"
  sha256 "3e0c8f81407741ac4b8ca4a07e03269e13ff00e15057f8fbdf0a195068043b60"

  def install
    prefix.install "bin", "libexec"
  end

  def caveats; <<-EOS.undent
    To enable shims and autocompletion add to your profile:
      if which nodenv > /dev/null; then eval "$(nodenv init -)"; fi

    To use Homebrew's directories rather than ~/.nodenv add to your profile:
      export NODENV_ROOT=#{opt_prefix}/nodenv
    EOS
  end
end
<commit_msg>Add test for nodenv formula<commit_after>class Nodenv < Formula
  homepage "https://github.com/OiNutter/nodenv"
  head "https://github.com/OiNutter/nodenv.git"
  url "https://github.com/OiNutter/nodenv/archive/v0.2.0.tar.gz"
  sha256 "3e0c8f81407741ac4b8ca4a07e03269e13ff00e15057f8fbdf0a195068043b60"

  def install
    prefix.install "bin", "libexec"
  end

  def caveats; <<-EOS.undent
    To enable shims and autocompletion add to your profile:
      if which nodenv > /dev/null; then eval "$(nodenv init -)"; fi

    To use Homebrew's directories rather than ~/.nodenv add to your profile:
      export NODENV_ROOT=#{opt_prefix}/nodenv
    EOS
  end

  test do
    shell_output("eval \"$(#{bin}/nodenv init -)\" && nodenv versions")
  end
end

{'fraction_non_alphanumeric': 0.11358734723220705, 'fraction_numerical': 0.0704529115744069, 'mean_word_length': 3.6711409395973154, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 5, 'https://': 6, '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': '1390677', 'n_tokens_mistral': 579, 'n_tokens_neox': 522, 'n_words': 120}