fb5dbaf30b51426abd69c72b4a100f0e93175807,loudml-elastic/loudml/elastic.py,,_build_match_all,#Any#,67

Before Change


        val = condition["value"]
        if int(val.lower() == "true") > 0:
            val = 1
        elif int(val.lower() == "false") > 0:
            val = 0
        yield {
          "script": {
            "script": {
              "lang": "expression",

After Change


        if isinstance(val, bool):
            val = str(val).lower()
        elif isinstance(val, str):
            val = ""{}"".format(escape_quotes(val))

        yield {
          "script": {
            "script": {
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: regel/loudml
Commit Name: fb5dbaf30b51426abd69c72b4a100f0e93175807
Time: 2018-04-30
Author: vianney@redmintnetwork.fr
File Name: loudml-elastic/loudml/elastic.py
Class Name:
Method Name: _build_match_all


Project Name: dmlc/gluon-nlp
Commit Name: f4275c0b80197e0f1bbd3a2a1a31cf07d85013b1
Time: 2019-01-09
Author: leonard@lausen.nl
File Name: scripts/word_embeddings/evaluate_pretrained.py
Class Name:
Method Name:


Project Name: NervanaSystems/nlp-architect
Commit Name: 8e098ed186cf0c62dd01e1a02fd63b7d00443d89
Time: 2018-05-09
Author: peter.izsak@intel.com
File Name: nlp_architect/utils/text.py
Class Name: SpacyTokenizer
Method Name: __init__