<commit_before>from decimal import Decimal
from typing import Iterable, Optional, Tuple

from django.db import transaction
from django.db.models import prefetch_related_objects
from prices import Money, TaxedMoney

from ..core.prices import quantize_price
from ..core.taxes import TaxError, zero_taxed_money
from ..discount import OrderDiscountType
from ..order.tests.test_calculations import TaxData
from ..plugins.manager import PluginsManager
from . import ORDER_EDITABLE_STATUS, utils
from .interface import OrderTaxedPricesData
from .models import Order, OrderLine


def _recalculate_order_prices(<commit_msg>Fix incorrect import from test file (#10337)<commit_after>from decimal import Decimal
from typing import Iterable, Optional, Tuple

from django.db import transaction
from django.db.models import prefetch_related_objects
from prices import Money, TaxedMoney

from ..core.prices import quantize_price
from ..core.taxes import TaxData, TaxError, zero_taxed_money
from ..discount import OrderDiscountType
from ..plugins.manager import PluginsManager
from . import ORDER_EDITABLE_STATUS, utils
from .interface import OrderTaxedPricesData
from .models import Order, OrderLine


def _recalculate_order_prices(
{'fraction_non_alphanumeric': 0.05098684210526316, 'fraction_numerical': 0.004111842105263158, 'mean_word_length': 6.244047619047619, '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': '2461719', 'n_tokens_mistral': 340, 'n_tokens_neox': 327, 'n_words': 120}