<commit_before>class Mecab < Formula
  desc "Yet another part-of-speech and morphological analyzer"
  homepage "https://taku910.github.io/mecab/"
  # Canonical url is https://drive.google.com/uc?export=download&id=0B4y35FiV1wh7cENtOXlicTFaRUE
  url "https://deb.debian.org/debian/pool/main/m/mecab/mecab_0.996.orig.tar.gz"
  sha256 "e073325783135b72e666145c781bb48fada583d5224fb2490fb6c1403ba69c59"

  livecheck do
    url :homepage
    regex(/mecab[._-]v?(\d+(?:\.\d+)+)\.t/i)
  end

  bottle do
    rebuild 3
    sha256 arm64_big_sur: "495c42533a5ea5bdedcf4a95c05e613c3579f626b17d0df0396d8a0ea9328bbe"
    sha256 big_sur:       "53efb8669f932aac26f4669db62eb858e6e31860923460a6c4e74d84685e8146"
    sha256 catalina:      "dba6306bcd5ddb9a824cb366b5432a036889440f2253634c99410fbb0abe0047"
    sha256 mojave:        "ef261d203140305ca8c9e4b7311c61176a17325df9454610d3eb33a312c4d3c5"
    sha256 high_sierra:   "d48340df17075e4a6237ffb87306a42566f8eabb736c546d790586266758f387"
    sha256 sierra:        "d98686ec62189de50f6ed5b7e682d59b90239c8dfd08cf32fd23543466586232"
    sha256 el_capitan:    "03df92bdd092065a7cbca5953a0e352c16cadfff5c9f186bbe1ee882258e56d3"
    sha256 x86_64_linux:  "4cff10addb8895df884fca8d81cd4d4c7530efdac45896299d85ab707a80cf4f"
  end

  on_linux do
    depends_on "gcc@7"
  end

  conflicts_with "mecab-ko", because: "both install mecab binaries"

  fails_with gcc: "4"
  fails_with gcc: "5"
  fails_with gcc: "6"

  def install
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",<commit_msg>mecab: build with system GCC (#22810)<commit_after>class Mecab < Formula
  desc "Yet another part-of-speech and morphological analyzer"
  homepage "https://taku910.github.io/mecab/"
  # Canonical url is https://drive.google.com/uc?export=download&id=0B4y35FiV1wh7cENtOXlicTFaRUE
  url "https://deb.debian.org/debian/pool/main/m/mecab/mecab_0.996.orig.tar.gz"
  sha256 "e073325783135b72e666145c781bb48fada583d5224fb2490fb6c1403ba69c59"
  revision 1 unless OS.mac?

  livecheck do
    url :homepage
    regex(/mecab[._-]v?(\d+(?:\.\d+)+)\.t/i)
  end

  bottle do
    rebuild 3
    sha256 arm64_big_sur: "495c42533a5ea5bdedcf4a95c05e613c3579f626b17d0df0396d8a0ea9328bbe"
    sha256 big_sur:       "53efb8669f932aac26f4669db62eb858e6e31860923460a6c4e74d84685e8146"
    sha256 catalina:      "dba6306bcd5ddb9a824cb366b5432a036889440f2253634c99410fbb0abe0047"
    sha256 mojave:        "ef261d203140305ca8c9e4b7311c61176a17325df9454610d3eb33a312c4d3c5"
    sha256 high_sierra:   "d48340df17075e4a6237ffb87306a42566f8eabb736c546d790586266758f387"
    sha256 sierra:        "d98686ec62189de50f6ed5b7e682d59b90239c8dfd08cf32fd23543466586232"
    sha256 el_capitan:    "03df92bdd092065a7cbca5953a0e352c16cadfff5c9f186bbe1ee882258e56d3"
  end

  conflicts_with "mecab-ko", because: "both install mecab binaries"

  def install
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
{'fraction_non_alphanumeric': 0.08778371161548731, 'fraction_numerical': 0.27236315086782376, 'mean_word_length': 4.686907020872865, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 6, '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': '2173948', 'n_tokens_mistral': 1790, 'n_tokens_neox': 1339, 'n_words': 155}