<commit_before>require 'formula'

class GnuSed < Formula
  homepage 'http://www.gnu.org/software/sed/'
  url 'http://ftpmirror.gnu.org/sed/sed-4.2.2.tar.bz2'
  mirror 'http://ftp.gnu.org/gnu/sed/sed-4.2.2.tar.bz2'
  sha1 'f17ab6b1a7bcb2ad4ed125ef78948092d070de8f'

  bottle do
    cellar :any
    sha1 "4e97d284b3429838d296928a70bb700e38c33453" => :mavericks
    sha1 "11a59857a6a4e87059a8c52aeaabfb3283be2113" => :mountain_lion
    sha1 "a60cef42f2169074f1377fdf59dad5b652216d2c" => :lion
  end

  option 'default-names', "Do not prepend 'g' to the binary"

  def install
    args = ["--prefix=#{prefix}", "--disable-dependency-tracking"]
    args << "--program-prefix=g" unless build.include? 'default-names'

    system "./configure", *args
    system "make install"

    (libexec/'gnubin').install_symlink bin/"gsed" =>"sed"
    (libexec/'gnuman/man1').install_symlink man1/"gsed.1" => "sed.1"<commit_msg>gnu-sed: Add --without-selinux for Linuxbrew<commit_after>require 'formula'

class GnuSed < Formula
  homepage 'http://www.gnu.org/software/sed/'
  url 'http://ftpmirror.gnu.org/sed/sed-4.2.2.tar.bz2'
  mirror 'http://ftp.gnu.org/gnu/sed/sed-4.2.2.tar.bz2'
  sha1 'f17ab6b1a7bcb2ad4ed125ef78948092d070de8f'

  bottle do
    cellar :any
    sha1 "4e97d284b3429838d296928a70bb700e38c33453" => :mavericks
    sha1 "11a59857a6a4e87059a8c52aeaabfb3283be2113" => :mountain_lion
    sha1 "a60cef42f2169074f1377fdf59dad5b652216d2c" => :lion
  end

  option 'default-names', "Do not prepend 'g' to the binary"

  def install
    args = ["--prefix=#{prefix}", "--disable-dependency-tracking"]
    args << "--without-selinux" if OS.linux?
    args << "--program-prefix=g" unless build.include? 'default-names'

    system "./configure", *args
    system "make install"

    (libexec/'gnubin').install_symlink bin/"gsed" =>"sed"
    (libexec/'gnuman/man1').install_symlink man1/"gsed.1" => "sed.1"
{'fraction_non_alphanumeric': 0.15417106652587118, 'fraction_numerical': 0.12565997888067582, 'mean_word_length': 3.986842105263158, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '5417842', 'n_tokens_mistral': 910, 'n_tokens_neox': 777, 'n_words': 123}