<commit_before># -*- coding: utf-8 -*-
from __future__ import unicode_literals, absolute_import

from rest_framework import status


class DestroyModelMixin(object):
    """
    Destroy a model instance. support for softdelete
    """
    def destroy(self, request, *args, **kwargs):
        instance = self.get_object()
        self.perform_destroy(instance)
        return Response(status=status.HTTP_204_NO_CONTENT)<commit_msg>response import on common mixins<commit_after># -*- coding: utf-8 -*-
from __future__ import unicode_literals, absolute_import

from rest_framework import status
from rest_framework.response import Response


class DestroyModelMixin(object):
    """
    Destroy a model instance. support for softdelete
    """
    def destroy(self, request, *args, **kwargs):
        instance = self.get_object()
        self.perform_destroy(instance)
        return Response(status=status.HTTP_204_NO_CONTENT)
{'fraction_non_alphanumeric': 0.09415584415584416, 'fraction_numerical': 0.008658008658008658, 'mean_word_length': 4.0271739130434785, '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': '1119937', 'n_tokens_mistral': 263, 'n_tokens_neox': 251, 'n_words': 69}