<commit_before><?php
/**
 * Subclass for performing query and update operations on the 'kuser' table.
 *
 * 
 *
 * @package lib.model
 */ 
class kuserPeer extends BasekuserPeer 
{
	private static $s_default_count_limit = 301;
	
	public static function getKuserByScreenName( $screen_name  )
	{
		$c = new Criteria();
		$c->add ( kuserPeer::SCREEN_NAME , $screen_name );
		return self::doSelectOne( $c ); 
	}
	
	public static function getKuserByPartnerAndUid($partner_id , $puser_id, $ignore_puser_kuser = false)
	{
		if (defined("KALTURA_API_V3") || $ignore_puser_kuser)
		{
			$c = new Criteria();
			$c->add(self::PARTNER_ID, $partner_id);
			$c->add(self::PUSER_ID, $puser_id);
			return self::doSelectOne($c);			
		}
		
		// just grab the kuser, we dont mind which subp we get
		$puser_kuser = PuserKuserPeer::retrieveByPartnerAndUid( $partner_id , 0, $puser_id , true );
		if ( !$puser_kuser ) return false;
		return $puser_kuser->getKuser();
	}
	
	public static function getActiveKuserByPartnerAndUid($partner_id , $puser_id)
	{
		$c = new Criteria();
		$c->add(self::STATUS, KalturaUserStatus::ACTIVE);
		$c->add(self::PARTNER_ID, $partner_id);<commit_msg>Comments only<commit_after><?php
/**
 * Subclass for performing query and update operations on the 'kuser' table.
 *
 * 
 *
 * @package lib.model
 */ 
class kuserPeer extends BasekuserPeer 
{
	private static $s_default_count_limit = 301;
	
	public static function getKuserByScreenName( $screen_name  )
	{
		$c = new Criteria();
		$c->add ( kuserPeer::SCREEN_NAME , $screen_name );
		return self::doSelectOne( $c ); 
	}
	
	/**
	 * @param int $partner_id
	 * @param string $puser_id
	 * @param bool $ignore_puser_kuser
	 * @return kuser
	 */
	public static function getKuserByPartnerAndUid($partner_id , $puser_id, $ignore_puser_kuser = false)
	{
		if (defined("KALTURA_API_V3") || $ignore_puser_kuser)
		{
			$c = new Criteria();
			$c->add(self::PARTNER_ID, $partner_id);
			$c->add(self::PUSER_ID, $puser_id);
			return self::doSelectOne($c);			
		}
		
		// just grab the kuser, we dont mind which subp we get
		$puser_kuser = PuserKuserPeer::retrieveByPartnerAndUid( $partner_id , 0, $puser_id , true );
		if ( !$puser_kuser ) return false;
		return $puser_kuser->getKuser();
	}
	
	public static function getActiveKuserByPartnerAndUid($partner_id , $puser_id)
	{
		$c = new Criteria();
		$c->add(self::STATUS, KalturaUserStatus::ACTIVE);
		$c->add(self::PARTNER_ID, $partner_id);
{'fraction_non_alphanumeric': 0.13753581661891118, 'fraction_numerical': 0.004093327875562832, 'mean_word_length': 4.504504504504505, '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': '7031940', 'n_tokens_mistral': 1002, 'n_tokens_neox': 923, 'n_words': 191}