<commit_before>from datetime import datetime


# Welcome
WELCOME_TITLE = "Christ Church Mayfair Assistant"
WELCOME_CONTENT = "Welcome! Ask me for the bible reading for a service or a past sermon."

# End session
END_SESSION_TITLE = "See you later!"
END_SESSION_CONTENT = "Thanks for using Christ Church Mayfair Assistant!"

# Get passage
GET_PASSAGE_TITLE = "Bible reading for {date} {service} service"
GET_PASSAGE_CONTENT = u"{passage_text}\n{passage} ({bible_translation})"


def get_passage_title(date, service):
    if 4 <= date.day <= 20 or 24 <= date.day <= 30:
        day_suffix = "th"
    else:
        day_suffix = ["st", "nd", "rd"][date.day % 10 - 1]

    date_text = "{day}{day_suffix} {month_year}".format(day=str(date.day), day_suffix=day_suffix,
                                                        month_year=date.strftime("%B %Y"))
    service_text = "AM" if service == "morning" else "PM"
    return GET_PASSAGE_TITLE.format(date=date_text, service=service_text)


# Get sermon
GET_SERMON_TITLE = "{sermon_title}"
GET_SERMON_CONTENT = "{passage}\n{series_name}\n{speaker}"

# Get next event


def get_next_event_title(event_title, event_datetime):
    date_string = datetime.strftime(event_datetime, "%A %d %B")
    time_string = datetime.strftime(event_datetime, "%H:%m")
    return "{event_title} - {time_string} at {date_string}".format(event_title=event_title,
                                                                   time_string=time_string,
                                                                   date_string=date_string)


def get_next_event_content(event_description, event_location_name, event_location_address):
    return (
        "{event_description}\n{event_location_name}\n{event_location_address}".format(
            event_description=event_description,
            event_location_name=event_location_name,
            event_location_address=event_location_address
        )
        if event_description
        else "{event_location_name}\n{event_location_address}".format(
            event_location_name=event_location_name,
            event_location_address=event_location_address))<commit_msg>correct speech next event time format<commit_after>from datetime import datetime


# Welcome
WELCOME_TITLE = "Christ Church Mayfair Assistant"
WELCOME_CONTENT = "Welcome! Ask me for the bible reading for a service or a past sermon."

# End session
END_SESSION_TITLE = "See you later!"
END_SESSION_CONTENT = "Thanks for using Christ Church Mayfair Assistant!"

# Get passage
GET_PASSAGE_TITLE = "Bible reading for {date} {service} service"
GET_PASSAGE_CONTENT = u"{passage_text}\n{passage} ({bible_translation})"


def get_passage_title(date, service):
    if 4 <= date.day <= 20 or 24 <= date.day <= 30:
        day_suffix = "th"
    else:
        day_suffix = ["st", "nd", "rd"][date.day % 10 - 1]

    date_text = "{day}{day_suffix} {month_year}".format(day=str(date.day), day_suffix=day_suffix,
                                                        month_year=date.strftime("%B %Y"))
    service_text = "AM" if service == "morning" else "PM"
    return GET_PASSAGE_TITLE.format(date=date_text, service=service_text)


# Get sermon
GET_SERMON_TITLE = "{sermon_title}"
GET_SERMON_CONTENT = "{passage}\n{series_name}\n{speaker}"

# Get next event


def get_next_event_title(event_title, event_datetime):
    date_string = datetime.strftime(event_datetime, "%A %d %B")
    time_string = datetime.strftime(event_datetime, "%H:%M")
    return "{event_title} - {time_string} at {date_string}".format(event_title=event_title,
                                                                   time_string=time_string,
                                                                   date_string=date_string)


def get_next_event_content(event_description, event_location_name, event_location_address):
    return (
        "{event_description}\n{event_location_name}\n{event_location_address}".format(
            event_description=event_description,
            event_location_name=event_location_name,
            event_location_address=event_location_address
        )
        if event_description
        else "{event_location_name}\n{event_location_address}".format(
            event_location_name=event_location_name,
            event_location_address=event_location_address))
{'fraction_non_alphanumeric': 0.09903270382312299, 'fraction_numerical': 0.004606172270842929, 'mean_word_length': 3.104914933837429, 'pattern_counts': {'":': 0, '<': 11, '<?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': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6906532', 'n_tokens_mistral': 1336, 'n_tokens_neox': 1269, 'n_words': 262}