<commit_before>from pyscreenshot import backend_version
import pyscreenshot


def print_name_version(name, version):
    s = '{:<20} {}'.format(name, version)
    print(s)


def print_versions():
    print_name_version('pyscreenshot', pyscreenshot.__version__)

    for name in pyscreenshot.backends():
        v = backend_version(name, childprocess=True)
        if not v:
            v = 'missing'
        print_name_version(name, v)

if __name__ == '__main__':
    print_versions()
<commit_msg>versions.py: print python version<commit_after>import platform
from pyscreenshot import backend_version
import pyscreenshot


def print_name_version(name, version):
    s = '{:<20} {}'.format(name, version)
    print(s)


def print_versions():
    print_name_version('python', platform.python_version())
    print_name_version('pyscreenshot', pyscreenshot.__version__)

    for name in pyscreenshot.backends():
        v = backend_version(name, childprocess=True)
        if not v:
            v = 'missing'
        print_name_version(name, v)


if __name__ == '__main__':
    print_versions()

{'fraction_non_alphanumeric': 0.10815765352887259, 'fraction_numerical': 0.0036663611365719525, 'mean_word_length': 3.8533333333333335, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3372719', 'n_tokens_mistral': 351, 'n_tokens_neox': 351, 'n_words': 79}