<commit_before>package sshrunner

import (
	"bytes"
	"fmt"
	"io/ioutil"
	"runner"
	"time"

	"golang.org/x/crypto/ssh"
)

const (
	// AuthTypePwd SSH login by password
	authTypePwd string = "PASSWORD"
	// AuthTypeKey SSH login by ssh-key
	authTypeKey string = "KEY"
)

var (
	// ErrInvalidAuthType error message for invalid auth type
	ErrInvalidAuthType = "Invalid auth type : %s\n"
)

// SSHRunner execute command by ssh
type SSHRunner struct {
	User       string
	Password   string
	SSHKeyPath string
	Host       string
	Port       int
}

func New(user, password, sshKeyPath, host string, port int) *SSHRunner {<commit_msg>增加默认端口<commit_after>package sshrunner

import (
	"bytes"
	"fmt"
	"io/ioutil"
	"runner"
	"time"

	"golang.org/x/crypto/ssh"
)

const (
	// AuthTypePwd SSH login by password
	authTypePwd string = "PASSWORD"
	// AuthTypeKey SSH login by ssh-key
	authTypeKey string = "KEY"
)

var (
	// ErrInvalidAuthType error message for invalid auth type
	ErrInvalidAuthType = "Invalid auth type : %s\n"
)

// SSHRunner execute command by ssh
type SSHRunner struct {
	User       string
	Password   string
	SSHKeyPath string
	Host       string
	Port       int
}

func New(user, password, sshKeyPath, host string, port int) *SSHRunner {

	if port == 0 {
		port = 22
	}
{'fraction_non_alphanumeric': 0.09347996857816182, 'fraction_numerical': 0.002356637863315004, 'mean_word_length': 3.31864406779661, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1344876', 'n_tokens_mistral': 478, 'n_tokens_neox': 454, 'n_words': 137}