<commit_before>class Browser < Formula
  desc "Pipe HTML to a browser"
  homepage "https://gist.github.com/318247/"
  url "https://gist.github.com/318247.git",
      revision: "21e65811a50b3cc8bb2b31c658279714657aab96"
  # This the gist revision number
  version "7"

  bottle do
    sha256 cellar: :any_skip_relocation, all: "6de7d877522742138bb0668ba627cdd166b2e0b1c698cc336ba704e68c6338e4"
  end

  def install
    bin.install "browser"
  end

  test do
    system "#{bin}/browser"
  end
end
<commit_msg>browser: use xdg-open on Linux (#78193)<commit_after>class Browser < Formula
  desc "Pipe HTML to a browser"
  homepage "https://gist.github.com/318247/"
  url "https://gist.github.com/318247.git",
      revision: "21e65811a50b3cc8bb2b31c658279714657aab96"
  # This the gist revision number
  version "7"

  bottle do
    sha256 cellar: :any_skip_relocation, all: "6de7d877522742138bb0668ba627cdd166b2e0b1c698cc336ba704e68c6338e4"
  end

  def install
    on_linux do
      # https://gist.github.com/defunkt/318247#gistcomment-3760018
      inreplace "browser", 'exec "open', 'exec "xdg-open'
    end
    bin.install "browser"
  end

  test do
    system "#{bin}/browser"
  end
end

{'fraction_non_alphanumeric': 0.0992430613961312, 'fraction_numerical': 0.1614802354920101, 'mean_word_length': 3.83739837398374, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 5, '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': '4778816', 'n_tokens_mistral': 576, 'n_tokens_neox': 466, 'n_words': 97}