original_string: public function isValid($api_key)
      {
          if (!$api_key) {
              return false;
          }
  
          return ($this->event_hash == $this->calculateHash($api_key))
              ? true : false;
      }
code: public function isValid($api_key)
      {
          if (!$api_key) {
              return false;
          }
  
          return ($this->event_hash == $this->calculateHash($api_key))
              ? true : false;
      }
code_tokens: public function isValid ( $ api_key ) { if ( ! $ api_key ) { return false ; } return ( $ this -> event_hash == $ this -> calculateHash ( $ api_key ) ) ? true : false ; }
docstring: Check the event is valid or not
  @param  string $api_key
  @return boolean
  @see Event::calculateHash()
docstring_tokens: Check the event is valid or not