fb5dbaf30b51426abd69c72b4a100f0e93175807,loudml-elastic/loudml/elastic.py,,_build_match_all,#Any#,67
Before Change
for condition in match_all:
key = condition["tag"]
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
val = condition["value"]
if isinstance(val, bool):
val = str(val).lower()
elif isinstance(val, str):
val = ""{}"".format(escape_quotes(val))
yield {
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: prody/ProDy
Commit Name: d19f211130de38bb931bbf101df7c6d0698d6e56
Time: 2018-02-27
Author: shz66@pitt.edu
File Name: prody/dynamics/functions.py
Class Name:
Method Name: calcENM
Project Name: prody/ProDy
Commit Name: 1c01f08cd378eabf223345e4ac7f0357bbf93649
Time: 2018-02-26
Author: shz66@pitt.edu
File Name: prody/dynamics/functions.py
Class Name:
Method Name: calcENM