<commit_before>class Task {
  constructor(name) {
    this.name = name;
  }
  get deps() {
    return [];
  }
  get fn() {
    return BalmJS.noop;
  }
  getStyleTask() {
    return config.styles.ext === 'scss'
      ? 'sass'
      : config.styles.ext;
  }
  getStylePath() {
    return config.production
      ? path.join(config.roots.target, config.assets.subDir, config.paths.target.css)
      : path.join(config.roots.tmp, config.paths.tmp.css);
  }
  handleStyle(stream, output) {
    stream = config.production
      ? stream.pipe($.cssnano(config.styles.options))
      : stream.pipe($.if(!config.production, $.sourcemaps.write()));

    stream = stream.pipe(gulp.dest(File.absPaths(output)));

    if (!config.production) {
      stream = stream.pipe(browserSync.stream({match: '**/*.css'}));
    }

    return stream;
  }
  getImageDist() {
    return config.production
      ? config.target.img
      : config.tmp.img;
  }
}

export default Task;<commit_msg>fix css sourcemap<commit_after>class Task {
  constructor(name) {
    this.name = name;
  }
  get deps() {
    return [];
  }
  get fn() {
    return BalmJS.noop;
  }
  getStyleTask() {
    return config.styles.ext === 'scss'
      ? 'sass'
      : config.styles.ext;
  }
  getStylePath() {
    return config.production
      ? path.join(config.roots.target, config.assets.subDir, config.paths.target.css)
      : path.join(config.roots.tmp, config.paths.tmp.css);
  }
  handleStyle(stream, output) {
    stream = config.production
      ? stream.pipe($.cssnano(config.styles.options))
      : stream.pipe($.if(!config.production, $.sourcemaps.write('.')));

    stream = stream.pipe(gulp.dest(File.absPaths(output)));

    if (!config.production) {
      stream = stream.pipe(browserSync.stream({match: '**/*.css'}));
    }

    return stream;
  }
  getImageDist() {
    return config.production
      ? config.target.img
      : config.tmp.img;
  }
}

export default Task;
{'fraction_non_alphanumeric': 0.16125708397733127, 'fraction_numerical': 0.0, 'mean_word_length': 2.7782101167315174, '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': '4278662', 'n_tokens_mistral': 664, 'n_tokens_neox': 652, 'n_words': 101}