<commit_before># GPG utility library
from os import system
import logging
import gnupg


# clean GPG test directory on startup before proceeding with test
system('rm -rf /home/testgpguser/gpghome')
gpg = gnupg.GPG(gnupghome='/home/testgpguser/gpghome')

logger = logging.getLogger(__name__)


def gen_key(**kwargs):
    """ Generate new GPG key with possible parameters:
    key_type (default "RSA")
    key_length (default 1024)
    name_real (real name - default "Autogenerated Key")<commit_msg>Fix for gpg directory for move to OSX<commit_after># GPG utility library
from os import system
import logging
import gnupg


# clean GPG test directory on startup before proceeding with test
system('rm -rf gpghome')
gpg = gnupg.GPG(gnupghome='gpghome')

logger = logging.getLogger(__name__)


def gen_key(**kwargs):
    """ Generate new GPG key with possible parameters:
    key_type (default "RSA")
    key_length (default 1024)
    name_real (real name - default "Autogenerated Key")
{'fraction_non_alphanumeric': 0.08961303462321792, 'fraction_numerical': 0.008146639511201629, 'mean_word_length': 4.715116279069767, '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': '1584732', 'n_tokens_mistral': 325, 'n_tokens_neox': 299, 'n_words': 106}