fa5d78f7511bb5b78e74cb11db881062d8f42e93,lexos/helpers/general_functions.py,,decode_bytes,#Any#,202
Before Change
// Grab the file contents, which were encoded/decoded automatically
// into python"s format
decoded_string = raw_bytes.decode(encoding_type)
return decoded_string.replace("\x00", "")
After Change
decoded_string = decoded_string.replace("\\x00", "")
elif str(raw_bytes).startswith(bom16_be):
decoded_string = raw_bytes[len(bom16_be):-1]
decoded_string = decoded_string.replace("b"", "")
decoded_string = decoded_string.replace("\\x00", "")
else:
try:
// try to use utf-8 to decode first
encoding_type = "utf-8"
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 5
Instances Project Name: WheatonCS/Lexos
Commit Name: fa5d78f7511bb5b78e74cb11db881062d8f42e93
Time: 2017-08-04
Author: delandaluce_alvaro@wheatoncollege.edu
File Name: lexos/helpers/general_functions.py
Class Name:
Method Name: decode_bytes
Project Name: cve-search/cve-search
Commit Name: 244f469671b69c926b286a4f0ecbdc3e2f0825b3
Time: 2014-12-12
Author: github@foo.vernazobres.org
File Name: db_mgmt_cpe_other_dictionary.py
Class Name:
Method Name:
Project Name: r9y9/deepvoice3_pytorch
Commit Name: 4c3dda295b7501d3bae43c3cfba06574c74dbd4a
Time: 2017-11-08
Author: zryuichi@gmail.com
File Name: deepvoice3_pytorch/frontend/jp/__init__.py
Class Name:
Method Name: text_to_sequence
Project Name: facebookresearch/pythia
Commit Name: 5cbda906bb84466aadfb02e0c7220019ad5bc7e9
Time: 2020-11-02
Author: apsdehal@gmail.com
File Name: mmf/models/pythia.py
Class Name: Pythia
Method Name: format_state_key