69d2f03db6b1e3fec37a711a912df4c2181ffd13,allennlp/common/tqdm.py,,replace_cr_with_newline,#Any#,33
Before Change
without adding more lines to the terminal output. Displaying those in a file won"t work
correctly, so we"ll just make sure that each batch shows up on its one line.
if "\r" in message:
message = message.replace("\r", "")
if not message or message[-1] != "\n":
message += "\n"
return message
class TqdmToLogsWriter(object):
After Change
// In addition to carriage returns, nested progress-bars will contain extra new-line
// characters and this special control sequence which tells the terminal to move the
// cursor one line up.
message = message .replace("\r", "").replace("\n" , "" ).replace("[A", "")
if message and message[-1] != "\n":
message += "\n"
return message
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: allenai/allennlp
Commit Name: 69d2f03db6b1e3fec37a711a912df4c2181ffd13
Time: 2020-07-14
Author: epwalsh10@gmail.com
File Name: allennlp/common/tqdm.py
Class Name:
Method Name: replace_cr_with_newline
Project Name: evilsocket/pwnagotchi
Commit Name: 90b0e10e81a5a0e03753715ec1034278bdd5f600
Time: 2019-10-07
Author: evilsocket@gmail.com
File Name: pwnagotchi/plugins/default/api.py
Class Name:
Method Name: parse_pcap
Project Name: evilsocket/pwnagotchi
Commit Name: 2f948306ebeabf10050bb0c07a3254b420c30751
Time: 2019-11-01
Author: evilsocket@gmail.com
File Name: pwnagotchi/plugins/__init__.py
Class Name:
Method Name: load_from_path