<commit_before><?php


/**
 * Skeleton subclass for performing query and update operations on the 'file_asset' 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 FileAssetPeer extends BaseFileAssetPeer implements IRelatedObjectPeer
{
	/**
	 * @param int $objectType
	 * @param string $objectId
	 * @param PropelPDO $con
	 * @return array<FileAsset>
	 */
	public static function retrieveByObject($objectType, $objectId, PropelPDO $con = null)
	{
		$criteria = new Criteria();
		$criteria->add(FileAssetPeer::OBJECT_TYPE, $objectType);
		$criteria->add(FileAssetPeer::OBJECT_ID, $objectId);

		return FileAssetPeer::doSelect($criteria, $con);
	}

	/* (non-PHPdoc)
	 * @see IRelatedObjectPeer::getRootObjects()
	 */
	public function getRootObjects(IBaseObject $object)
	{
		$rootObjects = array();
		$parentObject = uiConfPeer::retrieveByPK($object->getObjectId());
		if($parentObject)
		{
			/* @var $parentObject IBaseObject */
			$peer = $parentObject->getPeer();
			$rootAdded = false;
			if($peer instanceof IRelatedObjectPeer)
			{
				$parentRoots = $peer->getRootObjects($parentObject);
				if(count($parentRoots))
				{
					$rootObjects = array_merge($rootObjects, $parentRoots);
					$rootAdded = true;
				}
			}
			if($rootAdded)
				$rootObjects[] = $parentObject;
		}
		
		return $rootObjects;
	}

	/* (non-PHPdoc)
	 * @see IRelatedObjectPeer::isReferenced()
	 */
	public function isReferenced(IBaseObject $object)
	{
		return false;
	}
	
} // FileAssetPeer
<commit_msg>Always return parent object<commit_after><?php


/**
 * Skeleton subclass for performing query and update operations on the 'file_asset' 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 FileAssetPeer extends BaseFileAssetPeer implements IRelatedObjectPeer
{
	/**
	 * @param int $objectType
	 * @param string $objectId
	 * @param PropelPDO $con
	 * @return array<FileAsset>
	 */
	public static function retrieveByObject($objectType, $objectId, PropelPDO $con = null)
	{
		$criteria = new Criteria();
		$criteria->add(FileAssetPeer::OBJECT_TYPE, $objectType);
		$criteria->add(FileAssetPeer::OBJECT_ID, $objectId);

		return FileAssetPeer::doSelect($criteria, $con);
	}

	/* (non-PHPdoc)
	 * @see IRelatedObjectPeer::getRootObjects()
	 */
	public function getRootObjects(IBaseObject $object)
	{
		$rootObjects = array();
		$parentObject = uiConfPeer::retrieveByPK($object->getObjectId());
		if($parentObject)
		{
			/* @var $parentObject IBaseObject */
			$peer = $parentObject->getPeer();
			if($peer instanceof IRelatedObjectPeer)
			{
				$parentRoots = $peer->getRootObjects($parentObject);
				if(count($parentRoots))
				{
					$rootObjects = array_merge($rootObjects, $parentRoots);
				}
			}
			$rootObjects[] = $parentObject;
		}
		
		return $rootObjects;
	}

	/* (non-PHPdoc)
	 * @see IRelatedObjectPeer::isReferenced()
	 */
	public function isReferenced(IBaseObject $object)
	{
		return false;
	}
	
} // FileAssetPeer

{'fraction_non_alphanumeric': 0.12402402402402403, 'fraction_numerical': 0.0, 'mean_word_length': 4.21283255086072, 'pattern_counts': {'":': 0, '<': 7, '<?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': '6253776', 'n_tokens_mistral': 1165, 'n_tokens_neox': 1026, 'n_words': 254}