original_string: public function lookup($context, $path, $require = false)
      {
          if (empty($path)) {
              throw new \InvalidArgumentException("Passed lookup path is empty.");
          }
          if (empty($context)) {
              throw new \InvalidArgumentException("Specified context is empty while resolving path " . json_encode($path));
          }
          return PropertyAccessor::getByPath($context, $this->path($path), $require);
      }
code: public function lookup($context, $path, $require = false)
      {
          if (empty($path)) {
              throw new \InvalidArgumentException("Passed lookup path is empty.");
          }
          if (empty($context)) {
              throw new \InvalidArgumentException("Specified context is empty while resolving path " . json_encode($path));
          }
          return PropertyAccessor::getByPath($context, $this->path($path), $require);
      }
code_tokens: public function lookup ( $ context , $ path , $ require = false ) { if ( empty ( $ path ) ) { throw new \ InvalidArgumentException ( "Passed lookup path is empty." ) ; } if ( empty ( $ context ) ) { throw new \ InvalidArgumentException ( "Specified context is empty while resolving path " . json_encode ( $ path ) ) ; } return PropertyAccessor :: getByPath ( $ context , $ this -> path ( $ path ) , $ require ) ; }
docstring: Looks up a path in the specified context
  
  @param array $context
  @param array $path
  @param bool $require
  @return string
  
  @throws \RuntimeException
  @throws \InvalidArgumentException
docstring_tokens: Looks up a path in the specified context