<commit_before>class Vcpkg < Formula
  desc "C++ Library Manager"
  homepage "https://github.com/microsoft/vcpkg"
  url "https://github.com/microsoft/vcpkg-tool/archive/2022-10-17.tar.gz"
  version "2022.10.17"
  sha256 "04662d6185276ff8f0f8d4ebb7e369db0ff3249ce4a0720b335355d9f7407072"
  license "MIT"
  head "https://github.com/microsoft/vcpkg-tool.git", branch: "main"

  # The source repository has pre-release tags with the same
  # format as the stable tags.
  livecheck do
    url :stable
    strategy :github_latest
    regex(%r{href=.*?/tag/v?(\d{4}(?:[._-]\d{2}){2})["' >]}i)
  end

  bottle do
    sha256 cellar: :any,                 arm64_ventura:  "4fd1c6f4f8d360d9c99d9a0d9aa06aa99120145be59cdf0c785b45bba175d5e4"
    sha256 cellar: :any,                 arm64_monterey: "79afb9bb2e4338f439a6f280b839e499b9a88eb3ec984b2e9f1641f84178adc5"
    sha256 cellar: :any,                 arm64_big_sur:  "ce788d7abcd355b7bb33fa599858c3912ddb29a88b168ef12a4bfa17510cac0b"
    sha256 cellar: :any,                 monterey:       "ca338d600396f34fdd291fecedc5ebd216c79fe7105daa34158a089955c269e3"
    sha256 cellar: :any,                 big_sur:        "4319c0ba1add14bc2bec70e6241ff13b96b38859dd3c02b9edb308de1527824c"
    sha256 cellar: :any,                 catalina:       "d3a481cc70a8c4a3af3ff6cce0e0760d72405632111d612fbb8a029954b82364"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "ea9e5174f26f24ddd8098664387fdcf869f844938ea79ffd3df2966062840d31"
  end

  depends_on "cmake" => :build
  depends_on "fmt"
  depends_on "ninja" # This will install its own copy at runtime if one isn't found.

  fails_with gcc: "5"

  def install
    # Improve error message when user fails to set `VCPKG_ROOT`.
    inreplace ["include/vcpkg/base/messages.h", "locales/messages.json", "locales/messages.en.json"],
              "If you are trying to use a copy of vcpkg that you've built, y", "Y"

    system "cmake", "-S", ".", "-B", "build",
                    "-DVCPKG_DEVELOPMENT_WARNINGS=OFF",
                    "-DVCPKG_BASE_VERSION=#{version.to_s.tr(".", "-")}",
                    "-DVCPKG_VERSION=#{version}",<commit_msg>vcpkg 2022.11.10<commit_after>class Vcpkg < Formula
  desc "C++ Library Manager"
  homepage "https://github.com/microsoft/vcpkg"
  url "https://github.com/microsoft/vcpkg-tool/archive/2022-11-10.tar.gz"
  version "2022.11.10"
  sha256 "627ff5da84e7464a68e154f3903484f9f063cc5141d5e5a9fa250b519be93c6d"
  license "MIT"
  head "https://github.com/microsoft/vcpkg-tool.git", branch: "main"

  # The source repository has pre-release tags with the same
  # format as the stable tags.
  livecheck do
    url :stable
    strategy :github_latest
    regex(%r{href=.*?/tag/v?(\d{4}(?:[._-]\d{2}){2})["' >]}i)
  end

  bottle do
    sha256 cellar: :any,                 arm64_ventura:  "4fd1c6f4f8d360d9c99d9a0d9aa06aa99120145be59cdf0c785b45bba175d5e4"
    sha256 cellar: :any,                 arm64_monterey: "79afb9bb2e4338f439a6f280b839e499b9a88eb3ec984b2e9f1641f84178adc5"
    sha256 cellar: :any,                 arm64_big_sur:  "ce788d7abcd355b7bb33fa599858c3912ddb29a88b168ef12a4bfa17510cac0b"
    sha256 cellar: :any,                 monterey:       "ca338d600396f34fdd291fecedc5ebd216c79fe7105daa34158a089955c269e3"
    sha256 cellar: :any,                 big_sur:        "4319c0ba1add14bc2bec70e6241ff13b96b38859dd3c02b9edb308de1527824c"
    sha256 cellar: :any,                 catalina:       "d3a481cc70a8c4a3af3ff6cce0e0760d72405632111d612fbb8a029954b82364"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "ea9e5174f26f24ddd8098664387fdcf869f844938ea79ffd3df2966062840d31"
  end

  depends_on "cmake" => :build
  depends_on "fmt"
  depends_on "ninja" # This will install its own copy at runtime if one isn't found.

  fails_with gcc: "5"

  def install
    # Improve error message when user fails to set `VCPKG_ROOT`.
    inreplace ["include/vcpkg/base/messages.h", "locales/messages.json"],
              "If you are trying to use a copy of vcpkg that you've built, y", "Y"

    system "cmake", "-S", ".", "-B", "build",
                    "-DVCPKG_DEVELOPMENT_WARNINGS=OFF",
                    "-DVCPKG_BASE_VERSION=#{version.to_s.tr(".", "-")}",
                    "-DVCPKG_VERSION=#{version}",
{'fraction_non_alphanumeric': 0.10810810810810811, 'fraction_numerical': 0.17673325499412457, 'mean_word_length': 3.3252032520325203, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '4962433', 'n_tokens_mistral': 2134, 'n_tokens_neox': 1716, 'n_words': 283}