<commit_before>/**
 * represents a query to the datastore
 * @property q the query string that is used to search documents in the datastore
 * @property type restricts results to the given type
 * @property contraints restricts the search result further to match some fields.
 *   it can be interpreted as additional AND queries. A given contraint of
 *   { 'resource.relations.isRecordedIn' : 'id1' } would mean that the search result
 *   contains the results which match the other properties of the query and which
 *   also match the given search term in the given field exactly.
 * @property prefix instead of matching whole tokens (default) treat the query
 *   string as a prefix that has to occur in the tokens of matching documents
 */
export interface Query {
    q: string;
    type?: string;<commit_msg>make q optional and add jsdoc<commit_after>/**
 * represents a query to the datastore
 * @property q the query string that is used to search documents in the datastore
 * @property type restricts results to the given type
 * @property contraints restricts the search result further to match some fields.
 *   you can think of them as search terms that must be matched exactly. They are
 *   combined with each other and with the q term with AND, meaning that a search has to
 *   satisfy all the constraints (if defined) as well as to match q (at least partially) and
 *   type (if defined). A given contraint of
 *   { 'resource.relations.isRecordedIn' : 'id1' } would mean that the search result
 *   contains the results which match the other properties of the query and which
 *   also match the given search term in the given field exactly.
 * @property prefix instead of matching whole tokens (default) treat the query
 *   string as a prefix that has to occur in the tokens of matching documents
 */
export interface Query {
    q?: string;
    type?: string;
{'fraction_non_alphanumeric': 0.051036682615629984, 'fraction_numerical': 0.001063264221158958, 'mean_word_length': 3.7766497461928936, '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': '5870287', 'n_tokens_mistral': 454, 'n_tokens_neox': 449, 'n_words': 279}