<commit_before>class Mujs < Formula
  desc "Embeddable Javascript interpreter"
  homepage "https://www.mujs.com/"
  # use tag not tarball so the version in the pkg-config file isn't blank
  url "https://github.com/ccxvii/mujs.git",
      tag:      "1.1.2",
      revision: "7ef066a3bb95bf83e7c5be50d859e62e58fe8515"
  license "ISC"
  head "https://github.com/ccxvii/mujs.git"

  bottle do
    sha256 cellar: :any, arm64_big_sur: "7776f7200679dc7249828a8458dae80e0301a057926aed713d5770f0104750c9"
    sha256 cellar: :any, big_sur:       "a4c8d413efbb3b2cc80e796b3690dd0a74fadb47c12f513fd0c54c6258b5739c"
    sha256 cellar: :any, catalina:      "d054e0dabc7d7a420cb962e279b1a7f78faa9c6933c59a9e93569732c65ea0c6"
    sha256 cellar: :any, mojave:        "ad3d0b6ffb7c7c0069ea8d31b4f4188e676787d2db6ff0e87f4e71807448df52"
  end

  on_linux do
    depends_on "readline"
  end

  def install
    system "make", "release"
    system "make", "prefix=#{prefix}", "install"
    system "make", "prefix=#{prefix}", "install-shared"
  end

  test do
    (testpath/"test.js").write <<~EOS
      print('hello, world'.split().reduce(function (sum, char) {
        return sum + char.charCodeAt(0);<commit_msg>mujs: update 1.1.2 bottle.<commit_after>class Mujs < Formula
  desc "Embeddable Javascript interpreter"
  homepage "https://www.mujs.com/"
  # use tag not tarball so the version in the pkg-config file isn't blank
  url "https://github.com/ccxvii/mujs.git",
      tag:      "1.1.2",
      revision: "7ef066a3bb95bf83e7c5be50d859e62e58fe8515"
  license "ISC"
  head "https://github.com/ccxvii/mujs.git"

  bottle do
    sha256 cellar: :any, arm64_big_sur: "4a9c425ba618532c01217ca4b40bc98e6ed3db93694a738da552ddcb5a368e15"
    sha256 cellar: :any, big_sur:       "232f818ac53dda527860225fa358b2e7aa46f1c1385335406a48c9254dbbcce7"
    sha256 cellar: :any, catalina:      "7a17de9728ae20735d5ed74719a81aaa5be74c37d726f11dc161a7c5ef8ba8cd"
    sha256 cellar: :any, mojave:        "d42e999efee733893ea29b4ab71582cd26954d25ee6d258a2eb944d6c69a96dd"
  end

  on_linux do
    depends_on "readline"
  end

  def install
    system "make", "release"
    system "make", "prefix=#{prefix}", "install"
    system "make", "prefix=#{prefix}", "install-shared"
  end

  test do
    (testpath/"test.js").write <<~EOS
      print('hello, world'.split().reduce(function (sum, char) {
        return sum + char.charCodeAt(0);
{'fraction_non_alphanumeric': 0.11106471816283925, 'fraction_numerical': 0.1707724425887265, 'mean_word_length': 4.130620985010706, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 2, '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': '2796137', 'n_tokens_mistral': 1210, 'n_tokens_neox': 993, 'n_words': 172}