<commit_before><?php
set_time_limit(0);
chdir(dirname(__FILE__));

define('ROOT_DIR', realpath(dirname(__FILE__) . '/../../../../../'));
require_once(ROOT_DIR . '/infra/KAutoloader.php');
require_once(ROOT_DIR . '/alpha/config/kConf.php');

// ------------------------------------------------------
class OldLogRecordsFilter
{
	private $logId;
	
	function __construct($logId)
	{
		$this->logId = $logId;
	}
	
	function filter($i)
	{
		return $i > $this->logId;
	}
}

KAutoloader::addClassPath(KAutoloader::buildPath(KALTURA_ROOT_PATH, "vendor", "propel", "*"));
KAutoloader::addClassPath(KAutoloader::buildPath(KALTURA_ROOT_PATH, "plugins", "*"));
KAutoloader::setClassMapFilePath(kConf::get("cache_root_path") . '/elastic/' . basename(__FILE__) . '.cache');
KAutoloader::register();

$skipExecutedUpdates = false;
error_reporting(E_ALL);
KalturaLog::setLogger(new KalturaStdoutLogger());

$hostname = (isset($_SERVER["HOSTNAME"]) ? $_SERVER["HOSTNAME"] : gethostname());
$config = kConf::get('elasticPopulateSettings', 'elastic_populate', array());
if (empty($config))
{
	$configFile = ROOT_DIR . "/configurations/elastic/populate/$hostname.ini";
	if (!file_exists($configFile))
	{
		KalturaLog::err("Configuration file [$configFile] not found.");
		exit(-1);
	}<commit_msg>REACH2-911: removing unrelated changes<commit_after><?php
set_time_limit(0);
chdir(dirname(__FILE__));

define('ROOT_DIR', realpath(dirname(__FILE__) . '/../../../../../'));
require_once(ROOT_DIR . '/infra/KAutoloader.php');
require_once(ROOT_DIR . '/alpha/config/kConf.php');

// ------------------------------------------------------
class OldLogRecordsFilter
{
	private $logId;
	
	function __construct($logId)
	{
		$this->logId = $logId;
	}
	
	function filter($i)
	{
		return $i > $this->logId;
	}
}

KAutoloader::addClassPath(KAutoloader::buildPath(KALTURA_ROOT_PATH, "vendor", "propel", "*"));
KAutoloader::addClassPath(KAutoloader::buildPath(KALTURA_ROOT_PATH, "plugins", "*"));
KAutoloader::setClassMapFilePath(kConf::get("cache_root_path") . '/elastic/' . basename(__FILE__) . '.cache');
KAutoloader::register();

$skipExecutedUpdates = false;
error_reporting(E_ALL);
KalturaLog::setLogger(new KalturaStdoutLogger());

$hostname = (isset($_SERVER["HOSTNAME"]) ? $_SERVER["HOSTNAME"] : gethostname());
$config = kConf::get('elasticPopulateSettings', 'elastic_populate', array());
if (empty($config))
{
	$configFile = ROOT_DIR . "/configurations/elastic/populate/$hostname.ini";
	
	if (!file_exists($configFile))
	{
		KalturaLog::err("Configuration file [$configFile] not found.");
		exit(-1);
	}
{'fraction_non_alphanumeric': 0.23050058207217694, 'fraction_numerical': 0.0031043849437330227, 'mean_word_length': 4.981438515081207, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '141447', 'n_tokens_mistral': 916, 'n_tokens_neox': 885, 'n_words': 119}