<commit_before>require 'formula'

class Libcsv < Formula
  url 'http://downloads.sourceforge.net/project/libcsv/libcsv/libcsv-3.0.1/libcsv-3.0.1.tar.gz'
  homepage 'http://sourceforge.net/projects/libcsv/'
  md5 '926b55d732b775a49ed2539c4db5c102'

  def install
    inreplace 'Makefile' do |s|
      s.change_make_var! "INCDIR", include
      s.change_make_var! "MANDIR", man
      s.change_make_var! "LIBDIR", lib
    end
    man.mkpath
    lib.mkpath
    include.mkpath
    system "make"
    system "make install"
  end
end<commit_msg>libcsv: avoid inreplace<commit_after>require 'formula'

class Libcsv < Formula
  homepage 'http://sourceforge.net/projects/libcsv/'
  url 'http://downloads.sourceforge.net/project/libcsv/libcsv/libcsv-3.0.1/libcsv-3.0.1.tar.gz'
  md5 '926b55d732b775a49ed2539c4db5c102'

  def install
    include.mkpath
    lib.mkpath
    man.mkpath

    system "make", "CC=#{ENV.cc}",
                   "INCDIR=#{include}",
                   "LIBDIR=#{lib}",
                   "MANDIR=#{man}",
                   "install"
  end
end
{'fraction_non_alphanumeric': 0.13068181818181818, 'fraction_numerical': 0.054924242424242424, 'mean_word_length': 2.721830985915493, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5770930', 'n_tokens_mistral': 426, 'n_tokens_neox': 392, 'n_words': 63}