<commit_before>var gulp = require('gulp');
var _ = require('lodash');
var logger = require('./utils/logger');
var tasks = require('require-dir')('./tasks', { recurse: true });
var config = require('./config');

_.forEach(tasks, function(task) {
  try {
    var result = /gulp\.task\(['"](.*)['"]/m.exec(task.toString());
    var taskName = (result && result.length > 1) ? result[1] : 'unknown';
    task(gulp, config);
    logger.info(config, 'task added: ' + taskName);
  } catch (err) {
    logger.warn('task skipped: ' + taskName + '; ' + err);
  }
});<commit_msg>Fix regex reluctance<commit_after>var gulp = require('gulp');
var _ = require('lodash');
var logger = require('./utils/logger');
var tasks = require('require-dir')('./tasks', { recurse: true });
var config = require('./config');

_.forEach(tasks, function(task) {
  try {
    var result = /gulp\.task\(['"](.*?)['"]/m.exec(task.toString());
    var taskName = (result && result.length > 1) ? result[1] : 'unknown';
    task(gulp, config);
    logger.info(config, 'task added: ' + taskName);
  } catch (err) {
    logger.warn('task skipped: ' + taskName + '; ' + err);
  }
});
{'fraction_non_alphanumeric': 0.22854640980735552, 'fraction_numerical': 0.0035026269702276708, 'mean_word_length': 3.9055793991416308, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '7074645', 'n_tokens_mistral': 390, 'n_tokens_neox': 380, 'n_words': 84}