<commit_before><?php

/**
 * @package plugins.document
 * @subpackage lib
 */
class KOperationEnginePdfCreator extends KOperationEngineDocument
{
	/**
	 * @var string
	 */
	private $orgInFilePath = '';
	
	
	//old office files prefix
	const OLD_OFFICE_SIGNATURE = "\xD0\xCF\x11\xE0\xA1\xB1\x1A\xE1";
	
	//this will be the default value if the parameter is not set in the task's configuration
	const DEFAULT_FILE_UNLOCK_RETRIES = 100;
	
	//this will be the default value if the parameter is not set in the task's configuration
	const DEFAULT_FILE_UNLOCK_INTERVAL = 3;
	
	//this will be the default value if it not set in the task's configuration
	const DEFAULT_SLEEP_TIMES = 10;
	
	//this will be the default value if it not set in the task's configuration
	const DEFAULT_SLEEP_SECONDS = 2;
	
	// this will be the default value if it is not set in task's configuration under - killPopupsPath
	const DEFAULT_KILL_POPUPS_PATH = "c:/temp/killWindowsPopupsLog.txt";
	
	// List of supported file types
	private $SUPPORTED_FILE_TYPES = array(
			'CDF V2 Document',
			'OpenDocument Text',
			'PDF document',
			'Rich Text Format data',
			'Zip archive data',
	);
	
	public function operate(kOperator $operator = null, $inFilePath, $configFilePath = null)
	{
		KalturaLog::debug("document : operator [". print_r($operator, true)."] inFilePath [$inFilePath]"); 
		if ($configFilePath) {<commit_msg>Added some more supported types<commit_after><?php

/**
 * @package plugins.document
 * @subpackage lib
 */
class KOperationEnginePdfCreator extends KOperationEngineDocument
{
	/**
	 * @var string
	 */
	private $orgInFilePath = '';
	
	
	//old office files prefix
	const OLD_OFFICE_SIGNATURE = "\xD0\xCF\x11\xE0\xA1\xB1\x1A\xE1";
	
	//this will be the default value if the parameter is not set in the task's configuration
	const DEFAULT_FILE_UNLOCK_RETRIES = 100;
	
	//this will be the default value if the parameter is not set in the task's configuration
	const DEFAULT_FILE_UNLOCK_INTERVAL = 3;
	
	//this will be the default value if it not set in the task's configuration
	const DEFAULT_SLEEP_TIMES = 10;
	
	//this will be the default value if it not set in the task's configuration
	const DEFAULT_SLEEP_SECONDS = 2;
	
	// this will be the default value if it is not set in task's configuration under - killPopupsPath
	const DEFAULT_KILL_POPUPS_PATH = "c:/temp/killWindowsPopupsLog.txt";
	
	// List of supported file types
	private $SUPPORTED_FILE_TYPES = array(
			'Composite Document File V2 Document',
			'CDF V2 Document',
			'Microsoft Word',
			'Microsoft PowerPoint',
			'Microsoft Excel',
			'OpenDocument Text',
			'PDF document',
			'Rich Text Format data',
			'Zip archive data',
	);
	
	public function operate(kOperator $operator = null, $inFilePath, $configFilePath = null)
	{
		KalturaLog::debug("document : operator [". print_r($operator, true)."] inFilePath [$inFilePath]"); 
		if ($configFilePath) {
{'fraction_non_alphanumeric': 0.09428768066070199, 'fraction_numerical': 0.011355815554026153, 'mean_word_length': 4.064459930313589, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '1893506', 'n_tokens_mistral': 984, 'n_tokens_neox': 884, 'n_words': 313}