3ac0cf0ea3f3bbd86184203144bae65924089824,tensorforce/environments/socket_environment.py,SocketEnvironment,remote_send,#Any#Any#Any#Any#,96
Before Change
@classmethod
def remote_send(cls, connection, success, result):
str_success = str(int(success)).encode()
bytes_sent = connection.send(str_success)
if bytes_sent != 1:
raise TensorforceError.unexpected()
After Change
@classmethod
def remote_send(cls, connection, success, result):
str_success = b"1" if success else b"0"
bytes_sent = connection.send(str_success)
if bytes_sent != 1:
raise TensorforceError.unexpected()
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 2
Instances
Project Name: reinforceio/tensorforce
Commit Name: 3ac0cf0ea3f3bbd86184203144bae65924089824
Time: 2020-11-29
Author: alexkuhnle@t-online.de
File Name: tensorforce/environments/socket_environment.py
Class Name: SocketEnvironment
Method Name: remote_send
Project Name: deepmipt/DeepPavlov
Commit Name: 48373446ecf9ef563b02c360be347da02df09ce9
Time: 2019-08-05
Author: ignatov.fedor@gmail.com
File Name: deeppavlov/utils/socket/socket.py
Class Name:
Method Name: handle_connection
Project Name: chakki-works/doccano
Commit Name: 43d9234b78a73840c41ab6f0da83960da84c5d14
Time: 2019-08-07
Author: null
File Name: app/api/tests/test_utils.py
Class Name: TestCoNLLParser
Method Name: test_calc_char_offset
Project Name: biotite-dev/biotite
Commit Name: 1549626d75fe8ddb5bf788dccd664c61900b6789
Time: 2020-11-30
Author: tom.mueller@beachouse.de
File Name: src/biotite/structure/dotbracket.py
Class Name:
Method Name: dot_bracket