<commit_before>"""
Module to launch python jobs with new branch in a temporary location.
"""

import tempfile
import os
from subprocess import Popen, PIPE, call
import shutil

def gitCommand(cmd, verbose=False):    
    p = Popen(['git'] + cmd, shell=False, stdin=PIPE, stdout=PIPE, stderr=PIPE, close_fds=True)
    p.wait()
    out = p.stdout.read()
    if verbose:
        print out
        print p.stderr.read()
    return out

def gitTopLevel():
    return gitCommand(['rev-parse', '--show-toplevel']).split()[0]<commit_msg>Adding verbose argument to gitTopLevel<commit_after>"""
Module to launch python jobs with new branch in a temporary location.
"""

import tempfile
import os
from subprocess import Popen, PIPE, call
import shutil

def gitCommand(cmd, verbose=False):    
    p = Popen(['git'] + cmd, shell=False, stdin=PIPE, stdout=PIPE, stderr=PIPE, close_fds=True)
    p.wait()
    out = p.stdout.read()
    if verbose:
        print out
        print p.stderr.read()
    return out

def gitTopLevel(verbose=False):
    return gitCommand(['rev-parse', '--show-toplevel'], verbose=verbose).split()[0]
{'fraction_non_alphanumeric': 0.1269126912691269, 'fraction_numerical': 0.0018001800180018, 'mean_word_length': 3.793103448275862, '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': '3986408', 'n_tokens_mistral': 362, 'n_tokens_neox': 354, 'n_words': 108}