<commit_before>class GdalSosi < Formula
  homepage "http://trac.osgeo.org/gdal/wiki/SOSI"
  url "http://download.osgeo.org/gdal/1.11.0/gdal-1.11.0.tar.gz"
  sha1 "25efd2bffdea2e841377ca8c1fd49d89d02ac87e"

  depends_on "fyba"
  depends_on "gdal"

  def install
    fyba_opt = Formula["fyba"].opt_prefix
    (lib/"gdalplugins").mkpath

    # cxx flags
    args = %W[-DLINUX -DUNIX -Iport -Igcore -Iogr
              -Iogr/ogrsf_frmts -Iogr/ogrsf_frmts/generic
              -Iogr/ogrsf_frmts/sosi -I#{fyba_opt}/include/fyba]

    # source files
    Dir['ogr/ogrsf_frmts/sosi/ogrsosi*.c*'].each do |src|
      args.concat %W[#{src}]
    end

    # plugin dylib
    args.concat %W[
      -dynamiclib
      -install_name #{HOMEBREW_PREFIX}/lib/gdalplugins/ogr_SOSI.dylib
      -current_version #{version}
      -compatibility_version #{version}
      -o #{lib}/gdalplugins/ogr_SOSI.dylib
      -undefined dynamic_lookup
    ]
<commit_msg>Update gdal-sosi.rb sha256<commit_after>class GdalSosi < Formula
  homepage "http://trac.osgeo.org/gdal/wiki/SOSI"
  url "http://download.osgeo.org/gdal/1.11.0/gdal-1.11.0.tar.gz"
  sha256 "989db33ff411e2c888348e71edec5ad06c74ed68781ebfbc4e85179b9d65aafe"

  depends_on "fyba"
  depends_on "gdal"

  def install
    fyba_opt = Formula["fyba"].opt_prefix
    (lib/"gdalplugins").mkpath

    # cxx flags
    args = %W[-DLINUX -DUNIX -Iport -Igcore -Iogr
              -Iogr/ogrsf_frmts -Iogr/ogrsf_frmts/generic
              -Iogr/ogrsf_frmts/sosi -I#{fyba_opt}/include/fyba]

    # source files
    Dir['ogr/ogrsf_frmts/sosi/ogrsosi*.c*'].each do |src|
      args.concat %W[#{src}]
    end

    # plugin dylib
    args.concat %W[
      -dynamiclib
      -install_name #{HOMEBREW_PREFIX}/lib/gdalplugins/ogr_SOSI.dylib
      -current_version #{version}
      -compatibility_version #{version}
      -o #{lib}/gdalplugins/ogr_SOSI.dylib
      -undefined dynamic_lookup
    ]

{'fraction_non_alphanumeric': 0.13109596224436287, 'fraction_numerical': 0.041426324069218666, 'mean_word_length': 2.823647294589178, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '6302387', 'n_tokens_mistral': 846, 'n_tokens_neox': 794, 'n_words': 108}