<commit_before><?php
use Magento\Catalog\Model\Product as P;
use Magento\Framework\Pricing\Price\PriceInterface as IPrice;
/**
 * 2021-12-21
 *	{
 *		"base_price": 39.95,
 *		"catalog_rule_price": false,
 *		"configured_price": 39.95,
 *		"configured_regular_price": 79.95,
 *		"custom_option_price": [],
 *		"final_price": 39.95,
 *		"msrp_price": 39.95,
 *		"regular_price": 79.95,
 *		"special_price": 39.95,
 *		"tier_price": false,
 *		"wishlist_configured_price": 39.95
 *	}
 * @param P $p
 * @return array(string => IPrice)
 */
function df_prices(P $p) {return df_map($p->getPriceInfo()->getPrices(), function(IPrice $p) {return $p->getValue();});}<commit_msg>no message<commit_after><?php
use Magento\Catalog\Model\Product as P;
use Magento\Framework\Pricing\Price\PriceInterface as IPrice;
/**
 * 2021-12-21
 * 1) A simple product with a special price:
 *	{
 *		"base_price": 39.95,
 *		"catalog_rule_price": false,
 *		"configured_price": 39.95,
 *		"configured_regular_price": 79.95,
 *		"custom_option_price": [],
 *		"final_price": 39.95,
 *		"msrp_price": 39.95,
 *		"regular_price": 79.95,
 *		"special_price": 39.95,
 *		"tier_price": false,
 *		"wishlist_configured_price": 39.95
 *	}
 * 2) A configurable product withot a special price:
 *	{
 *		"base_price": 0,
 *		"catalog_rule_price": false,
 *		"configured_price": 0,
 *		"configured_regular_price": 0,
 *		"custom_option_price": [],
 *		"final_price": 609.95,
 *		"msrp_price": 0,
 *		"regular_price": 609.95,
 *		"special_price": false,
 *		"tier_price": false,
 *		"wishlist_configured_price": 609.95
 *	}
 * @param P $p
 * @return array(string => IPrice)
 */
function df_prices(P $p) {return df_map($p->getPriceInfo()->getPrices(), function(IPrice $p) {return $p->getValue();});}
{'fraction_non_alphanumeric': 0.18507972665148065, 'fraction_numerical': 0.057517084282460135, 'mean_word_length': 4.490625, 'pattern_counts': {'":': 33, '<': 5, '<?xml version=': 0, '>': 11, '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': '3718025', 'n_tokens_mistral': 796, 'n_tokens_neox': 717, 'n_words': 129}