<commit_before>(function IIFE() {
  'use strict';

  var _ = require('ramda');
  var slugify = require('underscore.string').slugify;
  var rename = require('gulp-rename');
  var template = require('gulp-template');
  var conflict = require('gulp-conflict');
  var install = require('gulp-install');
  var gulp = require('gulp');

  const mongooseSpecificDir = '!' + __dirname + '/../templates/server/config/seed/**/*';

  var moveTemplates = _.curry(function(done, answers) {
    if (!answers.moveon) {
      return done();
    }

    answers.appNameSlug = slugify(answers.appName);

    let gulpSrc = [__dirname + '/../templates/**/*'];

    if(!answers.mongoose) {
      gulpSrc.push(mongooseSpecificDir);
    }

    gulp.src(gulpSrc, { dot: true })
      .pipe(template(answers))
      .pipe(rename(renameScheme))
      .pipe(conflict('./'))
      .pipe(gulp.dest('./'))
      .pipe(install())
      .on('end', function() {
        done();
      });

    function renameScheme(file) {
      if (file.basename[0] === '_') {
        file.basename = '.' + file.basename.slice(1);
      }
    }
  });

  module.exports = moveTemplates;
})();
<commit_msg>take out rename, using gulp.src dotfile true<commit_after>(function IIFE() {
  'use strict';

  var _ = require('ramda');
  var slugify = require('underscore.string').slugify;
  var rename = require('gulp-rename');
  var template = require('gulp-template');
  var conflict = require('gulp-conflict');
  var install = require('gulp-install');
  var gulp = require('gulp');

  const mongooseSpecificDir = '!' + __dirname + '/../templates/server/config/seed/**/*';

  var moveTemplates = _.curry(function(done, answers) {
    if (!answers.moveon) {
      return done();
    }

    answers.appNameSlug = slugify(answers.appName);

    let gulpSrc = [__dirname + '/../templates/**/*'];

    if(!answers.mongoose) {
      gulpSrc.push(mongooseSpecificDir);
    }

    gulp.src(gulpSrc, { dot: true })
      .pipe(template(answers))
      .pipe(conflict('./'))
      .pipe(gulp.dest('./'))
      .pipe(install())
      .on('end', function() {
        done();
      });
  });

  module.exports = moveTemplates;
})();

{'fraction_non_alphanumeric': 0.18963922294172064, 'fraction_numerical': 0.0009250693802035153, 'mean_word_length': 2.9688073394495413, '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': '4399650', 'n_tokens_mistral': 744, 'n_tokens_neox': 718, 'n_words': 125}