<commit_before>#!/usr/bin/env python3

import enforce


@enforce.runtime_validation
def generate_row(i, m, middle, corner):
    return (middle * (i * 2 + 1)).center(m, corner)


@enforce.runtime_validation
def door_mat(n: int, m: int, middle=".|.", corner="-"):
    s = str()
    for i in range(n // 2):
        s += generate_row(i, m, middle, corner) + '\n'
    s += "WELCOME".center(m, "-") + '\n'
    for i in reversed(range(n // 2)):
        s += generate_row(i, m, middle, corner) + '\n'
    return s


@enforce.runtime_validation
def main() -> None:
    print(door_mat(*map(int, input().strip().split())))


if __name__ == '__main__':
    main()<commit_msg>Minor improvements<commit_after>#!/usr/bin/env python3

import enforce


@enforce.runtime_validation
def generate_row(i, m, middle, corner) -> str:
    return (middle * (i * 2 + 1)).center(m, corner)


@enforce.runtime_validation
def door_mat(n: int, m: int, middle=".|.", corner="-") -> str:
    s = str()
    for i in range(n // 2):
        s += generate_row(i, m, middle, corner) + '\n'
    s += "WELCOME".center(m, "-") + '\n'
    for i in reversed(range(n // 2)):
        s += generate_row(i, m, middle, corner) + '\n'
    return s


@enforce.runtime_validation
def main() -> None:
    print(door_mat(*map(int, input().strip().split())))


if __name__ == '__main__':
    main()
{'fraction_non_alphanumeric': 0.19479553903345725, 'fraction_numerical': 0.007434944237918215, 'mean_word_length': 3.20625, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '5992439', 'n_tokens_mistral': 507, 'n_tokens_neox': 485, 'n_words': 128}