huskar_api/models/infra/utils.py
def extract_application_names(urls):
    """Parses the Sam URLs and returns names of valid applications.

    :param urls: The list or dictionary of Sam URLs.
    :returns: The list or dictionary of application names.
    """
    if isinstance(urls, dict):
        iterator = (
            (key, extract_application_name(url))
            for key, url in urls.iteritems())
        return {key: name for key, name in iterator if name}
    iterator = (extract_application_name(url) for url in urls)
    return [name for name in iterator if name]
Parses the Sam URLs and returns names of valid applications.

    :param urls: The list or dictionary of Sam URLs.
    :returns: The list or dictionary of application names.
    
Parses the Sam URLs and returns names of valid applications.
Parses the Sam URLs and returns names of valid applications .
def extract_application_names(urls):
    if isinstance(urls, dict):
        iterator = (
            (key, extract_application_name(url))
            for key, url in urls.iteritems())
        return {key: name for key, name in iterator if name}
    iterator = (extract_application_name(url) for url in urls)
    return [name for name in iterator if name]
def extract_application_names ( urls ) : if isinstance ( urls , dict ) : iterator = ( ( key , extract_application_name ( url ) ) for key , url in urls . iteritems ( ) ) return { key : name for key , name in iterator if name } iterator = ( extract_application_name ( url ) for url in urls ) return [ name for name in iterator if name ]
Parses the Sam URLs and returns names of valid applications.
Parses the Sam URLs and returns names of valid applications .
"""Parses the Sam URLs and returns names of valid applications.

    :param urls: The list or dictionary of Sam URLs.
    :returns: The list or dictionary of application names.
    """
The list or dictionary of application names.
The list or dictionary of application names .
urls
The list or dictionary of Sam URLs.
The list or dictionary of Sam URLs .