6a61896bb1bfe1007c4d8675d52e7252c35650e0,mlflow/utils/rest_utils.py,,get_databricks_http_request_kwargs_or_fail,#Any#,21

Before Change


    :return: Dictionary with parameters that can be passed to http_request(). This will
             at least include the hostname and headers sufficient to authenticate to Databricks.
    
    if not profile:
        profile = provider.DEFAULT_SECTION
    config = provider.get_config_for_profile(profile)

    hostname = config.host
    if not hostname:

After Change


               " in a future version.")
        config = provider.get_config_for_profile(profile)
    elif profile:
        config = provider.ProfileConfigProvider(profile).get_config()
    else:
        config = provider.get_config()

    hostname = config.host
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: mlflow/mlflow
Commit Name: 6a61896bb1bfe1007c4d8675d52e7252c35650e0
Time: 2018-08-07
Author: aaron@databricks.com
File Name: mlflow/utils/rest_utils.py
Class Name:
Method Name: get_databricks_http_request_kwargs_or_fail


Project Name: studioml/studio
Commit Name: a267aa92b6e25a39a5da310502d5ccef29737327
Time: 2017-10-13
Author: peter.zhokhov@sentient.ai
File Name: studio/magics.py
Class Name: StudioMagics
Method Name: studio_run


Project Name: QUANTAXIS/QUANTAXIS
Commit Name: ee20b930408375dce3a59ab22f6ba1316baecaed
Time: 2019-04-04
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAMarket/QAShipaneBroker.py
Class Name:
Method Name: get_config_SPE