<commit_before>'use strict'
const path = require('path')
const express = require('express')
const httpProxy = require('http-proxy')
const webpack = require('webpack')
const webpackConfig = require('./client/webpack.dev.babel')
const config = require('./config')
const LogPlugin = require('./log-plugin')
const open = require('open')

const apiProxy = httpProxy.createProxyServer()
const app = express()
const {port} = config
webpackConfig.entry.client = [
  'react-hot-loader/patch',
  'webpack-hot-middleware/client?reload=true',
  webpackConfig.entry.client
]

webpackConfig.plugins.push(new LogPlugin(port))

let compiler

try {
  compiler = webpack(webpackConfig)
} catch (err) {
  console.log(err.message)
  process.exit(1)
}

const devMiddleWare = require('webpack-dev-middleware')(compiler, {
  publicPath: webpackConfig.output.publicPath,
  // @Metnew: personally I prefer `quite: "true"`
  quiet: false,<commit_msg>fix(webpack_config/server): add BASE_API default fallback<commit_after>'use strict'
const path = require('path')
const express = require('express')
const httpProxy = require('http-proxy')
const webpack = require('webpack')
const webpackConfig = require('./client/webpack.dev.babel')
const config = require('./config')
const LogPlugin = require('./log-plugin')
const open = require('open')

const apiProxy = httpProxy.createProxyServer()
const app = express()
const {port} = config
webpackConfig.entry.client = [
  'react-hot-loader/patch',
  'webpack-hot-middleware/client?reload=true',
  webpackConfig.entry.client
]

webpackConfig.plugins.push(new LogPlugin(port))
process.env.BASE_API = process.env.BASE_API || '/api/v1'

let compiler

try {
  compiler = webpack(webpackConfig)
} catch (err) {
  console.log(err.message)
  process.exit(1)
}

const devMiddleWare = require('webpack-dev-middleware')(compiler, {
  publicPath: webpackConfig.output.publicPath,
  // @Metnew: personally I prefer `quite: "true"`
  quiet: false,
{'fraction_non_alphanumeric': 0.14520266803488968, 'fraction_numerical': 0.0015392508978963571, 'mean_word_length': 5.565656565656566, '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': '3274955', 'n_tokens_mistral': 605, 'n_tokens_neox': 596, 'n_words': 132}