<commit_before><?php


/**
 * Skeleton subclass for performing query and update operations on the 'edge_server' 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 Core
 * @subpackage model
 */
class EdgeServerPeer extends BaseEdgeServerPeer {
	
	public static function setDefaultCriteriaFilter ()
	{
		if ( self::$s_criteria_filter == null )
			self::$s_criteria_filter = new criteriaFilter ();
		
		$c = KalturaCriteria::create(EdgeServerPeer::OM_CLASS);
		$c->addAnd ( EdgeServerPeer::STATUS, EdgeServerStatus::DELETED, Criteria::NOT_EQUAL);
		
		self::$s_criteria_filter->setFilter($c);
	}
	
	public static function retrieveByPartnerIdAndHostName($partnerId, $hostName)
	{
		$c = new Criteria();
		
		$c->add(EdgeServerPeer::PARTNER_ID, $partnerId);
		$c->add(EdgeServerPeer::HOST_NAME, $hostName);
		
		return EdgeServerPeer::doSelectOne($c);
	}

} // EdgeServerPeer
<commit_msg>We whould respect the order of the edge server<commit_after><?php


/**
 * Skeleton subclass for performing query and update operations on the 'edge_server' 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 Core
 * @subpackage model
 */
class EdgeServerPeer extends BaseEdgeServerPeer {
	
	public static function setDefaultCriteriaFilter ()
	{
		if ( self::$s_criteria_filter == null )
			self::$s_criteria_filter = new criteriaFilter ();
		
		$c = KalturaCriteria::create(EdgeServerPeer::OM_CLASS);
		$c->addAnd ( EdgeServerPeer::STATUS, EdgeServerStatus::DELETED, Criteria::NOT_EQUAL);
		
		self::$s_criteria_filter->setFilter($c);
	}
	
	public static function retrieveByPartnerIdAndHostName($partnerId, $hostName)
	{
		$c = new Criteria();
		
		$c->add(EdgeServerPeer::PARTNER_ID, $partnerId);
		$c->add(EdgeServerPeer::HOST_NAME, $hostName);
		
		return EdgeServerPeer::doSelectOne($c);
	}
	
	public static function retrieveArrayOrderdEdgeServerByPKs($pks, PropelPDO $con = null)
	{
		if (empty($pks)) {
			$objs = array();
		} 
		else {
			$criteria = new Criteria(EdgeServerPeer::DATABASE_NAME);
			$criteria->add(EdgeServerPeer::ID, $pks, Criteria::IN);
			$orderBy = "FIELD (" . self::ID . "," . implode(",", $pks) . ")";  // first take the pattner_id and then the rest
			$criteria->addAscendingOrderByColumn($orderBy);
			$objs = EdgeServerPeer::doSelect($criteria, $con);
		}
		
		return $objs;
	}

} // EdgeServerPeer

{'fraction_non_alphanumeric': 0.12255639097744361, 'fraction_numerical': 0.0, 'mean_word_length': 4.649681528662421, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '4649304', 'n_tokens_mistral': 901, 'n_tokens_neox': 825, 'n_words': 213}