<commit_before><?php

namespace Layer\Data;

use Doctrine\Common\Persistence\ObjectRepository;

interface ManagedRepositoryInterface extends ObjectRepository {

	public function queryMetadata($name, array $options = []);

	public function getClassMetadata();

	public function getName();

	public function createEntity();

	public function createQueryBuilder($alias = null, $indexBy = null);

	public function createResultSetMappingBuilder($alias);

	public function createNamedQuery($queryName);

	public function createNativeNamedQuery($queryName);

	//public function createFormType(MetadataDriverInterface $driver = null);

	public function clear();

	public function find($id, $lockMode = null, $lockVersion = null);

	public function findAll();

	public function findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null);

	public function findOneBy(array $criteria, array $orderBy = null);

	public function save($entity);

}<commit_msg>Added comments<commit_after><?php

namespace Layer\Data;

use Doctrine\Common\Persistence\ObjectRepository;

interface ManagedRepositoryInterface extends ObjectRepository {

	/**
	 * @param $name
	 * @param array $options
	 * @return mixed
	 */
	public function queryMetadata($name, array $options = []);

	/**
	 * @return \Doctrine\ORM\Mapping\ClassMetadata
	 */
	public function getClassMetadata();

	/**
	 * @return string
	 */
	public function getName();

	/**
	 * @return object
	 */
	public function createEntity();

	/**
	 * @param null $alias
	 * @param null $indexBy
	 * @return \Doctrine\ORM\QueryBuilder
	 */
	public function createQueryBuilder($alias = null, $indexBy = null);

	/**
	 * @param $alias
	 * @return \Doctrine\ORM\ResultSetMappingBuilder
	 */
	public function createResultSetMappingBuilder($alias);

	/**
	 * @param $queryName
	 * @return \Doctrine\ORM\Query
	 */
	public function createNamedQuery($queryName);

	/**
	 * @param $queryName
	 * @return \Doctrine\ORM\NativeQuery
	 */
	public function createNativeNamedQuery($queryName);

	public function clear();

	/**
	 * @param mixed $id
	 * @param null $lockMode
	 * @param null $lockVersion
	 * @return object
	 */
	public function find($id, $lockMode = null, $lockVersion = null);

	/**
	 * @return array
	 */
	public function findAll();

	/**
	 * @param array $criteria
	 * @param array $orderBy
	 * @param null $limit
	 * @param null $offset
	 * @return array
	 */
	public function findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null);

	/**
	 * @param array $criteria
	 * @param array $orderBy
	 * @return object
	 */
	public function findOneBy(array $criteria, array $orderBy = null);

	public function save($entity);

}
{'fraction_non_alphanumeric': 0.12518573551263001, 'fraction_numerical': 0.0, 'mean_word_length': 4.364541832669323, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '2258534', 'n_tokens_mistral': 813, 'n_tokens_neox': 742, 'n_words': 218}