original_docstring: Return a friendly HTTP greeting.
docstring: Return a friendly HTTP greeting.
docstring_tokens: Return a friendly HTTP greeting .
code: def home():
      """Return a friendly HTTP greeting."""
      response = Response()
      response.headers['Content-Type'] = 'text/html'
      request_visits_cookie = request.cookies.get('visits')
      visits = 0
      if request_visits_cookie:
          val = check_secure_val(request_visits_cookie)
          if val:
              visits = int(val) + 1
      message = 'You have been here %s times' % visits
      response.headers.add_header('Set-Cookie', 'visits=%s' % make_secure_val(visits))
      response.data = home_html.format(message)
      return response
code_tokens: def home ( ) : response = Response ( ) response . headers [ 'Content-Type' ] = 'text/html' request_visits_cookie = request . cookies . get ( 'visits' ) visits = 0 if request_visits_cookie : val = check_secure_val ( request_visits_cookie ) if val : visits = int ( val ) + 1 message = 'You have been here %s times' % visits response . headers . add_header ( 'Set-Cookie' , 'visits=%s' % make_secure_val ( visits ) ) response . data = home_html . format ( message ) return response
short_docstring: Return a friendly HTTP greeting.
short_docstring_tokens: Return a friendly HTTP greeting .
comment: """Return a friendly HTTP greeting."""