<commit_before>var fs = require('fs');
var crypto = require('crypto');
var Step = require('step');
var path = require('path');
var url = require('url');
var mapnik = require('mapnik');
var qs = require('querystring');
var Pool = require('generic-pool').Pool;
var LockingCache = require('./lockingcache');
var sm = new (require('sphericalmercator'));

var cache = {};

// Increase number of threads to 1.5x the number of logical CPUs.
var threads = Math.ceil(Math.max(8, require('os').cpus().length * 1.5));
require('eio').setMinParallel(threads);

exports = module.exports = MapnikSource;

require('util').inherits(MapnikSource, require('events').EventEmitter);<commit_msg>Revert "Allow up to 8 threads."<commit_after>var fs = require('fs');
var crypto = require('crypto');
var Step = require('step');
var path = require('path');
var url = require('url');
var mapnik = require('mapnik');
var qs = require('querystring');
var Pool = require('generic-pool').Pool;
var LockingCache = require('./lockingcache');
var sm = new (require('sphericalmercator'));

var cache = {};

// Increase number of threads to 1.5x the number of logical CPUs.
var threads = Math.ceil(Math.max(4, require('os').cpus().length * 1.5));
require('eio').setMinParallel(threads);

exports = module.exports = MapnikSource;

require('util').inherits(MapnikSource, require('events').EventEmitter);
{'fraction_non_alphanumeric': 0.1810850439882698, 'fraction_numerical': 0.008064516129032258, 'mean_word_length': 6.146596858638744, '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': '6907563', 'n_tokens_mistral': 423, 'n_tokens_neox': 413, 'n_words': 114}