<commit_before>require "language/haskell"
require "net/http"

class Postgrest < Formula
  include Language::Haskell::Cabal

  desc "Serves a fully RESTful API from any existing PostgreSQL database"
  homepage "https://github.com/begriffs/postgrest"
  revision 3

  stable do
    url "https://github.com/begriffs/postgrest/archive/v0.3.1.1.tar.gz"
    sha256 "1830900175879d4be40b93410a7617cb637aae7e9e70792bf70e2bf72b0b2150"

    # Upstream postgrest PR bumping the constraints for bytestring-tree-builder,
    # hasql-transaction, and postgresql-binary, so that we no longer have to
    # patch any of those; https://github.com/begriffs/postgrest/pull/619 doesn't
    # apply cleanly to the tagged release, so using an equivalent patch :DATA
    patch :DATA
  end

  bottle do
    sha256 "a5c53ee2be7a5e3dd3c05f10f89bc9099331d24338afc273c0c9a12705f3f13e" => :el_capitan
    sha256 "d9ec19945721d87421743d2106620f74e70811d309480877ebe68ae49c702657" => :yosemite
    sha256 "b4cb205b9ab3f79d424d11656b817355b59857f1899430a4886d2dbeec6a0348" => :mavericks
  end

  head do
    url "https://github.com/begriffs/postgrest.git"

    # Equivalent to the patch :DATA for stable above
    patch do
      url "https://github.com/begriffs/postgrest/pull/619.patch"
      sha256 "e98e5bad88a62d33ab2a7dfda88c1b34315231d27179cc708b959468c1a20191"
    end
  end

  depends_on "ghc" => :build
  depends_on "cabal-install" => :build
  depends_on "postgresql"
<commit_msg>postgrest: update 0.3.1.1_3 bottle.<commit_after>require "language/haskell"
require "net/http"

class Postgrest < Formula
  include Language::Haskell::Cabal

  desc "Serves a fully RESTful API from any existing PostgreSQL database"
  homepage "https://github.com/begriffs/postgrest"
  revision 3

  stable do
    url "https://github.com/begriffs/postgrest/archive/v0.3.1.1.tar.gz"
    sha256 "1830900175879d4be40b93410a7617cb637aae7e9e70792bf70e2bf72b0b2150"

    # Upstream postgrest PR bumping the constraints for bytestring-tree-builder,
    # hasql-transaction, and postgresql-binary, so that we no longer have to
    # patch any of those; https://github.com/begriffs/postgrest/pull/619 doesn't
    # apply cleanly to the tagged release, so using an equivalent patch :DATA
    patch :DATA
  end

  bottle do
    sha256 "3e1e6f8ba867ea149374b712c75a97cee87281ef2cb1c96c780efc59dbf6f5fb" => :el_capitan
    sha256 "b8b506f74214d00cf4741a1ec65651a9cc6fa88d5156e2f9aa97caab60c57deb" => :yosemite
    sha256 "e2d4bc81c1d9dfd43d11b57bc7224684f0d60f89737041b2fdc74f27cb3ae78c" => :mavericks
  end

  head do
    url "https://github.com/begriffs/postgrest.git"

    # Equivalent to the patch :DATA for stable above
    patch do
      url "https://github.com/begriffs/postgrest/pull/619.patch"
      sha256 "e98e5bad88a62d33ab2a7dfda88c1b34315231d27179cc708b959468c1a20191"
    end
  end

  depends_on "ghc" => :build
  depends_on "cabal-install" => :build
  depends_on "postgresql"

{'fraction_non_alphanumeric': 0.0814587593728698, 'fraction_numerical': 0.16189502385821405, 'mean_word_length': 4.415129151291513, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, 'https://': 10, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 3, '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': '4291570', 'n_tokens_mistral': 1424, 'n_tokens_neox': 1171, 'n_words': 221}