4ceeb45b3a72b6ae596a017d031cfa816098986b,mlflow/store/tracking/sqlalchemy_store.py,,_get_attributes_filtering_clauses,#Any#,694
Before Change
if SearchUtils.is_attribute(key_type, comparator):
// validity of the comparator is checked in SearchUtils.parse_search_filter()
op = SearchUtils.filter_ops.get(comparator)
if op:
// key_name is guaranteed to be a valid searchable attribute of entities.RunInfo
// by the call to parse_search_filter
attribute_name = SqlRun.get_attribute_name(key_name)
clauses.append(op(getattr(SqlRun, attribute_name), value))
return clauses
def _to_sqlalchemy_filtering_statement(sql_statement, session):
After Change
// key_name is guaranteed to be a valid searchable attribute of entities.RunInfo
// by the call to parse_search_filter
attribute = getattr(SqlRun, SqlRun.get_attribute_name(key_name))
if comparator in SearchUtils.CASE_INSENSITIVE_STRING_COMPARISON_OPERATORS:
op = SearchUtils.get_sql_filter_ops(attribute, comparator)
clauses.append(op(value))
elif comparator in SearchUtils.filter_ops:
op = SearchUtils.filter_ops.get(comparator)
clauses.append(op(attribute, value))
return clauses
def _to_sqlalchemy_filtering_statement(sql_statement, session):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: mlflow/mlflow
Commit Name: 4ceeb45b3a72b6ae596a017d031cfa816098986b
Time: 2020-04-15
Author: 51711739+t-henri@users.noreply.github.com
File Name: mlflow/store/tracking/sqlalchemy_store.py
Class Name:
Method Name: _get_attributes_filtering_clauses
Project Name: tensorflow/tensorboard
Commit Name: 0b5565152aceed3796445c855ce187118787c857
Time: 2017-12-18
Author: nfelt@users.noreply.github.com
File Name: tensorboard/backend/event_processing/plugin_event_accumulator.py
Class Name: EventAccumulator
Method Name: _Purge
Project Name: scipy/scipy
Commit Name: 6d44a6df430c7ba975a0081a55fb0dfc742aa6ec
Time: 2014-05-15
Author: andyfaff@gmail.com
File Name: scipy/optimize/_differentialevolution.py
Class Name: DifferentialEvolutionSolver
Method Name: __init__