<commit_before>'use strict';

var es = require('event-stream'),
    gutil = require('gulp-util'),
    fs = require('fs'),
    compass = require('./lib/compass');

module.exports = function(opt){
    function compile(file, cb){
        if (file.isNull()) return cb(null, file); // pass along
        if (file.isStream()) return cb(new Error("gulp-compass: Streaming not supported"));
        var filepath = file.path;
        compass(filepath, opt, function(code, stdout, stderr, path){
            if (code === 127) {
                return cb(new Error(
                    'You need to have Ruby and Compass installed ' +
                    'and in your system PATH for this task to work. '));
            }
            // excute callback
            file.path = gutil.replaceExtension(file.path, ".css");
            file.contents = new Buffer(fs.readFileSync(String(gutil.replaceExtension(path, '.css'))));
            cb(null, file);
        });
    }

    return es.map(compile);
};<commit_msg>update index.js for jshint.<commit_after>'use strict';

var es = require('event-stream'),
    gutil = require('gulp-util'),
    fs = require('fs'),
    compass = require('./lib/compass');

module.exports = function(opt){
    function compile(file, cb){
        if (file.isNull()) {
            return cb(null, file);
        }
        if (file.isStream()) {
            return cb(new Error('gulp-compass: Streaming not supported'));
        }
        var filepath = file.path;
        compass(filepath, opt, function(code, stdout, stderr, path){
            if (code === 127) {
                return cb(new Error(
                    'You need to have Ruby and Compass installed ' +
                    'and in your system PATH for this task to work. '));
            }
            // excute callback
            file.path = gutil.replaceExtension(file.path, '.css');
            file.contents = new Buffer(fs.readFileSync(String(gutil.replaceExtension(path, '.css'))));
            cb(null, file);
        });
    }

    return es.map(compile);
};
{'fraction_non_alphanumeric': 0.14146341463414633, 'fraction_numerical': 0.002926829268292683, 'mean_word_length': 2.0475482912332836, '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': '3965106', 'n_tokens_mistral': 583, 'n_tokens_neox': 566, 'n_words': 155}