<commit_before>class Mydumper < Formula
  desc "How MySQL DBA & support engineer would imagine 'mysqldump' ;-)"
  homepage "https://launchpad.net/mydumper"
  url "https://github.com/mydumper/mydumper/archive/v0.11.5.tar.gz"
  sha256 "834c530ae1982bf5863272cf0a4d4878451ead3af4f3e23db286ffd4471b783b"
  license "GPL-3.0-or-later"

  bottle do
    sha256 cellar: :any,                 arm64_monterey: "0b76f39b06fe7d920c2eb887d66b8f973dbc9bcee72050416ebed400e5e5c47c"
    sha256 cellar: :any,                 arm64_big_sur:  "994895cd10f2346ee9ecbb81fb9f00349a79d6a47ce0b7353ed6f4d454685fbf"
    sha256 cellar: :any,                 monterey:       "0f12923ed5a1e58ac730d14930a599b8ac46c86946639ee2ae2826fff97bf8cc"
    sha256 cellar: :any,                 big_sur:        "621d2b1f2daf3fdec0e8cf0043b4827b7481ca4893da7068b1d201a97070f8d8"
    sha256 cellar: :any,                 catalina:       "d7a865fc96e394e9d42e73a8b69e85617f03d517244806d46605fdc352bbf384"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "5012c978efdd639d94994f3363ce45f9727d20b53c928bc71dda899167e10ee1"
  end

  depends_on "cmake" => :build
  depends_on "pkg-config" => :build
  depends_on "sphinx-doc" => :build
  depends_on "glib"
  depends_on "mysql-client"
  depends_on "openssl@1.1"
  depends_on "pcre"

  uses_from_macos "zlib"

  on_linux do
    depends_on "gcc"
  end

  fails_with gcc: "5"

  def install
    # Override location of mysql-client
    args = std_cmake_args + %W[
      -DMYSQL_CONFIG_PREFER_PATH=#{Formula["mysql-client"].opt_bin}
      -DMYSQL_LIBRARIES=#{Formula["mysql-client"].opt_lib/shared_library("libmysqlclient")}
    ]
    # find_package(ZLIB) has trouble on Big Sur since physical libz.dylib
    # doesn't exist on the filesystem.  Instead provide details ourselves:
    if OS.mac?
      args << "-DCMAKE_DISABLE_FIND_PACKAGE_ZLIB=1"
      args << "-DZLIB_INCLUDE_DIRS=/usr/include"
      args << "-DZLIB_LIBRARIES=-lz"
    end

    system "cmake", ".", *args
    system "make", "install"
  end

  test do
    system bin/"mydumper", "--help"
  end
end
<commit_msg>mydumper: update 0.11.5 bottle.<commit_after>class Mydumper < Formula
  desc "How MySQL DBA & support engineer would imagine 'mysqldump' ;-)"
  homepage "https://launchpad.net/mydumper"
  url "https://github.com/mydumper/mydumper/archive/v0.11.5.tar.gz"
  sha256 "834c530ae1982bf5863272cf0a4d4878451ead3af4f3e23db286ffd4471b783b"
  license "GPL-3.0-or-later"

  bottle do
    sha256 cellar: :any,                 arm64_monterey: "4dfb19abc4e7db792c7b501071835421094a64396d761d30df17ae773dae8185"
    sha256 cellar: :any,                 arm64_big_sur:  "765dbe26bae2ae4123d3a090c04af0270850c957b211a7373b726bb33199fed1"
    sha256 cellar: :any,                 monterey:       "eff12ff418e7c254a6114334bfbc28f365b6a7a96904881113f2fbb9cdb664fe"
    sha256 cellar: :any,                 big_sur:        "00d4f78855de61a05480d9a41d7250163845606794feb62527fe4047f61a3447"
    sha256 cellar: :any,                 catalina:       "c92f8d54ee96ba590e0cc348ec6864379c90bd36f99e89e5094d6ca1ccf5fac5"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "f6ce78aac922befc587ee513943be1749fb3524224c5bb3da5cb9c79ef27778b"
  end

  depends_on "cmake" => :build
  depends_on "pkg-config" => :build
  depends_on "sphinx-doc" => :build
  depends_on "glib"
  depends_on "mysql-client"
  depends_on "openssl@1.1"
  depends_on "pcre"

  uses_from_macos "zlib"

  on_linux do
    depends_on "gcc"
  end

  fails_with gcc: "5"

  def install
    # Override location of mysql-client
    args = std_cmake_args + %W[
      -DMYSQL_CONFIG_PREFER_PATH=#{Formula["mysql-client"].opt_bin}
      -DMYSQL_LIBRARIES=#{Formula["mysql-client"].opt_lib/shared_library("libmysqlclient")}
    ]
    # find_package(ZLIB) has trouble on Big Sur since physical libz.dylib
    # doesn't exist on the filesystem.  Instead provide details ourselves:
    if OS.mac?
      args << "-DCMAKE_DISABLE_FIND_PACKAGE_ZLIB=1"
      args << "-DZLIB_INCLUDE_DIRS=/usr/include"
      args << "-DZLIB_LIBRARIES=-lz"
    end

    system "cmake", ".", *args
    system "make", "install"
  end

  test do
    system bin/"mydumper", "--help"
  end
end

{'fraction_non_alphanumeric': 0.09569377990430622, 'fraction_numerical': 0.15645933014354066, 'mean_word_length': 3.650723025583982, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 9, 'https://': 4, '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': '4252746', 'n_tokens_mistral': 2064, 'n_tokens_neox': 1706, 'n_words': 267}