<commit_before>#!/usr/bin/env python
# -*- coding: utf-8

from django.contrib.auth import get_user_model
from tastypie import resources
from tastycrust.resources import ActionResourceMixin, action


class UserResource(ActionResourceMixin, resources.ModelResource):
    class Meta:
        queryset = get_user_model().objects.all()
        resource_name = 'user'

    @property
    def urls(self):
        u = super(UserResource, self).urls
        return u

    @action()
    def login(self, request, *args, **kwargs):
        return self.create_response(request, kwargs)<commit_msg>Try action without calling<commit_after>#!/usr/bin/env python
# -*- coding: utf-8

from django.contrib.auth import get_user_model
from tastypie import resources
from tastycrust.resources import ActionResourceMixin, action


class UserResource(ActionResourceMixin, resources.ModelResource):
    class Meta:
        queryset = get_user_model().objects.all()
        resource_name = 'user'

    @property
    def urls(self):
        u = super(UserResource, self).urls
        return u

    @action
    def login(self, request, *args, **kwargs):
        return self.create_response(request, kwargs)
{'fraction_non_alphanumeric': 0.09855564995751911, 'fraction_numerical': 0.0016992353440951572, 'mean_word_length': 3.6015625, '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': '6175697', 'n_tokens_mistral': 343, 'n_tokens_neox': 335, 'n_words': 88}