<commit_before><?php

namespace Omnipay\UnionPay\Common;

/**
 * Response Verify Helper for UnionPay
 * Class ResponseVerifyHelper
 * @package Omnipay\UnionPay\Common
 */
class ResponseVerifyHelper
{
    public static function verify($data, $env, $rootCert, $middleCert)
    {
        $publicKey = $data['signPubKeyCert'];
        $certInfo  = openssl_x509_parse($publicKey);

        $cn    = CertUtil::getCompanyFromCert($certInfo);
        $union = '中国银联股份有限公司';

        if ($env == 'sandbox') {
            if (! in_array($cn, array('00040000:SIGN', $cn))) {
                return false;
            }
        } else {<commit_msg>Key Check<commit_after><?php

namespace Omnipay\UnionPay\Common;

/**
 * Response Verify Helper for UnionPay
 * Class ResponseVerifyHelper
 * @package Omnipay\UnionPay\Common
 */
class ResponseVerifyHelper
{
    public static function verify($data, $env, $rootCert, $middleCert)
    {
        if (! isset($data['signPubKeyCert'])) {
            return false;
        }

        $publicKey = $data['signPubKeyCert'];
        $certInfo  = openssl_x509_parse($publicKey);

        $cn    = CertUtil::getCompanyFromCert($certInfo);
        $union = '中国银联股份有限公司';

        if ($env == 'sandbox') {
            if (! in_array($cn, array('00040000:SIGN', $cn))) {
                return false;
            }
        } else {
{'fraction_non_alphanumeric': 0.1337767923133777, 'fraction_numerical': 0.016260162601626018, 'mean_word_length': 2.582010582010582, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '5611061', 'n_tokens_mistral': 441, 'n_tokens_neox': 438, 'n_words': 83}