<commit_before>cask "pd" do
  version "0.51-4"
  sha256 "2dd4c637d8637eefc928e7a06586cb911a21eae72f1abb3a0649a90f7eff20f7"

  url "http://msp.ucsd.edu/Software/pd-#{version}.mac.tar.gz"
  name "Pd"
  desc "Visual programming language for multimedia"
  homepage "http://msp.ucsd.edu/software.html"

  livecheck do
    url "http://msp.ucsd.edu/software.html"
    strategy :page_match
    regex(%r{href=.*?/pd-(\d+(?:\.\d+)*-\d+)\.mac\.tar\.gz}i)
  end

  app "Pd-#{version}.app"

  postflight do
    set_permissions "#{appdir}/Pd-#{version}.app", "u+w"
  end
end<commit_msg>Add `zap` to  Pd.app (#108546)<commit_after>cask "pd" do
  version "0.51-4"
  sha256 "2dd4c637d8637eefc928e7a06586cb911a21eae72f1abb3a0649a90f7eff20f7"

  url "http://msp.ucsd.edu/Software/pd-#{version}.mac.tar.gz"
  name "Pd"
  desc "Visual programming language for multimedia"
  homepage "http://msp.ucsd.edu/software.html"

  livecheck do
    url "http://msp.ucsd.edu/software.html"
    strategy :page_match
    regex(%r{href=.*?/pd-(\d+(?:\.\d+)*-\d+)\.mac\.tar\.gz}i)
  end

  app "Pd-#{version}.app"

  postflight do
    set_permissions "#{appdir}/Pd-#{version}.app", "u+w"
  end

  zap trash: [
    "~/Library/Preferences/org.puredata.pd.pd-gui.plist",
    "~/Library/Saved Application State/org.puredata.pd.pd-gui.savedState",
  ]
end
{'fraction_non_alphanumeric': 0.18493150684931506, 'fraction_numerical': 0.0715372907153729, 'mean_word_length': 3.597902097902098, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '3454042', 'n_tokens_mistral': 635, 'n_tokens_neox': 574, 'n_words': 81}