original_string: public function set(EntityInterface $entity): string
      {
          $hash = $entity->calculateHash();
          $content = $this->encodeContent($entity->writeData());
          $this->saveContent($hash, $content);
          return $hash;
      }
code: public function set(EntityInterface $entity): string
      {
          $hash = $entity->calculateHash();
          $content = $this->encodeContent($entity->writeData());
          $this->saveContent($hash, $content);
          return $hash;
      }
code_tokens: public function set ( EntityInterface $ entity ) : string { $ hash = $ entity -> calculateHash ( ) ; $ content = $ this -> encodeContent ( $ entity -> writeData ( ) ) ; $ this -> saveContent ( $ hash , $ content ) ; return $ hash ; }
docstring: Sets the specified entity into the registry.
  @param EntityInterface $entity
  @return string The hash used to save the entity.
docstring_tokens: Sets the specified entity into the registry .