<commit_before>var tpct = require('..'),
    assert = require('assert'),
    read = require('fs').readFileSync,
    mkdirp = require('mkdirp');

describe('tpct', function() {

    before(function() { 
        mkdirp.sync('tmp')
    })


    it('should generate correct output', function() {
        tpct({
            src: 'test/fixtures/tpct.test.css',
            dest: 'tmp/tpct.css'
        });

        var actual = read('tmp/tpct.css').toString().trim(),
            expected = read('test/expected/tpct.expected.css', 'utf-8').toString().trim();
        assert.equal(actual, expected, 'Generated output should match expected file');
    });

    it('should throw error when no input file is supplied', function() {
        assert.throws(function() {
            tpct({
                src: '',
                dest: 'tmp/tpct.css'
            });
        }, Error);
    });

    it('should import from node_modules', function() {
        tpct({
            src: 'test/fixtures/tpct.import.test.css',
            dest: 'tmp/tpct.import.css'
        });

        var actual = read('tmp/tpct.import.css').toString().trim(),
            expected = read('test/expected/tpct.import.expected.css', 'utf-8').toString().trim();
        assert.equal(actual, expected, 'Generated output should match expected file');
    });

});
<commit_msg>Adding semicolons @brianleroux :P<commit_after>var tpct = require('..'),
    assert = require('assert'),
    read = require('fs').readFileSync,
    mkdirp = require('mkdirp');

describe('tpct', function() {

    before(function() {
        mkdirp.sync('tmp');
    });


    it('should generate correct output', function() {
        tpct({
            src: 'test/fixtures/tpct.test.css',
            dest: 'tmp/tpct.css'
        });

        var actual = read('tmp/tpct.css').toString().trim(),
            expected = read('test/expected/tpct.expected.css', 'utf-8').toString().trim();
        assert.equal(actual, expected, 'Generated output should match expected file');
    });

    it('should throw error when no input file is supplied', function() {
        assert.throws(function() {
            tpct({
                src: '',
                dest: 'tmp/tpct.css'
            });
        }, Error);
    });

    it('should import from node_modules', function() {
        tpct({
            src: 'test/fixtures/tpct.import.test.css',
            dest: 'tmp/tpct.import.css'
        });

        var actual = read('tmp/tpct.import.css').toString().trim(),
            expected = read('test/expected/tpct.import.expected.css', 'utf-8').toString().trim();
        assert.equal(actual, expected, 'Generated output should match expected file');
    });

});

{'fraction_non_alphanumeric': 0.17068645640074212, 'fraction_numerical': 0.001484230055658627, 'mean_word_length': 2.2133492252681766, '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': '3347061', 'n_tokens_mistral': 791, 'n_tokens_neox': 764, 'n_words': 157}