<commit_before>class Citus < Formula
  desc "PostgreSQL-based distributed RDBMS"
  homepage "https://www.citusdata.com"
  url "https://github.com/citusdata/citus/archive/v8.1.0.tar.gz"
  sha256 "30d3f51d7708079ebb4ad983a0c6aea917c11efe935bffbe337246676be368ed"
  head "https://github.com/citusdata/citus.git"

  bottle do
    cellar :any
    sha256 "bed24ed552f5c98791978ad34292ebd4ad5e32bf20a05290e9fab2f5f8997312" => :mojave
    sha256 "9923a34e87d2d856f1bd31e23ee6a2ded2b47742f32fb8a5565e106f88fa678d" => :high_sierra
    sha256 "568f720a600969048e463df8a6d58bb8b6184695ea7d9c2acf1f17cc7397c2bf" => :sierra
  end

  depends_on "postgresql"
  depends_on "readline"

  def install
    ENV["PG_CONFIG"] = Formula["postgresql"].opt_bin/"pg_config"

    system "./configure"

    # workaround for https://github.com/Homebrew/homebrew/issues/49948
    system "make", "libpq=-L#{Formula["postgresql"].opt_lib} -lpq"

    # Use stage directory to prevent installing to pg_config-defined dirs,
    # which would not be within this package's Cellar.
    mkdir "stage"
    system "make", "install", "DESTDIR=#{buildpath}/stage"

    bin.install Dir["stage/**/bin/*"]
    lib.install Dir["stage/**/lib/*"]
    include.install Dir["stage/**/include/*"]
    (share/"postgresql/extension").install Dir["stage/**/share/postgresql/extension/*"]
  end

  test do<commit_msg>citus: update 8.1.0 bottle.<commit_after>class Citus < Formula
  desc "PostgreSQL-based distributed RDBMS"
  homepage "https://www.citusdata.com"
  url "https://github.com/citusdata/citus/archive/v8.1.0.tar.gz"
  sha256 "30d3f51d7708079ebb4ad983a0c6aea917c11efe935bffbe337246676be368ed"
  head "https://github.com/citusdata/citus.git"

  bottle do
    cellar :any
    sha256 "af48f7becc62c2dfa95deb58dda505ee8924e5780fc6355a10a8534bf33b2c5f" => :mojave
    sha256 "3c8438c9378fb1683e2f02c678a51aa69919c4716e90efd19b37664a3df3ee82" => :high_sierra
    sha256 "208d20c1eab4d836d3d180554e11c7c852faf0db56253a118ce7e8bf831c7ecb" => :sierra
  end

  depends_on "postgresql"
  depends_on "readline"

  def install
    ENV["PG_CONFIG"] = Formula["postgresql"].opt_bin/"pg_config"

    system "./configure"

    # workaround for https://github.com/Homebrew/homebrew/issues/49948
    system "make", "libpq=-L#{Formula["postgresql"].opt_lib} -lpq"

    # Use stage directory to prevent installing to pg_config-defined dirs,
    # which would not be within this package's Cellar.
    mkdir "stage"
    system "make", "install", "DESTDIR=#{buildpath}/stage"

    bin.install Dir["stage/**/bin/*"]
    lib.install Dir["stage/**/lib/*"]
    include.install Dir["stage/**/include/*"]
    (share/"postgresql/extension").install Dir["stage/**/share/postgresql/extension/*"]
  end

  test do
{'fraction_non_alphanumeric': 0.12884333821376281, 'fraction_numerical': 0.13030746705710103, 'mean_word_length': 4.566191446028514, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 8, 'lorem ipsum': 0, 'www.': 2, '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': '1824445', 'n_tokens_mistral': 1260, 'n_tokens_neox': 1071, 'n_words': 162}