<commit_before>cask "apipost" do
  arch arm: "arm64", intel: "x64"

  version "7.0.2"
  sha256 arm:   "c207b50cc47a6a1a46058c4f1dbd695f804db7179bcda2d0daffcd15df1d3e13",
         intel: "4a322771fdd4f88212fbc7588502e81cf8b80a15fbd6d80f910f592727e4ae84"

  url "https://www.apipost.cn/dl.php?client=Mac&arch=#{arch}&version=#{version}"
  name "Apipost"
  desc "Platform for API documentation, debugging, Mock and testing"
  homepage "https://www.apipost.cn/"

  livecheck do
    url :homepage
    regex(/href=.*client=Mac&arch=#{arch}&version=(\d+(?:\.\d+)+)[<" ]/i)
  end

  auto_updates true
  depends_on macos: ">= :big_sur"

  app "ApiPost#{version.major}.app"

  zap trash: [
    "~/Library/Application Support/ApiPost#{version.major}",
    "~/Library/Logs/ApiPost#{version.major}",
    "~/Library/Preferences/com.apipost.apipost.fe.desctop.cn.#{version.major}.x.plist",
    "~/Library/Saved Application State/com.apipost.apipost.fe.desctop.cn.#{version.major}.x.savedState",<commit_msg>apipost 7.0.3<commit_after>cask "apipost" do
  arch arm: "arm64", intel: "x64"

  version "7.0.3"
  sha256 arm:   "3368c1108db5828695f15ee037eee4a5e4e040bb0a5176a2725709d81ae80628",
         intel: "049e6cb475e4c0abba9f7056d8d8bb20a98569babf30753369aaf4f9e82bfb11"

  url "https://www.apipost.cn/dl.php?client=Mac&arch=#{arch}&version=#{version}"
  name "Apipost"
  desc "Platform for API documentation, debugging, Mock and testing"
  homepage "https://www.apipost.cn/"

  livecheck do
    url :homepage
    regex(/href=.*client=Mac&arch=#{arch}&version=(\d+(?:\.\d+)+)[<" ]/i)
  end

  auto_updates true
  depends_on macos: ">= :big_sur"

  app "ApiPost#{version.major}.app"

  zap trash: [
    "~/Library/Application Support/ApiPost#{version.major}",
    "~/Library/Logs/ApiPost#{version.major}",
    "~/Library/Preferences/com.apipost.apipost.fe.desctop.cn.#{version.major}.x.plist",
    "~/Library/Saved Application State/com.apipost.apipost.fe.desctop.cn.#{version.major}.x.savedState",
{'fraction_non_alphanumeric': 0.16851664984863773, 'fraction_numerical': 0.09132189707366296, 'mean_word_length': 4.601694915254237, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 4, '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': '4391547', 'n_tokens_mistral': 913, 'n_tokens_neox': 817, 'n_words': 106}