<commit_before>'use strict';

var fs = require('fs');
var path = require('path');

function generateSiteId() {
  this.site.id = this.site.url.replace(/[^A-Za-z0-9]/g, '').substr(0, 64);
}

function vvv() {
  this.template('_vvv.json', 'vvv.json');
}

function config() {
  this.mkdir('config');

  this.mkdir('config/data');
  this.copy('readmes/data-readme.md', 'config/data/readme.md');
  this.copy('wp-constants', 'config/wp-constants');
  this.template('_org-plugins', 'config/org-plugins');
  this.template('_org-themes', 'config/org-themes');
  this.template('_wp-ms-constants', 'config/wp-ms-constants');
  this.template('_vvv-nginx.conf', 'vvv-nginx.conf');
  this.template('_site-vars.sh', 'config/site-vars.sh');
  this.template('_vvv-hosts', 'config/vvv-hosts');
  this.template('_proxy.conf', 'config/proxy.conf');
}

function src() {
  this.mkdir('src');
  this.mkdir('src/dropins');
  this.mkdir('src/plugins');
  this.mkdir('src/themes');

  this.template('readmes/_readme.md', 'readme.md');
  this.copy('readmes/dropins-readme.md', 'src/dropins/readme.md');
  this.copy('readmes/plugins-readme.md', 'src/plugins/readme.md');
  this.copy('readmes/themes-readme.md', 'src/themes/readme.md');

  this.copy('plugins/object-cache.php', 'src/dropins/object-cache.php');
  this.copy('plugins/advanced-cache.php', 'src/dropins/advanced-cache.php');
}
<commit_msg>Allow opting out of auto caching in vvv.json. closes #18<commit_after>'use strict';

var fs = require('fs');
var path = require('path');

function generateSiteId() {
  this.site.id = this.site.url.replace(/[^A-Za-z0-9]/g, '').substr(0, 64);
}

function vvv() {
  this.template('_vvv.json', 'vvv.json');
}

function config() {
  this.mkdir('config');

  this.mkdir('config/data');
  this.copy('readmes/data-readme.md', 'config/data/readme.md');
  this.copy('wp-constants', 'config/wp-constants');
  this.template('_org-plugins', 'config/org-plugins');
  this.template('_org-themes', 'config/org-themes');
  this.template('_wp-ms-constants', 'config/wp-ms-constants');
  this.template('_vvv-nginx.conf', 'vvv-nginx.conf');
  this.template('_site-vars.sh', 'config/site-vars.sh');
  this.template('_vvv-hosts', 'config/vvv-hosts');
  this.template('_proxy.conf', 'config/proxy.conf');
}

function src() {
  this.mkdir('src');
  this.mkdir('src/dropins');
  this.mkdir('src/plugins');
  this.mkdir('src/themes');

  this.template('readmes/_readme.md', 'readme.md');
  this.copy('readmes/dropins-readme.md', 'src/dropins/readme.md');
  this.copy('readmes/plugins-readme.md', 'src/plugins/readme.md');
  this.copy('readmes/themes-readme.md', 'src/themes/readme.md');

  if (false !== this.wordpress.cache) {
    this.copy('plugins/object-cache.php', 'src/dropins/object-cache.php');
    this.copy('plugins/advanced-cache.php', 'src/dropins/advanced-cache.php');
  }
}

{'fraction_non_alphanumeric': 0.22590893046240734, 'fraction_numerical': 0.004235792446170138, 'mean_word_length': 4.760162601626016, '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': '7082614', 'n_tokens_mistral': 1104, 'n_tokens_neox': 1063, 'n_words': 128}