<commit_before><?php


/**
 * Skeleton subclass for performing query and update operations on the 'tag' 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.tagSearch
 * @subpackage model
 */
class TagPeer extends BaseTagPeer
{
    
	/**
	 * Creates default criteria filter
	 */
	public static function setDefaultCriteriaFilter()
	{
		if(self::$s_criteria_filter == null)
			self::$s_criteria_filter = new criteriaFilter();
		
		$c = KalturaCriteria::create(self::OM_CLASS);
		
		if (kEntitlementUtils::getEntitlementEnforcement())
		{
			$privacyContexts = kEntitlementUtils::getKsPrivacyContextArray();
			$c->addAnd(self::PRIVACY_CONTEXT, $privacyContexts, Criteria::IN);
		}
		else 
		{
			$c->addAnd(self::PRIVACY_CONTEXT, kTagFlowManager::NULL_PC);
		}
		$c->addAnd(self::INSTANCE_COUNT, 0, Criteria::GREATER_THAN);
		
		self::$s_criteria_filter->setFilter($c);
	}
	
	/**
	 * @param Criteria $criteria
	 * @param PropelPDO $con
	 */
	public static function doSelect(Criteria $criteria, PropelPDO $con = null)
	{
		$c = clone $criteria;<commit_msg>removing no_pc criteria when no entitlement for tagPeer<commit_after><?php


/**
 * Skeleton subclass for performing query and update operations on the 'tag' 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.tagSearch
 * @subpackage model
 */
class TagPeer extends BaseTagPeer
{
    
	/**
	 * Creates default criteria filter
	 */
	public static function setDefaultCriteriaFilter()
	{
		if(self::$s_criteria_filter == null)
			self::$s_criteria_filter = new criteriaFilter();
		
		$c = KalturaCriteria::create(self::OM_CLASS);
		
		if (kEntitlementUtils::getEntitlementEnforcement())
		{
			$privacyContexts = kEntitlementUtils::getKsPrivacyContextArray();
			$c->addAnd(self::PRIVACY_CONTEXT, $privacyContexts, Criteria::IN);
		}
		$c->addAnd(self::INSTANCE_COUNT, 0, Criteria::GREATER_THAN);
		
		self::$s_criteria_filter->setFilter($c);
	}
	
	/**
	 * @param Criteria $criteria
	 * @param PropelPDO $con
	 */
	public static function doSelect(Criteria $criteria, PropelPDO $con = null)
	{
		$c = clone $criteria;
{'fraction_non_alphanumeric': 0.11500412201154163, 'fraction_numerical': 0.0008244023083264633, 'mean_word_length': 4.441704035874439, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 10, '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': '7474029', 'n_tokens_mistral': 830, 'n_tokens_neox': 758, 'n_words': 199}