<commit_before>class Wireshark < Formula
  desc "Graphical network analyzer and capture tool"
  homepage "https://www.wireshark.org"
  url "https://www.wireshark.org/download/src/all-versions/wireshark-2.6.1.tar.xz"
  mirror "https://1.eu.dl.wireshark.org/src/wireshark-2.6.1.tar.xz"
  sha256 "ab6e5bbc3464c956347b8671ce8397950ad5daff3bf9964c967d495f4ddbcd88"
  head "https://code.wireshark.org/review/wireshark", :using => :git

  bottle do
    sha256 "0b3c8f3dec1fb90c9704d7009adcb09281491583eb92fc3f38e1210d6ef895b0" => :high_sierra
    sha256 "ec69fa058d4d165234182069940a20f8b6b9a08898818854eec88c4890ca69e3" => :sierra
    sha256 "cbd0649938676719180cf30b2c8932e7d49f400e302978a5e8719a33b37d0502" => :el_capitan
  end

  deprecated_option "with-qt5" => "with-qt"

  option "with-qt", "Build the wireshark command with Qt"
  option "with-headers", "Install Wireshark library headers for plug-in development"
  option "with-nghttp2", "Enable HTTP/2 header dissection"

  depends_on "cmake" => :build
  depends_on "c-ares"
  depends_on "glib"
  depends_on "gnutls"
  depends_on "libgcrypt"
  depends_on "libmaxminddb"
  depends_on "lua@5.1"
  depends_on "libsmi" => :optional<commit_msg>wireshark: fix Qt 5.11 compatibility (#28192)<commit_after>class Wireshark < Formula
  desc "Graphical network analyzer and capture tool"
  homepage "https://www.wireshark.org"
  head "https://code.wireshark.org/review/wireshark", :using => :git

  stable do
    url "https://www.wireshark.org/download/src/all-versions/wireshark-2.6.1.tar.xz"
    mirror "https://1.eu.dl.wireshark.org/src/wireshark-2.6.1.tar.xz"
    sha256 "ab6e5bbc3464c956347b8671ce8397950ad5daff3bf9964c967d495f4ddbcd88"

    # Fix header includes for Qt 5.11.
    # TODO: Committed upstream, remove on next .z release.
    patch do
      url "https://github.com/wireshark/wireshark/commit/b8e8aa87f43c12ad564426b3359f593305cd45a1.patch?full_index=1"
      sha256 "39ff775cabc2cc31d8c2152b78a0b05a0a7686fd3b5dd0807d359493c3681c9a"
    end
  end

  bottle do
    sha256 "0b3c8f3dec1fb90c9704d7009adcb09281491583eb92fc3f38e1210d6ef895b0" => :high_sierra
    sha256 "ec69fa058d4d165234182069940a20f8b6b9a08898818854eec88c4890ca69e3" => :sierra
    sha256 "cbd0649938676719180cf30b2c8932e7d49f400e302978a5e8719a33b37d0502" => :el_capitan
  end

  deprecated_option "with-qt5" => "with-qt"

  option "with-qt", "Build the wireshark command with Qt"
  option "with-headers", "Install Wireshark library headers for plug-in development"
  option "with-nghttp2", "Enable HTTP/2 header dissection"

  depends_on "cmake" => :build
  depends_on "c-ares"
  depends_on "glib"
  depends_on "gnutls"
  depends_on "libgcrypt"
  depends_on "libmaxminddb"
  depends_on "lua@5.1"
  depends_on "libsmi" => :optional
{'fraction_non_alphanumeric': 0.10453720508166969, 'fraction_numerical': 0.1720508166969147, 'mean_word_length': 5.004357298474946, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, 'https://': 9, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3264572', 'n_tokens_mistral': 1389, 'n_tokens_neox': 1190, 'n_words': 184}