<commit_before>var rework = require('rework'),
    imprt = require('rework-npm'),
    vars = require('rework-vars'),
    color = require('rework-color'),
    autoprefixer = require('autoprefixer'),
    read = require('fs-extra').readFileSync,
    write = require('fs-extra').writeFileSync;

module.exports = function(options) {
    options = options || {};
    var src = options.src,
        dest = options.dest,
        browsers = options.browsers || [],
        output;

    if (!src) {
        throw new Error("Sorry, I couldn't find an input file. Did you supply one?");
    }

    output = rework(read(src, 'utf8'))
        .use(imprt())
        .use(vars())
        .use(rework.colors())
        .use(color())
        .use(rework.extend())
        .use(autoprefixer(browsers).rework)<commit_msg>Updating source file check to test for existence of file not just a string being passed.<commit_after>var rework = require('rework'),
    imprt = require('rework-npm'),
    vars = require('rework-vars'),
    color = require('rework-color'),
    autoprefixer = require('autoprefixer'),
    read = require('fs-extra').readFileSync,
    write = require('fs-extra').writeFileSync,
    exists = require('fs-extra').existsSync;

module.exports = function(options) {
    options = options || {};
    var src = options.src,
        dest = options.dest,
        browsers = options.browsers || [],
        output;

    if (!exists(src)) {
        throw new Error("Sorry, I couldn't find an input file. Did you supply one?");
    }

    output = rework(read(src, 'utf8'))
        .use(imprt())
        .use(vars())
        .use(rework.colors())
        .use(color())
        .use(rework.extend())
        .use(autoprefixer(browsers).rework)
{'fraction_non_alphanumeric': 0.15895953757225434, 'fraction_numerical': 0.0011560693641618498, 'mean_word_length': 2.7467532467532467, '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': '5656476', 'n_tokens_mistral': 544, 'n_tokens_neox': 542, 'n_words': 118}