<commit_before>require "google/apis/androidpublisher_v3"

require "candy_check/play_store/android_publisher_service"
require "candy_check/play_store/product_purchases/product_purchase"
require "candy_check/play_store/subscription_purchases/subscription_purchase"
require "candy_check/play_store/product_purchases/product_verification"
require "candy_check/play_store/subscription_purchases/subscription_verification"
require "candy_check/play_store/verification_failure"
require "candy_check/play_store/verifier"

module CandyCheck
  # Module to request and verify a AppStore receipt
  module PlayStore
    def self.build_authorizer(json_key_file)
      scope = "https://www.googleapis.com/auth/androidpublisher"

      Google::Auth::ServiceAccountCredentials.make_creds(
        json_key_io: File.open(json_key_file),
        scope: scope,
      )
    end
  end
end<commit_msg>Add authorization method on CandyCheck::PlayStore<commit_after>require "google/apis/androidpublisher_v3"

require "candy_check/play_store/android_publisher_service"
require "candy_check/play_store/product_purchases/product_purchase"
require "candy_check/play_store/subscription_purchases/subscription_purchase"
require "candy_check/play_store/product_purchases/product_verification"
require "candy_check/play_store/subscription_purchases/subscription_verification"
require "candy_check/play_store/verification_failure"
require "candy_check/play_store/verifier"

module CandyCheck
  # Module to request and verify a AppStore receipt
  module PlayStore
    def self.authorization(json_key_file)
      Google::Auth::ServiceAccountCredentials.make_creds(
        json_key_io: File.open(json_key_file),
        scope: "https://www.googleapis.com/auth/androidpublisher",
      )
    end
  end
end
{'fraction_non_alphanumeric': 0.07635746606334842, 'fraction_numerical': 0.0011312217194570137, 'mean_word_length': 6.401673640167364, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '5190590', 'n_tokens_mistral': 554, 'n_tokens_neox': 557, 'n_words': 81}