<commit_before>class W3m < Formula
  desc "Pager/text based browser"
  homepage "http://w3m.sourceforge.net/"
  url "https://downloads.sourceforge.net/project/w3m/w3m/w3m-0.5.3/w3m-0.5.3.tar.gz"
  sha256 "e994d263f2fd2c22febfbe45103526e00145a7674a0fda79c822b97c2770a9e3"

  bottle do
    sha256 "31d0388967c3a448cc0c27571e3976cbcf79bad9986000adcff74428afff587a" => :sierra
    sha256 "c6443287699a058e58ff0e378a8f6459370de79f89246ac7217e11f9f748abed" => :el_capitan
    sha256 "57a644921789316e92cbc37d2e0c51eaf5591876992626a9bcf9f4a56c0e3897" => :yosemite
    sha256 "e2972a26e7c734e6814257516ebda796e907df5787906c4144321fc63e70f1a1" => :mavericks
    sha256 "1ead87bf254d3d49574588945c73a934d1ddf104547389d41cb67df090c92b44" => :x86_64_linux
  end

  depends_on "pkg-config" => :build
  depends_on "bdw-gc"
  depends_on "openssl"
  depends_on "homebrew/dupes/ncurses" unless OS.mac?

  fails_with :llvm do
    build 2334
  end

  patch :DATA

  def install
    # Fix istream.h:23:8: error: redefinition of 'struct file_handle'
    # See https://sourceforge.net/p/w3m/patches/62/
    inreplace Dir["istream.[ch]"], "file_handle", "io_file_handle"

    system "./configure", "--prefix=#{prefix}", "--disable-image",<commit_msg>w3m: Depends on libbsd and zlib for Linuxbrew<commit_after>class W3m < Formula
  desc "Pager/text based browser"
  homepage "http://w3m.sourceforge.net/"
  url "https://downloads.sourceforge.net/project/w3m/w3m/w3m-0.5.3/w3m-0.5.3.tar.gz"
  sha256 "e994d263f2fd2c22febfbe45103526e00145a7674a0fda79c822b97c2770a9e3"

  bottle do
    sha256 "31d0388967c3a448cc0c27571e3976cbcf79bad9986000adcff74428afff587a" => :sierra
    sha256 "c6443287699a058e58ff0e378a8f6459370de79f89246ac7217e11f9f748abed" => :el_capitan
    sha256 "57a644921789316e92cbc37d2e0c51eaf5591876992626a9bcf9f4a56c0e3897" => :yosemite
    sha256 "e2972a26e7c734e6814257516ebda796e907df5787906c4144321fc63e70f1a1" => :mavericks
    sha256 "1ead87bf254d3d49574588945c73a934d1ddf104547389d41cb67df090c92b44" => :x86_64_linux
  end

  depends_on "pkg-config" => :build
  depends_on "bdw-gc"
  depends_on "openssl"
  depends_on "homebrew/dupes/ncurses" unless OS.mac?
  depends_on "libbsd" unless OS.mac?
  depends_on "zlib" unless OS.mac?

  fails_with :llvm do
    build 2334
  end

  patch :DATA

  def install
    # Fix istream.h:23:8: error: redefinition of 'struct file_handle'
    # See https://sourceforge.net/p/w3m/patches/62/
    inreplace Dir["istream.[ch]"], "file_handle", "io_file_handle"

    system "./configure", "--prefix=#{prefix}", "--disable-image",
{'fraction_non_alphanumeric': 0.10672400312744332, 'fraction_numerical': 0.2380766223612197, 'mean_word_length': 5.181159420289855, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, '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': '3773747', 'n_tokens_mistral': 1461, 'n_tokens_neox': 1152, 'n_words': 152}