<commit_before><?php


/**
 * Skeleton subclass for performing query and update operations on the 'caption_asset_item' 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.captionSearch
 * @subpackage model
 */
class CaptionAssetItemPeer extends BaseCaptionAssetItemPeer {

	const TAGS = 'caption_asset_item.TAGS';
	const PARTNER_DESCRIPTION = 'caption_asset_item.PARTNER_DESCRIPTION';
	const LANGUAGE = 'caption_asset_item.LANGUAGE';
	const LABEL = 'caption_asset_item.LABEL';
	const STATUS = 'caption_asset_item.STATUS';
	const SIZE = 'caption_asset_item.SIZE';
	const UPDATED_AT = 'caption_asset_item.UPDATED_AT';

	/**
	 * holds an array of keys for quick access to the fieldnames array
	 *
	 * first dimension keys are the type constants
	 * e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0
	 */
	private static $fieldKeys = array (
		BasePeer::TYPE_PHPNAME => array ('PartnerDescription' => 0, 'Language' => 1, 'Label' => 2, 'Status' => 3, 'Size' => 4, 'UpdatedAt' => 5),
		BasePeer::TYPE_STUDLYPHPNAME => array ('partnerDescription' => 0, 'language' => 1, 'label' => 2, 'status' => 3, 'size' => 4, 'updated_at' => 5),
		BasePeer::TYPE_COLNAME => array (self::PARTNER_DESCRIPTION => 0, self::LANGUAGE => 1, self::LABEL => 2, self::STATUS => 3, self::SIZE => 4, self::UPDATED_AT => 5),
		BasePeer::TYPE_FIELDNAME => array ('partner_description' => 0, 'language' => 1, 'label' => 2, 'status' => 3, 'size' => 4, 'updated_at' => 5),
		BasePeer::TYPE_NUM => array (0, 1, 2)
	);
	
	public static function translateFieldName($name, $fromType, $toType)
	{
		$toNames = self::getFieldNames($toType);
		$key = isset(self::$fieldKeys[$fromType][$name]) ? self::$fieldKeys[$fromType][$name] : null;
		if ($key === null)
			return parent::translateFieldName($name, $fromType, $toType);<commit_msg>qnd: perevent contradicting peer fields indexes<commit_after><?php


/**
 * Skeleton subclass for performing query and update operations on the 'caption_asset_item' 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.captionSearch
 * @subpackage model
 */
class CaptionAssetItemPeer extends BaseCaptionAssetItemPeer {

	const TAGS = 'caption_asset_item.TAGS';
	const PARTNER_DESCRIPTION = 'caption_asset_item.PARTNER_DESCRIPTION';
	const LANGUAGE = 'caption_asset_item.LANGUAGE';
	const LABEL = 'caption_asset_item.LABEL';
	const STATUS = 'caption_asset_item.STATUS';
	const SIZE = 'caption_asset_item.SIZE';
	const UPDATED_AT = 'caption_asset_item.UPDATED_AT';

	/**
	 * holds an array of keys for quick access to the fieldnames array
	 *
	 * first dimension keys are the type constants
	 * e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0
	 */
	private static $fieldKeys = array (
		BasePeer::TYPE_PHPNAME => array ('PartnerDescription' => -1, 'Language' => -2, 'Label' => -3, 'Status' => -4, 'Size' => -5, 'UpdatedAt' => -6),
		BasePeer::TYPE_STUDLYPHPNAME => array ('partnerDescription' => -1, 'language' => -2, 'label' => -3, 'status' => -4, 'size' => -5, 'updated_at' => -6),
		BasePeer::TYPE_COLNAME => array (self::PARTNER_DESCRIPTION => -1, self::LANGUAGE => -2, self::LABEL => -3, self::STATUS => -4, self::SIZE => -5, self::UPDATED_AT => -6),
		BasePeer::TYPE_FIELDNAME => array ('partner_description' => -1, 'language' => -2, 'label' => -3, 'status' => -4, 'size' => -5, 'updated_at' => -6),
		BasePeer::TYPE_NUM => array (-1, -2, -3, -4, -5, -6)
	);
	
	public static function translateFieldName($name, $fromType, $toType)
	{
		$toNames = self::getFieldNames($toType);
		$key = isset(self::$fieldKeys[$fromType][$name]) ? self::$fieldKeys[$fromType][$name] : null;
		if ($key === null)
			return parent::translateFieldName($name, $fromType, $toType);
{'fraction_non_alphanumeric': 0.1579339458654085, 'fraction_numerical': 0.014651105040973429, 'mean_word_length': 4.932253313696613, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 61, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4737446', 'n_tokens_mistral': 1388, 'n_tokens_neox': 1325, 'n_words': 365}