23a29f5b866f5f562a40bf1f4d068f591d18f8ea,datastore/elastic_search/query.py,,ngrams_query,#Any#Any#Any#Any#Any#Any#,34

Before Change


    if "index" not in kwargs:
        kwargs = dict(kwargs, index=index_name)
    kwargs = dict(kwargs, body=data)
    if "doc_type" not in kwargs:
        kwargs = dict(kwargs, doc_type="")
    ngram_results = _run_es_search(connection, **kwargs)
    return _parse_es_ngram_search_results(ngram_results, ngrams_length)

After Change


    
    ngram_results = {}
    if ngrams_list:
        ngrams_length = len(ngrams_list[0].strip().split())
        data = _generate_es_ngram_search_dictionary(entity_name, ngrams_list, fuzziness_threshold)
        if "index" not in kwargs:
            kwargs = dict(kwargs, index=index_name)
        kwargs = dict(kwargs, body=data)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: hellohaptik/chatbot_ner
Commit Name: 23a29f5b866f5f562a40bf1f4d068f591d18f8ea
Time: 2017-03-20
Author: jain.chirag925@gmail.com
File Name: datastore/elastic_search/query.py
Class Name:
Method Name: ngrams_query


Project Name: oddt/oddt
Commit Name: 86698c801848975de9a21fb17093e045b6271ea3
Time: 2018-05-17
Author: maciek@wojcikowski.pl
File Name: rdkit_fixer.py
Class Name:
Method Name: PreparePDBMol


Project Name: statsmodels/statsmodels
Commit Name: db637720f06b99c3f21721843a942cd90bda3be6
Time: 2020-09-19
Author: josef.pktd@gmail.com
File Name: statsmodels/miscmodels/ordinal_model.py
Class Name: OrderedModel
Method Name: from_formula