dc08464102e571d2cf4265319ed37319ada12bb6,tests/utilities.py,,read_dialogue_file,#Any#,32
Before Change
def read_dialogue_file(filename):
with io.open(filename, "r") as f:
dialogue_json = f.read()
return jsonpickle.loads(dialogue_json)
def write_text_to_file(tmpdir, filename, text):
After Change
def read_dialogue_file(filename):
return jsonpickle.loads(utils.read_file(filename))
def write_text_to_file(tmpdir, filename, text):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: RasaHQ/rasa
Commit Name: dc08464102e571d2cf4265319ed37319ada12bb6
Time: 2018-09-28
Author: tom@rasa.com
File Name: tests/utilities.py
Class Name:
Method Name: read_dialogue_file
Project Name: RasaHQ/rasa
Commit Name: dc08464102e571d2cf4265319ed37319ada12bb6
Time: 2018-09-28
Author: tom@rasa.com
File Name: tests/test_dialogues.py
Class Name:
Method Name: test_dialogue_serialisation
Project Name: RasaHQ/rasa
Commit Name: dc08464102e571d2cf4265319ed37319ada12bb6
Time: 2018-09-28
Author: tom@rasa.com
File Name: rasa_core/featurizers.py
Class Name: TrackerFeaturizer
Method Name: load