<commit_before>#!/usr/bin/env python
import sys

def show_versions():
    print("\nINSTALLED VERSIONS")
    print("------------------")
    print("Python: %d.%d.%d.%s.%s" % sys.version_info[:])
    try:
        import os
        (sysname, nodename, release, version, machine) = os.uname()
        print("OS: %s %s %s %s" % (sysname, release, version,machine))
        print("byteorder: %s" % sys.byteorder)
        print("LC_ALL: %s" % os.environ.get('LC_ALL',"None"))
        print("LANG: %s" % os.environ.get('LANG',"None"))
    except:
        pass

    print("\nRequired Dependencies\n=====================\n")
    try:
        import Cython
        print("cython: %s" % Cython.__version__)
    except ImportError:
        print("cython: Not installed")

    try:
        import numpy
        print("numpy: %s" % numpy.version.version)
    except ImportError:
        print("numpy: Not installed")

    try:
        import scipy
        print("scipy: %s" % scipy.version.version)
    except ImportError:
        print("scipy: Not installed")

    try:
        import pandas
        print("pandas: %s" % pandas.version.version)
    except ImportError:
        print("pandas: Not installed")

    try:
        import patsy
        print("patsy: %s" % patsy.__version__)
    except ImportError:
        print("patsy: Not installed")

    print ("\nOptional Dependencies\n=====================\n")

    try:
        import matplotlib as mpl
        print("matplotlib: %s" % mpl.__version__)
    except ImportError:
        print("matplotlib: Not installed")

    try:
        from cvxopt import info
        print("cvxopt: %s" % info.version)
    except ImportError:
        print("cvxopt: Not installed")


    print("\n")

if __name__ == "__main__":
    show_versions()<commit_msg>MAINT: Add developer tool versions.<commit_after>#!/usr/bin/env python
import sys

def show_versions():
    print("\nINSTALLED VERSIONS")
    print("------------------")
    print("Python: %d.%d.%d.%s.%s" % sys.version_info[:])
    try:
        import os
        (sysname, nodename, release, version, machine) = os.uname()
        print("OS: %s %s %s %s" % (sysname, release, version,machine))
        print("byteorder: %s" % sys.byteorder)
        print("LC_ALL: %s" % os.environ.get('LC_ALL',"None"))
        print("LANG: %s" % os.environ.get('LANG',"None"))
    except:
        pass

    print("\nRequired Dependencies\n=====================\n")
    try:
        import Cython
        print("cython: %s" % Cython.__version__)
    except ImportError:
        print("cython: Not installed")

    try:
        import numpy
        print("numpy: %s" % numpy.version.version)
    except ImportError:
        print("numpy: Not installed")

    try:
        import scipy
        print("scipy: %s" % scipy.version.version)
    except ImportError:
        print("scipy: Not installed")

    try:
        import pandas
        print("pandas: %s" % pandas.version.version)
    except ImportError:
        print("pandas: Not installed")

    try:
        import patsy
        print("patsy: %s" % patsy.__version__)
    except ImportError:
        print("patsy: Not installed")

    print("\nOptional Dependencies\n=====================\n")

    try:
        import matplotlib as mpl
        print("matplotlib: %s" % mpl.__version__)
    except ImportError:
        print("matplotlib: Not installed")

    try:
        from cvxopt import info
        print("cvxopt: %s" % info.version)
    except ImportError:
        print("cvxopt: Not installed")

    print("\nDeveloper Tools\n================\n")

    try:
        import IPython
        print("IPython: %s" % IPython.__version__)
    except ImportError:
        print("IPython: Not installed")
    try:
        import jinja2
        print("    jinja2: %s" % jinja2.__version__)
    except ImportError:
        print("    jinja2: Not installed")

    try:
        import sphinx
        print("sphinx: %s" % sphinx.__version__)
    except ImportError:
        print("sphinx: Not installed")

    try:
        import pygments
        print("    pygments: %s" % pygments.__version__)
    except ImportError:
        print("    pygments: Not installed")

    try:
        import nose
        print("nose: %s" % nose.__version__)
    except ImportError:
        print("nose: Not installed")

    try:
        import virtualenv
        print("virtualenv: %s" % virtualenv.__version__)
    except ImportError:
        print("virtualenv: Not installed")

    print("\n")

if __name__ == "__main__":
    show_versions()
{'fraction_non_alphanumeric': 0.15759312320916904, 'fraction_numerical': 0.0008816398501212255, 'mean_word_length': 2.3639733135656043, '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': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2868679', 'n_tokens_mistral': 1444, 'n_tokens_neox': 1382, 'n_words': 336}