<commit_before>// Gulp & utils
import path from 'path'
import gulp from 'gulp'
import runSequence from 'run-sequence'
import del from 'del'
import plumber from 'gulp-plumber'
import notify from 'gulp-notify'

// JS
import browserify from 'browserify'
import source from 'vinyl-source-stream'
import buffer from 'vinyl-buffer'
import eslint from 'gulp-eslint'
import uglify from 'gulp-uglify'
import sourcemaps from 'gulp-sourcemaps'
import gutil from 'gulp-util'

// CSS
import postcss from 'gulp-postcss'
import cssnext from 'postcss-cssnext'
import cssnano from 'cssnano'
import nested from 'postcss-nested'

const staticFiles = [
  'manifest.json',
  'icons/*.png'
].map((i) => path.resolve('src/', i))

const cssFiles = [
  'src/css/index.css'
]

const toLintFiles = [
  'src/js/**/*.js',
  '*.js'
]

const postCssPlugins = [
  cssnext,
  nested,
  cssnano
]

const maybeNotifyErrors = () => {
  return notify.onError({
    title: 'Compile Error',
    message: '<%= error.message %>'<commit_msg>remove useless warning about autoprefixer/cssnext<commit_after>// Gulp & utils
import path from 'path'
import gulp from 'gulp'
import runSequence from 'run-sequence'
import del from 'del'
import plumber from 'gulp-plumber'
import notify from 'gulp-notify'

// JS
import browserify from 'browserify'
import source from 'vinyl-source-stream'
import buffer from 'vinyl-buffer'
import eslint from 'gulp-eslint'
import uglify from 'gulp-uglify'
import sourcemaps from 'gulp-sourcemaps'
import gutil from 'gulp-util'

// CSS
import postcss from 'gulp-postcss'
import cssnext from 'postcss-cssnext'
import cssnano from 'cssnano'
import nested from 'postcss-nested'

const staticFiles = [
  'manifest.json',
  'icons/*.png'
].map((i) => path.resolve('src/', i))

const cssFiles = [
  'src/css/index.css'
]

const toLintFiles = [
  'src/js/**/*.js',
  '*.js'
]

const postCssPlugins = [
  cssnext({warnForDuplicates: false}),
  nested,
  cssnano
]

const maybeNotifyErrors = () => {
  return notify.onError({
    title: 'Compile Error',
    message: '<%= error.message %>'
{'fraction_non_alphanumeric': 0.1338506304558681, 'fraction_numerical': 0.0, 'mean_word_length': 4.358441558441559, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '2081986', 'n_tokens_mistral': 725, 'n_tokens_neox': 719, 'n_words': 207}