f559c6681ba9cc7ea95e6641d4dc90fda83c730f,examples/formbot/actions.py,RestaurantForm,validate,#RestaurantForm#Any#Any#Any#,38
Before Change
self.name()),
self.name())
entity = events[0]["value"]
if slot_to_fill == "cuisine":
if entity.lower() not in self.cuisine_db:
dispatcher.utter_template("utter_wrong_cuisine", tracker)
After Change
"with action {1}"
"".format(slot_to_fill, self.name()))
extracted_slots = []
for e in events:
if e["event"] == "slot":
extracted_slots.append(e["value"])
for slot in extracted_slots:
if slot_to_fill == "cuisine":
if slot.lower() not in self.cuisine_db():
dispatcher.utter_template("utter_wrong_cuisine", tracker)
events = [SlotSet(slot_to_fill, None)]
elif slot_to_fill == "num_people":
if not self.is_int(slot) or int(slot) <= 0:
dispatcher.utter_template("utter_wrong_num_people", tracker)
events = [SlotSet(slot_to_fill, None)]
return events
def submit(self, dispatcher, tracker, domain):
dispatcher.utter_template("utter_submit", tracker)
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 8
Instances Project Name: RasaHQ/rasa
Commit Name: f559c6681ba9cc7ea95e6641d4dc90fda83c730f
Time: 2018-10-04
Author: mr.voov@gmail.com
File Name: examples/formbot/actions.py
Class Name: RestaurantForm
Method Name: validate
Project Name: okfn-brasil/serenata-de-amor
Commit Name: aaacfe1dd17783d43772cd4083a96b4b5b2e5c34
Time: 2017-10-30
Author: europio123@gmail.com
File Name: research/src/fetch_campaign_donations.py
Class Name:
Method Name:
Project Name: idaholab/raven
Commit Name: 60bb6399886610d1ff444b40dd43a7e9e3a5bf0d
Time: 2017-09-27
Author: joshua.cogliati@inl.gov
File Name: framework/PostProcessors/Metric.py
Class Name: Metric
Method Name: run
Project Name: tensorflow/tpu
Commit Name: 9f66664f055e7943d157ba94b7bd5b0bc5b3d54e
Time: 2018-07-30
Author: brennan.saeta@gmail.com
File Name: models/experimental/deeplab/model.py
Class Name:
Method Name: loss_fn
Project Name: keras-team/keras
Commit Name: 0c842391d34d444393ab0f55382d11a4c5105994
Time: 2016-12-19
Author: xihuil.silence@gmail.com
File Name: keras/backend/tensorflow_backend.py
Class Name:
Method Name: dot