<commit_before>cask 'kindlegen' do
  version '2.9'
  sha256 '7aad3b01c8f0d61096f86d7ba34e4deeef22355b9dbf2555c6dd05a281f5d17e'

  # kindlegen.s3.amazonaws.com was verified as official when first introduced to the cask
  url "https://kindlegen.s3.amazonaws.com/KindleGen_Mac_i386_v#{version.dots_to_underscores}.zip"
  name 'KindleGen'
  homepage 'https://www.amazon.com/gp/feature.html?docId=1000765211'

  binary 'kindlegen'
end<commit_msg>Migrate kindlegen from homebrew-binary (#29063)<commit_after>cask 'kindlegen' do
  version '2.9'
  sha256 '7aad3b01c8f0d61096f86d7ba34e4deeef22355b9dbf2555c6dd05a281f5d17e'

  # kindlegen.s3.amazonaws.com was verified as official when first introduced to the cask
  url "https://kindlegen.s3.amazonaws.com/KindleGen_Mac_i386_v#{version.dots_to_underscores}.zip"
  name 'KindleGen'
  homepage 'https://www.amazon.com/gp/feature.html?docId=1000765211'

  binary "KindleGen_Mac_i386_v#{version.dots_to_underscores}/kindlegen"

  caveats <<-EOS.undent
    Instructions on using KindleGen are available in

      #{staged_path}/manual.html
  EOS
end
{'fraction_non_alphanumeric': 0.09769585253456221, 'fraction_numerical': 0.11059907834101383, 'mean_word_length': 5.662576687116564, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, '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': '5171619', 'n_tokens_mistral': 504, 'n_tokens_neox': 437, 'n_words': 68}