<commit_before>import _ from 'lodash';

export function instance (owner) {

  var _today = new Date;
  var _date = `${_today.getFullYear()}-${_today.getMonth()}-${_today.getDate()}-${_today.getHours()}-${_today.getMinutes()}`

  if (!owner.options.root) owner.options.root = 'shop';
  const instanceDefault = {}

  instanceDefault.folders = {
      'template': owner.options.root+'/template/',
      'snippets': owner.options.root+'/snippets/',
      'style': owner.options.root+'/assets/style/',
      'script': owner.options.root+'/assets/js/',
      'img': owner.options.root+'/assets/img/',
      'svg': owner.options.root+'/assets/svg/',
      'snippets': owner.options.root+'/snippets/',
      'media': owner.options.root+'/assets/media/',
      'fonts': owner.options.root+'/assets/fonts/',
      'config': owner.options.root+'/config/'
    }

    instanceDefault.toWatch = [];
    _.forEach(instanceDefault.folders, function(folder) {
      var _seeFolder = `${folder}*.*`;
      instanceDefault.toWatch.push(_seeFolder)
    });

    instanceDefault.mediaExtension = {
      '.css': instanceDefault.folders['style'],
      '.scss': instanceDefault.folders['style'],
      '.css.liquid': instanceDefault.folders['style'],
      '.scss.liquid': instanceDefault.folders['style'],
      '.coffee': instanceDefault.folders['script'],
      '.js': instanceDefault.folders['script'],
      '.js.liquid': instanceDefault.folders['script'],
      '.svg': instanceDefault.folders['svg'],
      '.jpeg': instanceDefault.folders['img'],
      '.jpg': instanceDefault.folders['img'],
      '.gif': instanceDefault.folders['img'],
      '.png': instanceDefault.folders['img'],
      '.ttf': instanceDefault.folders['fonts'],
      '.woff': instanceDefault.folders['fonts'],
      '.woff2': instanceDefault.folders['fonts'],<commit_msg>Update instance.js<commit_after>import _ from 'lodash';

export function instance (owner) {

  var _today = new Date;
  var _date = `${_today.getFullYear()}-${_today.getMonth()}-${_today.getDate()}-${_today.getHours()}-${_today.getMinutes()}`

  if (!owner.options.root) owner.options.root = 'shop';
  const instanceDefault = {}

  instanceDefault.folders = {
      'template': owner.options.root+'/template/',
      'snippets': owner.options.root+'/snippets/',
      'style': owner.options.root+'/assets/style/',
      'script': owner.options.root+'/assets/js/',
      'img': owner.options.root+'/assets/img/',
      'svg': owner.options.root+'/assets/svg/',
      'snippets': owner.options.root+'/snippets/',
      'media': owner.options.root+'/assets/media/',
      'fonts': owner.options.root+'/assets/fonts/',
      'config': owner.options.root+'/config/'
    }

    instanceDefault.toWatch = [];
    _.forEach(instanceDefault.folders, function(folder) {
      var _seeFolder = `${folder}*.*`;
      instanceDefault.toWatch.push(_seeFolder)
    });

    instanceDefault.mediaExtension = {
      '.css': instanceDefault.folders['style'],
      '.scss': instanceDefault.folders['style'],
      '.css.liquid': instanceDefault.folders['style'],
      '.scss.liquid': instanceDefault.folders['style'],
      '.coffee': instanceDefault.folders['script'],
      '.js': instanceDefault.folders['script'],
      '.js.liquid': instanceDefault.folders['script'],
      '.svg': instanceDefault.folders['svg'],
      '.svg.liquid': instanceDefault.folders['svg'],
      '.jpeg': instanceDefault.folders['img'],
      '.jpg': instanceDefault.folders['img'],
      '.gif': instanceDefault.folders['img'],
      '.png': instanceDefault.folders['img'],
      '.ttf': instanceDefault.folders['fonts'],
      '.woff': instanceDefault.folders['fonts'],
      '.woff2': instanceDefault.folders['fonts'],
{'fraction_non_alphanumeric': 0.20021528525296017, 'fraction_numerical': 0.0005382131324004305, 'mean_word_length': 3.64625, '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': '2044858', 'n_tokens_mistral': 1193, 'n_tokens_neox': 1138, 'n_words': 160}