<commit_before>require 'formula'

class Bashreduce < Formula
  head 'https://github.com/erikfrey/bashreduce.git'
  homepage 'https://github.com/erikfrey/bashreduce'

  def install
    Dir.chdir 'brutils' do
      inreplace "Makefile" do |s|
        s.change_make_var! 'CFLAGS', ENV.cflags
        s.change_make_var! 'BINDIR', bin
      end

      system "make"
      bin.install "brp"
      bin.install "brm"
    end

    bin.install "br"
  end
end
<commit_msg>bashreduce: avoid inreplace<commit_after>require 'formula'

class Bashreduce < Formula
  homepage 'https://github.com/erikfrey/bashreduce'
  head 'https://github.com/erikfrey/bashreduce.git'

  def install
    bin.install "br"
    Dir.chdir 'brutils' do
      system "make", "CFLAGS=#{ENV.cflags}", "BINDIR=#{bin}"
      bin.install "brp", "brm"
    end
  end
end

{'fraction_non_alphanumeric': 0.12727272727272726, 'fraction_numerical': 0.0, 'mean_word_length': 3.049019607843137, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4293176', 'n_tokens_mistral': 308, 'n_tokens_neox': 292, 'n_words': 64}