<commit_before>const path = require('path')
const webpack = require('webpack')
const ExtractTextPlugin = require('extract-text-webpack-plugin')

const srcPath = path.resolve('./src')
const imagePath = path.resolve('./dist/images')
const vendorPath = path.resolve('./vendor')

const DEV = 'development'

if (!process.env.BUILD_ENV) {
  process.env.BUILD_ENV = DEV
}

const basePlugins = [
  new webpack.EnvironmentPlugin([
    'BUILD_ENV',
    'FIREBASE_URL',
    'FIREBASE_API_KEY',
    'FIREBASE_AUTH_DOMAIN',
    'FIREBASE_STORAGE_BUCKET'
  ]),
  new ExtractTextPlugin({filename: 'styles.css', allChunks: true })
]

const prodPlugins = [
  new webpack.optimize.UglifyJsPlugin({ minimize: true })
]

const devPlugins = [
]


const plugins = process.env.BUILD_ENV === DEV 
  ? basePlugins.concat(devPlugins)
  : basePlugins.concat(prodPlugins)


const TSLoader = {
  test: /\.ts$/,
  loader: 'awesome-typescript-loader',
  exclude: /node_modules/
}

const SASSLoader = {<commit_msg>chore(META): use DefinePlugin<commit_after>const path = require('path')
const webpack = require('webpack')
const ExtractTextPlugin = require('extract-text-webpack-plugin')

const srcPath = path.resolve('./src')
const imagePath = path.resolve('./dist/images')
const vendorPath = path.resolve('./vendor')

const DEV = 'development'

if (!process.env.BUILD_ENV) {
  process.env.BUILD_ENV = DEV
}

const toString = x => JSON.stringify(x);

const Sparks = {
  buildEnv: toString(process.env.BUILD_ENV),
  firebase: {
    databaseURL: toString(process.env.FIREBASE_DATABASE_URL),
    apiKey: toString(process.env.FIREBASE_API_KEY),
    authDomain: toString(process.env.FIREBASE_AUTH_DOMAIN),
    storageBucket: toString(process.env.FIREBASE_STORAGE_BUCKET),
    messagingSenderId: toString(process.env.FIREBASE_MESSAGING_SENDER_ID),
  }
}

const basePlugins = [
  new webpack.EnvironmentPlugin([
    'BUILD_ENV',
    'FIREBASE_DATABASE_URL',
    'FIREBASE_API_KEY',
    'FIREBASE_AUTH_DOMAIN',
    'FIREBASE_STORAGE_BUCKET',
    'FIREBASE_MESSAGING_SENDER_ID'
  ]),
  new webpack.DefinePlugin({ Sparks }),
  new ExtractTextPlugin({filename: 'styles.css', allChunks: true })
]

const prodPlugins = [
  new webpack.optimize.UglifyJsPlugin({ minimize: true })
]

const devPlugins = [
]


const plugins = process.env.BUILD_ENV === DEV 
  ? basePlugins.concat(devPlugins)
  : basePlugins.concat(prodPlugins)


const TSLoader = {
  test: /\.ts$/,
  loader: 'awesome-typescript-loader',
  exclude: /node_modules/
}

const SASSLoader = {
{'fraction_non_alphanumeric': 0.13612774451097803, 'fraction_numerical': 0.0, 'mean_word_length': 4.7214611872146115, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '483033', 'n_tokens_mistral': 886, 'n_tokens_neox': 877, 'n_words': 151}