<commit_before><configure xmlns="http://namespaces.zope.org/zope"
           xmlns:five="http://namespaces.zope.org/five"
           xmlns:i18n="http://namespaces.zope.org/i18n"
           xmlns:zcml="http://namespaces.zope.org/zcml"
           i18n_domain="bda.plone.orders">

  <include package="yafowil.plone" />
  <include package="souper.plone"/>
  <include package="collective.js.jqueryui"/>
  <include package="collective.js.datatables"/>
  <include package="bda.plone.checkout"/>
  <include package="bda.plone.discount"/>

  <i18n:registerTranslations directory="locales"/>

  <include file="permissions.zcml"/>
  <include file="profiles.zcml"/>
  <include file="upgrades.zcml"/>
  <include package=".browser"/>

  <!-- roles -->
  <utility name="Vendor" factory=".localroles.VendorRole" />
  <utility name="Customer" factory=".localroles.CustomerRole" />

  <!-- indexing -->
  <adapter
    name="customer_role"
    factory=".indexer.customer_role" />

  <!-- subscribers -->
  <subscriber
    for="zope.interface.Interface
         plone.app.workflow.interfaces.ILocalrolesModifiedEvent"
    handler=".subscriber.reindex_customer_role" />

  <!-- souper soups -->
  <utility
    name="bda_plone_orders_bookings"
    factory=".common.BookingsCatalogFactory"/>

  <utility
    name="bda_plone_orders_orders"
    factory=".common.OrdersCatalogFactory"/>

  <!-- order checkout adapter -->
  <!-- TODO: checkout adapter for ISite? -->
  <!--adapter
    for="zope.component.interfaces.ISite
         zope.publisher.interfaces.browser.IBrowserRequest"
    factory=".common.OrderCheckoutAdapter"/-->

  <adapter
    zcml:condition="installed Products.Archetypes"
    for="Products.Archetypes.interfaces.IBaseObject
         zope.publisher.interfaces.browser.IBrowserRequest"
    factory=".common.OrderCheckoutAdapter"/>

  <adapter
    zcml:condition="installed plone.dexterity"
    for="plone.dexterity.interfaces.IDexterityContent
         zope.publisher.interfaces.browser.IBrowserRequest"
    factory=".common.OrderCheckoutAdapter"/>

  <!-- payment data adapter -->
  <adapter
    zcml:condition="installed Products.Archetypes"
    for="Products.Archetypes.interfaces.IBaseObject"
    factory=".common.PaymentData"/><commit_msg>checkout adapter must be placeless, so thats ok!<commit_after><configure xmlns="http://namespaces.zope.org/zope"
           xmlns:five="http://namespaces.zope.org/five"
           xmlns:i18n="http://namespaces.zope.org/i18n"
           xmlns:zcml="http://namespaces.zope.org/zcml"
           i18n_domain="bda.plone.orders">

  <include package="yafowil.plone" />
  <include package="souper.plone"/>
  <include package="collective.js.jqueryui"/>
  <include package="collective.js.datatables"/>
  <include package="bda.plone.checkout"/>
  <include package="bda.plone.discount"/>

  <i18n:registerTranslations directory="locales"/>

  <include file="permissions.zcml"/>
  <include file="profiles.zcml"/>
  <include file="upgrades.zcml"/>
  <include package=".browser"/>

  <!-- roles -->
  <utility name="Vendor" factory=".localroles.VendorRole" />
  <utility name="Customer" factory=".localroles.CustomerRole" />

  <!-- indexing -->
  <adapter
    name="customer_role"
    factory=".indexer.customer_role" />

  <!-- subscribers -->
  <subscriber
    for="zope.interface.Interface
         plone.app.workflow.interfaces.ILocalrolesModifiedEvent"
    handler=".subscriber.reindex_customer_role" />

  <!-- souper soups -->
  <utility
    name="bda_plone_orders_bookings"
    factory=".common.BookingsCatalogFactory"/>

  <utility
    name="bda_plone_orders_orders"
    factory=".common.OrdersCatalogFactory"/>

  <!-- order checkout adapter -->
  <adapter
    for="zope.component.interfaces.ISite
         zope.publisher.interfaces.browser.IBrowserRequest"
    factory=".common.OrderCheckoutAdapter"/>

  <adapter
    zcml:condition="installed Products.Archetypes"
    for="Products.Archetypes.interfaces.IBaseObject
         zope.publisher.interfaces.browser.IBrowserRequest"
    factory=".common.OrderCheckoutAdapter"/>

  <adapter
    zcml:condition="installed plone.dexterity"
    for="plone.dexterity.interfaces.IDexterityContent
         zope.publisher.interfaces.browser.IBrowserRequest"
    factory=".common.OrderCheckoutAdapter"/>

  <!-- payment data adapter -->
  <adapter
    zcml:condition="installed Products.Archetypes"
    for="Products.Archetypes.interfaces.IBaseObject"
    factory=".common.PaymentData"/>
{'fraction_non_alphanumeric': 0.15032533094009423, 'fraction_numerical': 0.0035898586493156833, 'mean_word_length': 3.809061488673139, 'pattern_counts': {'":': 0, '<': 60, '<?xml version=': 0, '>': 60, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 8}, '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': '2746382', 'n_tokens_mistral': 1477, 'n_tokens_neox': 1388, 'n_words': 169}