

def get(configuration=None):
    'Return a configuration based on name or environment variable'
    if (configuration is None):
        configuration = os.getenv(CONFIG_ENV_VAR)
    if (configuration is None):
        if (os.getenv('USER') == 'ianozsvald'):
            configuration = 'deploy'
        elif (os.getenv('USER') == 'ian'):
            configuration = 'dev'
    for c in configurations:
        if (c.name == configuration):
            conf = configuration()
            return conf
    assert False, 'You must choose a configuration'

dataset/ETHPy150Open ianozsvald/learning_text_transformer/learning_text_transformer/config.py get/VarMisuse@101/143 `c`->`configuration`