<commit_before>class Octave < Formula
  homepage "https://www.gnu.org/software/octave/index.html"
  url "http://ftpmirror.gnu.org/octave/octave-3.8.1.tar.bz2"
  mirror "https://ftp.gnu.org/gnu/octave/octave-3.8.1.tar.bz2"
  sha1 "2951aeafe58d562672feb80dd8c3cfe0643a5087"
  head "http://www.octave.org/hg/octave", :branch => "gui-release", :using => :hg
  revision 1

  bottle do
    root_url "https://homebrew.bintray.com/bottles-science"
    revision 4
    sha1 "4f1b7ee35c095046277ce9ec29b863e71eb3e670" => :yosemite
    sha1 "fd53f7510ee393c1fcb8e7d10554b907fefed10d" => :mavericks
    sha1 "ff6273d0cbea639f12a27a35e515130f5d529626" => :mountain_lion
  end

  stable do
    # Allows the arrow keys to page through command history.
    # See: https://savannah.gnu.org/bugs/?41337
    patch do
      url "https://savannah.gnu.org/bugs/download.php?file_id=30734"
      sha1 "e8fb39b7ca1525d67e6d24f3c189b441b60fcdab"
    end

    # Allows clang 3.5 to compile with a recent libc++ release.
    # See: https://savannah.gnu.org/bugs/?43298
    patch do
      url "https://gist.github.com/tchaikov/6ce5f697055b0756126a/raw/4fc94a1fa1d5b032f8586ce3ab0015b04351426f/octave-clang3.5-fix.patch"
      sha1 "6e5c0d8f6b07803152c8a1caad39a113fc8b8d0a"
    end
  end

  head do
    # Allows clang 3.5 to compile with a recent libc++ release.
    # See: https://savannah.gnu.org/bugs/?43298
    patch do
      url "https://gist.github.com/schoeps/ec25b19bf30f97d33cdb/raw/6f164415e5e0fb556c1cfc2b039985d25dfad872/octave-clang3.5-fix.patch"
      sha1 "c3209b0bebd69ff5b9fa2d0463c8034d53f99225"
    end
  end

  # Allows mkoctfile to process "-framework vecLib" properly.
  # See: https://savannah.gnu.org/bugs/?42002
  patch do
    url "https://savannah.gnu.org/patch/download.php?file_id=31072"
    sha1 "19f2dcaf636f1968c4b1639797415f83fb21d5a3"<commit_msg>octave 3.8.2<commit_after>class Octave < Formula
  homepage "https://www.gnu.org/software/octave/index.html"
  url "http://ftpmirror.gnu.org/octave/octave-3.8.2.tar.bz2"
  mirror "https://ftp.gnu.org/gnu/octave/octave-3.8.2.tar.bz2"
  sha256 "83bbd701aab04e7e57d0d5b8373dd54719bebb64ce0a850e69bf3d7454f33bae"
  head "http://www.octave.org/hg/octave", :branch => "default", :using => :hg

  bottle do
    root_url "https://homebrew.bintray.com/bottles-science"
    revision 4
    sha1 "4f1b7ee35c095046277ce9ec29b863e71eb3e670" => :yosemite
    sha1 "fd53f7510ee393c1fcb8e7d10554b907fefed10d" => :mavericks
    sha1 "ff6273d0cbea639f12a27a35e515130f5d529626" => :mountain_lion
  end

  stable do
    # Allows clang 3.5 to compile with a recent libc++ release.
    # See: https://savannah.gnu.org/bugs/?43298
    patch do
      url "https://gist.github.com/tchaikov/6ce5f697055b0756126a/raw/4fc94a1fa1d5b032f8586ce3ab0015b04351426f/octave-clang3.5-fix.patch"
      sha1 "6e5c0d8f6b07803152c8a1caad39a113fc8b8d0a"
    end
  end

  head do
    # Allows clang 3.5 to compile with a recent libc++ release.
    # See: https://savannah.gnu.org/bugs/?43298
    patch do
      url "https://gist.github.com/schoeps/ec25b19bf30f97d33cdb/raw/6f164415e5e0fb556c1cfc2b039985d25dfad872/octave-clang3.5-fix.patch"
      sha1 "c3209b0bebd69ff5b9fa2d0463c8034d53f99225"
    end
  end

  # Allows mkoctfile to process "-framework vecLib" properly.
  # See: https://savannah.gnu.org/bugs/?42002
  patch do
    url "https://savannah.gnu.org/patch/download.php?file_id=31072"
    sha1 "19f2dcaf636f1968c4b1639797415f83fb21d5a3"
{'fraction_non_alphanumeric': 0.11551823972206138, 'fraction_numerical': 0.185002895193978, 'mean_word_length': 3.8661971830985915, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, 'https://': 20, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5055073', 'n_tokens_mistral': 1881, 'n_tokens_neox': 1533, 'n_words': 204}