<commit_before><?xml version="1.0"?>
<!--
/**
 * Checkout.com Magento 2 Magento2 Payment.
 *
 * PHP version 7
 *
 * @category  Checkout.com
 * @package   Magento2
 * @author    Checkout.com Development Team <<EMAIL>>
 * @copyright 2019 Checkout.com all rights reserved
 * @license   https://opensource.org/licenses/mit-license.html MIT License
 * @link      https://www.checkout.com
 */
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">

    <!-- Method handler configurations -->
    <type name="CheckoutCom\Magento2\Model\Service\MethodHandlerService">
        <arguments>
            <argument name="instances" xsi:type="array">
                <item name="checkoutcom_card_payment" xsi:type="object">CheckoutCom\Magento2\Model\Methods\CardPaymentMethod</item>
                <item name="checkoutcom_apm" xsi:type="object">CheckoutCom\Magento2\Model\Methods\AlternativePaymentMethod</item>
                <item name="checkoutcom_apple_pay" xsi:type="object">CheckoutCom\Magento2\Model\Methods\ApplePayMethod</item>
                <item name="checkoutcom_google_pay" xsi:type="object">CheckoutCom\Magento2\Model\Methods\GooglePayMethod</item>
                <item name="checkoutcom_vault" xsi:type="object">CheckoutCom\Magento2\Model\Methods\VaultMethod</item>
            </argument>
        </arguments>
    </type>
    <!-- END Method handler configurations -->

    <!-- Instant Purchase override -->
    <preference for="Magento\InstantPurchase\CustomerData\InstantPurchase" type="CheckoutCom\Magento2\Model\InstantPurchase\CustomerData" />
    <!-- END Instant Purchase override -->

    <!-- CSRF bypass from 2.3.x series -->
    <type name="Magento\Framework\App\Request\CsrfValidator">
        <plugin name="cko_csrf_validator_skip" type="CheckoutCom\Magento2\Plugin\CsrfValidatorSkip" />
    </type>
    <!-- End CSRF bypass -->

    <!-- After place order plugin -->
    <type name="Magento\Sales\Api\OrderManagementInterface">
        <plugin name="cko_after_palce_order" type="CheckoutCom\Magento2\Plugin\AfterPlaceOrder" />
    </type>
    <!-- END After place order plugin -->

    <!-- After save transaction plugin -->
    <!--
    <type name="Magento\Sales\Api\Data\TransactionInterface">
        <plugin name="cko_before_save_transaction" type="CheckoutCom\Magento2\Plugin\BeforeSaveTransaction" />
    </type>
    -->
    <!-- END After place order plugin -->

    <!-- Minification exclusion plugin -->
    <type name="Magento\Framework\View\Asset\Minification">
        <plugin name="cko_minification_exclude" type="CheckoutCom\Magento2\Plugin\MinificationExclude" />
    </type>
    <!-- END Minification exclusion plugin -->
</config><commit_msg>Updated a code comment in di.xml<commit_after><?xml version="1.0"?>
<!--
/**
 * Checkout.com Magento 2 Magento2 Payment.
 *
 * PHP version 7
 *
 * @category  Checkout.com
 * @package   Magento2
 * @author    Checkout.com Development Team <<EMAIL>>
 * @copyright 2019 Checkout.com all rights reserved
 * @license   https://opensource.org/licenses/mit-license.html MIT License
 * @link      https://www.checkout.com
 */
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">

    <!-- Method handler configurations -->
    <type name="CheckoutCom\Magento2\Model\Service\MethodHandlerService">
        <arguments>
            <argument name="instances" xsi:type="array">
                <item name="checkoutcom_card_payment" xsi:type="object">CheckoutCom\Magento2\Model\Methods\CardPaymentMethod</item>
                <item name="checkoutcom_apm" xsi:type="object">CheckoutCom\Magento2\Model\Methods\AlternativePaymentMethod</item>
                <item name="checkoutcom_apple_pay" xsi:type="object">CheckoutCom\Magento2\Model\Methods\ApplePayMethod</item>
                <item name="checkoutcom_google_pay" xsi:type="object">CheckoutCom\Magento2\Model\Methods\GooglePayMethod</item>
                <item name="checkoutcom_vault" xsi:type="object">CheckoutCom\Magento2\Model\Methods\VaultMethod</item>
            </argument>
        </arguments>
    </type>
    <!-- END Method handler configurations -->

    <!-- Instant Purchase override -->
    <preference for="Magento\InstantPurchase\CustomerData\InstantPurchase" type="CheckoutCom\Magento2\Model\InstantPurchase\CustomerData" />
    <!-- END Instant Purchase override -->

    <!-- CSRF bypass from 2.3.x series -->
    <type name="Magento\Framework\App\Request\CsrfValidator">
        <plugin name="cko_csrf_validator_skip" type="CheckoutCom\Magento2\Plugin\CsrfValidatorSkip" />
    </type>
    <!-- End CSRF bypass -->

    <!-- After place order plugin -->
    <type name="Magento\Sales\Api\OrderManagementInterface">
        <plugin name="cko_after_palce_order" type="CheckoutCom\Magento2\Plugin\AfterPlaceOrder" />
    </type>
    <!-- END After place order plugin -->

    <!-- Before save transaction plugin -->
    <!--
    <type name="Magento\Sales\Api\Data\TransactionInterface">
        <plugin name="cko_before_save_transaction" type="CheckoutCom\Magento2\Plugin\BeforeSaveTransaction" />
    </type>
    -->
    <!-- END After place order plugin -->

    <!-- Minification exclusion plugin -->
    <type name="Magento\Framework\View\Asset\Minification">
        <plugin name="cko_minification_exclude" type="CheckoutCom\Magento2\Plugin\MinificationExclude" />
    </type>
    <!-- END Minification exclusion plugin -->
</config>
{'fraction_non_alphanumeric': 0.14411342426417803, 'fraction_numerical': 0.010050251256281407, 'mean_word_length': 3.454836131095124, 'pattern_counts': {'":': 0, '<': 99, '<?xml version=': 2, '>': 99, 'https://': 4, 'lorem ipsum': 0, 'www.': 4, 'xml': 5}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '554866', 'n_tokens_mistral': 1697, 'n_tokens_neox': 1650, 'n_words': 270}