<commit_before>class RedisAT32 < Formula
  desc "Persistent key-value database, with built-in net interface"
  homepage "https://redis.io/"
  url "http://download.redis.io/releases/redis-3.2.13.tar.gz"
  sha256 "862979c9853fdb1d275d9eb9077f34621596fec1843e3e7f2e2f09ce09a387ba"

  bottle do
    cellar :any_skip_relocation
    sha256 "538ba1f4afbfe24a38b7fedb6aa07709cd151ad5aff0573e2a8f30b2bcd1a4e7" => :mojave
    sha256 "2d1881b6367b5618b99d31cd3a9af00206b37fce9d36bfd787ebb892ea501707" => :high_sierra
    sha256 "b4bf9c768ec911cf13d0a6479b4c8a2a100b322ed861c9fc763912f185cc5aa7" => :sierra
    sha256 "ae4570363ca61057cffee4db90808574c71eb89d97c20250ca5da214d24fbd91" => :el_capitan
  end

  keg_only :versioned_formula

  def install
    # Architecture isn't detected correctly on 32bit Snow Leopard without help
    ENV["OBJARCH"] = "-arch #{MacOS.preferred_arch}"

    system "make", "install", "PREFIX=#{prefix}", "CC=#{ENV.cc}"

    %w[run db/redis log].each { |p| (var/p).mkpath }

    # Fix up default conf file to match our paths
    inreplace "redis.conf" do |s|<commit_msg>redis@3.2: update 3.2.13 bottle.<commit_after>class RedisAT32 < Formula
  desc "Persistent key-value database, with built-in net interface"
  homepage "https://redis.io/"
  url "http://download.redis.io/releases/redis-3.2.13.tar.gz"
  sha256 "862979c9853fdb1d275d9eb9077f34621596fec1843e3e7f2e2f09ce09a387ba"

  bottle do
    cellar :any_skip_relocation
    sha256 "fd4bab827397fe1f84add898e38a2d12e3fd0b51027a4c84b89957cebce4ed37" => :mojave
    sha256 "480fac35b3024d2ab0a77ace18b56f70ff1e7f34e11570dbdd4fcf8bc00927cd" => :high_sierra
    sha256 "7d820929a7f4c0e2c7d7a7a5dadfc549ed4df306ef89f6e80c65148b8bb21504" => :sierra
  end

  keg_only :versioned_formula

  def install
    # Architecture isn't detected correctly on 32bit Snow Leopard without help
    ENV["OBJARCH"] = "-arch #{MacOS.preferred_arch}"

    system "make", "install", "PREFIX=#{prefix}", "CC=#{ENV.cc}"

    %w[run db/redis log].each { |p| (var/p).mkpath }

    # Fix up default conf file to match our paths
    inreplace "redis.conf" do |s|
{'fraction_non_alphanumeric': 0.10228353948620361, 'fraction_numerical': 0.1874405328258801, 'mean_word_length': 5.043103448275862, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 10, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4697732', 'n_tokens_mistral': 1095, 'n_tokens_neox': 885, 'n_words': 147}