<commit_before><?php
/**
 * @package api
 * @subpackage objects
 */
class KalturaBulkUploadResultUser extends KalturaBulkUploadResult
{
    /**
     * @var string
     */
    public $userId;
    /**
     * @var string
     */
    public $screenName;
    
    /**
     * @var string
     */
    public $email;
    
    /**
     * @var string
     */
    public $description;
    
    /**
     * @var string
     */
    public $tags;
    
    /**
     * @var int
     */
    public $dateOfBirth;
    
    /**
     * @var string
     */
    public $country;
    
    /**
     * @var string
     */    
    public $state;
    
    /**
     * @var string
     */
    public $city;
    
    /**
     * @var string
     */
    public $zip;
    
    /**
     * @var int
     */
    public $gender;
    
    /**
     * @var string
     */
    public $firstName;
    
    /**
     * @var string
     */
    public $lastName;
    
    
    private static $mapBetweenObjects = array
	(
		"userId" => "puserId",
		"screenName",
	    "email",
	    "dateOfBirth",
	    "country",
		"state",
		"city",
		"zip",
	    "gender",
	    "firstName",
	    "lastName",
	    "tags",
	);
	
    /* (non-PHPdoc)
     * @see KalturaBulkUploadResult::getMapBetweenObjects()
     */
    public function getMapBetweenObjects()
	{
		return array_merge(parent::getMapBetweenObjects(), self::$mapBetweenObjects);
	}
	
    /* (non-PHPdoc)
     * @see KalturaBulkUploadResult::toInsertableObject()
     */
    public function toInsertableObject($object_to_fill = null, $props_to_skip = array())
	{
	    if ($this->userId)
	    {
	        $kuser = kuserPeer::getKuserByPartnerAndUid($this->partnerId, $this->userId);
	        if ($kuser)
                $this->objectId = $kuser->getId();	            
	    }
	    
		return parent::toInsertableObject(new BulkUploadResultKuser(), $props_to_skip);
	}

    /* (non-PHPdoc)
     * @see KalturaObject::toObject()
     */
    public function toObject($object_to_fill = null, $props_to_skip = array())
	{
	    if (!is_numeric($this->objectId))
	    {
	        $kuser = kuserPeer::getKuserByPartnerAndUid($this->partnerId, $this->objectId);
	        if ($kuser)
                $this->objectId = $kuser->getId();	            
	    }
	    
		return parent::toObject($object_to_fill, $props_to_skip);
	}
}<commit_msg>def: 3874 fix error that is thrown though the userId column value is passed<commit_after><?php
/**
 * @package api
 * @subpackage objects
 */
class KalturaBulkUploadResultUser extends KalturaBulkUploadResult
{
    /**
     * @var string
     */
    public $userId;
    /**
     * @var string
     */
    public $screenName;
    
    /**
     * @var string
     */
    public $email;
    
    /**
     * @var string
     */
    public $description;
    
    /**
     * @var string
     */
    public $tags;
    
    /**
     * @var int
     */
    public $dateOfBirth;
    
    /**
     * @var string
     */
    public $country;
    
    /**
     * @var string
     */    
    public $state;
    
    /**
     * @var string
     */
    public $city;
    
    /**
     * @var string
     */
    public $zip;
    
    /**
     * @var int
     */
    public $gender;
    
    /**
     * @var string
     */
    public $firstName;
    
    /**
     * @var string
     */
    public $lastName;
    
    
    private static $mapBetweenObjects = array
	(
		"userId" => "puserId",
		"screenName",
	    "email",
	    "dateOfBirth",
	    "country",
		"state",
		"city",
		"zip",
	    "gender",
	    "firstName",
	    "lastName",
	    "tags",
	);
	
    /* (non-PHPdoc)
     * @see KalturaBulkUploadResult::getMapBetweenObjects()
     */
    public function getMapBetweenObjects()
	{
		return array_merge(parent::getMapBetweenObjects(), self::$mapBetweenObjects);
	}
	
    /* (non-PHPdoc)
     * @see KalturaBulkUploadResult::toInsertableObject()
     */
    public function toInsertableObject($object_to_fill = null, $props_to_skip = array())
	{
	    if ($this->userId)
	    {
	        $kuser = kuserPeer::getKuserByPartnerAndUid($this->partnerId, $this->userId);
	        if ($kuser)
                $this->objectId = $kuser->getId();	            
	    }
	    
		return parent::toInsertableObject(new BulkUploadResultKuser(), $props_to_skip);
	}

    /* (non-PHPdoc)
     * @see KalturaObject::toObject()
     */
    public function toObject($object_to_fill = null, $props_to_skip = array())
	{
	    if (!is_numeric($this->objectId))
	    {
	        $kuser = kuserPeer::getKuserByPartnerAndUid($this->partnerId, $this->userId);
	        if ($kuser)
                $this->objectId = $kuser->getId();	            
	    }
	    
		return parent::toObject($object_to_fill, $props_to_skip);
	}
}
{'fraction_non_alphanumeric': 0.14574468085106382, 'fraction_numerical': 0.000851063829787234, 'mean_word_length': 1.8560145808019441, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 25, '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': '6338107', 'n_tokens_mistral': 1644, 'n_tokens_neox': 1581, 'n_words': 273}