original_string: private function isEmailValid($email)
      {
          $constraints = array(
              new \Symfony\Component\Validator\Constraints\Email(),
              new \Symfony\Component\Validator\Constraints\NotBlank()
          );
  
          $errors = $this->validator->validate($email, $constraints);
          return count($errors) === 0;
      }
code: private function isEmailValid($email)
      {
          $constraints = array(
              new \Symfony\Component\Validator\Constraints\Email(),
              new \Symfony\Component\Validator\Constraints\NotBlank()
          );
  
          $errors = $this->validator->validate($email, $constraints);
          return count($errors) === 0;
      }
code_tokens: private function isEmailValid ( $ email ) { $ constraints = array ( new \ Symfony \ Component \ Validator \ Constraints \ Email ( ) , new \ Symfony \ Component \ Validator \ Constraints \ NotBlank ( ) ) ; $ errors = $ this -> validator -> validate ( $ email , $ constraints ) ; return count ( $ errors ) === 0 ; }
docstring: Validate single email
  
  @param string $email
  
  @return boolean
docstring_tokens: Validate single email