<commit_before>var es = require('event-stream'),
  clone = require('clone'),
  path = require('path');

module.exports = function(opt){
  // clone options
  opt = opt ? clone(opt) : {};
  if (!opt.splitter && opt.splitter !== "") opt.splitter = '\r\n';

  if (!opt.fileName) throw new Error("Missing fileName option for gulp-concat");

  var buffer = [];
  function bufferContents(file){
    // clone the file so we arent mutating stuff
    buffer.push(clone(file));
  }

  function endStream(){
    if (buffer.length === 0) return this.emit('end');

    var joinedContents = buffer.map(function(file){
      return file.contents;
    }).join(opt.splitter);

    var joinedPath = path.join(path.dirname(buffer[0].path), opt.fileName);

    var joinedFile = {<commit_msg>Adjust opt.splitter to compare against undefined for the default value.<commit_after>var es = require('event-stream'),
  clone = require('clone'),
  path = require('path');

module.exports = function(opt){
  // clone options
  opt = opt ? clone(opt) : {};
  if (typeof opt.splitter === 'undefined') opt.splitter = '\r\n';

  if (!opt.fileName) throw new Error("Missing fileName option for gulp-concat");

  var buffer = [];
  function bufferContents(file){
    // clone the file so we arent mutating stuff
    buffer.push(clone(file));
  }

  function endStream(){
    if (buffer.length === 0) return this.emit('end');

    var joinedContents = buffer.map(function(file){
      return file.contents;
    }).join(opt.splitter);

    var joinedPath = path.join(path.dirname(buffer[0].path), opt.fileName);

    var joinedFile = {
{'fraction_non_alphanumeric': 0.15779586725109582, 'fraction_numerical': 0.002504696305572949, 'mean_word_length': 3.672514619883041, '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': '4831352', 'n_tokens_mistral': 487, 'n_tokens_neox': 478, 'n_words': 130}