original_string: public function hasResponsible($user)
      {
          return $this->users()->where('user_id', $user->id)->first()->pivot->responsible;
      }
code: public function hasResponsible($user)
      {
          return $this->users()->where('user_id', $user->id)->first()->pivot->responsible;
      }
code_tokens: public function hasResponsible ( $ user ) { return $ this -> users ( ) -> where ( 'user_id' , $ user -> id ) -> first ( ) -> pivot -> responsible ; }
docstring: Returns true if the event have the specified user as responsible.
  
  @param mixed $user
docstring_tokens: Returns true if the event have the specified user as responsible .