ec0b3e8c47876f4700c69d8ad19d2fe6aafbd1ff,parlai/scripts/detect_offensive_language.py,,detect,#Any#Any#Any#,37
Before Change
if world.epoch_done():
print("EPOCH DONE")
print(
str(cnt)
+ " offensive messages found out of "
+ str(world.num_examples())
+ " messages."
)
return world.report()
if __name__ == "__main__":
After Change
print("\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n")
stats["bad_words_cnt"] += len(stats["bad_words"])
if log_time.time() > log_every_n_secs:
report(world, stats)
if world.epoch_done():
print("EPOCH DONE")
report(world, stats)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: facebookresearch/ParlAI
Commit Name: ec0b3e8c47876f4700c69d8ad19d2fe6aafbd1ff
Time: 2020-04-15
Author: jase@fb.com
File Name: parlai/scripts/detect_offensive_language.py
Class Name:
Method Name: detect
Project Name: dpressel/mead-baseline
Commit Name: 6aad1de658a933d3fa376f7fe9abf419da8a8bd2
Time: 2018-11-26
Author: blester125@users.noreply.github.com
File Name: python/baseline/pytorch/lm/train.py
Class Name: LanguageModelTrainerPyTorch
Method Name: test
Project Name: chris-chris/pysc2-examples
Commit Name: 2068411fae45b0863bc35706aa6e1a6de1bbbc73
Time: 2018-01-03
Author: chris.ai@navercorp.com
File Name: a2c/a2c.py
Class Name: Runner
Method Name: run