<commit_before><?php
namespace Czim\Filter\Contracts;

use Illuminate\Contracts\Support\Arrayable;
use Illuminate\Database\Eloquent\Builder as EloquentBuilder;
use Illuminate\Database\Eloquent\Model;

interface FilterInterface
{

    /**
     * Constructs the relevant FilterData if one is not injected
     *
     * @param array|Arrayable|FilterDataInterface $data
     */
    public function __construct($data);

    /**
     * @param FilterDataInterface $data
     */
    public function setFilterData(FilterDataInterface $data);

    /**
     * @return FilterDataInterface
     */
    public function getFilterData();

    /**
     * Applies the loaded FilterData to a query (builder)
     *
     * @param Model|EloquentBuilder $query
     * @return EloquentBuilder
     */
    public function apply($query);

    /**
     * Adds a query join to be added after all parameters are applied
     *
     * @param string $key           identifying key, used to prevent duplicates
     * @param array  $parameters
     * @param string $joinType      'inner', 'right', defaults to left join
     * @return $this
     */
    public function addJoin($key, array $parameters, $joinType = null);

    /**
     * Getter for settings
     *
     * @param string $name
     * @return mixed
     */
    public function setting($name);

    /**
     * Returns parameter value set in filter data
     *
     * @param string $name
     * @return mixed
     */
    public function parameterValue($name);

}
<commit_msg>Removed constructor from filter interface<commit_after><?php
namespace Czim\Filter\Contracts;

use Illuminate\Database\Eloquent\Builder as EloquentBuilder;
use Illuminate\Database\Eloquent\Model;

interface FilterInterface
{

    /**
     * @param FilterDataInterface $data
     */
    public function setFilterData(FilterDataInterface $data);

    /**
     * @return FilterDataInterface
     */
    public function getFilterData();

    /**
     * Applies the loaded FilterData to a query (builder)
     *
     * @param Model|EloquentBuilder $query
     * @return EloquentBuilder
     */
    public function apply($query);

    /**
     * Adds a query join to be added after all parameters are applied
     *
     * @param string $key           identifying key, used to prevent duplicates
     * @param array  $parameters
     * @param string $joinType      'inner', 'right', defaults to left join
     * @return $this
     */
    public function addJoin($key, array $parameters, $joinType = null);

    /**
     * Getter for settings
     *
     * @param string $name
     * @return mixed
     */
    public function setting($name);

    /**
     * Returns parameter value set in filter data
     *
     * @param string $name
     * @return mixed
     */
    public function parameterValue($name);

}

{'fraction_non_alphanumeric': 0.09690060562878518, 'fraction_numerical': 0.0, 'mean_word_length': 2.549936788874842, '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': '2470840', 'n_tokens_mistral': 777, 'n_tokens_neox': 770, 'n_words': 235}