<commit_before>class Pldebugger < Formula
  desc "PL/pgSQL debugger server-side code"
  homepage "http://git.postgresql.org/gitweb/"
  url "http://git.postgresql.org/git/pldebugger.git",
      :tag => "REL-9_5_0",
      :revision => "85d7b3b2821301e182d5974d9e6f353d7a241eff"
  bottle do
    cellar :any_skip_relocation
    sha256 "2f2b2a88b1501f0285350d4034b02ee799bb0ca2b20f81e8063098c134504ff0" => :el_capitan
    sha256 "86a9c396d0d5e3efbf55b2071e25a0c35e0d35177d3d0c2077f686fc42dad27e" => :yosemite
    sha256 "cb047f3816d9643777ed5adedf38a68f4924ea29c0d29c2866185eb3aae5937f" => :mavericks
  end

  version "1.0" # See default_version field in pldbgapi.control
  sha256 "2bb8e27aa8f8434a4861fdbc70adb9cb4b47e1dfe472910d62d6042cb80a2ee1"

  head "git://git.postgresql.org/git/pldebugger.git"

  depends_on "postgresql"

  def install
    ENV["USE_PGXS"] = "1"
    pg_config = "#{Formula["postgresql"].opt_bin}/pg_config"
    system "make", "PG_CONFIG=#{pg_config}"
    mkdir "stage"
    system "make", "DESTDIR=#{buildpath}/stage", "PG_CONFIG=#{pg_config}", "install"
    lib.install Dir["stage/**/lib/*"]
    (doc/"postgresql/extension").install Dir["stage/**/share/doc/postgresql/extension/*"]
    (share/"postgresql/extension").install Dir["stage/**/share/postgresql/extension/*"]
  end

  test do
    pg_bin = Formula["postgresql"].opt_bin
    pg_port = "55561"<commit_msg>pldebugger: sync protocol of head url with stable<commit_after>class Pldebugger < Formula
  desc "PL/pgSQL debugger server-side code"
  homepage "http://git.postgresql.org/gitweb/"
  url "http://git.postgresql.org/git/pldebugger.git",
      :tag => "REL-9_5_0",
      :revision => "85d7b3b2821301e182d5974d9e6f353d7a241eff"
  bottle do
    cellar :any_skip_relocation
    sha256 "2f2b2a88b1501f0285350d4034b02ee799bb0ca2b20f81e8063098c134504ff0" => :el_capitan
    sha256 "86a9c396d0d5e3efbf55b2071e25a0c35e0d35177d3d0c2077f686fc42dad27e" => :yosemite
    sha256 "cb047f3816d9643777ed5adedf38a68f4924ea29c0d29c2866185eb3aae5937f" => :mavericks
  end

  version "1.0" # See default_version field in pldbgapi.control
  sha256 "2bb8e27aa8f8434a4861fdbc70adb9cb4b47e1dfe472910d62d6042cb80a2ee1"

  head "http://git.postgresql.org/git/pldebugger.git"

  depends_on "postgresql"

  def install
    ENV["USE_PGXS"] = "1"
    pg_config = "#{Formula["postgresql"].opt_bin}/pg_config"
    system "make", "PG_CONFIG=#{pg_config}"
    mkdir "stage"
    system "make", "DESTDIR=#{buildpath}/stage", "PG_CONFIG=#{pg_config}", "install"
    lib.install Dir["stage/**/lib/*"]
    (doc/"postgresql/extension").install Dir["stage/**/share/doc/postgresql/extension/*"]
    (share/"postgresql/extension").install Dir["stage/**/share/postgresql/extension/*"]
  end

  test do
    pg_bin = Formula["postgresql"].opt_bin
    pg_port = "55561"
{'fraction_non_alphanumeric': 0.13173866476258478, 'fraction_numerical': 0.149946447697251, 'mean_word_length': 5.012875536480687, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, 'https://': 0, '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': '4796706', 'n_tokens_mistral': 1382, 'n_tokens_neox': 1186, 'n_words': 150}