<commit_before><?php
/**
 * @package api
 * @subpackage filters
 */
class KalturaReportInputBaseFilter extends KalturaObject 
{
	/**
	 * Start date as Unix timestamp (In seconds)
	 * 
	 * @var int
	 */
	public $fromDate;
	
	/**
	 * End date as Unix timestamp (In seconds)
	 * 
	 * @var int
	 */
	public $toDate;
	
	/**
	 * Start day as string (YYYYMMDD)
	 *
	 * @var string
	 */
	public $fromDay;
	
	/**
	 * End date as string (YYYYMMDD)
	 *
	 * @var int
	 */
	public $toDay;
	
	
	
	/**
	 * @param reportsInputFilter $reportInputFilter
	 * @return reportsInputFilter
	 */
	public function toReportsInputFilter ($reportInputFilter = null)
	{
		if (is_null($reportInputFilter)) 
			$reportInputFilter = new reportsInputFilter();
		
		if ($this->fromDay && $this->toDay) {
			$reportInputFilter->from_date = date('Y-m-d 00:00:00', strtotime($this->fromDay));
			$reportInputFilter->to_date = date('Y-m-d 23:59:59', strtotime($this->toDay));
			$reportInputFilter->from_day = $this->fromDay;
			$reportInputFilter->to_day = $this->toDay;
		} else if ($this->fromDate && $this->toDate) {
			$reportInputFilter->from_date = $this->fromDate;<commit_msg>qnd: change toDay to string<commit_after><?php
/**
 * @package api
 * @subpackage filters
 */
class KalturaReportInputBaseFilter extends KalturaObject 
{
	/**
	 * Start date as Unix timestamp (In seconds)
	 * 
	 * @var int
	 */
	public $fromDate;
	
	/**
	 * End date as Unix timestamp (In seconds)
	 * 
	 * @var int
	 */
	public $toDate;
	
	/**
	 * Start day as string (YYYYMMDD)
	 *
	 * @var string
	 */
	public $fromDay;
	
	/**
	 * End date as string (YYYYMMDD)
	 *
	 * @var string
	 */
	public $toDay;
	
	
	
	/**
	 * @param reportsInputFilter $reportInputFilter
	 * @return reportsInputFilter
	 */
	public function toReportsInputFilter ($reportInputFilter = null)
	{
		if (is_null($reportInputFilter)) 
			$reportInputFilter = new reportsInputFilter();
		
		if ($this->fromDay && $this->toDay) {
			$reportInputFilter->from_date = date('Y-m-d 00:00:00', strtotime($this->fromDay));
			$reportInputFilter->to_date = date('Y-m-d 23:59:59', strtotime($this->toDay));
			$reportInputFilter->from_day = $this->fromDay;
			$reportInputFilter->to_day = $this->toDay;
		} else if ($this->fromDate && $this->toDate) {
			$reportInputFilter->from_date = $this->fromDate;
{'fraction_non_alphanumeric': 0.1537462104807276, 'fraction_numerical': 0.01039411000433088, 'mean_word_length': 3.5562130177514795, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 31, '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': '6199066', 'n_tokens_mistral': 896, 'n_tokens_neox': 778, 'n_words': 173}