<commit_before>class Liblo < Formula
  desc "Lightweight Open Sound Control implementation"
  homepage "https://liblo.sourceforge.io/"
  url "https://downloads.sourceforge.net/project/liblo/liblo/0.31/liblo-0.31.tar.gz"
  sha256 "2b4f446e1220dcd624ecd8405248b08b7601e9a0d87a0b94730c2907dbccc750"
  license "LGPL-2.1"

  bottle do
    sha256 cellar: :any,                 arm64_big_sur: "95b358e3f04623998f6c2d734599ec7e63b3c389f9d6e0cc9fc6311850929f55"
    sha256 cellar: :any,                 big_sur:       "19eef0619f05faa15a7d5368973dcd3e5ed2e44291b56cc6ff72825fe8879845"
    sha256 cellar: :any,                 catalina:      "aac4280d5e147a6baab53c252bbf7cda296fe5bdeceb26d7aa60acb10ecc5444"
    sha256 cellar: :any,                 mojave:        "3310110ec91fb412b8d5c727bda03454aebec087d78ebada20bb53ad9582088e"
    sha256 cellar: :any,                 high_sierra:   "034eaec236ee4df490d16db9998ec7a4d88223d929b333c8b08ade641bc74bcb"
    sha256 cellar: :any_skip_relocation, x86_64_linux:  "e4abab6d8b5735e6b1dac973850d9608e71c644255c13b954365398daf8aeec4"
  end

  head do
    url "https://git.code.sf.net/p/liblo/git.git", branch: "master"

    depends_on "autoconf" => :build
    depends_on "automake" => :build
    depends_on "libtool" => :build
  end

  def install
    args = %W[
      --disable-debug
      --disable-dependency-tracking
      --prefix=#{prefix}
    ]

    if build.head?
      system "./autogen.sh", *args
    else
      system "./configure", *args
    end<commit_msg>liblo: patch incorrect -flat_namespace usage (#88245)<commit_after>class Liblo < Formula
  desc "Lightweight Open Sound Control implementation"
  homepage "https://liblo.sourceforge.io/"
  license "LGPL-2.1"

  stable do
    url "https://downloads.sourceforge.net/project/liblo/liblo/0.31/liblo-0.31.tar.gz"
    sha256 "2b4f446e1220dcd624ecd8405248b08b7601e9a0d87a0b94730c2907dbccc750"

    # Fix -flat_namespace being used on Big Sur and later.
    patch do
      url "https://raw.githubusercontent.com/Homebrew/formula-patches/03cf8088210822aa2c1ab544ed58ea04c897d9c4/libtool/configure-big_sur.diff"
      sha256 "35acd6aebc19843f1a2b3a63e880baceb0f5278ab1ace661e57a502d9d78c93c"
    end
  end

  bottle do
    sha256 cellar: :any,                 arm64_big_sur: "95b358e3f04623998f6c2d734599ec7e63b3c389f9d6e0cc9fc6311850929f55"
    sha256 cellar: :any,                 big_sur:       "19eef0619f05faa15a7d5368973dcd3e5ed2e44291b56cc6ff72825fe8879845"
    sha256 cellar: :any,                 catalina:      "aac4280d5e147a6baab53c252bbf7cda296fe5bdeceb26d7aa60acb10ecc5444"
    sha256 cellar: :any,                 mojave:        "3310110ec91fb412b8d5c727bda03454aebec087d78ebada20bb53ad9582088e"
    sha256 cellar: :any,                 high_sierra:   "034eaec236ee4df490d16db9998ec7a4d88223d929b333c8b08ade641bc74bcb"
    sha256 cellar: :any_skip_relocation, x86_64_linux:  "e4abab6d8b5735e6b1dac973850d9608e71c644255c13b954365398daf8aeec4"
  end

  head do
    url "https://git.code.sf.net/p/liblo/git.git", branch: "master"

    depends_on "autoconf" => :build
    depends_on "automake" => :build
    depends_on "libtool" => :build
  end

  def install
    args = %W[
      --disable-debug
      --disable-dependency-tracking
      --prefix=#{prefix}
    ]

    if build.head?
      system "./autogen.sh", *args
    else
      system "./configure", *args
    end
{'fraction_non_alphanumeric': 0.08805217906907797, 'fraction_numerical': 0.20308330862733473, 'mean_word_length': 3.3648124191461837, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 7, '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': '2078909', 'n_tokens_mistral': 1749, 'n_tokens_neox': 1379, 'n_words': 189}