<commit_before><?php


/**
 * Skeleton subclass for representing a row from the 'vendor_catalog_item' table.
 *
 * 
 *
 * You should add additional methods to this class to meet the
 * application requirements.  This class will only be generated as
 * long as it does not already exist in the output directory.
 *
 * @package plugins.reach
 * @subpackage model
 */
class VendorCatalogItem extends BaseVendorCatalogItem implements IRelatedObject 
{

	/**
	 * Initializes internal state of VendorCatalogItem object.
	 * @see        parent::__construct()
	 */
	public function __construct()
	{
		// Make sure that parent constructor is always invoked, since that
		// is where any default values for this object are set.
		parent::__construct();
		$this->applyDefaultValues();
	}
	
	/**
	 * Applies default values to this object.
	 * This method should be called from the object's constructor (or equivalent initialization method).
	 * @see __construct()
	 */
	public function applyDefaultValues()
	{
	}
	
	const CUSTOM_DATA_PRICING = 'pricing';
	const CUSTOM_DATA_BULK_UPLOAD_ID = 'bulkUploadId';
	const CUSTOM_DATA_ENGINE_TYPE = 'engineType';
	const CUSTOM_DATA_ALLOW_RESUBMISSION = 'allowResubmission';

	public function setAllowResubmission($allowResubmission)
	{
		$this->putInCustomData(self::CUSTOM_DATA_ALLOW_RESUBMISSION, $allowResubmission);
	}

	/**
	 * @return boolean
	 */
	public function getAllowResubmission()
	{
		return $this->getFromCustomData(self::CUSTOM_DATA_ALLOW_RESUBMISSION);
	}

	public function setPricing($pricing)
	{
		$this->putInCustomData(self::CUSTOM_DATA_PRICING, serialize($pricing));
	}
	
	/**
	 * @return kCatalogItemPricing
	 */
	public function getPricing()
	{
		$pricing = $this->getFromCustomData(self::CUSTOM_DATA_PRICING);
		
		if($pricing)
			$pricing = unserialize($pricing);
		
		return $pricing;
	}

	public function setBulkUploadId($bulkUploadId)
	{
		$this->putInCustomData(self::CUSTOM_DATA_BULK_UPLOAD_ID ,$bulkUploadId);
	}

	public function getBulkUploadId()
	{
		return $this->getFromCustomData(self::CUSTOM_DATA_BULK_UPLOAD_ID);
	}

    public function setEngineType($engineType)
    {
        $this->putInCustomData(self::CUSTOM_DATA_ENGINE_TYPE, $engineType);
    }

    public function getEngineType()
    {
        return $this->getFromCustomData(self::CUSTOM_DATA_ENGINE_TYPE);
    }
	
	public function getPartnerId()
	{
		return 0;
	}
	
	public function getKsExpiry()
	{
		$ksExpiry = $this->getTurnAroundTime() * 2;
		
		//Minimum KS expiry should be set 7 days
		return max($ksExpiry, dateUtils::DAY * 7);
	}<commit_msg>indent<commit_after><?php


/**
 * Skeleton subclass for representing a row from the 'vendor_catalog_item' table.
 *
 * 
 *
 * You should add additional methods to this class to meet the
 * application requirements.  This class will only be generated as
 * long as it does not already exist in the output directory.
 *
 * @package plugins.reach
 * @subpackage model
 */
class VendorCatalogItem extends BaseVendorCatalogItem implements IRelatedObject 
{

	/**
	 * Initializes internal state of VendorCatalogItem object.
	 * @see        parent::__construct()
	 */
	public function __construct()
	{
		// Make sure that parent constructor is always invoked, since that
		// is where any default values for this object are set.
		parent::__construct();
		$this->applyDefaultValues();
	}
	
	/**
	 * Applies default values to this object.
	 * This method should be called from the object's constructor (or equivalent initialization method).
	 * @see __construct()
	 */
	public function applyDefaultValues()
	{
	}
	
	const CUSTOM_DATA_PRICING = 'pricing';
	const CUSTOM_DATA_BULK_UPLOAD_ID = 'bulkUploadId';
	const CUSTOM_DATA_ENGINE_TYPE = 'engineType';
	const CUSTOM_DATA_ALLOW_RESUBMISSION = 'allowResubmission';

	public function setAllowResubmission($allowResubmission)
	{
		$this->putInCustomData(self::CUSTOM_DATA_ALLOW_RESUBMISSION, $allowResubmission);
	}

	/**
	 * @return boolean
	 */
	public function getAllowResubmission()
	{
		return $this->getFromCustomData(self::CUSTOM_DATA_ALLOW_RESUBMISSION);
	}

	public function setPricing($pricing)
	{
		$this->putInCustomData(self::CUSTOM_DATA_PRICING, serialize($pricing));
	}
	
	/**
	 * @return kCatalogItemPricing
	 */
	public function getPricing()
	{
		$pricing = $this->getFromCustomData(self::CUSTOM_DATA_PRICING);
		
		if($pricing)
			$pricing = unserialize($pricing);
		
		return $pricing;
	}

	public function setBulkUploadId($bulkUploadId)
	{
		$this->putInCustomData(self::CUSTOM_DATA_BULK_UPLOAD_ID ,$bulkUploadId);
	}

	public function getBulkUploadId()
	{
		return $this->getFromCustomData(self::CUSTOM_DATA_BULK_UPLOAD_ID);
	}

	public function setEngineType($engineType)
	{
		$this->putInCustomData(self::CUSTOM_DATA_ENGINE_TYPE, $engineType);
	}

	public function getEngineType()
	{
		return $this->getFromCustomData(self::CUSTOM_DATA_ENGINE_TYPE);
	}
	
	public function getPartnerId()
	{
		return 0;
	}
	
	public function getKsExpiry()
	{
		$ksExpiry = $this->getTurnAroundTime() * 2;
		
		//Minimum KS expiry should be set 7 days
		return max($ksExpiry, dateUtils::DAY * 7);
	}
{'fraction_non_alphanumeric': 0.10302439024390243, 'fraction_numerical': 0.0015609756097560976, 'mean_word_length': 4.577801958650707, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 23, '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': '5316273', 'n_tokens_mistral': 1817, 'n_tokens_neox': 1693, 'n_words': 386}