<commit_before><?php

namespace Zofe\Rapyd\DataForm\Field;

use Illuminate\Support\Facades\Form;
use Illuminate\Support\Facades\Input;
use Illuminate\Support\Facades\Crypt;
use Illuminate\Support\Facades\Session;
use MyProject\Proxies\__CG__\stdClass;
use Zofe\Rapyd\Rapyd;

class Autocomplete extends Field {

    public $type = "autocompleter";
    public $css_class = "form-control autocompleter typeahead";

    public $remote;
    
    public $local_options;
    
    public $record_id;
    public $record_label;

    public $must_match = false;
    public $auto_fill = false;
    public $parent_id = '';
    
    public $min_chars = '2';



    //getvalue quando è local
    
    public function options($options)
    {
        $this->is_local = true;
        parent::options($options);
        foreach ($options as $key=>$value)<commit_msg>autocomplete should use 'where' instead 'like' on filters<commit_after><?php

namespace Zofe\Rapyd\DataForm\Field;

use Illuminate\Support\Facades\Form;
use Illuminate\Support\Facades\Input;
use Illuminate\Support\Facades\Crypt;
use Illuminate\Support\Facades\Session;
use MyProject\Proxies\__CG__\stdClass;
use Zofe\Rapyd\Rapyd;

class Autocomplete extends Field {

    public $type = "autocompleter";
    public $css_class = "form-control autocompleter typeahead";

    public $remote;
    
    public $local_options;
    
    public $record_id;
    public $record_label;

    public $must_match = false;
    public $auto_fill = false;
    public $parent_id = '';
    
    public $min_chars = '2';
    public $clause = "where";



    //getvalue quando è local
    
    public function options($options)
    {
        $this->is_local = true;
        parent::options($options);
        foreach ($options as $key=>$value)
{'fraction_non_alphanumeric': 0.10916289592760181, 'fraction_numerical': 0.0011312217194570137, 'mean_word_length': 3.2936893203883497, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '4546834', 'n_tokens_mistral': 576, 'n_tokens_neox': 569, 'n_words': 129}