def get(self, name=None, arg=None):
    """Handle GET."""

    if name == 'summary':
      summary = summary_module.GetComputerSummary()
      models.ReportsCache.SetStatsSummary(summary)
    elif name == 'installcounts':
      _GenerateInstallCounts()
    elif name == 'trendinginstalls':
      if arg:
        try:
          kwargs = {'since_hours': int(arg)}
        except __HOLE__:
          kwargs = {}
      else:
        kwargs = {}
      _GenerateTrendingInstallsCache(**kwargs)
    elif name == 'pendingcounts':
      self._GeneratePendingCounts()
    elif name == 'msu_user_summary':
      if arg:
        try:
          kwargs = {'since_days': int(arg)}
        except ValueError:
          kwargs = {}
      else:
        kwargs = {}
      self._GenerateMsuUserSummary(**kwargs)
    else:
      logging.warning('Unknown ReportsCache cron requested: %s', name)
      self.response.set_status(404)
dataset/ETHPy150Open google/simian/src/simian/mac/cron/reports_cache.py/ReportsCache.get