original_string: protected function computeCredentialsName($prefix = null) {
  		if (!$prefix) {
  			$paths = $this->get('paths');
  			if ($paths && isset($paths['default'])) {
  				$prefix = $paths['default'];
  			}
  		}
  		preg_match('/([http:\/\/|https:\/\/|ssh:\/\/])*(\w@)*([\w\.\-_]{1,}+)/', $prefix, $prefix);
  		if (count($prefix)) return end($prefix);
  		return basename($this->repository->getDir());
      }
code: protected function computeCredentialsName($prefix = null) {
  		if (!$prefix) {
  			$paths = $this->get('paths');
  			if ($paths && isset($paths['default'])) {
  				$prefix = $paths['default'];
  			}
  		}
  		preg_match('/([http:\/\/|https:\/\/|ssh:\/\/])*(\w@)*([\w\.\-_]{1,}+)/', $prefix, $prefix);
  		if (count($prefix)) return end($prefix);
  		return basename($this->repository->getDir());
      }
code_tokens: protected function computeCredentialsName ( $ prefix = null ) { if ( ! $ prefix ) { $ paths = $ this -> get ( 'paths' ) ; if ( $ paths && isset ( $ paths [ 'default' ] ) ) { $ prefix = $ paths [ 'default' ] ; } } preg_match ( '/([http:\/\/|https:\/\/|ssh:\/\/])*(\w@)*([\w\.\-_]{1,}+)/' , $ prefix , $ prefix ) ; if ( count ( $ prefix ) ) return end ( $ prefix ) ; return basename ( $ this -> repository -> getDir ( ) ) ; }
docstring: Compute the repository credentials name
  
  @return string
docstring_tokens: Compute the repository credentials name