<commit_before>require 'formula'

class Fftw < Formula
  homepage 'http://www.fftw.org'
  url 'http://www.fftw.org/fftw-3.3.3.tar.gz'
  sha1 '11487180928d05746d431ebe7a176b52fe205cf9'

  bottle do
    cellar :any
    sha1 "9aeaea9d8cfacda9b6b4a2be377e5cff1c639de6" => :mavericks
    sha1 "d59acf1f5bd1ac955ab930fbbef2a2efc8ee3a55" => :mountain_lion
    sha1 "272dc2ed950d7ddf59dee0eaf00499c7fd965f95" => :lion
  end

  option "with-fortran", "Enable Fortran bindings"
  option :universal

  depends_on :fortran => :optional

  def install
    args = ["--enable-shared",
            "--disable-debug",
            "--prefix=#{prefix}",
            "--enable-threads",
            "--disable-dependency-tracking"]
    simd_args = ["--enable-sse2"]
    simd_args << "--enable-avx" if ENV.compiler == :clang and Hardware::CPU.avx? and !build.bottle?

    args << "--disable-fortran" if build.without? "fortran"

    ENV.universal_binary if build.universal?

    # single precision
    # enable-sse2 and enable-avx works for both single and double precision<commit_msg>fftw 3.3.4<commit_after>require 'formula'

class Fftw < Formula
  homepage 'http://www.fftw.org'
  url 'http://www.fftw.org/fftw-3.3.4.tar.gz'
  sha1 'fd508bac8ac13b3a46152c54b7ac885b69734262'

  bottle do
    cellar :any
    sha1 "9aeaea9d8cfacda9b6b4a2be377e5cff1c639de6" => :mavericks
    sha1 "d59acf1f5bd1ac955ab930fbbef2a2efc8ee3a55" => :mountain_lion
    sha1 "272dc2ed950d7ddf59dee0eaf00499c7fd965f95" => :lion
  end

  option "with-fortran", "Enable Fortran bindings"
  option :universal

  depends_on :fortran => :optional

  def install
    args = ["--enable-shared",
            "--disable-debug",
            "--prefix=#{prefix}",
            "--enable-threads",
            "--disable-dependency-tracking"]
    simd_args = ["--enable-sse2"]
    simd_args << "--enable-avx" if ENV.compiler == :clang and Hardware::CPU.avx? and !build.bottle?

    args << "--disable-fortran" if build.without? "fortran"

    ENV.universal_binary if build.universal?

    # single precision
    # enable-sse2 and enable-avx works for both single and double precision
{'fraction_non_alphanumeric': 0.128, 'fraction_numerical': 0.08752941176470588, 'mean_word_length': 3.2182539682539684, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '1841272', 'n_tokens_mistral': 905, 'n_tokens_neox': 801, 'n_words': 148}