<commit_before>'use strict';

const fs = require('fs-extra');
const glob = require('glob');
const gulp = require('gulp');
const utils = require('fepper-utils');
const yaml = require('js-yaml');
const yargs = require('yargs');

const slash = require('slash');
const path = require('path');
const {
  basename,
  dirname,
  extname
} = path;
const normalize = rawPath => slash(path.normalize(rawPath));
const resolve = rawPath => slash(path.resolve(rawPath)).replace(/^[A-Z]:/, '');

const conf = global.conf;
const pref = global.pref;
const rootDir = global.rootDir;

const engines = [
  '.erb',
  '.jsp',
  '.hbs',
  '.php',
  '.twig'
];

// Assigning anonymous functions to consts for categorical purposes.
// Named functions are declared further down the list of declarations, after the FpImporter class.
// While it makes some sense to declare getDelimiters there, we want to declare getDelimiters before FpImporter to avoid
// hoisting.
const getDelimiters = (engine) => {
  switch (engine) {
    case '.erb':
      return ['<%', '%>'];

    case '.hbs':
      return ['\\{\\{[^!]', '\\}\\}'];<commit_msg>resolve method fixed for windows<commit_after>'use strict';

const fs = require('fs-extra');
const glob = require('glob');
const gulp = require('gulp');
const utils = require('fepper-utils');
const yaml = require('js-yaml');
const yargs = require('yargs');

const slash = require('slash');
const path = require('path');
const {
  basename,
  dirname,
  extname
} = path;
const normalize = rawPath => slash(path.normalize(rawPath));
const resolve = rawPath => slash(path.resolve(rawPath));

const conf = global.conf;
const pref = global.pref;
const rootDir = global.rootDir;

const engines = [
  '.erb',
  '.jsp',
  '.hbs',
  '.php',
  '.twig'
];

// Assigning anonymous functions to consts for categorical purposes.
// Named functions are declared further down the list of declarations, after the FpImporter class.
// While it makes some sense to declare getDelimiters there, we want to declare getDelimiters before FpImporter to avoid
// hoisting.
const getDelimiters = (engine) => {
  switch (engine) {
    case '.erb':
      return ['<%', '%>'];

    case '.hbs':
      return ['\\{\\{[^!]', '\\}\\}'];
{'fraction_non_alphanumeric': 0.16757000903342367, 'fraction_numerical': 0.0, 'mean_word_length': 3.9887387387387387, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '2831826', 'n_tokens_mistral': 708, 'n_tokens_neox': 688, 'n_words': 218}