<commit_before>/*
utils.js
Module that provides utility functions to beer.js

Copyright (c) 2014

<NAME>

*/

module.exports = {
	// type safe trim function
	// returns a trimmed string
	trim: function(s) {
		// only invoke trim() if a string was passed in
		if (typeof s === 'string') { 
			s = s.trim().replace('\n', '').replace('\t', '');
		}
		return s;
	},

	// returns a "kicked" beer object
	getKickedBeer: function(i) {
		return {
			number: i,
			name: 'KICKED!',
			addl: '',
			brewery: '--',
			style: '--',
			abv: '--',<commit_msg>Pickiness<commit_after>/*
utils.js
Module that provides utility functions to beer.js

Copyright (c) 2014

<NAME>

*/

module.exports = {
	// type safe trim function
	// returns a trimmed string
	trim: function(s) {
		// only invoke trim() if a string was passed in
		if (typeof s === 'string') { 
			s = s.trim().replace('\n', '').replace('\t', '');
		}
		return s;
	},

	// returns a "kicked" beer object
	getKickedBeer: function(i) {
		return {
			number: i,
			name: 'KICKED!',
			addl: null,
			brewery: '--',
			style: '--',
			abv: '--',
{'fraction_non_alphanumeric': 0.18382352941176472, 'fraction_numerical': 0.007352941176470588, 'mean_word_length': 2.7681660899653977, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3987900', 'n_tokens_mistral': 448, 'n_tokens_neox': 400, 'n_words': 117}