<commit_before>self: super:
# Overlay that adds legacy versions of PostgreSQL that are supported by
# PostgREST.
{
  # PostgreSQL 9.5 was removed from Nixpkgs with
  # https://github.com/NixOS/nixpkgs/commit/72ab382fb6b729b0d654f2c03f5eb25b39f11fbb
  # We pin its parent commit to get the last version that was available.
  # postgresql_9_5 =
  #  let
  #    rev = "55ac7d4580c9ab67848c98cb9519317a1cc399c8";
  #    tarballHash = "02ffj9f8s1hwhmxj85nx04sv64qb6jm7w0122a1dz9n32fymgklj";
  #
  #    pinnedPkgs =
  #      builtins.fetchTarball {
  #        url = "https://github.com/nixos/nixpkgs/archive/${rev}.tar.gz";
  #        sha256 = tarballHash;
  #      };
  #  in
  #  (import pinnedPkgs { }).pkgs.postgresql_9_5;
}<commit_msg>nix: fetch PostgreSQL 9.6 via postgresql legacy overlay<commit_after>self: super:
# Overlay that adds legacy versions of PostgreSQL that are supported by
# PostgREST.
{
  # PostgreSQL 9.6 was removed from Nixpkgs with
  # https://github.com/NixOS/nixpkgs/commit/757dd008b2f2926fc0f7688fa8189f930ea47521
  # We pin its parent commit to get the last version that was available.
  postgresql_9_6 =
    let
      rev = "571cbf3d1db477058303cef8754fb85a14e90eb7";
      tarballHash = "0q74wn418i1bn5sssacmw8ykpmqvzr0s93sj6pbs3rf6bf134fkz";
      pinnedPkgs =
        builtins.fetchTarball {
          url = "https://github.com/nixos/nixpkgs/archive/${rev}.tar.gz";
          sha256 = tarballHash;
        };
    in
    (import pinnedPkgs { }).pkgs.postgresql_9_6;
}
{'fraction_non_alphanumeric': 0.09370816599732262, 'fraction_numerical': 0.10843373493975904, 'mean_word_length': 3.43620178041543, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '1864618', 'n_tokens_mistral': 684, 'n_tokens_neox': 596, 'n_words': 109}