<commit_before>module Geokit
  # This class encapsulates the result of a geocoding call.
  # It's primary purpose is to homogenize the results of multiple
  # geocoding providers. It also provides some additional functionality, such as
  # the "full address" method for geocoders that do not provide a
  # full address in their results (for example, Yahoo), and the "is_us" method.
  #
  # Some geocoders can return multple results. Geoloc can capture multiple
  # results through its "all" method.
  #
  # For the geocoder setting the results, it would look something like this:
  #     geo=GeoLoc.new(first_result)
  #     geo.all.push(second_result)
  #     geo.all.push(third_result)
  #
  # Then, for the user of the result:
  #
  #     puts geo.full_address     # just like usual
  #     puts geo.all.size  => 3   # there's three results total
  #     puts geo.all.first        # all is just an array or additional geolocs,
  #                                 so do what you want with it
  class GeoLoc < LatLng
    # Location attributes. Full address is a concatenation of all values.
    # For example:
    # 100 Spear St, San Francisco, CA, 94101, US
    # Street number and street name are extracted from the street address
    # attribute if they don't exist
    attr_accessor :street_number, :street_name, :street_address, :city, :state,
                  :state_name, :state_code, :zip, :country_code, :country
    attr_accessor :full_address, :all, :district, :province, :sub_premise,
                  :neighborhood
    # Attributes set upon return from geocoding. Success will be true for
    # successful geocode lookups. The provider will be set to the name of the
    # providing geocoder. Finally, precision is an indicator of the accuracy of
    # the geocoding.
    attr_accessor :success, :provider, :precision, :suggested_bounds, :place_id,
                  :formatted_address
    # accuracy is set for Yahoo and Google geocoders, it is a numeric value of<commit_msg>Remove redefined methods<commit_after>module Geokit
  # This class encapsulates the result of a geocoding call.
  # It's primary purpose is to homogenize the results of multiple
  # geocoding providers. It also provides some additional functionality, such as
  # the "full address" method for geocoders that do not provide a
  # full address in their results (for example, Yahoo), and the "is_us" method.
  #
  # Some geocoders can return multple results. Geoloc can capture multiple
  # results through its "all" method.
  #
  # For the geocoder setting the results, it would look something like this:
  #     geo=GeoLoc.new(first_result)
  #     geo.all.push(second_result)
  #     geo.all.push(third_result)
  #
  # Then, for the user of the result:
  #
  #     puts geo.full_address     # just like usual
  #     puts geo.all.size  => 3   # there's three results total
  #     puts geo.all.first        # all is just an array or additional geolocs,
  #                                 so do what you want with it
  class GeoLoc < LatLng
    # Location attributes. Full address is a concatenation of all values.
    # For example:
    # 100 Spear St, San Francisco, CA, 94101, US
    # Street number and street name are extracted from the street address
    # attribute if they don't exist
    attr_accessor :state_name, :state_code, :zip, :country_code, :country
    attr_accessor :all, :district, :province, :sub_premise,
                  :neighborhood
    attr_writer :state, :full_address, :street_number, :street_name, :formatted_address
    attr_reader :city, :street_address
    # Attributes set upon return from geocoding. Success will be true for
    # successful geocode lookups. The provider will be set to the name of the
    # providing geocoder. Finally, precision is an indicator of the accuracy of
    # the geocoding.
    attr_accessor :success, :provider, :precision, :suggested_bounds, :place_id
    # accuracy is set for Yahoo and Google geocoders, it is a numeric value of
{'fraction_non_alphanumeric': 0.0666833792930559, 'fraction_numerical': 0.004512409125094008, 'mean_word_length': 3.0181268882175227, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '620546', 'n_tokens_mistral': 1198, 'n_tokens_neox': 1135, 'n_words': 473}