<commit_before># Track Chrome stable.
# https://omahaproxy.appspot.com/
class V8 < Formula
  desc "Google's JavaScript engine"
  homepage "https://code.google.com/p/v8/"
  url "https://github.com/v8/v8-git-mirror/archive/4.4.63.31.tar.gz"
  sha256 "f384461a492243cd4ceac8f144b32c9b2f89b5935afccf4f2dc4479127dc019b"

  bottle do
    cellar :any
    sha256 "6ab6d77e3c0612dc0777ff19ab6a24cea2d86540e0054fab4ab61b73706db477" => :yosemite
    sha256 "79400eda8e69de54c078df7917abb73d2e1bd3457d2d80a7a0069c1c563951cf" => :mavericks
    sha256 "238efb2a557364f5e6c869a6efc7dfb545ed2f7b11e946f608a54453edcf9c71" => :mountain_lion
  end

  option "with-readline", "Use readline instead of libedit"

  # not building on Snow Leopard:
  # https://github.com/Homebrew/homebrew/issues/21426
  depends_on :macos => :lion

  depends_on :python => :build # gyp doesn't run under 2.6 or lower
  depends_on "readline" => :optional

  needs :cxx11

  # Update from "DEPS" file in tarball.
  resource "gyp" do
    url "https://chromium.googlesource.com/external/gyp.git",
        :revision => "0bb67471bca068996e15b56738fa4824dfa19de0"
  end

  resource "icu" do
    url "https://chromium.googlesource.com/chromium/deps/icu.git",
        :revision => "f8c0e585b0a046d83d72b5d37356cb50d5b2031a"
  end

  resource "buildtools" do
    url "https://chromium.googlesource.com/chromium/buildtools.git",
        :revision => "b0ede9c89f9d5fbe5387d961ad4c0ec665b6c821"
  end

  resource "clang" do
    url "https://chromium.googlesource.com/chromium/src/tools/clang.git",
        :revision => "5bab78c6ced45a71a8e095a09697ca80492e57e1"
  end

  resource "gmock" do
    url "https://chromium.googlesource.com/external/googlemock.git",
        :revision => "29763965ab52f24565299976b936d1265cb6a271"
  end

  resource "gtest" do
    url "https://chromium.googlesource.com/external/googletest.git",
        :revision => "be1868139ffe0ccd0e8e3b37292b84c821d9c8ad"
  end

  def install
    # Bully GYP into correctly linking with c++11
    ENV.cxx11
    ENV["GYP_DEFINES"] = "clang=1 mac_deployment_target=#{MacOS.version}"

    # fix up libv8.dylib install_name<commit_msg>v8 172.16.17.32<commit_after># Track Chrome stable.
# https://omahaproxy.appspot.com/
class V8 < Formula
  desc "Google's JavaScript engine"
  homepage "https://code.google.com/p/v8/"
  url "https://github.com/v8/v8-git-mirror/archive/4.5.103.29.tar.gz"
  sha256 "5ebcab22d168f59a91319b7e99859f36b8affc3872bf33ad7a1f400750b83040"

  bottle do
    cellar :any
    sha256 "6ab6d77e3c0612dc0777ff19ab6a24cea2d86540e0054fab4ab61b73706db477" => :yosemite
    sha256 "79400eda8e69de54c078df7917abb73d2e1bd3457d2d80a7a0069c1c563951cf" => :mavericks
    sha256 "238efb2a557364f5e6c869a6efc7dfb545ed2f7b11e946f608a54453edcf9c71" => :mountain_lion
  end

  option "with-readline", "Use readline instead of libedit"

  # not building on Snow Leopard:
  # https://github.com/Homebrew/homebrew/issues/21426
  depends_on :macos => :lion

  depends_on :python => :build # gyp doesn't run under 2.6 or lower
  depends_on "readline" => :optional

  needs :cxx11

  # Update from "DEPS" file in tarball.
  resource "gyp" do
    url "https://chromium.googlesource.com/external/gyp.git",
        :revision => "5122240c5e5c4d8da12c543d82b03d6089eb77c5"
  end

  resource "icu" do
    url "https://chromium.googlesource.com/chromium/deps/icu.git",
        :revision => "c81a1a3989c3b66fa323e9a6ee7418d7c08297af"
  end

  resource "buildtools" do
    url "https://chromium.googlesource.com/chromium/buildtools.git",
        :revision => "ecc8e253abac3b6186a97573871a084f4c0ca3ae"
  end

  resource "clang" do
    url "https://chromium.googlesource.com/chromium/src/tools/clang.git",
        :revision => "73ec8804ed395b0886d6edf82a9f33583f4a7902"
  end

  resource "gmock" do
    url "https://chromium.googlesource.com/external/googlemock.git",
        :revision => "29763965ab52f24565299976b936d1265cb6a271"
  end

  resource "gtest" do
    url "https://chromium.googlesource.com/external/googletest.git",
        :revision => "23574bf2333f834ff665f894c97bef8a5b33a0a9"
  end

  def install
    # Bully GYP into correctly linking with c++11
    ENV.cxx11
    ENV["GYP_DEFINES"] = "clang=1 mac_deployment_target=#{MacOS.version}"

    # fix up libv8.dylib install_name
{'fraction_non_alphanumeric': 0.10753440634476323, 'fraction_numerical': 0.1663167716351761, 'mean_word_length': 4.197575757575757, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 27, 'https://': 20, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 3, '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': '1298188', 'n_tokens_mistral': 2196, 'n_tokens_neox': 1803, 'n_words': 268}