<commit_before>package lucee.runtime.net.ftp;

import com.jcraft.jsch.Channel;
import com.jcraft.jsch.ChannelSftp;
import com.jcraft.jsch.JSch;
import com.jcraft.jsch.JSchException;
import com.jcraft.jsch.Session;
import com.jcraft.jsch.SftpATTRS;
import com.jcraft.jsch.SftpException;
import lucee.commons.io.SystemUtil;
import lucee.commons.lang.StringUtil;
import lucee.runtime.op.Caster;
import org.apache.commons.net.ftp.FTPFile;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.InetAddress;
import java.net.SocketException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Locale;
import java.util.Vector;

public class SFTPClientImpl extends AFTPClient {

	private JSch jsch;
	private int timeout = 60000;
	private Session session;
	private ChannelSftp channelSftp;
	private InetAddress host;
	private int port;
	private String username;
	private String password;
	private boolean stopOnError;
	private String fingerprint;
	private String replyString;
	private int replyCode;
	private boolean positiveCompletion;
	private String sshKey;
	private String passphrase;

	static {
		// set system property lucee.debug.jsch=true to enable debug output from JSch
		if (SystemUtil.getSystemPropOrEnvVar("lucee.debug.jsch", "").equalsIgnoreCase("true")){
			JSch.setLogger(new com.jcraft.jsch.Logger() {
				@Override
				public boolean isEnabled(int i) {
					return true;
				}

				@Override
				public void log(int i, String s) {<commit_msg>improve check for true|false<commit_after>package lucee.runtime.net.ftp;

import com.jcraft.jsch.Channel;
import com.jcraft.jsch.ChannelSftp;
import com.jcraft.jsch.JSch;
import com.jcraft.jsch.JSchException;
import com.jcraft.jsch.Session;
import com.jcraft.jsch.SftpATTRS;
import com.jcraft.jsch.SftpException;
import lucee.commons.io.SystemUtil;
import lucee.commons.lang.StringUtil;
import lucee.runtime.op.Caster;
import org.apache.commons.net.ftp.FTPFile;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.InetAddress;
import java.net.SocketException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Locale;
import java.util.Vector;

public class SFTPClientImpl extends AFTPClient {

	private JSch jsch;
	private int timeout = 60000;
	private Session session;
	private ChannelSftp channelSftp;
	private InetAddress host;
	private int port;
	private String username;
	private String password;
	private boolean stopOnError;
	private String fingerprint;
	private String replyString;
	private int replyCode;
	private boolean positiveCompletion;
	private String sshKey;
	private String passphrase;

	static {
		// set system property lucee.debug.jsch=true to enable debug output from JSch
		if (Caster.toBooleanValue(SystemUtil.getSystemPropOrEnvVar("lucee.debug.jsch", ""),false)){
			JSch.setLogger(new com.jcraft.jsch.Logger() {
				@Override
				public boolean isEnabled(int i) {
					return true;
				}

				@Override
				public void log(int i, String s) {
{'fraction_non_alphanumeric': 0.09216886883660973, 'fraction_numerical': 0.003222687721559781, 'mean_word_length': 5.015503875968992, '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': '3520525', 'n_tokens_mistral': 1074, 'n_tokens_neox': 997, 'n_words': 253}