<commit_before>/*!
 * search-query-parser.js
 * Copyright(c) 2014 <NAME> <<EMAIL>>
 * MIT Licensed
 */

exports.parse = function (string, options) {

  // Set an empty options object when none provided
  if (!options) {
    options = {};
  }

  // Regularize white spacing<commit_msg>set an empty string when string was not provided<commit_after>/*!
 * search-query-parser.js
 * Copyright(c) 2014 <NAME> <<EMAIL>>
 * MIT Licensed
 */

exports.parse = function (string, options) {

  // Set an empty options object when none provided
  if (!options) {
    options = {};
  }

  if (!string) {
    string = '';
  }

  // Regularize white spacing
{'fraction_non_alphanumeric': 0.14174454828660435, 'fraction_numerical': 0.012461059190031152, 'mean_word_length': 3.0955414012738856, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '328215', 'n_tokens_mistral': 207, 'n_tokens_neox': 191, 'n_words': 62}