<commit_before>

unit class Net::FTP::Conn;

has $.SOCKET;
has $.host;
has $.port;
has $.conn;

#	%args
#	host port family encoding client
method new (*%args) {
	self.bless(|%args);
}

submethod BUILD(:$!SOCKET = IO::Socket::INET,
				:$!host,
				:$!port = 21,
				*%args) {
	$!conn = $!SOCKET.new(:host($!host), :port($port), |%args);
	fail("Connect failed!") unless $!conn ~~ $!SOCKET;
}

multi method sendcmd(Str $cmd) {
	$!conn.print: $cmd ~ "\r\n";
}

multi method sendcmd(Str $cmd, Str $para) {
	$!conn.print: $cmd ~ " $para" ~ "\r\n";
}

method recv (:$bin?) {
    $bin ?? $!conn.recv(:bin) !! $!conn.recv();
}

method getline() {
    $!conn.get();
}

method lines() {
    $!conn.lines();
}

multi method send(Str $str) {
	$!conn.print: $str;
}<commit_msg>fix error<commit_after>

unit class Net::FTP::Conn;

has $.SOCKET;
has $.host;
has $.port;
has $.conn;

#	%args
#	host port family encoding client
method new (*%args) {
	self.bless(|%args);
}

submethod BUILD(:$!SOCKET = IO::Socket::INET,
				:$!host,
				:$!port = 21,
				*%args) {
	$!conn = $!SOCKET.new(:host($!host), :port($!port), |%args);
	fail("Connect failed!") unless $!conn ~~ $!SOCKET;
}

multi method sendcmd(Str $cmd) {
	$!conn.print: $cmd ~ "\r\n";
}

multi method sendcmd(Str $cmd, Str $para) {
	$!conn.print: $cmd ~ " $para" ~ "\r\n";
}

method recv (:$bin?) {
    $bin ?? $!conn.recv(:bin) !! $!conn.recv();
}

method getline() {
    $!conn.get();
}

method lines() {
    $!conn.lines();
}

multi method send(Str $str) {
	$!conn.print: $str;
}
{'fraction_non_alphanumeric': 0.24459016393442623, 'fraction_numerical': 0.002622950819672131, 'mean_word_length': 3.829113924050633, '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': '6051677', 'n_tokens_mistral': 671, 'n_tokens_neox': 643, 'n_words': 147}