original_string: public function reset()
      {
          foreach (array_keys($this->_loaded) as $name) {
              $this->unload($name);
          }
  
          return $this;
      }
code: public function reset()
      {
          foreach (array_keys($this->_loaded) as $name) {
              $this->unload($name);
          }
  
          return $this;
      }
code_tokens: public function reset ( ) { foreach ( array_keys ( $ this -> _loaded ) as $ name ) { $ this -> unload ( $ name ) ; } return $ this ; }
docstring: Clear loaded instances in the registry.
  
  If the registry subclass has an event manager, the objects will be detached from events as well.
  
  @return $this
docstring_tokens: Clear loaded instances in the registry .