<commit_before>cask "daedalus-testnet" do
  version "4.9.1,21554"
  sha256 "5a3687ecd2177d3583ecfc06a9b1ca6b8f4f1a51d4b1e31457470a539ff5311c"

  url "https://updates-cardano-testnet.s3.amazonaws.com/daedalus-#{version.csv.first}-testnet-#{version.csv.second}.pkg",
      verified: "updates-cardano-testnet.s3.amazonaws.com/"
  name "Daedalus Testnet"
  desc "Cryptocurrency wallet for test ada on the Cardano Testnet blockchain"
  homepage "https://developers.cardano.org/en/testnets/cardano/get-started/wallet/"

  livecheck do
    url "https://updates-cardano-testnet.s3.amazonaws.com/daedalus-latest-version.json"
    strategy :page_match do |page|
      version = page.match(/"version":"(\d+(?:\.\d+)+)"/)[1]
      build = page.match(/(\d+(?:\.\d+)*)\.pkg/)[1]
      next if version.blank? || build.blank?

      "#{version},#{build}"
    end
  end

  auto_updates true
  depends_on macos: ">= :high_sierra"

  pkg "daedalus-#{version.csv.first}-testnet-#{version.csv.second}.pkg"

  uninstall pkgutil: "org.Daedalustestnet.pkg"

  zap trash: [<commit_msg>Update daedalus-testnet from 4.9.1 to 4.10.0 (#123408)<commit_after>cask "daedalus-testnet" do
  version "4.10.0,21740"
  sha256 "653c9c3f981c7c0c14cec8bc5be1c67e0ab0869f6577e234f0aa901dfc1a0268"

  url "https://updates-cardano-testnet.s3.amazonaws.com/daedalus-#{version.csv.first}-testnet-#{version.csv.second}.pkg",
      verified: "updates-cardano-testnet.s3.amazonaws.com/"
  name "Daedalus Testnet"
  desc "Cryptocurrency wallet for test ada on the Cardano Testnet blockchain"
  homepage "https://developers.cardano.org/en/testnets/cardano/get-started/wallet/"

  livecheck do
    url "https://updates-cardano-testnet.s3.amazonaws.com/daedalus-latest-version.json"
    strategy :page_match do |page|
      version = page.match(/"version":"(\d+(?:\.\d+)+)"/)[1]
      build = page.match(/(\d+(?:\.\d+)*)\.pkg/)[1]
      next if version.blank? || build.blank?

      "#{version},#{build}"
    end
  end

  auto_updates true
  depends_on macos: ">= :high_sierra"

  pkg "daedalus-#{version.csv.first}-testnet-#{version.csv.second}.pkg"

  uninstall pkgutil: "org.Daedalustestnet.pkg"

  zap trash: [
{'fraction_non_alphanumeric': 0.16651248843663274, 'fraction_numerical': 0.05735430157261795, 'mean_word_length': 3.9610091743119265, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 5, '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': '5491751', 'n_tokens_mistral': 924, 'n_tokens_neox': 859, 'n_words': 122}