<commit_before>#! /usr/bin/env node

var tls = require('tls');
var net = require('net');
var eos = require('end-of-stream');
var through = require('through2');
var minimist = require('minimist');
var allContainers = require('docker-allcontainers');
var statsFactory = require('docker-stats');
var logFactory = require('docker-loghose');

function connect(opts) {
  var stream;
  if (opts.secure) {
    stream = tls.connect(20000, 'api.logentries.com', onSecure);
  } else {
    stream = net.createConnection(10000, 'api.logentries.com');
  }

  function onSecure() {
    // let's just crash if we are not secure
    if (!stram.authorized) throw new Error('secure connection not authorized');
  }

  return stream;
}


function start(opts) {
  var token = opts.token;
  var out;
  var noRestart = function() {};
  var filter = through.obj(function(obj, enc, cb) {
    addAll(opts.add, obj);
    this.push(token);
    this.push(' ');<commit_msg>Fix typo in onSecure callback :)<commit_after>#! /usr/bin/env node

var tls = require('tls');
var net = require('net');
var eos = require('end-of-stream');
var through = require('through2');
var minimist = require('minimist');
var allContainers = require('docker-allcontainers');
var statsFactory = require('docker-stats');
var logFactory = require('docker-loghose');

function connect(opts) {
  var stream;
  if (opts.secure) {
    stream = tls.connect(20000, 'api.logentries.com', onSecure);
  } else {
    stream = net.createConnection(10000, 'api.logentries.com');
  }

  function onSecure() {
    // let's just crash if we are not secure
    if (!stream.authorized) throw new Error('secure connection not authorized');
  }

  return stream;
}


function start(opts) {
  var token = opts.token;
  var out;
  var noRestart = function() {};
  var filter = through.obj(function(obj, enc, cb) {
    addAll(opts.add, obj);
    this.push(token);
    this.push(' ');
{'fraction_non_alphanumeric': 0.155299055613851, 'fraction_numerical': 0.011542497376705142, 'mean_word_length': 4.098930481283422, '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': '5839387', 'n_tokens_mistral': 644, 'n_tokens_neox': 615, 'n_words': 165}