<commit_before>require 'formula'

class Sickle < Formula
  homepage 'https://github.com/najoshi/sickle'
  url 'https://github.com/najoshi/sickle/archive/v1.2.tar.gz'
  sha1 'ea69b11f45336a5232f940af94c7ad2d18e9aebc'
  head 'https://github.com/najoshi/sickle.git'

  # Fix a linker error
  def patches
    'https://github.com/sjackman/sickle/commit/895207a.diff' unless build.head?
  end

  def install
    system 'make'
    bin.install 'sickle'
  end

  def test
    system "#{bin}/sickle", '--version'
  end
end<commit_msg>sickle: use checksummed patch<commit_after>require 'formula'

class Sickle < Formula
  homepage 'https://github.com/najoshi/sickle'
  url 'https://github.com/najoshi/sickle/archive/v1.2.tar.gz'
  sha1 'ea69b11f45336a5232f940af94c7ad2d18e9aebc'
  head 'https://github.com/najoshi/sickle.git'

  # Fix a linker error
  unless build.head?
    patch do
      url "https://github.com/sjackman/sickle/commit/895207a.diff"
      sha1 "dba25e09e700770767629d659e4f12f743bb5ca1"
    end
  end

  def install
    system 'make'
    bin.install 'sickle'
  end

  def test
    system "#{bin}/sickle", '--version'
  end
end
{'fraction_non_alphanumeric': 0.12268314210061783, 'fraction_numerical': 0.08120035304501325, 'mean_word_length': 3.5, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '6215465', 'n_tokens_mistral': 518, 'n_tokens_neox': 466, 'n_words': 80}