original_docstring: Create Announcement & assign to memcache; used by
          memcache cron job & putAnnouncement().
          
docstring: Create Announcement & assign to memcache; used by
  memcache cron job & putAnnouncement().
docstring_tokens: Create Announcement & assign to memcache ; used by memcache cron job & putAnnouncement () .
code: def _cacheAnnouncement():
          """Create Announcement & assign to memcache; used by
          memcache cron job & putAnnouncement().
          """
          confs = Conference.query(ndb.AND(
              Conference.seatsAvailable <= 5,
              Conference.seatsAvailable > 0)
          ).fetch(projection=[Conference.name])
  
          if confs:
              # If there are almost sold out conferences,
              # format announcement and set it in memcache
              announcement = ANNOUNCEMENT_TPL % (
                  ', '.join(conf.name for conf in confs))
              memcache.set(MEMCACHE_ANNOUNCEMENTS_KEY, announcement)
          else:
              # If there are no sold out conferences,
              # delete the memcache announcements entry
              announcement = ""
              memcache.delete(MEMCACHE_ANNOUNCEMENTS_KEY)
  
          return announcement
code_tokens: def _cacheAnnouncement ( ) : confs = Conference . query ( ndb . AND ( Conference . seatsAvailable <= 5 , Conference . seatsAvailable > 0 ) ) . fetch ( projection = [ Conference . name ] ) if confs : announcement = ANNOUNCEMENT_TPL % ( ', ' . join ( conf . name for conf in confs ) ) memcache . set ( MEMCACHE_ANNOUNCEMENTS_KEY , announcement ) else : announcement = "" memcache . delete ( MEMCACHE_ANNOUNCEMENTS_KEY ) return announcement
short_docstring: Create Announcement & assign to memcache; used by
  memcache cron job & putAnnouncement().
short_docstring_tokens: Create Announcement & assign to memcache ; used by memcache cron job & putAnnouncement () .
comment: """Create Announcement & assign to memcache; used by
          memcache cron job & putAnnouncement().
          """$SEP$# If there are almost sold out conferences,
  $SEP$# format announcement and set it in memcache
  $SEP$# If there are no sold out conferences,
  $SEP$# delete the memcache announcements entry
  