<commit_before><?php

namespace RulerZ\Target\Operators;

class GenericElasticsearchDefinitions
{
    /**
     * @return Definitions
     */
    public static function create(Definitions $customOperators)
    {
        $definitions = new Definitions();

        // start with a few helpers
        $must = function ($query) {
            return "[
    'bool' => ['must' => $query]
]";
        };
        $mustNot = function($query) {
            return "[
                'bool' => ['must_not' => $query]
            ]";
        };
        $range = function ($field, $value, $operator) use ($must) {
            return $must("[<commit_msg>Add missing space before anonymous function declaration<commit_after><?php

namespace RulerZ\Target\Operators;

class GenericElasticsearchDefinitions
{
    /**
     * @return Definitions
     */
    public static function create(Definitions $customOperators)
    {
        $definitions = new Definitions();

        // start with a few helpers
        $must = function ($query) {
            return "[
    'bool' => ['must' => $query]
]";
        };
        $mustNot = function ($query) {
            return "[
                'bool' => ['must_not' => $query]
            ]";
        };
        $range = function ($field, $value, $operator) use ($must) {
            return $must("[
{'fraction_non_alphanumeric': 0.1392884178652536, 'fraction_numerical': 0.0, 'mean_word_length': 1.9641255605381165, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '7388480', 'n_tokens_mistral': 363, 'n_tokens_neox': 360, 'n_words': 90}