<commit_before>
from google.appengine.api import users

import webapp2


class MainPage(webapp2.RequestHandler):

  def get(self):

      if users.get_current_user():
        url = users.create_logout_url(self.request.uri)
        url_linktext = 'Logout'
      else:
        url = users.create_login_url(self.request.uri)
        url_linktext = 'Login'

      self.response.write('Hello World')


application = webapp2.WSGIApplication([
    ('/', MainPage),
], debug=True)<commit_msg>Added HTML status and headers.<commit_after>
from google.appengine.api import users

import webapp2


class MainPage(webapp2.RequestHandler):

  def get(self):

      self.response.set_status(200)
      self.response.headers['Content-Type'] = 'text/html; charset=utf-8'

      if users.get_current_user():
        url = users.create_logout_url(self.request.uri)
        url_linktext = 'Logout'
      else:
        url = users.create_login_url(self.request.uri)
        url_linktext = 'Login'


      self.response.out.write('Hello World')


application = webapp2.WSGIApplication([
    ('/', MainPage),
], debug=True)
{'fraction_non_alphanumeric': 0.12, 'fraction_numerical': 0.00909090909090909, 'mean_word_length': 3.2840466926070038, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5722381', 'n_tokens_mistral': 366, 'n_tokens_neox': 347, 'n_words': 63}