<commit_before>class Mariadb < Formula
  desc "Drop-in replacement for MySQL"
  homepage "https://mariadb.org/"
  url "https://downloads.mariadb.com/MariaDB/mariadb-10.5.11/source/mariadb-10.5.11.tar.gz"
  sha256 "761053605fe30ce393f324852117990350840a93b3e6305ef4d2f8c8305cc47a"
  license "GPL-2.0-only"

  livecheck do
    url "https://downloads.mariadb.org/"
    regex(/Download v?(\d+(?:\.\d+)+) Stable Now/i)
  end

  bottle do
    sha256 arm64_big_sur: "661e7a2f051ef8456fc0aac57199b70e4229f9a8e0924bcd98d4c29e96df868b"
    sha256 big_sur:       "4bb853a14062c9f043e3e7f9c42fbb22e1bb43fdc1b70e3fa98d72644707b322"
    sha256 catalina:      "f41f7892b79e30cc08e76d5be0c87f3aef1932cc67b16939f50a7fe994987a1d"
    sha256 mojave:        "1b5adcab2cd663265ea5ca2ebfd502e42f146f74d790d35d03bdad8e6d89a5a3"
  end

  depends_on "bison" => :build
  depends_on "cmake" => :build
  depends_on "pkg-config" => :build
  depends_on "groonga"
  depends_on "openssl@1.1"
  depends_on "pcre2"

  uses_from_macos "bzip2"
  uses_from_macos "ncurses"
  uses_from_macos "zlib"

  on_macos do
    # Need patch to remove MYSQL_SOURCE_DIR from include path because it contains
    # file called VERSION.
    # https://github.com/Homebrew/homebrew-core/pull/76887#issuecomment-840851149
    # Reported upstream at https://jira.mariadb.org/browse/MDEV-7209 - this fix can be
    # removed once that issue is closed and the fix has been merged into a stable release.
    patch :DATA
  end

  on_linux do
    depends_on "gcc"
    depends_on "linux-pam"
  end

  conflicts_with "mysql", "percona-server",
    because: "mariadb, mysql, and percona install the same binaries"<commit_msg>mariadb: update 10.5.11 bottle.<commit_after>class Mariadb < Formula
  desc "Drop-in replacement for MySQL"
  homepage "https://mariadb.org/"
  url "https://downloads.mariadb.com/MariaDB/mariadb-10.5.11/source/mariadb-10.5.11.tar.gz"
  sha256 "761053605fe30ce393f324852117990350840a93b3e6305ef4d2f8c8305cc47a"
  license "GPL-2.0-only"

  livecheck do
    url "https://downloads.mariadb.org/"
    regex(/Download v?(\d+(?:\.\d+)+) Stable Now/i)
  end

  bottle do
    sha256 arm64_big_sur: "661e7a2f051ef8456fc0aac57199b70e4229f9a8e0924bcd98d4c29e96df868b"
    sha256 big_sur:       "4bb853a14062c9f043e3e7f9c42fbb22e1bb43fdc1b70e3fa98d72644707b322"
    sha256 catalina:      "f41f7892b79e30cc08e76d5be0c87f3aef1932cc67b16939f50a7fe994987a1d"
    sha256 mojave:        "1b5adcab2cd663265ea5ca2ebfd502e42f146f74d790d35d03bdad8e6d89a5a3"
    sha256 x86_64_linux:  "828d5ccc7fcf54e52765a9ea7e09f3dc08cd0f33e979b0a45310a7274642b13c"
  end

  depends_on "bison" => :build
  depends_on "cmake" => :build
  depends_on "pkg-config" => :build
  depends_on "groonga"
  depends_on "openssl@1.1"
  depends_on "pcre2"

  uses_from_macos "bzip2"
  uses_from_macos "ncurses"
  uses_from_macos "zlib"

  on_macos do
    # Need patch to remove MYSQL_SOURCE_DIR from include path because it contains
    # file called VERSION.
    # https://github.com/Homebrew/homebrew-core/pull/76887#issuecomment-840851149
    # Reported upstream at https://jira.mariadb.org/browse/MDEV-7209 - this fix can be
    # removed once that issue is closed and the fix has been merged into a stable release.
    patch :DATA
  end

  on_linux do
    depends_on "gcc"
    depends_on "linux-pam"
  end

  conflicts_with "mysql", "percona-server",
    because: "mariadb, mysql, and percona install the same binaries"
{'fraction_non_alphanumeric': 0.09117390037867754, 'fraction_numerical': 0.16254005243227498, 'mean_word_length': 4.21092564491654, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 10, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6567238', 'n_tokens_mistral': 1750, 'n_tokens_neox': 1480, 'n_words': 253}