<commit_before>"""Signals sent by the Cart system

Signals:
"""
import django.dispatch

#: Sent when the balance goes to zero during a save.
order_success = django.dispatch.Signal()

#: Sent to check if an order can be cancelled.
order_cancel_query = django.dispatch.Signal()

#: Sent when order is cancelled (e.g. payment gateway cancels payment)
order_cancelled = django.dispatch.Signal()

#satchmo_cart_add_complete.send(cart, cart=cart, cartitem=cartitem, form=form, request=request)
satchmo_cart_add_complete=django.dispatch.Signal()

#satchmo_cart_add_verify(cart, cart=cart, cartitem=cartitem, added_quantity=Decimal('0'), details=details)
satchmo_cart_add_verify=django.dispatch.Signal()

#: Sent whenever the cart changes.
satchmo_cart_changed=django.dispatch.Signal()

#: Sent by the pricing system to allow price overrides when displaying line item
#: prices.
#satchmo_cartitem_price_query.send(cartitem, cartitem=cartitem)
satchmo_cartitem_price_query=django.dispatch.Signal()

#satchmo_cart_details_query.send(cart, product=product, quantity=quantity, details=details, request=request, formdata=formdata)
satchmo_cart_details_query=django.dispatch.Signal()

#: Sent by the order when its status has changed.
#satchmo_order_status_changed.send(self.order, oldstatus=oldstatus, newstatus=status, order=order)
satchmo_order_status_changed=django.dispatch.Signal()

#satchmo_post_copy_item_to_order.send(cart, cartitem=cartitem, order=order, orderitem=orderitem)
satchmo_post_copy_item_to_order=django.dispatch.Signal()

#: Sent by context_processor to optionally add more to the store context.
satchmo_context = django.dispatch.Signal()

#: Sent by 'views.smart_add` to allow listeners to optionally change the
#: responding function.
cart_add_view = django.dispatch.Signal()

#: Sent by the order during the calculation of the total.
#satchmo_shipping_price_query.send(order, adjustment=shipadjust)
satchmo_shipping_price_query = django.dispatch.Signal()<commit_msg>shop.signals: re-order signals<commit_after>import django.dispatch

"""
Signals sent by Orders
"""

#: Sent to check if an order can be cancelled.
order_cancel_query = django.dispatch.Signal()

#: Sent when order is cancelled (e.g. payment gateway cancels payment)
order_cancelled = django.dispatch.Signal()

#: Sent when the balance goes to zero during a save.
order_success = django.dispatch.Signal()

#: Sent by the order when its status has changed.
#satchmo_order_status_changed.send(self.order, oldstatus=oldstatus, newstatus=status, order=order)
satchmo_order_status_changed=django.dispatch.Signal()

"""
Signals sent by the Cart system
"""

#: Sent by 'views.smart_add` to allow listeners to optionally change the
#: responding function.
cart_add_view = django.dispatch.Signal()

#satchmo_cart_add_complete.send(cart, cart=cart, cartitem=cartitem, form=form, request=request)
satchmo_cart_add_complete=django.dispatch.Signal()

#satchmo_cart_add_verify(cart, cart=cart, cartitem=cartitem, added_quantity=Decimal('0'), details=details)
satchmo_cart_add_verify=django.dispatch.Signal()

#: Sent whenever the cart changes.
satchmo_cart_changed=django.dispatch.Signal()

#: Sent by the pricing system to allow price overrides when displaying line item
#: prices.
#satchmo_cartitem_price_query.send(cartitem, cartitem=cartitem)
satchmo_cartitem_price_query=django.dispatch.Signal()

#satchmo_cart_details_query.send(cart, product=product, quantity=quantity, details=details, request=request, formdata=formdata)
satchmo_cart_details_query=django.dispatch.Signal()

"""
Miscellaneous Signals
"""

#: Sent by context_processor to optionally add more to the store context.
satchmo_context = django.dispatch.Signal()

#satchmo_post_copy_item_to_order.send(cart, cartitem=cartitem, order=order, orderitem=orderitem)
satchmo_post_copy_item_to_order=django.dispatch.Signal()

#: Sent by the order during the calculation of the total.
#satchmo_shipping_price_query.send(order, adjustment=shipadjust)
satchmo_shipping_price_query = django.dispatch.Signal()
{'fraction_non_alphanumeric': 0.09637357178340784, 'fraction_numerical': 0.0004967709885742673, 'mean_word_length': 7.735357917570499, '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': '1072823', 'n_tokens_mistral': 1290, 'n_tokens_neox': 1231, 'n_words': 298}