<commit_before>var through = require('through2');
var inflector = require('./inflector');
var rmExt = require('./rmExt');
var path = require('path');

module.exports = function (options) {
  return through.obj(function(chunk, _, next) {
    var inf = inflector(chunk, options.pods);

    if (!inf) {
      return next();
    }

    this.push({
      path: './' + (chunk.indexOf('.hbs') === -1 ? rmExt(chunk) : fixPathSep(chunk)),
      name: inf.name,
      cat: inf.cat,
      isTemplate: (inf.cat === 'template')
    });
    next();
  });
};

function fixPathSep(p) {  
  return path.sep === '\\' ? p.split(path.sep).join('/') : p;
}<commit_msg>Add whitespace back in<commit_after>var through = require('through2');
var inflector = require('./inflector');
var rmExt = require('./rmExt');
var path = require('path');

module.exports = function (options) {
  return through.obj(function(chunk, _, next) {
    var inf = inflector(chunk, options.pods);

    if (!inf) {
      return next();
    }

    this.push({
      path: './' + (chunk.indexOf('.hbs') === -1 ? rmExt(chunk) : fixPathSep(chunk)),
      name: inf.name,
      cat: inf.cat,
      isTemplate: (inf.cat === 'template')
    });
    
    next();
  });
};

function fixPathSep(p) {  
  return path.sep === '\\' ? p.split(path.sep).join('/') : p;
}
{'fraction_non_alphanumeric': 0.20795107033639143, 'fraction_numerical': 0.0030581039755351682, 'mean_word_length': 2.978723404255319, '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': '5029591', 'n_tokens_mistral': 443, 'n_tokens_neox': 443, 'n_words': 95}