<commit_before>require File.expand_path('../../social', __FILE__)

module PageRankr
  class Socials
    class Google
      include Social

      def url
        # Yandex supplies Google +1 counts in a convenient matter
        'http://share.yandex.ru/gpp.xml'
      end

      def params
        {:url => tracked_url}
      end

      def regex
        /(\d+)/
      end

      def supported_components
        [:subdomain, :path, :scheme]
      end<commit_msg>Wrote a better comment on why we're using Yandex for Google +1<commit_after>require File.expand_path('../../social', __FILE__)

module PageRankr
  class Socials
    class Google
      include Social

      def url
        # Yandex supplies Google +1 counts in a convenient matter without need for an API key
        'http://share.yandex.ru/gpp.xml'
      end

      def params
        {:url => tracked_url}
      end

      def regex
        /(\d+)/
      end

      def supported_components
        [:subdomain, :path, :scheme]
      end
{'fraction_non_alphanumeric': 0.09009009009009009, 'fraction_numerical': 0.003003003003003003, 'mean_word_length': 1.9411764705882353, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '2114421', 'n_tokens_mistral': 300, 'n_tokens_neox': 286, 'n_words': 94}