<commit_before><?php

class Ecommerce extends Module
{
    function init()
    {
        App::$primary->view->customAsset('js', '/moduleAsset/Ecommerce/js/cart.js');
    }

    function parseFields($data, $cart)
    {
        $fields = \Ecommerce\UserAdds\Field::getList();
        $name = '';
        foreach ($fields as $field) {
            if ($field->save && !empty($data[$field->id])) {<commit_msg>add pay reciver<commit_after><?php

class Ecommerce extends Module
{
    function init()
    {
        App::$primary->view->customAsset('js', '/moduleAsset/Ecommerce/js/cart.js');
    }

    function cartPayRecive($data)
    {
        if ($data['status'] == 'success') {
            $cart = Ecommerce\Cart::get($data['pay']->id, 'pay_id');
            if ($cart) {
                $cart->payed = true;
                $cart->save();
            }
        }
    }

    function parseFields($data, $cart)
    {
        $fields = \Ecommerce\UserAdds\Field::getList();
        $name = '';
        foreach ($fields as $field) {
            if ($field->save && !empty($data[$field->id])) {
{'fraction_non_alphanumeric': 0.18215271389144433, 'fraction_numerical': 0.0, 'mean_word_length': 2.1627906976744184, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 14, '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': '4027127', 'n_tokens_mistral': 334, 'n_tokens_neox': 332, 'n_words': 59}