<commit_before>
require 'rubygems'
require 'ffi'
require 'rbconfig'

module Proj4
  PROJ4_BASE = File.dirname(__FILE__)

  autoload :Projection,
    File.join(PROJ4_BASE, 'projection')
  autoload :ProjXY,
    File.join(PROJ4_BASE, 'projxy')
  autoload :Tools,
    File.join(PROJ4_BASE, 'tools')
  autoload :Point,
    File.join(PROJ4_BASE, 'point')

  module FFIProj4
    def self.proj4_library_path
      return @proj4_library_paths if @proj4_library_paths

      paths = if ENV['PROJ4_LIBRARY_PATH']
        [ ENV['PROJ4_LIBRARY_PATH'] ]
      else
        [ '/usr/{lib,lib64}', '/usr/local/{lib,lib64}', '/opt/local/{lib,lib64}' ]
      end

      lib = if [
        Config::CONFIG['arch'],<commit_msg>Rejigger the path searching.<commit_after>
require 'rubygems'
require 'ffi'
require 'rbconfig'

module Proj4
  PROJ4_BASE = File.dirname(__FILE__)

  autoload :Projection,
    File.join(PROJ4_BASE, 'projection')
  autoload :ProjXY,
    File.join(PROJ4_BASE, 'projxy')
  autoload :Tools,
    File.join(PROJ4_BASE, 'tools')
  autoload :Point,
    File.join(PROJ4_BASE, 'point')

  module FFIProj4
    def self.proj4_library_path
      return @proj4_library_paths if @proj4_library_paths

      paths = if ENV['PROJ4_LIBRARY_PATH']
        [ ENV['PROJ4_LIBRARY_PATH'] ]
      else
        [ '/usr/local/{lib64,lib}', '/opt/local/{lib64,lib}', '/usr/{lib64,lib}' ]
      end

      lib = if [
        Config::CONFIG['arch'],
{'fraction_non_alphanumeric': 0.13403508771929826, 'fraction_numerical': 0.02526315789473684, 'mean_word_length': 3.414860681114551, 'pattern_counts': {'":': 0, '<': 3, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '181785', 'n_tokens_mistral': 564, 'n_tokens_neox': 541, 'n_words': 96}