<commit_before>"""Stdout, stderr and argv support for unicode."""
##############################################
# Support for unicode in windows cmd.exe
# Posted on Stack Overflow [1], available under CC-BY-SA [2]
#
# Question: "Windows cmd encoding change causes Python crash" [3] by Alex [4],
# Answered [5] by <NAME> [6].
#
# [1] https://stackoverflow.com
# [2] https://creativecommons.org/licenses/by-sa/3.0/
# [3] https://stackoverflow.com/questions/878972
# [4] https://stackoverflow.com/users/85185
# [4] https://stackoverflow.com/a/3259271/118671
# [5] https://stackoverflow.com/users/393146
#
################################################
#
# stdin support added by <NAME> <<EMAIL>>, march 2012
# Licensed under both CC-BY-SA as the MIT license.
#
################################################
from __future__ import print_function
import sys
stdin = sys.stdin
stdout = sys.stdout
stderr = sys.stderr
argv = sys.argv

if sys.version_info[0] > 2:
    unicode = str
    PY3 = True
else:
    PY3 = False

if sys.platform == "win32":
    import codecs
    from ctypes import WINFUNCTYPE, windll, POINTER
    from ctypes import byref, c_int, create_unicode_buffer
    from ctypes.wintypes import BOOL, HANDLE, DWORD, LPWSTR, LPCWSTR<commit_msg>Minor documentation fixes<commit_after>"""Stdout, stderr and argv support for unicode."""
##############################################
# Support for unicode in windows cmd.exe
# Posted on Stack Overflow [1], available under CC-BY-SA 3.0 [2]
#
# Question: "Windows cmd encoding change causes Python crash" [3] by Alex [4],
# Answered [5] by <NAME> [6].
#
# [1] https://stackoverflow.com
# [2] https://creativecommons.org/licenses/by-sa/3.0/
# [3] https://stackoverflow.com/questions/878972
# [4] https://stackoverflow.com/users/85185
# [4] https://stackoverflow.com/a/3259271/118671
# [5] https://stackoverflow.com/users/393146
#
################################################
#
# stdin support added by <NAME> <<EMAIL>>, March 2012
# Licensed under both CC-BY-SA and the MIT license.
#
################################################
from __future__ import print_function
import sys
stdin = sys.stdin
stdout = sys.stdout
stderr = sys.stderr
argv = sys.argv

if sys.version_info[0] > 2:
    unicode = str
    PY3 = True
else:
    PY3 = False

if sys.platform == "win32":
    import codecs
    from ctypes import WINFUNCTYPE, windll, POINTER
    from ctypes import byref, c_int, create_unicode_buffer
    from ctypes.wintypes import BOOL, HANDLE, DWORD, LPWSTR, LPCWSTR
{'fraction_non_alphanumeric': 0.22675108824693313, 'fraction_numerical': 0.04352987732489118, 'mean_word_length': 4.630289532293987, 'pattern_counts': {'":': 2, '<': 11, '<?xml version=': 0, '>': 13, 'https://': 12, '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': '6070318', 'n_tokens_mistral': 863, 'n_tokens_neox': 776, 'n_words': 234}