def __init__(self, project_name, cache_instance):
logger.debug('<STR_LIT>', project_name)<EOL>self.project_name = project_name<EOL>self.cache = cache_instance<EOL>self.cache_data = {}<EOL>self.cache_dates = self._get_cache_dates()<EOL>self.as_of_timestamp = self._cache_get(<EOL>self.cache_dates[-<NUM_LIT:1>])['<STR_LIT>']['<STR_LIT>']<EOL>self.as_of_datetime = datetime.fromtimestamp(<EOL>self.as_of_timestamp, utc).astimezone(get_localzone())<EOL>
Initialize a ProjectStats class for the specified project.
:param project_name: project name to calculate stats for
:type project_name: str
:param cache_instance: DataCache instance
:type cache_instance: :py:class:`~.DiskDataCache`