<commit_before>#!/usr/bin/env python

import os
from os.path import expanduser
home = expanduser("~")

prefixes = os.environ.get('ENV_PREFIXES', 'TRAVIS CI encrypt TOKEN TESTS').split(' ')
env_file = os.environ.get('ENV_FILE', os.path.join(home, 'env'))
with open(env_file, 'wt') as env:
    for k,v in os.environ.items():
        for pref in prefixes:
            if k.startswith(pref):
                env.write('{}="{}"\n'.format(k,v))<commit_msg>[ci] strip quotes from env var<commit_after>#!/usr/bin/env python

import os
from os.path import expanduser
home = expanduser("~")

prefixes = os.environ.get('ENV_PREFIXES', 'TRAVIS CI encrypt TOKEN TESTS').split(' ')
env_file = os.environ.get('ENV_FILE', os.path.join(home, 'env'))
with open(env_file, 'wt') as env:
    for k,v in os.environ.items():
        for pref in prefixes:
            if k.startswith(pref):
                env.write('{}={}\n'.format(k,v))
{'fraction_non_alphanumeric': 0.1726775956284153, 'fraction_numerical': 0.0, 'mean_word_length': 3.4901960784313726, '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': '5554022', 'n_tokens_mistral': 329, 'n_tokens_neox': 325, 'n_words': 78}