<commit_before># © 2015 <NAME> (Trey)
# © 2016 <NAME>
# © 2018 <NAME> (QubiQ)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).


def post_init_hook(cr, registry):
    cr.execute(
        """
    INSERT INTO product_barcode
    (product_id, name, sequence)
    SELECT id, barcode, 0
    FROM product_product
    WHERE barcode IS NOT NULL"""
    )
<commit_msg>[FIX] product_multi_barcode: installation hook<commit_after># © 2015 <NAME> (Trey)
# © 2016 <NAME>
# © 2018 <NAME> (QubiQ)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).


def post_init_hook(cr, registry):
    cr.execute(
        """
    INSERT INTO product_barcode
    (product_id, product_tmpl_id, name, sequence)
    SELECT id, product_tmpl_id, barcode, 0
    FROM product_product
    WHERE barcode IS NOT NULL"""
    )

{'fraction_non_alphanumeric': 0.1324422843256379, 'fraction_numerical': 0.03645200486026731, 'mean_word_length': 3.336842105263158, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '5500938', 'n_tokens_mistral': 330, 'n_tokens_neox': 292, 'n_words': 81}