<commit_before>require 'formula'

class Py3cairo < Formula
  homepage 'http://cairographics.org/pycairo/'
  url 'http://cairographics.org/releases/pycairo-1.10.0.tar.bz2'
  sha1 'b4283aa1cc9aafd12fd72ad371303a486da1d014'

  depends_on 'pkg-config' => :build
  depends_on 'cairo'
  depends_on :x11
  depends_on :python3

  def install
    python3 do
      ENV['PYTHON'] = "python3"
      system "./waf", "configure", "--prefix=#{prefix}"
      system "./waf", "build"
      system "./waf", "install"
    end
  end

  test do
    system "python3", "-c", "import cairo; print(cairo.version)"
  end
end<commit_msg>py3cairo: cleanup python usage (again).<commit_after>require 'formula'

class Py3cairo < Formula
  homepage 'http://cairographics.org/pycairo/'
  url 'http://cairographics.org/releases/pycairo-1.10.0.tar.bz2'
  sha1 'b4283aa1cc9aafd12fd72ad371303a486da1d014'

  depends_on 'pkg-config' => :build
  depends_on 'cairo'
  depends_on :x11
  depends_on :python3

  def install
    ENV['PYTHON'] = "python3"
    system "./waf", "configure", "--prefix=#{prefix}"
    system "./waf", "build"
    system "./waf", "install"
  end

  test do
    system "python3", "-c", "import cairo; print(cairo.version)"
  end
end
{'fraction_non_alphanumeric': 0.14979423868312758, 'fraction_numerical': 0.05925925925925926, 'mean_word_length': 3.623574144486692, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, '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': '6930015', 'n_tokens_mistral': 503, 'n_tokens_neox': 476, 'n_words': 96}