from typing import OrderedDict


def _set_table_column_names(names=None):
    """Define the table data columns to use in the html header.

    Parameters
    ----------
    names: collections.OrderedDict
        The dictionary of string column header names and their types
        Their types are the accepted google types

    """
    if (not isinstance(names, (OrderedDict)) and names is not None):
        raise TypeError("Expected names to be an OrderedDict")

    if names is None:
        names = OrderedDict([("Package Name", "string"),
                             ("Archived", "string"),
                             ("Astroconda-dev", "string"),
                             ("Astroconda-contrib", "string"),
                             ("Version", "string"),
                             ("Pulse", "string"),
                             ("Release/Tag/Commit--Information", "string"),
                             ("Last Released", "string"),
                             ("Author", "string"),
                             ("Last Commit", "string"),
                             ("Top commits", "string"),
                             ("Contributors", "number"),
                             ("Travis-CI", "string"),
                             ("RTD-latest", "string"),
                             ("Open Issues", "number"),
                             ("Closed Last Week", "number"),
                             ("Closed Last Month", "number"),
                             ("Avg issue time (days)", "number"),
                             ("Open PRs", "number"),
                             ("Commits per week", "number"),
                             ("Commits per month", "number"),
                             ("Forks", "number"),
                             ("Stars", "number"),
                             ("License", "string")])
    return names