<commit_before>module YandexKassa
  class RequestSigner
    def initialize(params = {})
      @cert_file = params.fetch(:cert_file)
      @key_file = params.fetch(:key_file)
    end

    def sign(raw_xml_body)
      OpenSSL::PKCS7.sign(cert_file, key_file, raw_xml_body, [], PKCS7::NOCERTS).to_pem
    end

    private

    attr_reader :cert_file, :key_file
  end
end<commit_msg>missin namespace for pkcs7 in request signer<commit_after>module YandexKassa
  class RequestSigner
    def initialize(params = {})
      @cert_file = params.fetch(:cert_file)
      @key_file = params.fetch(:key_file)
    end

    def sign(raw_xml_body)
      OpenSSL::PKCS7.sign(cert_file, key_file, raw_xml_body, [], OpenSSL::PKCS7::NOCERTS).to_pem
    end

    private

    attr_reader :cert_file, :key_file
  end
end
{'fraction_non_alphanumeric': 0.10025062656641603, 'fraction_numerical': 0.006265664160401002, 'mean_word_length': 3.727810650887574, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '801069', 'n_tokens_mistral': 295, 'n_tokens_neox': 288, 'n_words': 53}