<commit_before>import webpack from 'webpack';
import gutil from 'gulp-util';

const config = protoss.config.scripts;

if (config.workflow === 'webpack') {
  const webpackErrorHandler = protoss.errorHandler('Error in \'webpack\' task');

  const runWebpack = function runWebpack(watch = false) {
    return (callback) => {
      let webpackConfig;
      if (typeof config.webpackConfig === 'function') {
        webpackConfig = config.webpackConfig();
      } else {
        webpackConfig = config.webpackConfig;
      }
      webpackConfig.watch = watch;
      return webpack(webpackConfig, (error, stats) => {<commit_msg>add todo fo webpack<commit_after>import webpack from 'webpack';
import gutil from 'gulp-util';

const config = protoss.config.scripts;

if (config.workflow === 'webpack') {
  const webpackErrorHandler = protoss.errorHandler('Error in \'webpack\' task');

  const runWebpack = function runWebpack(watch = false) {
    return (callback) => {
      let webpackConfig;
      if (typeof config.webpackConfig === 'function') {
        webpackConfig = config.webpackConfig();
      } else {
        webpackConfig = config.webpackConfig;
      }
      webpackConfig.watch = watch;
      // TODO: no config
      return webpack(webpackConfig, (error, stats) => {
{'fraction_non_alphanumeric': 0.12156862745098039, 'fraction_numerical': 0.0, 'mean_word_length': 3.4305555555555554, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '5590739', 'n_tokens_mistral': 364, 'n_tokens_neox': 353, 'n_words': 94}