original_string: public function isLocked(Request $request)
      {
          $cacheKey = $this->getCacheKey($request);
  
          if (!isset($this->locks[$cacheKey])) {
              return false;
          }
  
          return $this->locks[$cacheKey]->isAcquired();
      }
code: public function isLocked(Request $request)
      {
          $cacheKey = $this->getCacheKey($request);
  
          if (!isset($this->locks[$cacheKey])) {
              return false;
          }
  
          return $this->locks[$cacheKey]->isAcquired();
      }
code_tokens: public function isLocked ( Request $ request ) { $ cacheKey = $ this -> getCacheKey ( $ request ) ; if ( ! isset ( $ this -> locks [ $ cacheKey ] ) ) { return false ; } return $ this -> locks [ $ cacheKey ] -> isAcquired ( ) ; }
docstring: Returns whether or not a lock exists.
  
  @param Request $request A Request instance
  
  @return bool true if lock exists, false otherwise
docstring_tokens: Returns whether or not a lock exists .