<commit_before>cask "local" do
  version "5.9.9,5246"
  sha256 "e5b68be3f2e22d8faa977cc90fc1c439ba17e1fb8dd13b5eead25cd836888754"

  url "https://cdn.localwp.com/releases-stable/#{version.before_comma}+#{version.after_comma}/local-#{version.before_comma}-mac.dmg"
  name "Local"
  desc "WordPress local development tool"
  homepage "https://localwp.com/"

  livecheck do
    url "https://cdn.localwp.com/stable/latest/mac"
    strategy :header_match do |headers|
      match = headers["location"].match(%r{/(\d+(?:\.\d+)*)\+(\d+)/})
      "#{match[1]},#{match[2]}"
    end
  end

  app "Local.app"

  zap trash: [
    "~/Library/Application Support/Local by Flywheel",
    "~/Library/Logs/local-by-flywheel.log",
    "~/Library/Preferences/com.getflywheel.local.plist",
    "~/Library/Preferences/com.getflywheel.local.helper.plist",
    "~/Library/Saved Application State/com.getflywheel.local.savedState",
  ]
end<commit_msg>update for Local 5.x (#100072)<commit_after>cask "local" do
  version "5.9.9,5246"
  sha256 "e5b68be3f2e22d8faa977cc90fc1c439ba17e1fb8dd13b5eead25cd836888754"

  url "https://cdn.localwp.com/releases-stable/#{version.before_comma}+#{version.after_comma}/local-#{version.before_comma}-mac.dmg"
  name "Local"
  desc "WordPress local development tool"
  homepage "https://localwp.com/"

  livecheck do
    url "https://cdn.localwp.com/stable/latest/mac"
    strategy :header_match do |headers|
      match = headers["location"].match(%r{/(\d+(?:\.\d+)*)\+(\d+)/})
      "#{match[1]},#{match[2]}"
    end
  end

  app "Local.app"

  zap trash: [
    "~/Library/Application Support/Local",
    "~/Library/Logs/local-lightning.log",
    "~/Library/Preferences/com.getflywheel.local.plist",
    "~/Library/Preferences/com.getflywheel.local.helper.plist",
    "~/Library/Saved Application State/com.getflywheel.local.savedState",
  ]
end
{'fraction_non_alphanumeric': 0.17609046849757673, 'fraction_numerical': 0.05438879913839526, 'mean_word_length': 4.035230352303523, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, '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': '5953355', 'n_tokens_mistral': 767, 'n_tokens_neox': 705, 'n_words': 93}