<commit_before>cask "sdformatter" do
  version "5.0.1"
  sha256 "0150d9e53a0811b51275196d4e80eed9c86c2ccd00abe1200769ccd31df6ad2a"

  url "https://www.sdcard.org/downloads/formatter/eula_mac/SDCardFormatterv#{version.major}_Mac.zip"
  name "SD Formatter"
  desc "Tool to format memory cards complying with the SD File System spec"
  homepage "https://www.sdcard.org/"

  pkg "SDCardFormatterv#{version.major}_Mac/Install SD Card Formatter #{version}.mpkg"

  uninstall pkgutil: "com.tuxera.pkg.SD_Card_Formatter"

  zap trash: "~/Library/Caches/com.tuxera.SDCardFormatter"
end<commit_msg>Add livecheck to sdformatter (#100673)<commit_after>cask "sdformatter" do
  version "5.0.1"
  sha256 "0150d9e53a0811b51275196d4e80eed9c86c2ccd00abe1200769ccd31df6ad2a"

  url "https://www.sdcard.org/downloads/formatter/eula_mac/SDCardFormatterv#{version.major}_Mac.zip"
  name "SD Formatter"
  desc "Tool to format memory cards complying with the SD File System spec"
  homepage "https://www.sdcard.org/downloads/formatter/"

  livecheck do
    url :homepage
    regex(/SD Memory Card Formatter (\d+(?:\.\d+)*)/i)
  end

  pkg "SDCardFormatterv#{version.major}_Mac/Install SD Card Formatter #{version}.mpkg"

  uninstall pkgutil: "com.tuxera.pkg.SD_Card_Formatter"

  zap trash: "~/Library/Caches/com.tuxera.SDCardFormatter"
end
{'fraction_non_alphanumeric': 0.11626139817629179, 'fraction_numerical': 0.0729483282674772, 'mean_word_length': 5.154205607476635, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7207123', 'n_tokens_mistral': 551, 'n_tokens_neox': 488, 'n_words': 93}