1598381b2bed5d2d8fc95ebce957516d6f4c5463,mindsdb/api/mysql/mysql_proxy/mysql_proxy.py,MysqlProxy,initSession,#MysqlProxy#,162
Before Change
connection_id += 1
self.session = SessionController()
self.salt = "".join([random.choice(ALPHABET) for i in range(20)])
self.socket = self.request
self.count = 0 // next packet number
self.connection_id = connection_id
After Change
self.session = SessionController()
if hasattr(self.server, "salt") and isinstance(self.server.salt, str):
self.salt = self.server.salt
else:
self.salt = base64.b64encode(os.urandom(15)).decode()
self.socket = self.request
self.count = 0 // next packet number
self.connection_id = connection_id
self.logging = log
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: mindsdb/mindsdb
Commit Name: 1598381b2bed5d2d8fc95ebce957516d6f4c5463
Time: 2021-02-20
Author: stpmax@yandex.ru
File Name: mindsdb/api/mysql/mysql_proxy/mysql_proxy.py
Class Name: MysqlProxy
Method Name: initSession
Project Name: gooofy/zamia-speech
Commit Name: 85861ea5c5320518267405bef050a0dab933e069
Time: 2018-02-17
Author: guenter@zamia.org
File Name: phone_gen.py
Class Name:
Method Name:
Project Name: hyperopt/hyperopt-sklearn
Commit Name: c7eedbd86349ee56a1d816a4e54dc031382da305
Time: 2016-07-22
Author: chandlerx.watson@intel.com
File Name: hpsklearn/components.py
Class Name:
Method Name: linear_discriminant_analysis