<commit_before>var coalesce = require('./coalesce')
var assert = require('assert')
var fs = require('fs')
var path = require('path')
var util = require('util')

var main = require('prolific.main')

var shuttle = {
    main: coalesce(function () {
        return require.main.require('prolific.shuttle')
    }, { filename: null }),
    mine: coalesce(function () {
        return require('prolific.shuttle')
    }, { filename: null })
}

assert(shuttle.main.filename == shuttle.mine.filename,
    util.format(fs.readFileSync(path.join(__dirname, 'error.txt'), 'utf8'),
        shuttle.mine.filename, shuttle.main.filename))

exports.sink = coalesce(shuttle.mine.main, main)<commit_msg>Fix bug, Shuttle exports Main as `sink`.<commit_after>var coalesce = require('./coalesce')
var assert = require('assert')
var fs = require('fs')
var path = require('path')
var util = require('util')

var sink = require('prolific.main')

var shuttle = {
    main: coalesce(function () {
        return require.main.require('prolific.shuttle')
    }, { filename: null }),
    mine: coalesce(function () {
        return require('prolific.shuttle')
    }, { filename: null })
}

assert(shuttle.main.filename == shuttle.mine.filename,
    util.format(fs.readFileSync(path.join(__dirname, 'error.txt'), 'utf8'),
        shuttle.mine.filename, shuttle.main.filename))

exports.sink = coalesce(shuttle.mine.sink, sink)
{'fraction_non_alphanumeric': 0.16344086021505377, 'fraction_numerical': 0.0014336917562724014, 'mean_word_length': 4.132352941176471, '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': '4128581', 'n_tokens_mistral': 462, 'n_tokens_neox': 439, 'n_words': 89}