4f9fc9b8698c84f7a7281a2692657a2f1c1368d6,mlflow/utils/search_utils.py,SearchUtils,_parse_order_by_string,#Any#Any#,363
Before Change
def _parse_order_by_string(cls, order_by):
token_value = cls._validate_order_by_and_generate_token(order_by)
is_ascending = True
if token_value.lower().endswith(" desc"):
is_ascending = False
token_value = token_value[0:-len(" desc")]
elif token_value.lower().endswith(" asc"):
After Change
token_value = cls._validate_order_by_and_generate_token(order_by)
is_ascending = True
tokens = token_value.split()
if len(tokens) > 2:
raise MlflowException(f"Invalid order_by clause "{order_by}". Could not be parsed.",
error_code=INVALID_PARAMETER_VALUE)
elif len(tokens) == 2:
order_token = tokens[1].lower()
if order_token not in cls.VALID_ORDER_BY_TAGS:
raise MlflowException(f"Invalid ordering key in order_by clause "{order_by}".",
error_code=INVALID_PARAMETER_VALUE)
is_ascending = (order_token == cls.ASC_OPERATOR)
token_value = tokens[0]
return token_value, is_ascending
@classmethod
def parse_order_by_for_search_runs(cls, order_by):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: mlflow/mlflow
Commit Name: 4f9fc9b8698c84f7a7281a2692657a2f1c1368d6
Time: 2020-06-30
Author: 52183359+ankitmathur-db@users.noreply.github.com
File Name: mlflow/utils/search_utils.py
Class Name: SearchUtils
Method Name: _parse_order_by_string
Project Name: CellProfiler/CellProfiler
Commit Name: 9c8b9dee58c8b44360a8a911e2e1d94132b24715
Time: 2013-09-05
Author: leek@broadinstitute.org
File Name: cellprofiler/gui/pipelinelistview.py
Class Name: PipelineListView
Method Name: on_filelist_data
Project Name: mlflow/mlflow
Commit Name: 4f9fc9b8698c84f7a7281a2692657a2f1c1368d6
Time: 2020-06-30
Author: 52183359+ankitmathur-db@users.noreply.github.com
File Name: mlflow/utils/search_utils.py
Class Name: SearchUtils
Method Name: _parse_order_by_string
Project Name: IndicoDataSolutions/finetune
Commit Name: 6104513bdef028f870c1603fad58c034acf0f4c8
Time: 2018-12-28
Author: benlt@hotmail.co.uk
File Name: finetune/base.py
Class Name: BaseModel
Method Name: finetune