<commit_before>import os
from libcloud.dns.providers import DRIVERS, get_driver as get_dns_driver
from libcloud.dns.types import Provider as DNSProvider


def env_vars():
    env_vars = {}
    for key in os.environ:
        if key.startswith('DNS_'):
            provider = key[4:].split('_')[0].lower()
            if provider not in env_vars:
                if provider in DRIVERS:
                    env_vars[provider.upper()] = {}
                elif key[4:].startswith('RACKSPACE_UK'):
                    provider = 'RACKSPACE_UK'
                    env_vars['RACKSPACE_UK'] = {}
                elif key[4:].startswith('RACKSPACE_US'):
                    provider = 'RACKSPACE_US'
                    env_vars['RACKSPACE_US'] = {}
            env_vars[provider.upper()] = os.getenv(key)
    return env_vars


def drivers(config_map):
    return (get_dns_driver(getattr(DNSProvider, provider))
            for provider in config_map)

if __name__ == '__main__':
    print(True)<commit_msg>set k:v correctly<commit_after>import os
from libcloud.dns.providers import DRIVERS, get_driver as get_dns_driver
from libcloud.dns.types import Provider as DNSProvider


def env_vars():
    env_vars = {}
    for key in os.environ:
        if key.startswith('DNS_'):
            provider = key[4:].split('_')[0].lower()
            if provider not in env_vars:
                if provider in DRIVERS:
                    env_vars[provider.upper()] = {}
                elif key[4:].startswith('RACKSPACE_UK'):
                    provider = 'RACKSPACE_UK'
                    env_vars['RACKSPACE_UK'] = {}
                elif key[4:].startswith('RACKSPACE_US'):
                    provider = 'RACKSPACE_US'
                    env_vars['RACKSPACE_US'] = {}
            sub_key = key[4:].split(provider.upper())[1][1:]
            env_vars[provider.upper()][sub_key] = os.getenv(key)
    return env_vars


def drivers(config_map):
    return (get_dns_driver(getattr(DNSProvider, provider))
            for provider in config_map)

if __name__ == '__main__':
    print(True)
{'fraction_non_alphanumeric': 0.11475409836065574, 'fraction_numerical': 0.005303760848601736, 'mean_word_length': 2.172782874617737, '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': '5223681', 'n_tokens_mistral': 661, 'n_tokens_neox': 647, 'n_words': 129}