<commit_before><?php

/**
 * Subclass for performing query and update operations on the 'flavor_params' table.
 *
 * 
 *
 * @package Core
 * @subpackage model
 */ 
class flavorParamsPeer extends assetParamsPeer
{
	/** the related Propel class for this table */
	const OM_CLASS = 'flavorParams';
	
	/**
	 * @var flavorParamsPeer
	 */
	private static $myInstance;
		
	public function setInstanceCriteriaFilter ()
	{
		if ( self::$s_criteria_filter == null )
			self::$s_criteria_filter = new criteriaFilter ();

		$c = self::$s_criteria_filter->getFilter();
		if($c)
		{
			$c->remove(self::DELETED_AT);
			$c->remove(self::TYPE);
		}
		else
		{
			$c = new Criteria();
		}

		$c->add(self::DELETED_AT, null, Criteria::EQUAL);
		$c->add(self::TYPE, assetType::FLAVOR);
			
		self::$s_criteria_filter->setFilter ( $c );
	}

	private function __construct()
	{
	}

	public static function getInstance()
	{
		if(!self::$myInstance)
			self::$myInstance = new flavorParamsPeer();
			
		if(!self::$instance || !(self::$instance instanceof flavorParamsPeer))
			self::$instance = self::$myInstance;
			
		return self::$myInstance;
	}

	public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null)
	{
		self::getInstance();<commit_msg>bug fix: now list flavors that are asset params as well<commit_after><?php

/**
 * Subclass for performing query and update operations on the 'flavor_params' table.
 *
 * 
 *
 * @package Core
 * @subpackage model
 */ 
class flavorParamsPeer extends assetParamsPeer
{
	/** the related Propel class for this table */
	const OM_CLASS = 'flavorParams';
	
	/**
	 * @var flavorParamsPeer
	 */
	private static $myInstance;
		
	public function setInstanceCriteriaFilter ()
	{
		if ( self::$s_criteria_filter == null )
			self::$s_criteria_filter = new criteriaFilter ();

		$c = self::$s_criteria_filter->getFilter();
		if($c)
		{
			$c->remove(self::DELETED_AT);
			$c->remove(self::TYPE);
		}
		else
		{
			$c = new Criteria();
		}

		$c->add(self::DELETED_AT, null, Criteria::EQUAL);
		$c->add(self::TYPE, assetType::THUMBNAIL, Criteria::NOT_EQUAL);
			
		self::$s_criteria_filter->setFilter ( $c );
	}

	private function __construct()
	{
	}

	public static function getInstance()
	{
		if(!self::$myInstance)
			self::$myInstance = new flavorParamsPeer();
			
		if(!self::$instance || !(self::$instance instanceof flavorParamsPeer))
			self::$instance = self::$myInstance;
			
		return self::$myInstance;
	}

	public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null)
	{
		self::getInstance();
{'fraction_non_alphanumeric': 0.14883720930232558, 'fraction_numerical': 0.0, 'mean_word_length': 4.203629032258065, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '6595634', 'n_tokens_mistral': 929, 'n_tokens_neox': 855, 'n_words': 190}