<commit_before>#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Spawns an interactive Python shell.

Usage:

    python pwb.py shell [args]

If no arguments are given, the pywikibot library will not be loaded.
"""
# (C) Pywikibot team, 2014-2018
#
# Distributed under the terms of the MIT license.
#
from __future__ import absolute_import, unicode_literals


def main(*args):
    """Script entry point."""
    env = None
    if args:
        import pywikibot
        pywikibot.handle_args(args)
        env = locals()

    import code
    code.interact("""Welcome to the Pywikibot interactive shell!""", local=env)


if __name__ == "__main__":
    import sys<commit_msg>[FEAT] Show the python version when starting pwb shell<commit_after>#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Spawns an interactive Python shell.

Usage:

    python pwb.py shell [args]

If no arguments are given, the pywikibot library will not be loaded.
"""
# (C) Pywikibot team, 2014-2018
#
# Distributed under the terms of the MIT license.
#
from __future__ import absolute_import, unicode_literals


def main(*args):
    """Script entry point."""
    env = None
    if args:
        import pywikibot
        pywikibot.handle_args(args)
        env = locals()

    import code
    code.interact("""Welcome to the Pywikibot interactive shell!""", local=env)


if __name__ == "__main__":
    import sys
    if sys.platform == 'win32':
        import os
        os.system('title Python {} Shell'.format(*sys.version.split(' ', 1)))
        del os
{'fraction_non_alphanumeric': 0.11725955204216074, 'fraction_numerical': 0.01383399209486166, 'mean_word_length': 3.1054054054054054, 'pattern_counts': {'":': 2, '<': 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': '3049902', 'n_tokens_mistral': 500, 'n_tokens_neox': 470, 'n_words': 158}