<commit_before>require 'yajl'
require 'hashie'
require 'net/http'
require 'cgi'
require 'base64'
require 'timeout'
require 'digest/sha1'
require 'hmac'
require 'hmac-sha1'

$:.unshift(File.dirname(__FILE__))

require 'gcoder/version'
require 'gcoder/geocoder'
require 'gcoder/storage'
require 'gcoder/resolver'

module GCoder
  class NoResultsError < StandardError; end
  class OverLimitError < StandardError; end
  class GeocoderError < StandardError; end
  class BadQueryError < StandardError; end
  class NotImplementedError < StandardError; end
  class TimeoutError < StandardError; end

  DEFAULT_CONFIG = {
    :timeout        => 5,
    :append         => nil,
    :region         => nil,
    :bounds         => nil,
    :client         => nil,
    :key            => nil,
    :storage        => nil,
    :storage_config => nil
  }.freeze<commit_msg>Add base GCoder::Error class, so it's easier to catch all GCoder errors.<commit_after>require 'yajl'
require 'hashie'
require 'net/http'
require 'cgi'
require 'base64'
require 'timeout'
require 'digest/sha1'
require 'hmac'
require 'hmac-sha1'

$:.unshift(File.dirname(__FILE__))

require 'gcoder/version'
require 'gcoder/geocoder'
require 'gcoder/storage'
require 'gcoder/resolver'

module GCoder
  class Error < StandardError; end
  class NoResultsError < Error; end
  class OverLimitError < Error; end
  class GeocoderError < Error; end
  class BadQueryError < Error; end
  class NotImplementedError < Error; end
  class TimeoutError < Error; end

  DEFAULT_CONFIG = {
    :timeout        => 5,
    :append         => nil,
    :region         => nil,
    :bounds         => nil,
    :client         => nil,
    :key            => nil,
    :storage        => nil,
    :storage_config => nil
  }.freeze
{'fraction_non_alphanumeric': 0.1075085324232082, 'fraction_numerical': 0.005688282138794084, 'mean_word_length': 3.0906976744186045, 'pattern_counts': {'":': 0, '<': 16, '<?xml version=': 0, '>': 19, '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': '709472', 'n_tokens_mistral': 564, 'n_tokens_neox': 550, 'n_words': 156}