<commit_before>class Blockhash < Formula
  desc "Perceptual image hash calculation tool"
  homepage "https://github.com/commonsmachinery/blockhash"
  url "https://github.com/commonsmachinery/blockhash/archive/v0.3.2.tar.gz"
  sha256 "add1e27e43b35dde56e44bc6d1f0556facf4a18a0f9072df04d4134d8f517365"
  license "MIT"
  head "https://github.com/commonsmachinery/blockhash.git", branch: "master"

  bottle do
    sha256 cellar: :any, arm64_monterey: "dcaeb1ce026b0ad868e5520c991639383487e868618753e1a93661c3a1838409"
    sha256 cellar: :any, arm64_big_sur:  "a82123749fd7e010d731351f4241c2aba1626aa35f2b61952d27fdfecf158e80"
    sha256 cellar: :any, monterey:       "9ce6377aac08a1e39bbea230dc1d509839835105727821a4ce88d1eacd8c74ef"
    sha256 cellar: :any, big_sur:        "ab12de7db191f24ea3db308f01de4f46466f4c775ff1dd6c965696ec2dffc370"
    sha256 cellar: :any, catalina:       "9ae4e348365186b77c5e276ea91dec42f0199bad6075f2d28d8e2a81ff13a71a"
  end

  depends_on "pkg-config" => :build
  depends_on "python@3.9" => :build
  depends_on "imagemagick"

  resource "homebrew-testdata" do
    url "https://raw.githubusercontent.com/commonsmachinery/blockhash/ce08b465b658c4e886d49ec33361cee767f86db6/testdata/clipper_ship.jpg"
    sha256 "a9f6858876adadc83c8551b664632a9cf669c2aea4fec0c09d81171cc3b8a97f"
  end

  def install
    ENV.prepend_path "PATH", Formula["python@3.9"].opt_bin

    system "./waf", "configure", "--prefix=#{prefix}"<commit_msg>blockhash: migrate to python@3.10<commit_after>class Blockhash < Formula
  desc "Perceptual image hash calculation tool"
  homepage "https://github.com/commonsmachinery/blockhash"
  url "https://github.com/commonsmachinery/blockhash/archive/v0.3.2.tar.gz"
  sha256 "add1e27e43b35dde56e44bc6d1f0556facf4a18a0f9072df04d4134d8f517365"
  license "MIT"
  head "https://github.com/commonsmachinery/blockhash.git", branch: "master"

  bottle do
    sha256 cellar: :any, arm64_monterey: "dcaeb1ce026b0ad868e5520c991639383487e868618753e1a93661c3a1838409"
    sha256 cellar: :any, arm64_big_sur:  "a82123749fd7e010d731351f4241c2aba1626aa35f2b61952d27fdfecf158e80"
    sha256 cellar: :any, monterey:       "9ce6377aac08a1e39bbea230dc1d509839835105727821a4ce88d1eacd8c74ef"
    sha256 cellar: :any, big_sur:        "ab12de7db191f24ea3db308f01de4f46466f4c775ff1dd6c965696ec2dffc370"
    sha256 cellar: :any, catalina:       "9ae4e348365186b77c5e276ea91dec42f0199bad6075f2d28d8e2a81ff13a71a"
  end

  depends_on "pkg-config" => :build
  depends_on "python@3.10" => :build
  depends_on "imagemagick"

  resource "homebrew-testdata" do
    url "https://raw.githubusercontent.com/commonsmachinery/blockhash/ce08b465b658c4e886d49ec33361cee767f86db6/testdata/clipper_ship.jpg"
    sha256 "a9f6858876adadc83c8551b664632a9cf669c2aea4fec0c09d81171cc3b8a97f"
  end

  def install
    ENV.prepend_path "PATH", Formula["python@3.10"].opt_bin

    system "./waf", "configure", "--prefix=#{prefix}"
{'fraction_non_alphanumeric': 0.09349315068493151, 'fraction_numerical': 0.23253424657534247, 'mean_word_length': 5.971360381861575, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 8, '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': '7419709', 'n_tokens_mistral': 1616, 'n_tokens_neox': 1273, 'n_words': 150}