<commit_before>require 'formula'

class Gmt < Formula
  homepage 'http://gmt.soest.hawaii.edu/'
  url 'ftp://ftp.soest.hawaii.edu/gmt/gmt-5.1.1-src.tar.bz2'
  sha1 'ff64936dfdec8a57a89d29f505f27e435169d33f'

  depends_on 'cmake' => :build
  depends_on 'gdal'
  depends_on 'netcdf'
  depends_on 'fftw'
  depends_on 'pcre'

  conflicts_with 'gmt4', :because => 'Both versions install the same binaries.'

  resource 'gshhg' do
    url 'ftp://ftp.soest.hawaii.edu/gmt/gshhg-gmt-2.3.0.tar.gz'
    sha1 'eb62a0a9bceee4297055be18b8727b603cd0e9cb'
  end

  resource 'dcw' do
    url 'ftp://ftp.soest.hawaii.edu/gmt/dcw-gmt-1.1.1.tar.gz'
    sha1 'deca85f21426604c8574a18d16c931a1fd9ae27b'
  end

  def install<commit_msg>gmt: add full mirror list.<commit_after>require 'formula'

class Gmt < Formula
  homepage 'http://gmt.soest.hawaii.edu/'
  url 'ftp://ftp.soest.hawaii.edu/gmt/gmt-5.1.1-src.tar.bz2'
  mirror 'ftp://ftp.star.nesdis.noaa.gov/pub/sod/lsa/gmt/gmt-5.1.1-src.tar.bz2'
  mirror 'ftp://ftp.iris.washington.edu/pub/gmt/gmt-5.1.1-src.tar.bz2'
  mirror 'ftp://ftp.iag.usp.br/pub/gmt/gmt-5.1.1-src.tar.bz2'
  mirror 'ftp://ftp.scc.u-tokai.ac.jp/pub/gmt/gmt-5.1.1-src.tar.bz2'
  mirror 'ftp://gmt.mirror.ac.za/pub/gmt/gmt-5.1.1-src.tar.bz2'
  mirror 'ftp://ftp.geologi.uio.no/pub/gmt/gmt-5.1.1-src.tar.bz2'
  mirror 'ftp://gd.tuwien.ac.at/pub/gmt/gmt-5.1.1-src.tar.bz2'
  sha1 'ff64936dfdec8a57a89d29f505f27e435169d33f'

  depends_on 'cmake' => :build
  depends_on 'gdal'
  depends_on 'netcdf'
  depends_on 'fftw'
  depends_on 'pcre'

  conflicts_with 'gmt4', :because => 'Both versions install the same binaries.'

  resource 'gshhg' do
    url 'ftp://ftp.soest.hawaii.edu/gmt/gshhg-gmt-2.3.0.tar.gz'
    mirror 'ftp://ftp.star.nesdis.noaa.gov/pub/sod/lsa/gmt/gshhg-gmt-2.3.0.tar.gz'
    mirror 'ftp://ftp.iris.washington.edu/pub/gmt/gshhg-gmt-2.3.0.tar.gz'
    mirror 'ftp://ftp.iag.usp.br/pub/gmt/gshhg-gmt-2.3.0.tar.gz'
    mirror 'ftp://ftp.scc.u-tokai.ac.jp/pub/gmt/gshhg-gmt-2.3.0.tar.gz'
    mirror 'ftp://gmt.mirror.ac.za/pub/gmt/gshhg-gmt-2.3.0.tar.gz'
    mirror 'ftp://ftp.geologi.uio.no/pub/gmt/gshhg-gmt-2.3.0.tar.gz'
    mirror 'ftp://gd.tuwien.ac.at/pub/gmt/gshhg-gmt-2.3.0.tar.gz'
    sha1 'eb62a0a9bceee4297055be18b8727b603cd0e9cb'
  end

  resource 'dcw' do
    url 'ftp://ftp.soest.hawaii.edu/gmt/dcw-gmt-1.1.1.tar.gz'
    mirror 'ftp://ftp.star.nesdis.noaa.gov/pub/sod/lsa/gmt/dcw-gmt-1.1.1.tar.gz'
    mirror 'ftp://ftp.iris.washington.edu/pub/gmt/dcw-gmt-1.1.1.tar.gz'
    mirror 'ftp://ftp.iag.usp.br/pub/gmt/dcw-gmt-1.1.1.tar.gz'
    mirror 'ftp://ftp.scc.u-tokai.ac.jp/pub/gmt/dcw-gmt-1.1.1.tar.gz'
    mirror 'ftp://gmt.mirror.ac.za/pub/gmt/dcw-gmt-1.1.1.tar.gz'
    mirror 'ftp://ftp.geologi.uio.no/pub/gmt/dcw-gmt-1.1.1.tar.gz'
    mirror 'ftp://gd.tuwien.ac.at/pub/gmt/dcw-gmt-1.1.1.tar.gz'
    sha1 'deca85f21426604c8574a18d16c931a1fd9ae27b'
  end

  def install
{'fraction_non_alphanumeric': 0.19488597097442986, 'fraction_numerical': 0.08362128541810643, 'mean_word_length': 3.015256588072122, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '837778', 'n_tokens_mistral': 1661, 'n_tokens_neox': 1523, 'n_words': 143}