<commit_before>'use-strict';

/**
 * Put a slash at the beginning of the given string.
 *
 * @param  {String} str    a string to be prepended
 * @param  {Boolean} [strict=false]    if it's true and the first parameter isn't a string, it throws a TypeError
 * @return {String}        the string with leading slash
 */
module.exports = function (str, strict) {
  strict = !!strict;
  if (strict && typeof str !== 'string') {
    throw new TypeError('Expected a string as the first parameter');
  }<commit_msg>strict is true by default<commit_after>'use-strict';

/**
 * Put a slash at the beginning of the given string.
 *
 * @param {String} str - a string to be prepended
 * @param {Boolean} [strict=true] - if it's true and the first parameter isn't a string, it throws a TypeError
 * @return {String} - the string with leading slash
 */
module.exports = function (str, strict) {
  strict = (typeof strict === 'undefined') ? true : !!strict;
  if (strict && typeof str !== 'string') {
    throw new TypeError('Expected a string as the first parameter');
  }
{'fraction_non_alphanumeric': 0.12298959318826869, 'fraction_numerical': 0.0, 'mean_word_length': 3.6200873362445414, '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': '7158548', 'n_tokens_mistral': 309, 'n_tokens_neox': 297, 'n_words': 134}