<commit_before>class Fibjs < Formula
  desc "JavaScript on Fiber"
  homepage "http://fibjs.org"
  url "https://github.com/xicilion/fibjs/releases/download/v0.1.3/fibjs-0.1.3-fullsrc.zip"
  sha256 "e9c94d41cd2f9c0cd773f6076270848961d27c01f1f77dd0f41beb408529c046"

  head "https://github.com/xicilion/fibjs.git"

  bottle do
    cellar :any
    sha256 "cdb2cbbf0b065071b6ed46fab8a459fcbfab7c1b040177379569ec95b0daac81" => :yosemite
    sha256 "895ef0a56a714deb0bcd03fb71a187a60b327da201332843e2c9ec80685088f0" => :mavericks
    sha256 "826885a9c7e34089cd99670fa7817a8f25d52d75129757581559579f95940571" => :mountain_lion
  end

  depends_on "cmake" => :build

  def install
    system "./build", "Release", "-j#{ENV.make_jobs}"
    bin.install "bin/Darwin_Release/fibjs"
  end

  test do
    path = testpath/"test.js"
    path.write "console.log('hello');"

    output = `#{bin}/fibjs #{path}`.strip
    assert_equal "hello", output
    assert_equal 0, $?.exitstatus
  end
end<commit_msg>fibjs 0.1.4<commit_after>class Fibjs < Formula
  desc "JavaScript on Fiber"
  homepage "http://fibjs.org"
  url "https://github.com/xicilion/fibjs/releases/download/v0.1.4/fibjs-0.1.4-fullsrc.zip"
  sha256 "e9c316f601254851c420f214d0b8c136f76dcc29f07b5c8f62caf3e20c2bee80"

  head "https://github.com/xicilion/fibjs.git"

  bottle do
    cellar :any
    sha256 "cdb2cbbf0b065071b6ed46fab8a459fcbfab7c1b040177379569ec95b0daac81" => :yosemite
    sha256 "895ef0a56a714deb0bcd03fb71a187a60b327da201332843e2c9ec80685088f0" => :mavericks
    sha256 "826885a9c7e34089cd99670fa7817a8f25d52d75129757581559579f95940571" => :mountain_lion
  end

  depends_on "cmake" => :build

  def install
    system "./build", "Release", "-j#{ENV.make_jobs}"
    bin.install "bin/Darwin_Release/fibjs"
  end

  test do
    path = testpath/"test.js"
    path.write "console.log('hello');"

    output = `#{bin}/fibjs #{path}`.strip
    assert_equal "hello", output
    assert_equal 0, $?.exitstatus
  end
end
{'fraction_non_alphanumeric': 0.11776649746192894, 'fraction_numerical': 0.19289340101522842, 'mean_word_length': 4.505586592178771, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3574348', 'n_tokens_mistral': 1071, 'n_tokens_neox': 850, 'n_words': 116}