<commit_before>require 'formula'

class Netcdf <Formula
  url 'http://www.unidata.ucar.edu/downloads/netcdf/ftp/netcdf-4.1.1.tar.gz'
  homepage 'http://www.unidata.ucar.edu/software/netcdf/'
  md5 '79c5ff14c80d5e18dd8f1fceeae1c8e1'

  depends_on 'hdf5'
  depends_on 'szip'

  def install
    hdf5 = Formula.factory('hdf5')
    szip = Formula.factory('szip')

    system "./configure", "--prefix=#{prefix}",
                          "--disable-dependency-tracking",
                          "--with-szip=#{szip.prefix}",
                          "--with-hdf5=#{hdf5.prefix}"
    system "make install"
  end
end<commit_msg>Updated NetCDF to build shared libs<commit_after>require 'formula'

class Netcdf <Formula
  url 'http://www.unidata.ucar.edu/downloads/netcdf/ftp/netcdf-4.1.1.tar.gz'
  homepage 'http://www.unidata.ucar.edu/software/netcdf/'
  md5 '79c5ff14c80d5e18dd8f1fceeae1c8e1'

  depends_on 'hdf5'

  def install
    # HDF5 is required to create and access files
    # in the NetCDF version 4 format.
    hdf5 = Formula.factory('hdf5')
    szip = Formula.factory('szip')

    system "./configure", "--prefix=#{prefix}",
                          "--disable-dependency-tracking",
                          "--with-szip=#{szip.prefix}",
                          "--with-hdf5=#{hdf5.prefix}",
                          "--enable-netcdf4",
                          "--enable-shared"
    system "make install"
  end
end
{'fraction_non_alphanumeric': 0.14345696291112667, 'fraction_numerical': 0.03568929321203639, 'mean_word_length': 2.1291028446389495, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '5153641', 'n_tokens_mistral': 529, 'n_tokens_neox': 506, 'n_words': 82}