<commit_before>import os
import commands
import subprocess
def getoutput(cmd, cwd):
    p = subprocess.Popen(cmd,
                         shell=True,
                         stdout=subprocess.PIPE,
                         cwd=cwd)
    out, _ = p.communicate()
    return out


def version_from_cachefile(root, cachefile=None):
    #XXX: for now we ignore root
    print cachefile
    if not cachefile:
        return
    #replaces 'with open()' from py2.6
    fd = open(cachefile)
    fd.readline()  # remove the comment
    version = None<commit_msg>remove messed print<commit_after>import os
import commands
import subprocess
def getoutput(cmd, cwd):
    p = subprocess.Popen(cmd,
                         shell=True,
                         stdout=subprocess.PIPE,
                         cwd=cwd)
    out, _ = p.communicate()
    return out


def version_from_cachefile(root, cachefile=None):
    #XXX: for now we ignore root
    if not cachefile:
        return
    #replaces 'with open()' from py2.6
    fd = open(cachefile)
    fd.readline()  # remove the comment
    version = None
{'fraction_non_alphanumeric': 0.08226691042047532, 'fraction_numerical': 0.003656307129798903, 'mean_word_length': 2.033240997229917, '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': '4113085', 'n_tokens_mistral': 335, 'n_tokens_neox': 321, 'n_words': 91}