<commit_before>id,sequence,type,evaluation_type,external_field,field_id:id,external_type,alternative_key,mapping_id:id,function_name,in_function,out_function,child_mapping_id:id,datetime_format
mag1500_sale_order_line_qty_ordered=>,,in,direct,qty_ordered,sale.field_sale_order_line_product_uos_qty,float,False,mag1500_sale_order_line,,,,,
mag1500_sale_order_line_discount_amount=>,,in,function,discount_amount,,float,False,mag1500_sale_order_line,discount_amount,"if ifield:
    result=[('discount', float(data['price']) != 0 and float(data['qty_ordered']) != 0 and float(100*ifield)/(float(data['price'])*float(data['qty_ordered'])) or 0)]",,,
mag1500_sale_order_line_name=>,,in,direct,name,sale.field_sale_order_line_name,unicode,False,mag1500_sale_order_line,,,,,
mag1500_sale_order_line_option=>,,in,function,product_options,,unicode,False,mag1500_sale_order_line,option,"if ifield:
    import re
    options_label = []
    clean = re.sub('\w:\w:|\w:\w+;', '', ifield)
    for each in clean.split('{'):
        if each.startswith('""label""'):
            split_info = each.split(';')	
            options_label.append('%s: %s [%s]' % (split_info[1], split_info[3], data['sku']))
	
    result=[('notes',  """".join(options_label).replace('""""', '\n').replace('""', ''))]
",,,
mag1500_sale_order_line_product_id=>,,in,direct,product_id,sale.field_sale_order_line_product_id,int,False,mag1500_sale_order_line,,,,,
mag1500_sale_order_line_qty_ordered=>,,in,direct,qty_ordered,sale.field_sale_order_line_product_uom_qty,float,False,mag1500_sale_order_line,,,,,
mag1500_sale_order_line_price=>,,in,function,price,,unicode,False,mag1500_sale_order_line,price,"result=[
('price_unit_tax_included', (float(resource['row_total']) + float(resource['tax_amount']))/float(resource['qty_ordered'])),
('price_unit_tax_excluded', (float(resource['row_total']))/float(resource['qty_ordered'])),
('tax_rate', float(resource['row_total']) and (float(resource['tax_amount'])/float(resource['row_total']))),
]",,,<commit_msg>[FIX] magentoerpconnect : fix price/tax computation with promotion<commit_after>id,sequence,type,evaluation_type,external_field,field_id:id,external_type,alternative_key,mapping_id:id,function_name,in_function,out_function,child_mapping_id:id,datetime_format
mag1500_sale_order_line_qty_ordered=>,,in,direct,qty_ordered,sale.field_sale_order_line_product_uos_qty,float,False,mag1500_sale_order_line,,,,,
mag1500_sale_order_line_discount_amount=>,,in,function,discount_amount,,float,False,mag1500_sale_order_line,discount_amount,"if ifield:
    result=[('discount', float(data['price']) != 0 and float(data['qty_ordered']) != 0 and float(100*ifield)/(float(data['price'])*float(data['qty_ordered'])) or 0)]",,,
mag1500_sale_order_line_name=>,,in,direct,name,sale.field_sale_order_line_name,unicode,False,mag1500_sale_order_line,,,,,
mag1500_sale_order_line_option=>,,in,function,product_options,,unicode,False,mag1500_sale_order_line,option,"if ifield:
    import re
    options_label = []
    clean = re.sub('\w:\w:|\w:\w+;', '', ifield)
    for each in clean.split('{'):
        if each.startswith('""label""'):
            split_info = each.split(';')	
            options_label.append('%s: %s [%s]' % (split_info[1], split_info[3], data['sku']))
	
    result=[('notes',  """".join(options_label).replace('""""', '\n').replace('""', ''))]
",,,
mag1500_sale_order_line_product_id=>,,in,direct,product_id,sale.field_sale_order_line_product_id,int,False,mag1500_sale_order_line,,,,,
mag1500_sale_order_line_qty_ordered=>,,in,direct,qty_ordered,sale.field_sale_order_line_product_uom_qty,float,False,mag1500_sale_order_line,,,,,
mag1500_sale_order_line_price=>,,in,function,price,,unicode,False,mag1500_sale_order_line,price,"result=[
('price_unit_tax_included', (float(resource['base_row_total_incl_tax']))/float(resource['qty_ordered'])),
('price_unit_tax_excluded', (float(resource['base_row_total']))/float(resource['qty_ordered'])),
('tax_rate', (float(resource['base_row_total_incl_tax'])/float(resource['base_row_total'])-1)),
]",,,
{'fraction_non_alphanumeric': 0.1793921423276501, 'fraction_numerical': 0.03187546330615271, 'mean_word_length': 12.768707482993197, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, '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': '3024839', 'n_tokens_mistral': 1580, 'n_tokens_neox': 1449, 'n_words': 107}