<commit_before><?php
namespace Plenty\Modules\Property\Contracts;

use Plenty\Modules\Property\Models\PropertyName;
use Plenty\Repositories\Contracts\FilterableContract;
use Plenty\Repositories\Criteria\Contracts\CriteriableContract;
use Plenty\Repositories\Criteria\Criteria;

/**
 * This interface allows you to get, list, create, update and delete property names.
 */
interface PropertyNameRepositoryContract 
{

	/**
	 * Gets a property name. The ID of the property name must be specified.
	 */
	public function getName(
		int $nameId
	):PropertyName;

	/**
	 * Lists property names
	 */
	public function listNames(
		array $filters = []
	):array;

	/**
	 * Creates a property name
	 */
	public function createName(
		array $data
	):PropertyName;

	/**
	 * Updates a property name. The ID of property name must be specified.
	 */
	public function updateName(
		int $nameId, 
		array $data
	):PropertyName;

	/**
	 * Deletes a property name. The ID of property name must be specified.
	 */
	public function deleteName(
		int $nameId
	):array;

	/**
	 * Resets all Criteria filters by creating a new instance of the builder object.
	 */
	public function clearCriteria(
	);

	/**
	 * Applies criteria classes to the current repository.
	 */
	public function applyCriteriaFromFilters(
	);

	/**
	 * Sets the filter array.
	 */
	public function setFilters(
		array $filters = []
	);
<commit_msg>Automated interface update 2020-04-07_08:08:05<commit_after><?php
namespace Plenty\Modules\Property\Contracts;

use Plenty\Modules\Property\Models\PropertyName;
use Plenty\Repositories\Contracts\FilterableContract;
use Plenty\Repositories\Criteria\Contracts\CriteriableContract;
use Plenty\Repositories\Criteria\Criteria;

/**
 * This interface allows you to get, list, create, update and delete property names.
 */
interface PropertyNameRepositoryContract 
{

	/**
	 * Gets a property name. The ID of the property name must be specified.
	 */
	public function getName(
		int $nameId
	):PropertyName;

	/**
	 * Lists property names
	 */
	public function listNames(
		array $filters = []
	):array;

	/**
	 * Creates a property name
	 */
	public function createName(
		array $data
	):PropertyName;

	/**
	 * Updates a property name. The ID of property name must be specified.
	 */
	public function updateName(
		int $nameId, 
		array $data
	):PropertyName;

	/**
	 * Deletes a property name. The ID of property name must be specified.
	 */
	public function deleteName(
		int $nameId
	):array;

	/**
	 * Get a property name by name
	 */
	public function getPropertyByName(
		string $name
	):PropertyName;

	/**
	 * Resets all Criteria filters by creating a new instance of the builder object.
	 */
	public function clearCriteria(
	);

	/**
	 * Applies criteria classes to the current repository.
	 */
	public function applyCriteriaFromFilters(
	);

	/**
	 * Sets the filter array.
	 */
	public function setFilters(
		array $filters = []
	);

{'fraction_non_alphanumeric': 0.09924965893587995, 'fraction_numerical': 0.0047748976807639835, 'mean_word_length': 3.6188976377952757, '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': '7485942', 'n_tokens_mistral': 914, 'n_tokens_neox': 845, 'n_words': 289}