<commit_before>var through = require( "through" );
var sass = require( "node-sass" );
var path = require( "path" );

module.exports = function( file, opts ) {
	var data = "";
	if( file !== undefined && path.extname( file ) !== ".scss" )
		return through();
	else
		return through( write, end );

	function write(buf) {
		data += buf;
	}

	function end() {
		try {
			opts = opts ? opts : {};
			opts.includePaths = [path.dirname(file)];
			this.queue( sass.renderSync( data, opts ) );
		} catch( err ) {
			this.emit( 'error', new Error( err ) );
		}

		this.queue( null );
	}
};<commit_msg>Now merging includePaths instead of just assigning<commit_after>var through = require( "through" );
var sass = require( "node-sass" );
var path = require( "path" );

module.exports = function( file, opts ) {
	var data = "";
	if( file !== undefined && path.extname( file ) !== ".scss" )
		return through();
	else
		return through( write, end );

	function write(buf) {
		data += buf;
	}

	function end() {
		try {
			opts = opts ? opts : {};
			var includePaths = opts.includePaths;
			var pathToAdd = [path.dirname(file)];
			opts.includePaths = Array.isArray(includePaths) ?
			                    includePaths.concat(pathToAdd) :
			                    pathToAdd;
			this.queue( sass.renderSync( data, opts ) );
		} catch( err ) {
			this.emit( 'error', new Error( err ) );
		}

		this.queue( null );
	}
};
{'fraction_non_alphanumeric': 0.1651179413867048, 'fraction_numerical': 0.0, 'mean_word_length': 2.9548022598870056, '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': '4948281', 'n_tokens_mistral': 512, 'n_tokens_neox': 460, 'n_words': 126}