<commit_before>cask 'dwarf-fortress' do
  version '0.47.02'
  sha256 '60a8231b42ca18d100c78f8047099bd96dcacf5bdadd3e83f63cdcd83d429ed7'

  url "https://www.bay12games.com/dwarves/df_#{version.minor}_#{version.patch}_osx.tar.bz2"
  name 'Dwarf Fortress'
  homepage 'https://www.bay12games.com/dwarves/'

  # shim script (https://github.com/Homebrew/homebrew-cask/issues/18809)
  shimscript = "#{staged_path}/df_osx/df.wrapper.sh"
  binary shimscript, target: 'dwarf-fortress'

  preflight do<commit_msg>Update dwarf-fortress from 0.47.02 to 0.47.04 (#77942)<commit_after>cask 'dwarf-fortress' do
  version '0.47.04'
  sha256 '1b424d530554399fa3897a9e7a902f6a93e2eb1b680fdeffbac416bb4a312f30'

  url "https://www.bay12games.com/dwarves/df_#{version.minor}_#{version.patch}_osx.tar.bz2"
  name 'Dwarf Fortress'
  homepage 'https://www.bay12games.com/dwarves/'

  # shim script (https://github.com/Homebrew/homebrew-cask/issues/18809)
  shimscript = "#{staged_path}/df_osx/df.wrapper.sh"
  binary shimscript, target: 'dwarf-fortress'

  preflight do
{'fraction_non_alphanumeric': 0.1397129186602871, 'fraction_numerical': 0.12057416267942583, 'mean_word_length': 5.152941176470589, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, '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': '5250241', 'n_tokens_mistral': 526, 'n_tokens_neox': 442, 'n_words': 55}