<commit_before>var Queue = require('./queue')
var logger = require('./prolific').createLogger('prolific.shuttle')
var fs = require('fs')
var sync = require('./sync')
var abend = require('abend')
var Isochronous = require('isochronous')
var cadence = require('cadence')

function Shuttle (process, log, interval) {
    this._logout = fs.createWriteStream(null, { fd: +log })
    this.queue = new Queue
    this._sink = this.queue.createSink(this._logout)
    this._stopped = false
    this._isochronous = new Isochronous({<commit_msg>Set `prolific` sink in `Shuttle`.<commit_after>var Queue = require('./queue')
var prolific = require('./prolific')
var logger = prolific.createLogger('prolific.shuttle')
var fs = require('fs')
var sync = require('./sync')
var abend = require('abend')
var Isochronous = require('isochronous')
var cadence = require('cadence')

function Shuttle (process, log, interval) {
    this._logout = fs.createWriteStream(null, { fd: +log })
    prolific.sink = this.queue = new Queue
    this._sink = this.queue.createSink(this._logout)
    this._stopped = false
    this._isochronous = new Isochronous({
{'fraction_non_alphanumeric': 0.1492007104795737, 'fraction_numerical': 0.0, 'mean_word_length': 4.720812182741117, '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': '3037746', 'n_tokens_mistral': 378, 'n_tokens_neox': 368, 'n_words': 87}