<commit_before>import subprocess, os, urllib, sys
#install pip --windows only, I think--
def installPIP():
    import os, urllib,subprocess
    gimp_python=sys.executable[:-5]+'.exe'
    os.chdir(gimp_python[:-10])
    urllib.urlretrieve ("https://bootstrap.pypa.io/get-pip.py", "get-pip.py")
    return subprocess.call("python get-pip.py")


#install module using PIP install, provide module name as string
def pipInstall(module):
    import os, urllib, subprocess
    gimp_python=sys.executable[:-5]+'.exe'
    os.chdir(gimp_python[:-10])
    print "python -m pip install "+module
    return subprocess.call("python -m pip install "+module)
<commit_msg>Removed os change dir and replace with using full path<commit_after>import os
import subprocess
import sys
import urllib


#install pip --windows only, I think--
def installPIP():
    urllib.urlretrieve ("https://bootstrap.pypa.io/get-pip.py", "get-pip.py")
    return subprocess.call(os.path.join(sys.executable, "get-pip.py"))


#install module using PIP install, provide module name as string
def pipInstall(module, print_out=1):
    gimp_python = os.path.join(sys.executable, " -m pip install ", module)
    if print_out == 1:
        print gimp_python
    return subprocess.call(gimp_python)
{'fraction_non_alphanumeric': 0.1286970423661071, 'fraction_numerical': 0.006394884092725819, 'mean_word_length': 4.131147540983607, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '7420242', 'n_tokens_mistral': 429, 'n_tokens_neox': 412, 'n_words': 111}