<commit_before>

class TurbolinksMiddleware(object):

    def process_response(self, request, response):
        response['X-XHR-Current-Location'] = request.get_full_path()
        response.set_cookie('request_method') = request.method
        return response<commit_msg>fix the way cookies are set, courtesy of @max107<commit_after>class TurbolinksMiddleware(object):

    def process_response(self, request, response):
        response['X-XHR-Current-Location'] = request.get_full_path()
        response.set_cookie('request_method', request.method)
        return response
{'fraction_non_alphanumeric': 0.10416666666666667, 'fraction_numerical': 0.005208333333333333, 'mean_word_length': 4.443396226415095, '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': '4520329', 'n_tokens_mistral': 160, 'n_tokens_neox': 159, 'n_words': 32}