<commit_before>/*jslint  node:true */
'use strict';

// increase max sockets
require('http').globalAgent.maxSockets = 100;

var needle = require('./../../../../node_modules/needle-retry');
var winston = require('./../../../../node_modules/winston');
var _ = require('./../../../../node_modules/lodash');
var log = new (winston.Logger)({
    transports: [
        new (winston.transports.Console)({'timestamp': true})
    ]
});
var gatekeeper = require('./../../../../lib/gatekeeper');
var async = require('./../../../../node_modules/async');
var util = require('util');

var PAGE = 100;
var TWITCH_PARAL = 50;
var API_PARAL = 50;
var MIN_VIEWERS = 30;

var TWITCH_URL = 'https://api.twitch.tv/kraken/streams?&offset=%d&limit=%d';
var API_URL = 'http://' + (process.env.WEBSITE_HOSTNAME || 'localhost:3000') + '/scan/channel/';


var options = {
    needle: {
        compressed: true,
        json: true,
        open_timeout: 60000,
        read_timeout: 60000
    },
    retry: {
        retries: 5
    }
};

var apiOptions = _.merge(options, {needle: {headers: _.zipObject([gatekeeper.header], [gatekeeper.passcode])}});<commit_msg>Try 20 viewers min<commit_after>/*jslint  node:true */
'use strict';

// increase max sockets
require('http').globalAgent.maxSockets = 100;

var needle = require('./../../../../node_modules/needle-retry');
var winston = require('./../../../../node_modules/winston');
var _ = require('./../../../../node_modules/lodash');
var log = new (winston.Logger)({
    transports: [
        new (winston.transports.Console)({'timestamp': true})
    ]
});
var gatekeeper = require('./../../../../lib/gatekeeper');
var async = require('./../../../../node_modules/async');
var util = require('util');

var PAGE = 100;
var TWITCH_PARAL = 50;
var API_PARAL = 50;
var MIN_VIEWERS = 20;

var TWITCH_URL = 'https://api.twitch.tv/kraken/streams?&offset=%d&limit=%d';
var API_URL = 'http://' + (process.env.WEBSITE_HOSTNAME || 'localhost:3000') + '/scan/channel/';


var options = {
    needle: {
        compressed: true,
        json: true,
        open_timeout: 60000,
        read_timeout: 60000
    },
    retry: {
        retries: 5
    }
};

var apiOptions = _.merge(options, {needle: {headers: _.zipObject([gatekeeper.header], [gatekeeper.passcode])}});
{'fraction_non_alphanumeric': 0.21626373626373627, 'fraction_numerical': 0.024615384615384615, 'mean_word_length': 2.924137931034483, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '6598863', 'n_tokens_mistral': 808, 'n_tokens_neox': 743, 'n_words': 154}