<commit_before><?php

/**
* @package plugins.dropFolder
* @subpackage model
*/
class SftpDropFolder extends SshDropFolder
{
    
	public function getFolderUrl()
	{
	    $url = 'sftp://';
	    if ($this->getSshUsername()) {
	        $url .= $this->getSshUsername();
	        if ($this->getSshPassword()) {
	            $url .= ':'.$this->getSshPassword();
	        }
	        $url .= '@';
	    }
	    $url .= $this->getSshHost();
	    $url .= '/'.$this->getPath();
	    return $url;
	}
	
	protected function getRemoteFileTransferMgrType()
	{
		if($this->getType() == DropFolderType::SFTP)
	    	return kFileTransferMgrType::SFTP;
	    if($this->getType() == DropFolderType::SFTP_CMD)
	    	return kFileTransferMgrType::SFTP_CMD;
		if($this->getType() == DropFolderType::SFTP_SEC_LIB)
	    	return kFileTransferMgrType::SFTP_SEC_LIB;	    	
	}
        
}<commit_msg>fwr: remove old sftp types<commit_after><?php

/**
* @package plugins.dropFolder
* @subpackage model
*/
class SftpDropFolder extends SshDropFolder
{
    
    const DEFAULT_SFTP_PORT = 22;
    
	public function getFolderUrl()
	{
	    $url = 'sftp://';
	    if ($this->getSshUsername()) {
	        $url .= $this->getSshUsername();
	        if ($this->getSshPassword()) {
	            $url .= ':'.$this->getSshPassword();
	        }
	        $url .= '@';
	    }
	    $url .= $this->getSshHost();
	    if($this->getSshPort() && $this->getSshPort() != self::DEFAULT_SFTP_PORT)
	    	$url.=':'.$this->getSshPort();
	    $url .= '/'.$this->getPath();
	    return $url;
	}
		
	protected function getRemoteFileTransferMgrType()
	{
	    return kFileTransferMgrType::SFTP;
	}
        
}
{'fraction_non_alphanumeric': 0.1752136752136752, 'fraction_numerical': 0.001221001221001221, 'mean_word_length': 2.68314606741573, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '927737', 'n_tokens_mistral': 593, 'n_tokens_neox': 571, 'n_words': 89}