<commit_before>// Author: <NAME>  (<EMAIL>)
// Date:   03/12/2002
// JavaScript Lucene Query Validator
// Version: $Id$

// validates a lucene query.
// @param Form field that contains the query
function doCheckLuceneQuery(queryField)
{
  var wildcardCaseInsensitive = true;
  var query = queryField.value;
  if(query != null && query.length > 0)
  {
    var matches = query.match(/^(\*)|([^a-zA-Z0-9_]\*)/);<commit_msg>Added mutator for wildcardCaseInsensitive.<commit_after>// Author: <NAME>  (<EMAIL>)
// Date:   03/12/2002
// JavaScript Lucene Query Validator
// Version: $Id$

// Makes wildcard queries case-insensitive if true.
var wildcardCaseInsensitive = true;

// Mutator method for wildcardCaseInsensitive.
// @param Should wildcard queries be case-insensitive?
function setWildcardCaseInsensitive(bool)
{
  wildcardCaseInsensitive = bool;
}

// validates a lucene query.
// @param Form field that contains the query
function doCheckLuceneQuery(queryField)
{
  var query = queryField.value;
  if(query != null && query.length > 0)
  {
    var matches = query.match(/^(\*)|([^a-zA-Z0-9_]\*)/);
{'fraction_non_alphanumeric': 0.1441523118766999, 'fraction_numerical': 0.019945602901178604, 'mean_word_length': 3.9066666666666667, 'pattern_counts': {'":': 0, '<': 7, '<?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': '1117442', 'n_tokens_mistral': 378, 'n_tokens_neox': 359, 'n_words': 98}