def _map_args(repo, args):
    """
    Maps a set of arguments to a predefined set of values. Currently only
    __REPO__ is support and will be replaced with the repository name.

    :param repo: The repo name used for mapping.
    :type repo: str
    :param args: An array of arguments to map.
    :type args: list
    :rtype: list
    """
    arg_map = {'__REPO__': repo}
    mapped_args = []
    for arg in args:
        mapped_args.append(arg_map.get(arg, arg))
    return mapped_args