<commit_before>'use strict';
var config = require('../scripts/config');
var fs = require('fs');
var path = require('path');
var glob = require('glob');
var mkdirp = require('mkdirp');
var execFile = require('child_process').execFile;
var pngquant = require('pngquant-bin');

function copy(file) {
  if (file) {
    copyFile(path.join(config.output,'assets/'),config.raw,file);
  } else {
    glob(path.join(config.raw,'**/*'),{dot: true},function(err,files) {
      if (!err) {
        files.forEach(copyFile.bind(null,path.join(config.output,'assets/'),config.raw));
      } else {
        console.log(err);
      }
    });
    if (config.NODE_ENV==='production') {
      glob(path.join(config.app,'**/*'),{dot: true},function(err,files) {
        if (!err) {
          files.forEach(copyFile.bind(null,path.join(config.output),config.app));
        } else {
          console.log(err);
        }
      });
    }<commit_msg>Removed directories from glob match<commit_after>'use strict';
var config = require('../scripts/config');
var fs = require('fs');
var path = require('path');
var glob = require('glob');
var mkdirp = require('mkdirp');
var execFile = require('child_process').execFile;
var pngquant = require('pngquant-bin');

function copy(file) {
  if (file) {
    copyFile(path.join(config.output,'assets/'),config.raw,file);
  } else {
    glob(path.join(config.raw,'**/*'),{dot: true, nodir: true},function(err,files) {
      if (!err) {
        files.forEach(copyFile.bind(null,path.join(config.output,'assets/'),config.raw));
      } else {
        console.log(err);
      }
    });
    if (config.NODE_ENV==='production') {
      glob(path.join(config.app,'**/*'),{dot: true, nodir: true},function(err,files) {
        if (!err) {
          files.forEach(copyFile.bind(null,path.join(config.output),config.app));
        } else {
          console.log(err);
        }
      });
    }
{'fraction_non_alphanumeric': 0.20021074815595363, 'fraction_numerical': 0.0, 'mean_word_length': 3.345537757437071, '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': '2728757', 'n_tokens_mistral': 623, 'n_tokens_neox': 616, 'n_words': 98}