<commit_before>'use strict'

let path = require('path'),
    bs   = require('browser-sync').create()

/**
 * Get a list of files to watch.
 * @returns {array} files
 */
const getFiles = function() {

	// Exclude the following files
	let excludedFiles = [
		'!**/.git',
		'!**/CVS',
		'!**/.svn',
		'!**/.hg',
		'!**/.lock-wscript',
		'!**/.wafpickle-N',
		'!**/*.swp',
		'!**/.DS_Store',
		'!**/._*',
		'!**/npm-debug.log',
		'!**/node_modules',
		'!**/bower_components'
	]

	// Include the following files
	let includedFiles = [
		'**/*'
	]

	// Return all ignored files
	return [
		...excludedFiles,
		...includedFiles
	]

}

/**
 * Serve a directory and reload the page when files change.
 * @public
 * @param {string} srcPath - Path to the source folder.
 * @param {function} rewrite - URL rewriting middleware.
 * @param {function} next - The callback that handles the response. Receives the following properties: err.
 */
module.exports = function(srcPath, rewrite, next) {

	// @todo merge bs defaults with opts

	let server = {
		baseDir    : 'src',
		middleware : rewrite
	}

	let defaults = {
		files     : getFiles(),
		notify    : false,
		ghostMode : false,
		server    : server,
		startPath : 'index.html'
	}

	bs.init(defaults)

	next()

}<commit_msg>Added correct srcPath and logPrefix<commit_after>'use strict'

let path = require('path'),
    bs   = require('browser-sync').create()

/**
 * Get a list of files to watch.
 * @returns {array} files
 */
const getFiles = function() {

	// Exclude the following files
	let excludedFiles = [
		'!**/.git',
		'!**/CVS',
		'!**/.svn',
		'!**/.hg',
		'!**/.lock-wscript',
		'!**/.wafpickle-N',
		'!**/*.swp',
		'!**/.DS_Store',
		'!**/._*',
		'!**/npm-debug.log',
		'!**/node_modules',
		'!**/bower_components'
	]

	// Include the following files
	let includedFiles = [
		'**/*'
	]

	// Return all ignored files
	return [
		...excludedFiles,
		...includedFiles
	]

}

/**
 * Serve a directory and reload the page when files change.
 * @public
 * @param {string} srcPath - Path to the source folder.
 * @param {function} rewrite - URL rewriting middleware.
 * @param {function} next - The callback that handles the response. Receives the following properties: err.
 */
module.exports = function(srcPath, rewrite, next) {

	// @todo merge bs defaults with opts

	let server = {
		baseDir    : srcPath,
		middleware : rewrite
	}

	let defaults = {
		logPrefix : 'Invo',
		files     : getFiles(),
		notify    : false,
		ghostMode : false,
		server    : server,
		startPath : 'index.html'
	}

	bs.init(defaults)

	next()

}
{'fraction_non_alphanumeric': 0.1792086889061288, 'fraction_numerical': 0.0, 'mean_word_length': 2.9075757575757577, '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': '6401069', 'n_tokens_mistral': 981, 'n_tokens_neox': 906, 'n_words': 244}