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

  version "0.5.9"

  if Hardware::CPU.intel?
    sha256 "235fea0932eaf4dca42b69bf91ae2bb2a09bd859e1944843444e834562607a88"
  else
    sha256 "9387a0867b9ed626eb05fd513be2f5e63265fb6095e8b24cfb31c3643a51579e"
  end

  url "https://github.com/logseq/logseq/releases/download/#{version}/logseq-darwin-#{arch}-#{version}.dmg"
  name "Logseq"
  desc "Privacy-first, open-source platform for knowledge sharing and management"
  homepage "https://github.com/logseq/logseq"

  livecheck do
    url :url
    strategy :github_latest
  end

  auto_updates true

  app "Logseq.app"

  zap trash: [
    "~/Library/Application Support/Logseq",
    "~/Library/Logs/Logseq",
    "~/Library/Preferences/com.electron.logseq.plist",
    "~/Library/Saved Application State/com.electron.logseq.savedState",
  ]
end<commit_msg>Update logseq from 0.5.9 to 0.6.0 (#119382)<commit_after>cask "logseq" do
  arch = Hardware::CPU.intel? ? "x64" : "arm64"

  version "0.6.0"

  if Hardware::CPU.intel?
    sha256 "5dc3a960d7f3dc4afab2731179ef7c571c337c44f15246426a3d452739f819cb"
  else
    sha256 "4b40b03a353cee63629dc3b79db4f0a20bc31c01a329a2c6d6d1591b35b906af"
  end

  url "https://github.com/logseq/logseq/releases/download/#{version}/logseq-darwin-#{arch}-#{version}.dmg"
  name "Logseq"
  desc "Privacy-first, open-source platform for knowledge sharing and management"
  homepage "https://github.com/logseq/logseq"

  livecheck do
    url :url
    strategy :github_latest
  end

  auto_updates true

  app "Logseq.app"

  zap trash: [
    "~/Library/Application Support/Logseq",
    "~/Library/Logs/Logseq",
    "~/Library/Preferences/com.electron.logseq.plist",
    "~/Library/Saved Application State/com.electron.logseq.savedState",
  ]
end
{'fraction_non_alphanumeric': 0.12597114317425084, 'fraction_numerical': 0.11265260821309656, 'mean_word_length': 4.166189111747851, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1947583', 'n_tokens_mistral': 830, 'n_tokens_neox': 706, 'n_words': 111}