<commit_before>from abc import ABCMeta, abstractmethod
import subprocess
import re
from time import sleep


# send a command to the shell and return the result
def cmd(cmd):
    return subprocess.Popen(
        cmd, shell=True,
        stdout=subprocess.PIPE, stderr=subprocess.STDOUT).stdout.read()<commit_msg>Both p27 and py34 seem to correctly support decode(), so this fixes py34 support on this library<commit_after>from abc import ABCMeta, abstractmethod
import subprocess
import re
from time import sleep


# send a command to the shell and return the result
def cmd(cmd):
    return subprocess.Popen(
        cmd, shell=True,
        stdout=subprocess.PIPE, stderr=subprocess.STDOUT
    ).stdout.read().decode()
{'fraction_non_alphanumeric': 0.07232267037552156, 'fraction_numerical': 0.008344923504867872, 'mean_word_length': 4.179856115107913, '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': '2057670', 'n_tokens_mistral': 210, 'n_tokens_neox': 200, 'n_words': 78}