d35de2272d31f0a8dcfb49c2ef3d54dc95b38a0b,python/ray/tests/test_ray_init.py,TestRedisPassword,test_redis_password,#TestRedisPassword#Any#Any#,19

Before Change


            // the exact error from the Redis library.
            // https://github.com/andymccurdy/redis-py/blob/master/
            // redis/connection.py//L132
            if "invalid password" not in str(ex.__cause__):
                raise

        // Check that we can connect to Redis using the provided password

After Change


        // type of the exception.
        except Exception as ex:
            if not (isinstance(ex.__cause__, redis.AuthenticationError)
                    and "invalid password" in str(ex.__cause__)) and not (
                        isinstance(ex, redis.ResponseError) and
                        "WRONGPASS invalid username-password pair" in str(ex)):
                raise
            // By contrast, we may be fairly confident the exact string
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: ray-project/ray
Commit Name: d35de2272d31f0a8dcfb49c2ef3d54dc95b38a0b
Time: 2020-11-15
Author: David.A.Hannasch@gmail.com
File Name: python/ray/tests/test_ray_init.py
Class Name: TestRedisPassword
Method Name: test_redis_password


Project Name: ray-project/ray
Commit Name: 2cb9cfb2b6b1d2b5a14b543310761d64b76b8508
Time: 2020-04-12
Author: ed.nmi.oakes@gmail.com
File Name: python/ray/serve/http_proxy.py
Class Name: HTTPProxy
Method Name: __call__


Project Name: streamlit/streamlit
Commit Name: b3bcd7d40f78b9727f1bd7c4bc0f68507a3dadb4
Time: 2020-02-19
Author: nate@streamlit.io
File Name: lib/streamlit/type_util.py
Class Name:
Method Name: _is_probably_plotly_dict


Project Name: ray-project/ray
Commit Name: 91535e910201dc403cb2b8644a75e1132bd712fe
Time: 2020-09-03
Author: krfricke@users.noreply.github.com
File Name: python/ray/tune/integration/keras.py
Class Name: TuneReporterCallback
Method Name: __init__