<commit_before>require 'formula'

class Mercurial < Formula
  homepage 'http://mercurial.selenic.com/'
  url 'http://mercurial.selenic.com/release/mercurial-2.6.1.tar.gz'
  sha1 'ee9b2ae1cf2518c90b55f9429bf4ed9f2d4fced6'

  head 'http://selenic.com/repo/hg', :using => :hg

  depends_on :python # its written in Python, so this is a hard dep
  depends_on 'docutils' => :python if build.head? or build.include? 'doc'

  def install
    python do
      # Inside this python do block, the PYTHONPATH (and more) is alreay set up
      if python.from_osx? && !MacOS::CLT.installed?
        # Help castrated system python on Xcode find the Python.h:
        # Setting CFLAGS does not work :-(
        inreplace 'setup.py', 'get_python_inc()', "'#{python.incdir}'"
      end

      # Man pages come pre-built in source releases
      system "make doc" if build.head? or build.include? 'doc'
      system "make", "PREFIX=#{prefix}", "install"

      # Install some contribs
      bin.install "contrib/hgk"
      # Install man pages
      man1.install 'doc/hg.1'
      man5.install 'doc/hgignore.5', 'doc/hgrc.5'
    end

    # install the completion scripts
    bash_completion.install 'contrib/bash_completion' => 'hg-completion.bash'
    zsh_completion.install 'contrib/zsh_completion' => '_hg'
  end
<commit_msg>mercurial: Remove outdated doc option<commit_after>require 'formula'

class Mercurial < Formula
  homepage 'http://mercurial.selenic.com/'
  url 'http://mercurial.selenic.com/release/mercurial-2.6.1.tar.gz'
  sha1 'ee9b2ae1cf2518c90b55f9429bf4ed9f2d4fced6'

  head 'http://selenic.com/repo/hg', :using => :hg

  depends_on :python # its written in Python, so this is a hard dep
  depends_on 'docutils' => :python if build.head?

  def install
    python do
      # Inside this python do block, the PYTHONPATH (and more) is alreay set up
      if python.from_osx? && !MacOS::CLT.installed?
        # Help castrated system python on Xcode find the Python.h:
        # Setting CFLAGS does not work :-(
        inreplace 'setup.py', 'get_python_inc()', "'#{python.incdir}'"
      end

      # Man pages come pre-built in source releases
      system "make doc" if build.head?
      system "make", "PREFIX=#{prefix}", "install"

      # Install some contribs
      bin.install "contrib/hgk"
      # Install man pages
      man1.install 'doc/hg.1'
      man5.install 'doc/hgignore.5', 'doc/hgrc.5'
    end

    # install the completion scripts
    bash_completion.install 'contrib/bash_completion' => 'hg-completion.bash'
    zsh_completion.install 'contrib/zsh_completion' => '_hg'
  end

{'fraction_non_alphanumeric': 0.11776061776061776, 'fraction_numerical': 0.022393822393822392, 'mean_word_length': 3.1456, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, 'https://': 0, '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': '5589493', 'n_tokens_mistral': 933, 'n_tokens_neox': 869, 'n_words': 234}