<commit_before>import threading
from apps.cowry_docdata.models import DocDataPaymentOrder, DocDataWebDirectDirectDebit, DocDataWebMenu
from apps.cowry_docdata.serializers import DocDataOrderProfileSerializer, DocDataPaymentMethodSerializer
from apps.fund.serializers import PaymentMethodSerializer
from django.contrib.contenttypes.models import ContentType
from apps.cowry import payments, factory
from apps.bluebottle_drf2.permissions import AllowNone
from apps.bluebottle_drf2.views import ListAPIView, RetrieveAPIView
from django.db import transaction
from rest_framework import status
from rest_framework import permissions
from rest_framework import response
from rest_framework import generics
from .models import Donation, OrderItem, Order
from .serializers import (DonationSerializer, OrderItemSerializer, OrderSerializer)
from .utils import get_order_payment_methods


# API views

class CurrentOrderMixin(object):
    """<commit_msg>Cleanup imports.<commit_after>import threading
from apps.cowry_docdata.models import DocDataPaymentOrder, DocDataWebDirectDirectDebit, DocDataWebMenu
from apps.cowry_docdata.serializers import DocDataOrderProfileSerializer, DocDataPaymentMethodSerializer
from apps.fund.serializers import PaymentMethodSerializer
from django.contrib.contenttypes.models import ContentType
from apps.cowry import payments, factory
from apps.bluebottle_drf2.permissions import AllowNone
from apps.bluebottle_drf2.views import ListAPIView, RetrieveAPIView
from rest_framework import status
from rest_framework import permissions
from rest_framework import response
from rest_framework import generics
from .models import Donation, OrderItem, Order
from .serializers import (DonationSerializer, OrderItemSerializer, OrderSerializer)
from .utils import get_order_payment_methods


# API views

class CurrentOrderMixin(object):
    """
{'fraction_non_alphanumeric': 0.042048517520215635, 'fraction_numerical': 0.00215633423180593, 'mean_word_length': 8.28, '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': '3554365', 'n_tokens_mistral': 472, 'n_tokens_neox': 473, 'n_words': 147}