<commit_before># # These defaults are used in Geokit::Mappable.distance_to and in acts_as_mappable
# Geokit::default_units = :miles
# Geokit::default_formula = :sphere

# # This is the timeout value in seconds to be used for calls to the geocoder web
# # services.  For no timeout at all, comment out the setting.  The timeout unit
# # is in seconds.
# Geokit::Geocoders::request_timeout = 3

# # This setting can be used if web service calls must be routed through a proxy.
# # These setting can be nil if not needed, otherwise, a valid URI must be
# # filled in at a minimum.  If the proxy requires authentication, the username
# # and password can be provided as well.
# Geokit::Geocoders::proxy = 'https://user:password@host:port'

# # This is your yahoo application key for the Yahoo Geocoder.
# # See http://developer.yahoo.com/faq/index.html#appid
# # and http://developer.yahoo.com/maps/rest/V1/geocode.html
# Geokit::Geocoders::YahooGeocoder.key = 'REPLACE_WITH_YOUR_YAHOO_KEY'
# Geokit::Geocoders::YahooGeocoder.secret = 'REPLACE_WITH_YOUR_YAHOO_SECRET'

# # This is your Google Maps geocoder keys (all optional).
# # See http://www.google.com/apis/maps/signup.html
# # and http://www.google.com/apis/maps/documentation/#Geocoding_Examples
# Geokit::Geocoders::GoogleGeocoder.client_id = ''
# Geokit::Geocoders::GoogleGeocoder.cryptographic_key = ''
# Geokit::Geocoders::GoogleGeocoder.channel = ''

# You can also use the free API key instead of signed requests
# See https://developers.google.com/maps/documentation/geocoding/#api_key
Geokit::Geocoders::GoogleGeocoder.api_key = ENV['GOOGLE_GEOCODER_API_KEY']
puts "Setting Geocoders"
puts "is key empty? #{ENV['GOOGLE_GEOCODER_API_KEY'].empty?}"
# # You can also set multiple API KEYS for different domains that may be directed to this same application.
# # The domain from which the current user is being directed will automatically be updated for Geokit via
# # the GeocoderControl class, which gets it's begin filter mixed into the ActionController.
# # You define these keys with a Hash as follows:
# #Geokit::Geocoders::google = { 'rubyonrails.org' => 'RUBY_ON_RAILS_API_KEY', 'ruby-docs.org' => 'RUBY_DOCS_API_KEY' }

# # This is your username and password for geocoder.us.
# # To use the free service, the value can be set to nil or false.  For
# # usage tied to an account, the value should be set to username:password.
# # See http://geocoder.us
# # and http://geocoder.us/user/signup
# Geokit::Geocoders::UsGeocoder.key = 'username:password'
<commit_msg>Resolve errors when api key is empty<commit_after># # These defaults are used in Geokit::Mappable.distance_to and in acts_as_mappable
# Geokit::default_units = :miles
# Geokit::default_formula = :sphere

# # This is the timeout value in seconds to be used for calls to the geocoder web
# # services.  For no timeout at all, comment out the setting.  The timeout unit
# # is in seconds.
# Geokit::Geocoders::request_timeout = 3

# # This setting can be used if web service calls must be routed through a proxy.
# # These setting can be nil if not needed, otherwise, a valid URI must be
# # filled in at a minimum.  If the proxy requires authentication, the username
# # and password can be provided as well.
# Geokit::Geocoders::proxy = 'https://user:password@host:port'

# # This is your yahoo application key for the Yahoo Geocoder.
# # See http://developer.yahoo.com/faq/index.html#appid
# # and http://developer.yahoo.com/maps/rest/V1/geocode.html
# Geokit::Geocoders::YahooGeocoder.key = 'REPLACE_WITH_YOUR_YAHOO_KEY'
# Geokit::Geocoders::YahooGeocoder.secret = 'REPLACE_WITH_YOUR_YAHOO_SECRET'

# # This is your Google Maps geocoder keys (all optional).
# # See http://www.google.com/apis/maps/signup.html
# # and http://www.google.com/apis/maps/documentation/#Geocoding_Examples
# Geokit::Geocoders::GoogleGeocoder.client_id = ''
# Geokit::Geocoders::GoogleGeocoder.cryptographic_key = ''
# Geokit::Geocoders::GoogleGeocoder.channel = ''

# You can also use the free API key instead of signed requests
# See https://developers.google.com/maps/documentation/geocoding/#api_key
Geokit::Geocoders::GoogleGeocoder.api_key = ENV['GOOGLE_GEOCODER_API_KEY']
puts "Setting Geocoders"
puts "is key empty? #{ENV['GOOGLE_GEOCODER_API_KEY'] != nil ? ENV['GOOGLE_GEOCODER_API_KEY'].empty? : 'is nil'} "
# # You can also set multiple API KEYS for different domains that may be directed to this same application.
# # The domain from which the current user is being directed will automatically be updated for Geokit via
# # the GeocoderControl class, which gets it's begin filter mixed into the ActionController.
# # You define these keys with a Hash as follows:
# #Geokit::Geocoders::google = { 'rubyonrails.org' => 'RUBY_ON_RAILS_API_KEY', 'ruby-docs.org' => 'RUBY_DOCS_API_KEY' }

# # This is your username and password for geocoder.us.
# # To use the free service, the value can be set to nil or false.  For
# # usage tied to an account, the value should be set to username:password.
# # See http://geocoder.us
# # and http://geocoder.us/user/signup
# Geokit::Geocoders::UsGeocoder.key = 'username:password'

{'fraction_non_alphanumeric': 0.10801325794501852, 'fraction_numerical': 0.0007798791187365958, 'mean_word_length': 4.985997666277713, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 4, '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': '4023910', 'n_tokens_mistral': 1739, 'n_tokens_neox': 1686, 'n_words': 526}