<commit_before><?php

/**
 * PayPal account Validator
 *
 * @package    fpPayment
 * @subpackage PayPal
 * @author		 <NAME> <<EMAIL>>
 */
class fpPaymentPayPalValidator extends sfValidatorEmail
{
  
  /**
   * (non-PHPdoc)
   * @see sfValidatorRegex::doClean()
   */
  protected function doClean($value)
  {
    $clean = parent::doClean($value);
    
    if (!fpPaymentContext::getInstance()->getPayPal()->getIpn()->isVerifiedAccount($value))<commit_msg>Fixed validator<commit_after><?php

/**
 * PayPal account Validator
 *
 * @package    fpPayment
 * @subpackage PayPal
 * @author		 <NAME> <<EMAIL>>
 */
class fpPaymentPayPalValidator extends sfValidatorEmail
{
  
  /**
   * (non-PHPdoc)
   * @see sfValidatorEmail::configure()
   */
  protected function configure($options = array(), $messages = array())
  {
    $this->addMessage('does_not_exist', 'Account doesn\'t exist');
    parent::configure($options, $messages);
  }
  
  /**
   * (non-PHPdoc)
   * @see sfValidatorRegex::doClean()
   */
  protected function doClean($value)
  {
    $clean = parent::doClean($value);
    
    if (!fpPaymentContext::getInstance()->getPayPal()->getIpn()->isVerifiedAccount($value))
{'fraction_non_alphanumeric': 0.1643952299829642, 'fraction_numerical': 0.0, 'mean_word_length': 3.9788135593220337, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 16, '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': '818590', 'n_tokens_mistral': 370, 'n_tokens_neox': 365, 'n_words': 65}