<commit_before>#!/usr/bin/env python3
import sys
from os import path
from unittest import TestLoader, TextTestRunner

print("Python {}".format(sys.version))

if not '--test-installed' in sys.argv:
    libdir = path.join(path.abspath(path.curdir), 'lib')
    sys.path.insert(0, libdir)<commit_msg>use platform module for python info<commit_after>#!/usr/bin/env python3
import sys, platform
from os import path
from unittest import TestLoader, TextTestRunner

print("Python {} {} {}".format(platform.python_version(), platform.system(), platform.machine()))

if not '--test-installed' in sys.argv:
    libdir = path.join(path.abspath(path.curdir), 'lib')
    sys.path.insert(0, libdir)
{'fraction_non_alphanumeric': 0.14494875549048317, 'fraction_numerical': 0.005856515373352855, 'mean_word_length': 5.162162162162162, 'pattern_counts': {'":': 0, '<': 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': '3531107', 'n_tokens_mistral': 226, 'n_tokens_neox': 218, 'n_words': 57}