<commit_before>cask "signal" do
  arch = Hardware::CPU.intel? ? "x64" : "arm64"

  version "5.31.0"

  if Hardware::CPU.intel?
    sha256 "9cf375f5509b68ff5e4e15911f7848a9a94351f79034272bfa551c175f2a4078"
  else
    sha256 "4ceb256f2eede9fede7d04eefe1a7e94139491284dd504d4e75569c4a01b8367"
  end

  url "https://updates.signal.org/desktop/signal-desktop-mac-#{arch}-#{version}.dmg"
  name "Signal"
  desc "Instant messaging application focusing on security"
  homepage "https://signal.org/"

  livecheck do
    url "https://updates.signal.org/desktop/latest-mac.yml"
    strategy :electron_builder
  end

  auto_updates true

  app "Signal.app"

  zap trash: [
    "~/Library/Application Support/Signal",
    "~/Library/Preferences/org.whispersystems.signal-desktop.helper.plist",
    "~/Library/Preferences/org.whispersystems.signal-desktop.plist",
    "~/Library/Saved Application State/org.whispersystems.signal-desktop.savedState",
  ]
end
<commit_msg>Update signal from 5.31.0 to 5.31.1 (#119065)<commit_after>cask "signal" do
  arch = Hardware::CPU.intel? ? "x64" : "arm64"

  version "5.31.1"

  if Hardware::CPU.intel?
    sha256 "8256c69cc02fca740e049dc4fcb08559a852d3cf7b4bbb87a543ee578acf62e9"
  else
    sha256 "ca25798116ecd35c64fe7eba0d0fe0f7dc0ee153079bb7e66f16d4be7350454e"
  end

  url "https://updates.signal.org/desktop/signal-desktop-mac-#{arch}-#{version}.dmg"
  name "Signal"
  desc "Instant messaging application focusing on security"
  homepage "https://signal.org/"

  livecheck do
    url "https://updates.signal.org/desktop/latest-mac.yml"
    strategy :electron_builder
  end

  auto_updates true

  app "Signal.app"

  zap trash: [
    "~/Library/Application Support/Signal",
    "~/Library/Preferences/org.whispersystems.signal-desktop.helper.plist",
    "~/Library/Preferences/org.whispersystems.signal-desktop.plist",
    "~/Library/Saved Application State/org.whispersystems.signal-desktop.savedState",
  ]
end

{'fraction_non_alphanumeric': 0.125, 'fraction_numerical': 0.102880658436214, 'mean_word_length': 4.299727520435967, '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': '177831', 'n_tokens_mistral': 869, 'n_tokens_neox': 725, 'n_words': 108}