<commit_before>class Dungeon < Formula
  desc "the classic text adventure"
  homepage "https://github.com/GOFAI/dungeon"
  url "https://github.com/GOFAI/dungeon/archive/4.0.tar.gz"
  sha256 "be2217be9e23861f22c14c4395da272fca5fb08a1741f52fd393792908279bea"

  bottle do
    sha256 "1b7ad6df9083ccfe77ea44aa6c6c8018e2ac47cb642f41a38bcaccd5fd83b101" => :sierra
    sha256 "f8fa2ff30a4128014335dbcc653e5c4102b4803e0ae1a4b5b0dfda8e9f5dc141" => :el_capitan
    sha256 "fb1ca630a34b39361762e588bdd0273ffeb44fdc47912f5910927c77e7375164" => :yosemite
  end

  depends_on :fortran

  def install
    chdir "src" do
      # look for game files where homebrew installed them, not pwd
      inreplace "game.f" do |s|
        s.gsub! "FILE='dindx',STATUS='OLD',", "FILE='#{opt_pkgshare}/dindx',"
        s.gsub! "1\tFORM='FORMATTED',ACCESS='SEQUENTIAL',ERR=1900)", "1\tSTATUS='OLD',FORM='FORMATTED',
\t2\tACCESS='SEQUENTIAL',ERR=1900)"<commit_msg>dungeon: revision for gcc<commit_after>class Dungeon < Formula
  desc "the classic text adventure"
  homepage "https://github.com/GOFAI/dungeon"
  url "https://github.com/GOFAI/dungeon/archive/4.0.tar.gz"
  sha256 "be2217be9e23861f22c14c4395da272fca5fb08a1741f52fd393792908279bea"
  revision 1

  bottle do
    sha256 "1b7ad6df9083ccfe77ea44aa6c6c8018e2ac47cb642f41a38bcaccd5fd83b101" => :sierra
    sha256 "f8fa2ff30a4128014335dbcc653e5c4102b4803e0ae1a4b5b0dfda8e9f5dc141" => :el_capitan
    sha256 "fb1ca630a34b39361762e588bdd0273ffeb44fdc47912f5910927c77e7375164" => :yosemite
  end

  depends_on :fortran

  def install
    chdir "src" do
      # look for game files where homebrew installed them, not pwd
      inreplace "game.f" do |s|
        s.gsub! "FILE='dindx',STATUS='OLD',", "FILE='#{opt_pkgshare}/dindx',"
        s.gsub! "1\tFORM='FORMATTED',ACCESS='SEQUENTIAL',ERR=1900)", "1\tSTATUS='OLD',FORM='FORMATTED',
\t2\tACCESS='SEQUENTIAL',ERR=1900)"
{'fraction_non_alphanumeric': 0.11885895404120443, 'fraction_numerical': 0.19175911251980982, 'mean_word_length': 5.398648648648648, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 4, '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': '6135840', 'n_tokens_mistral': 999, 'n_tokens_neox': 819, 'n_words': 112}