<commit_before>cask "webull" do
  dl_arch, livecheck_arch = Hardware::CPU.intel? ? ["us_x64", "qt_mac_global"] : ["us_arm64", "qt_m1_global"]

  version "6.0.2,600802"

  if Hardware::CPU.intel?
    sha256 "01f3b0f215716f50a4caa93fe7f1ccdf3469bceeca10fd6cb9d1ab67d86f9658"
  else
    sha256 "aadd015041696474ef3a80887fc8ecd89108736f2e49748a207fa51d86c6b84b"
  end

  url "https://u1sweb.webullfinance.com/us/desktop/Webull%20Desktop_#{version.csv.first}_#{dl_arch}_signed_#{version.csv.second}.dmg",
      verified: "u1sweb.webullfinance.com/us/desktop/"
  name "Webull"
  desc "Desktop client for Webull Financial LLC"
  homepage "https://webull.com/"

  livecheck do
    url "https://infoapi.webullfintech.com/api/operation/appver/last?platform=#{livecheck_arch}&osv=10.15"
    regex(/Webull%20Desktop[._-](\d+(?:\.\d+)+).*?[._-](\d+)\.dmg/i)
    strategy :page_match do |page, regex|
      page.scan(regex).map { |match| "#{match.first},#{match.second}" }
    end
  end

  depends_on macos: ">= :mojave"

  app "Webull Desktop.app"<commit_msg>webull 6.0.5<commit_after>cask "webull" do
  dl_arch, livecheck_arch = Hardware::CPU.intel? ? ["us_x64", "qt_mac_global"] : ["us_arm64", "qt_m1_global"]

  version "6.0.5"

  if Hardware::CPU.intel?
    sha256 "8e5fa82ff254c503d2d3635f8b53cf4fae7cfb16e5f587bc23e4d697c0462f60"
  else
    sha256 "371b955bd7fb189a26d9d59cefa8a847e6059dc37e25aeb84add011a1e846c96"
  end

  url "https://u1sweb.webullfinance.com/us/desktop/Webull%20Desktop_#{version}_#{dl_arch}_signed.dmg",
      verified: "u1sweb.webullfinance.com/us/desktop/"
  name "Webull"
  desc "Desktop client for Webull Financial LLC"
  homepage "https://webull.com/"

  livecheck do
    url "https://infoapi.webullfintech.com/api/operation/appver/last?platform=#{livecheck_arch}&osv=10.15"
    strategy :page_match
    regex(/Webull%20Desktop[._-](\d+(?:\.\d+)+).*?.dmg/i)
  end

  depends_on macos: ">= :mojave"

  app "Webull Desktop.app"
{'fraction_non_alphanumeric': 0.15689300411522633, 'fraction_numerical': 0.10802469135802469, 'mean_word_length': 4.771513353115727, 'pattern_counts': {'":': 0, '<': 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': '2524723', 'n_tokens_mistral': 945, 'n_tokens_neox': 834, 'n_words': 105}