<commit_before>#!/usr/bin/env python2
"""Run executable or ansible playbook on localhost

This takes care of fetching the script, unpacking it if it is a tarball or
zip file and actually executing the script. If the script is an ansible
playbook, then it bootstraps a python virtualenv where it installs ansible.

Only system wide requirement is a python2 interpreter >= 2.4.

"""

import os
import sys
import glob
import copy
import random
import urllib
import logging
import tarfile
import zipfile
import tempfile
import subprocess


# these settings affect ansible playbooks
PYPI_URL = "https://pypi.python.org/packages/source/"
VENV_VERSION = "1.11.6"
ANSIBLE_VERSION = "1.7.2"


log = logging.getLogger(__name__)


def shellcmd(cmd, break_on_error=True):
    """Run a command using the shell"""
    log.debug("Running command '%s'.", cmd)<commit_msg>remove trailing slash from pypi url<commit_after>#!/usr/bin/env python2
"""Run executable or ansible playbook on localhost

This takes care of fetching the script, unpacking it if it is a tarball or
zip file and actually executing the script. If the script is an ansible
playbook, then it bootstraps a python virtualenv where it installs ansible.

Only system wide requirement is a python2 interpreter >= 2.4.

"""

import os
import sys
import glob
import copy
import random
import urllib
import logging
import tarfile
import zipfile
import tempfile
import subprocess


# these settings affect ansible playbooks
PYPI_URL = "https://pypi.python.org/packages/source"
VENV_VERSION = "1.11.6"
ANSIBLE_VERSION = "1.7.2"


log = logging.getLogger(__name__)


def shellcmd(cmd, break_on_error=True):
    """Run a command using the shell"""
    log.debug("Running command '%s'.", cmd)
{'fraction_non_alphanumeric': 0.07914500288850375, 'fraction_numerical': 0.012709416522241479, 'mean_word_length': 4.678688524590164, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '266859', 'n_tokens_mistral': 539, 'n_tokens_neox': 507, 'n_words': 214}