5a552f684309da6010bfad7c196f2fb2796a308b,rasa/core/policies/form_policy.py,FormPolicy,predict_action_probabilities,#FormPolicy#Any#Any#Any#,129

Before Change


        else:
            logger.debug("There is no active form")

        return result

    def _metadata(self) -> Dict[Text, Any]:
        return {"priority": self.priority, "lookup": self.lookup}

After Change


                if tracker.active_loop.get(LOOP_REJECTED):
                    if self.state_is_unhappy(tracker, domain):
                        tracker.update(LoopInterrupted(True))
                        return PolicyPrediction(result, policy_priority=self.priority)

                result = self._prediction_result(
                    tracker.active_loop_name, tracker, domain
                )

            elif tracker.latest_action_name == tracker.active_loop_name:
                // predict action_listen after form action
                result = self._prediction_result(ACTION_LISTEN_NAME, tracker, domain)

        else:
            logger.debug("There is no active form")

        return PolicyPrediction(result, policy_priority=self.priority)

    def _metadata(self) -> Dict[Text, Any]:
        return {"priority": self.priority, "lookup": self.lookup}
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: RasaHQ/rasa
Commit Name: 5a552f684309da6010bfad7c196f2fb2796a308b
Time: 2020-11-05
Author: t.wochinger@rasa.com
File Name: rasa/core/policies/form_policy.py
Class Name: FormPolicy
Method Name: predict_action_probabilities


Project Name: RasaHQ/rasa
Commit Name: 5a552f684309da6010bfad7c196f2fb2796a308b
Time: 2020-11-05
Author: t.wochinger@rasa.com
File Name: rasa/core/policies/form_policy.py
Class Name: FormPolicy
Method Name: predict_action_probabilities


Project Name: RasaHQ/rasa
Commit Name: 5a552f684309da6010bfad7c196f2fb2796a308b
Time: 2020-11-05
Author: t.wochinger@rasa.com
File Name: rasa/core/policies/rule_policy.py
Class Name: RulePolicy
Method Name: predict_action_probabilities


Project Name: RasaHQ/rasa
Commit Name: 5a552f684309da6010bfad7c196f2fb2796a308b
Time: 2020-11-05
Author: t.wochinger@rasa.com
File Name: tests/core/test_ensemble.py
Class Name: ConstantPolicy
Method Name: predict_action_probabilities