<commit_before>#!/usr/bin/env python

import base
from base import login_required

from util.format import *
from model.model import *

class MeetingRequestController(base.BaseHandler):
        
    @login_required
    def dispatch(self):        
        super(MeetingController, self).dispatch()

    def get(self, meeting_id): # Returns the requests of a meeting

        results = []

        query = MeetingRequest.for_meeting(meeting_id)

        for request in query:
            results.append(request)

        self.respond(200, results)


    def post(self, meeting_id): # Posts a request to join a meeting

        request = MeetingRequest(parent=self.user_key, Key(Meeting, meeting_id))
        request.put()
        self.respond(201, request)<commit_msg>· Typo<commit_after>#!/usr/bin/env python

import base
from base import login_required

from util.format import *
from model.model import *

class MeetingRequestController(base.BaseHandler):
        
    @login_required
    def dispatch(self):        
        super(MeetingRequestController, self).dispatch()

    def get(self, meeting_id): # Returns the requests of a meeting

        results = []

        query = MeetingRequest.for_meeting(meeting_id)

        for request in query:
            results.append(request)

        self.respond(200, results)


    def post(self, meeting_id): # Posts a request to join a meeting

        # TODO Check if there's an invitation already
        request = MeetingRequest(parent=self.user_key, meeting=ndb.Key(Meeting, meeting_id))
        request.put()
        self.respond(201, request)
{'fraction_non_alphanumeric': 0.0869837296620776, 'fraction_numerical': 0.007509386733416771, 'mean_word_length': 2.871670702179177, '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': '2466565', 'n_tokens_mistral': 461, 'n_tokens_neox': 430, 'n_words': 121}