<commit_before>import graphene
from django.utils.translation import pgettext_lazy
from graphql_jwt.decorators import permission_required
from payments import PaymentError, PaymentStatus

from ....order import CustomPaymentChoices, OrderEvents, models
from ....order.utils import cancel_order
from ...account.types import AddressInput
from ...core.mutations import BaseMutation
from ...core.types.common import Decimal, Error
from ...order.mutations.draft_orders import DraftOrderUpdate
from ...order.types import Order, OrderEvent
from ...shipping.types import ShippingMethod
from ....shipping.models import ShippingMethod as ShippingMethodModel
from ....core.utils.taxes import ZERO_TAXED_MONEY


def clean_order_update_shipping(order, method, errors):<commit_msg>Sort improts<commit_after>import graphene
from django.utils.translation import pgettext_lazy
from graphql_jwt.decorators import permission_required
from payments import PaymentError, PaymentStatus

from ....core.utils.taxes import ZERO_TAXED_MONEY
from ....order import CustomPaymentChoices, OrderEvents, models
from ....order.utils import cancel_order
from ....shipping.models import ShippingMethod as ShippingMethodModel
from ...account.types import AddressInput
from ...core.mutations import BaseMutation
from ...core.types.common import Decimal, Error
from ...order.mutations.draft_orders import DraftOrderUpdate
from ...order.types import Order, OrderEvent
from ...shipping.types import ShippingMethod


def clean_order_update_shipping(order, method, errors):
{'fraction_non_alphanumeric': 0.08109875735775017, 'fraction_numerical': 0.0, 'mean_word_length': 5.538461538461538, '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': '1676621', 'n_tokens_mistral': 413, 'n_tokens_neox': 388, 'n_words': 130}