<commit_before>import os
from configparser import ConfigParser
from io import StringIO

from .vimdecrypt import decryptfile

config_file = os.path.join(
    os.getcwd(),
    '.featuredeploy',
    'config.ini')

environment_file = os.path.join(
    os.getcwd(),
    '.featuredeploy',
    'environment.ini')

startup_file = os.path.join(
    os.getcwd(),
    '.featuredeploy',
    'startup')


def vim_decrypt_file(fname, password):
    with open(fname, 'rb') as fp:
        args = type('Args', (), {'verbose': False})
        text = decryptfile(fp.read(), password, args)
        return StringIO(text)


def get_encrypt_key():
    try:
        return os.environ['SECRET_KEY']
    except KeyError:
        with open('.encrypt_key') as f:
            content = f.read()
            content = content.rstrip('\n')
            return content<commit_msg>another try<commit_after>import os
from configparser import ConfigParser
from io import BytesIO

from .vimdecrypt import decryptfile

config_file = os.path.join(
    os.getcwd(),
    '.featuredeploy',
    'config.ini')

environment_file = os.path.join(
    os.getcwd(),
    '.featuredeploy',
    'environment.ini')

startup_file = os.path.join(
    os.getcwd(),
    '.featuredeploy',
    'startup')


def vim_decrypt_file(fname, password):
    with open(fname, 'rb') as fp:
        args = type('Args', (), {'verbose': False})
        text = decryptfile(fp.read(), password, args)
        return BytesIO(text)


def get_encrypt_key():
    try:
        return os.environ['SECRET_KEY']
    except KeyError:
        with open('.encrypt_key') as f:
            content = f.read()
            content = content.rstrip('\n')
            return content
{'fraction_non_alphanumeric': 0.13238770685579196, 'fraction_numerical': 0.0, 'mean_word_length': 2.7622222222222224, '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': '745329', 'n_tokens_mistral': 559, 'n_tokens_neox': 561, 'n_words': 128}