original_string: public function getRootDirectory()
      {
          $dir = $this->getWorktreeDirectory();
          $relativeRoot = trim(str_replace(DIRECTORY_SEPARATOR, '/', $this->gitRepository->getDirectoryToParse()), '/');
          if ($relativeRoot !== '') {
              $dir .= '/' . $relativeRoot;
          }
  
          return $dir;
      }
code: public function getRootDirectory()
      {
          $dir = $this->getWorktreeDirectory();
          $relativeRoot = trim(str_replace(DIRECTORY_SEPARATOR, '/', $this->gitRepository->getDirectoryToParse()), '/');
          if ($relativeRoot !== '') {
              $dir .= '/' . $relativeRoot;
          }
  
          return $dir;
      }
code_tokens: public function getRootDirectory ( ) { $ dir = $ this -> getWorktreeDirectory ( ) ; $ relativeRoot = trim ( str_replace ( DIRECTORY_SEPARATOR , '/' , $ this -> gitRepository -> getDirectoryToParse ( ) ) , '/' ) ; if ( $ relativeRoot !== '' ) { $ dir .= '/' . $ relativeRoot ; } return $ dir ; }
docstring: Return the directory containing the files to be parsed.
  
  @throws UserMessageException
  
  @return string
docstring_tokens: Return the directory containing the files to be parsed .