<commit_before># coding: utf-8

""" Parsing inputs into a payload """

from __future__ import division, print_function

__author__ = "<NAME> <<EMAIL>>"

# Standard library
import datetime
import time

__all__ = ["rows", "ordering", "dates", "start"]

def query(query, title, author):

    query_refinement = ""

    if query is not None:
        query_refinement += query

    else:
        query_refinement += " * "

    if author is not None:
        query_refinement += " author:\"{0}\"".format(author)

    if title is not None:
        query_refinement += " title:\"{0}\"".format(title)

    return query_refinement.strip()


def acknowledgements(acknowledgement=None):
    """Creates a parser based on the acknowledgement input."""

    if acknowledgement is None: return

    try:
        acknowledgement = str(acknowledgement)
    except TypeError:
        raise TypeError("acknowledgement must be a string-type")<commit_msg>Force minimum query length to be 2 characters<commit_after># coding: utf-8

""" Parsing inputs into a payload """

from __future__ import division, print_function

__author__ = "<NAME> <<EMAIL>>"

# Standard library
import datetime
import time

__all__ = ["rows", "ordering", "dates", "start"]

def query(query, title, author):

    query_refinement = ""

    if query is not None:
        query_refinement += query

    else:
        query_refinement += " * "

    if author is not None:
        query_refinement += " author:\"{0}\"".format(author)

    if title is not None:
        query_refinement += " title:\"{0}\"".format(title)

    return query_refinement.strip() + " "


def acknowledgements(acknowledgement=None):
    """Creates a parser based on the acknowledgement input."""

    if acknowledgement is None: return

    try:
        acknowledgement = str(acknowledgement)
    except TypeError:
        raise TypeError("acknowledgement must be a string-type")
{'fraction_non_alphanumeric': 0.11607142857142858, 'fraction_numerical': 0.003676470588235294, 'mean_word_length': 3.3592677345537756, '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': '2300967', 'n_tokens_mistral': 584, 'n_tokens_neox': 536, 'n_words': 172}