<commit_before>var Net = require("net");
var S = require("./streamer");

var ftpPasv = module.exports = function(host, port, mode, callback) {
    this.data = [];
    this.mode = mode;

    var socket = this.socket = Net.createConnection(port, host);
    socket.setEncoding("utf8");
<commit_msg>Added onConnect Callback to Passive streams.<commit_after>var Net = require("net");
var S = require("./streamer");

var ftpPasv = module.exports = function(host, port, mode, callback, onConnect) {
    this.data = [];
    this.mode = mode;

    var socket = this.socket = Net.createConnection(port, host);
    socket.setEncoding("utf8");

    if (onConnect)
        socket.on("connect", function() { onConnect(socket); });

{'fraction_non_alphanumeric': 0.1589958158995816, 'fraction_numerical': 0.002789400278940028, 'mean_word_length': 3.9517241379310346, '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': '6661076', 'n_tokens_mistral': 225, 'n_tokens_neox': 219, 'n_words': 55}