<commit_before><?php
require_once dirname(__FILE__) . '/testAbstract.php';
ini_set('memory_limit','2048M');

echo basename(__FILE__) . '::$argv' . print_r($argv, true) . PHP_EOL;

class testCrawler extends testAbstract
{
	public static function runWithParam($argv, $debug = true)
	{
		parent::run();
		
		if(isset($argv) && isset($argv[1]) && ($productId = intval($argv[1])) !== 0 && ($product = Product::get($productId)) instanceof Product)
		{
			echo __CLASS__ . '::' . __FUNCTION__ . '::Product' . trim($product) . PHP_EOL;
			try {
				staticiceConnector::getPrices($product, $debug);
				unset($product);
			} catch (Exception $ex) {
				echo '***warning***' . $ex->getMessage() . PHP_EOL . $ex->getTraceAsString() . PHP_EOL;
			}
		}
	}
}

testCrawler::runWithParam($argv);<commit_msg>remove debug info<commit_after><?php
require_once dirname(__FILE__) . '/testAbstract.php';
ini_set('memory_limit','2048M');

class testCrawler extends testAbstract
{
	public static function runWithParam($argv, $debug = true)
	{
		parent::run();
		
		if(isset($argv) && isset($argv[1]) && ($productId = intval($argv[1])) !== 0 && ($product = Product::get($productId)) instanceof Product)
		{
			echo __CLASS__ . '::' . __FUNCTION__ . '::Product' . trim($product) . PHP_EOL;
			try {
				staticiceConnector::getPrices($product, $debug);
				unset($product);
			} catch (Exception $ex) {
				echo '***warning***' . $ex->getMessage() . PHP_EOL . $ex->getTraceAsString() . PHP_EOL;
			}
		}
	}
}

testCrawler::runWithParam($argv);
{'fraction_non_alphanumeric': 0.1944627554383652, 'fraction_numerical': 0.00922874093605801, 'mean_word_length': 4.664179104477612, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '5291784', 'n_tokens_mistral': 575, 'n_tokens_neox': 529, 'n_words': 97}