<commit_before>cask "dynobase" do
  arch arm: "-arm64"

  version "1.10.8"
  sha256 arm:   "4b00de2f8bb92f0a607cf80750a6b965d63038c2bdb86b6766bdd423142b7523",
         intel: "5233d55f06a62de362c39451ca4bebbd8eeb6d31effd664aa6253b41772345bf"

  url "https://github.com/Dynobase/dynobase/releases/download/v#{version}/Dynobase-#{version}#{arch}.dmg",
      verified: "github.com/Dynobase/dynobase/"
  name "Dynobase"
  desc "GUI Client for DynamoDB"
  homepage "https://dynobase.dev/"

  livecheck do
    url :url
    strategy :github_latest
  end

  app "Dynobase.app"

  zap trash: [
    "~/Library/Application Support/dynobase",
    "~/Library/Saved Application State/com.rwilinski.dynobase.savedState",
  ]
end<commit_msg>Update dynobase from 1.10.8 to 2.0.2 (#133514)<commit_after>cask "dynobase" do
  arch arm: "arm64", intel: "x64"

  version "2.0.2,220923souexs12u"
  sha256 arm:   "20fc6f722a79ab0dda2bfb0fe43f3a4a24c22631190f48a06c1939766a05439c",
         intel: "3f6afd1f5f8bb67eabb69326af6df70d1b179baa1c50fa3e7365ee76284a01a5"

  url "https://github.com/Dynobase/dynobase/releases/download/v#{version.csv.first}/Dynobase.#{version.csv.first}.-.Build.#{version.csv.second}-#{arch}.dmg",
      verified: "github.com/Dynobase/dynobase/"
  name "Dynobase"
  desc "GUI Client for DynamoDB"
  homepage "https://dynobase.dev/"

  livecheck do
    url "https://github.com/Dynobase/dynobase/releases/latest"
    regex(/Dynobase[._-](\d+(?:\.\d+)+)[._-]+Build[._-](\S+)[._-]#{arch}\.dmg/i)
    strategy :header_match do |headers, regex|
      next if headers["location"].blank?

      # Identify the latest tag from the response's `location` header
      latest_tag = File.basename(headers["location"])
      next if latest_tag.blank?

      # Fetch the assets list HTML for the latest tag and match within it
      assets_page = Homebrew::Livecheck::Strategy.page_content(
        @url.sub(%r{/releases/?.+}, "/releases/expanded_assets/#{latest_tag}"),
      )
      assets_page[:content]&.scan(regex)&.map { |match| "#{match[0]},#{match[1]}" }
    end
  end

  app "Dynobase.app"

  zap trash: [
    "~/Library/Application Support/dynobase",
    "~/Library/Saved Application State/com.rwilinski.dynobase.savedState",
  ]
end
{'fraction_non_alphanumeric': 0.14849708389412292, 'fraction_numerical': 0.08882907133243607, 'mean_word_length': 3.9445676274944566, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 5, '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': '5151211', 'n_tokens_mistral': 998, 'n_tokens_neox': 888, 'n_words': 135}