Repository Analysis

RasaHQ/rasa

💬 Open source machine learning framework to automate text- and voice-based conversations: NLU, dialogue management, connect to Slack, Facebook, and more - Create chatbots and voice assistants

23.8 Moderate AI signal View on GitHub
23.8
Adjusted Score
23.8
Raw Score
100%
Time Factor
2026-05-22
Last Push
21,189
Stars
Python
Language
202,310
Lines of Code
1163
Files
3370
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 40HIGH 314MEDIUM 34LOW 2982

Pattern Findings

3370 matches across 15 categories. Click a row to expand file-level details.

Hyper-Verbose Identifiers2513 hits · 2220 pts
SeverityFileLineSnippet
LOWtests/test_model.py34def test_get_local_model_exception(model_path: Optional[Text]):
LOWtests/test_model.py45def test_model_fingerprint_with_no_git(monkeypatch: MonkeyPatch, tmp_path: Path):
LOWtests/conftest.py121def domain_with_categorical_slot_path() -> Text:
LOWtests/conftest.py195def story_file_trips_circuit_breaker_path() -> Text:
LOWtests/conftest.py233async def trained_default_agent_model(
LOWtests/conftest.py276async def trained_moodbot_core_path(trained_async: Callable) -> Text:
LOWtests/conftest.py294async def trained_unexpected_intent_policy_path(trained_async: Callable) -> Text:
LOWtests/conftest.py336async def unexpected_intent_policy_agent(
LOWtests/conftest.py561def rasa_server_secured_asymmetric(
LOWtests/conftest.py590def rasa_non_trained_server_secured(empty_agent: Agent) -> Sanic:
LOWtests/conftest.py620def spacy_case_sensitive_nlp_component() -> SpacyNLP:
LOWtests/conftest.py637async def response_selector_test_stories() -> Path:
LOWtests/conftest.py642async def trained_response_selector_bot(trained_async: Callable) -> Path:
LOWtests/conftest.py711def write_endpoint_config_to_yaml(
LOWtests/conftest.py721def random_user_uttered_event(timestamp: Optional[float] = None) -> UserUttered:
LOWtests/conftest.py759def _get_marker_for_ci_matrix(item: Function) -> Text:
LOWtests/conftest.py790def pytest_collection_modifyitems(items: List[Function]) -> None:
LOWtests/conftest.py803def create_test_file_with_size(directory: Path, size_in_mb: float) -> Path:
LOWtests/conftest.py818def default_execution_context() -> ExecutionContext:
LOWtests/conftest.py899def initial_events_including_restart() -> List[Event]:
LOWtests/conftest.py924def tracker_with_restarted_event(
LOWtests/test_dependencies.py5def test_tensorflow_text_install():
LOWtests/test_plugin.py25def test_plugin_create_tracker_store(
LOWtests/test_plugin.py49def test_init_anonymization_pipeline(
LOWtests/test_plugin.py64def test_get_anonymization_pipeline(monkeypatch: MonkeyPatch) -> None:
LOWtests/test_model_testing.py38def monkeypatch_get_latest_model(tmp_path: Path, monkeypatch: MonkeyPatch) -> None:
LOWtests/test_model_testing.py43def test_get_sanitized_model_directory_when_not_passing_model(
LOWtests/test_model_testing.py62def test_get_sanitized_model_directory_when_passing_model_file_explicitly(
LOWtests/test_model_testing.py81def test_get_sanitized_model_directory_when_passing_other_input(
LOWtests/test_model_testing.py117def test_get_evaluation_metrics(
LOWtests/test_model_testing.py248def test_make_classification_report_complete(
LOWtests/test_model_testing.py313def test_make_classification_report_complete_raises_clf_report_exception(
LOWtests/test_model_testing.py366def test_write_classification_errors():
LOWtests/test_model_testing.py528def test_evaluation_store_serialise(
LOWtests/test_model_testing.py559def test_test_does_not_use_rules(tmp_path: Path, default_agent: Agent):
LOWtests/test_model_testing.py586def test_duplicated_entity_predictions_tolerated():
LOWtests/test_model_testing.py612def test_differently_ordered_entity_predictions_tolerated():
LOWtests/test_server.py304async def test_parse_with_different_emulation_mode(
LOWtests/test_server.py313async def test_parse_without_nlu_model(rasa_app_core: SanicASGITestClient):
LOWtests/test_server.py321async def test_parse_on_invalid_emulation_mode(rasa_app: SanicASGITestClient):
LOWtests/test_server.py145def rasa_secured_app_asymmetric(
LOWtests/test_server.py152def rasa_non_trained_secured_app(
LOWtests/test_server.py170async def test_root_without_enable_api(rasa_app_without_api: SanicASGITestClient):
LOWtests/test_server.py217async def test_status_not_ready_agent(rasa_app: SanicASGITestClient):
LOWtests/test_server.py366async def test_train_core_success_with(
LOWtests/test_server.py1917async def test_get_story_without_conversation_id(
LOWtests/test_server.py1929async def test_get_story_does_not_update_conversation_session(
LOWtests/test_server.py2037async def test_update_conversation_with_events(
LOWtests/test_server.py2064async def test_append_events_does_not_repeat_session_start(
LOWtests/test_server.py2110async def _create_tracker_for_query_params(
LOWtests/test_server.py2160async def test_get_tracker_with_query_param_include_events_all(
LOWtests/test_server.py2187async def test_get_tracker_with_query_param_include_events_after_restart(
LOWtests/test_server.py2218async def test_get_tracker_with_query_param_include_events_applied(
LOWtests/test_server.py2254async def test_get_tracker_with_query_param_include_events_none(
LOWtests/test_server.py2274async def test_retrieve_story_with_query_param_all_sessions_true(
LOWtests/test_server.py2315async def test_retrieve_story_with_query_param_all_sessions_false(
LOWtests/test_server.py2340async def test_retrieve_tracker_with_customized_action_session_start(
LOWtests/test_server.py2346 async def mock_run_action_session_start(
LOWtests/test_server.py750async def test_evaluate_invalid_intent_model_file(rasa_app: SanicASGITestClient):
LOWtests/test_server.py760async def test_evaluate_intent_without_body(rasa_app: SanicASGITestClient):
2453 more matches not shown…
Cross-File Repetition270 hits · 1350 pts
SeverityFileLineSnippet
HIGHtests/test_server.py0version: "{latest_training_data_format_version}" stories: - story: some-conversation-id steps: - intent: greet user: |-
HIGHtests/test_server.py0version: "{latest_training_data_format_version}" stories: - story: some-conversation-id steps: - intent: greet user: |-
HIGHtests/test_server.py0version: "{latest_training_data_format_version}" stories: - story: some-conversation-id steps: - intent: greet user: |-
HIGHtests/core/test_test.py0version: "{latest_training_data_format_version}" stories: - story: happy path steps: - user: | hello there! intent: gree
HIGHtests/core/test_test.py0version: "{latest_training_data_format_version}" stories: - story: happy path steps: - user: | hello there! intent: gree
HIGHtests/core/test_test.py0version: "{latest_training_data_format_version}" stories: - story: happy path steps: - user: | hello there! intent: gree
HIGHtests/core/test_migrate.py0version: "2.0" entities: - outdoor slots: outdoor_seating: type: bool influence_conversation: false
HIGHtests/core/test_migrate.py0version: "2.0" entities: - outdoor slots: outdoor_seating: type: bool influence_conversation: false
HIGHtests/core/test_migrate.py0version: "2.0" entities: - outdoor slots: outdoor_seating: type: bool influence_conversation: false
HIGHtests/core/test_migrate.py0version: "2.0" entities: - outdoor slots: outdoor_seating: type: bool influence_conversation: false
HIGHtests/core/test_migrate.py0version: "2.0" entities: - outdoor slots: outdoor_seating: type: bool influence_conversation: false
HIGHtests/core/test_migrate.py0version: "2.0" entities: - outdoor slots: outdoor_seating: type: bool influence_conversation: false
HIGHtests/core/test_migrate.py0version: "2.0" forms: reservation_form: required_slots: outdoor_seating: - type: from_intent value: true intent: confirm
HIGHtests/core/test_migrate.py0version: "2.0" forms: reservation_form: required_slots: outdoor_seating: - type: from_intent value: true intent: confirm
HIGHtests/core/test_migrate.py0version: "2.0" forms: reservation_form: required_slots: outdoor_seating: - type: from_intent value: true intent: confirm
HIGHtests/core/test_migrate.py0version: "2.0" forms: reservation_form: required_slots: outdoor_seating: - type: from_intent value: true intent: confirm
HIGHtests/core/policies/test_ted_policy.py0this takes long and does not need to be tested for every config change.
HIGHtests/core/policies/test_ted_policy.py0this takes long and does not need to be tested for every config change.
HIGHtests/core/policies/test_ted_policy.py0this takes long and does not need to be tested for every config change.
HIGHtests/core/policies/test_ted_policy.py0this takes long and does not need to be tested for every config change.
HIGHtests/core/policies/test_ted_policy.py0this takes long and does not need to be tested for every config change.
HIGHtests/core/policies/test_rule_policy.py0version: "{latest_training_data_format_version}" intents: - {greet_intent_name} actions: - {utter_greet_action} - {utter
HIGHtests/core/policies/test_rule_policy.py0version: "{latest_training_data_format_version}" intents: - {greet_intent_name} actions: - {utter_greet_action} - {utter
HIGHtests/core/policies/test_rule_policy.py0version: "{latest_training_data_format_version}" intents: - {greet_intent_name} actions: - {utter_greet_action} - {utter
HIGHtests/core/policies/test_rule_policy.py0version: "{latest_training_data_format_version}" intents: - {greet_intent_name} actions: - {utter_greet_action}
HIGHtests/core/policies/test_rule_policy.py0version: "{latest_training_data_format_version}" intents: - {greet_intent_name} actions: - {utter_greet_action}
HIGHtests/core/policies/test_rule_policy.py0version: "{latest_training_data_format_version}" intents: - {greet_intent_name} actions: - {utter_greet_action}
HIGHtests/core/policies/test_rule_policy.py0version: "{latest_training_data_format_version}" intents: - {greet_intent_name} actions: - {utter_greet_action}
HIGHtests/core/policies/test_rule_policy.py0version: "{latest_training_data_format_version}" intents: - {greet_intent_name} actions: - {utter_greet_action} - some-a
HIGHtests/core/policies/test_rule_policy.py0version: "{latest_training_data_format_version}" intents: - {greet_intent_name} actions: - {utter_greet_action} - some-a
HIGHtests/core/policies/test_rule_policy.py0version: "{latest_training_data_format_version}" intents: - {greet_intent_name} actions: - {utter_greet_action} - some-a
HIGHtests/core/policies/test_rule_policy.py0version: "{latest_training_data_format_version}" intents: - {greet_intent_name} actions: - {utter_greet_action} - some-a
HIGHtests/core/policies/test_rule_policy.py0version: "{latest_training_data_format_version}" intents: - {greet_intent_name} actions: - {utter_greet_action} - some-a
HIGHtests/core/policies/test_rule_policy.py0version: "{latest_training_data_format_version}" intents: - {greet_intent_name} - {other_intent} actions: - {utter_greet
HIGHtests/core/policies/test_rule_policy.py0version: "{latest_training_data_format_version}" intents: - {greet_intent_name} - {other_intent} actions: - {utter_greet
HIGHtests/core/policies/test_rule_policy.py0version: "{latest_training_data_format_version}" intents: - {greet_intent_name} - {other_intent} actions: - {utter_greet
HIGHtests/core/policies/test_rule_policy.py0version: "{latest_training_data_format_version}" intents: - {greet_intent_name} - {other_intent} actions: - {utter_greet
HIGHtests/core/policies/test_rule_policy.py0version: "{latest_training_data_format_version}" intents: - {greet_intent_name} actions: - {utter_greet_action} - {handl
HIGHtests/core/policies/test_rule_policy.py0version: "{latest_training_data_format_version}" intents: - {greet_intent_name} actions: - {utter_greet_action} - {handl
HIGHtests/core/policies/test_rule_policy.py0version: "{latest_training_data_format_version}" intents: - {greet_intent_name} actions: - {utter_greet_action} - {handl
HIGHtests/core/policies/test_rule_policy.py0version: "{latest_training_data_format_version}" intents: - {greet_intent_name} actions: - {utter_greet_action} - {handl
HIGHtests/core/policies/test_rule_policy.py0version: "{latest_training_data_format_version}" intents: - {intent_1} actions: - {utter_1} - {utter_2}
HIGHtests/core/policies/test_rule_policy.py0version: "{latest_training_data_format_version}" intents: - {intent_1} actions: - {utter_1} - {utter_2}
HIGHtests/core/policies/test_rule_policy.py0version: "{latest_training_data_format_version}" intents: - {intent_1} actions: - {utter_1} - {utter_2}
HIGHtests/core/policies/test_rule_policy.py0version: "{latest_training_data_format_version}" intents: - {intent_1} actions: - {utter_1} - {utter_2}
HIGHtests/core/evaluation/test_marker.py0each marker applies an exact number of times (slots are immediately un-set).
HIGHtests/core/evaluation/test_marker.py0each marker applies an exact number of times (slots are immediately un-set).
HIGHtests/core/evaluation/test_marker.py0each marker applies an exact number of times (slots are immediately un-set).
HIGH…e/training_data/story_reader/test_yaml_story_reader.py0stories: - story: my story steps: - intent: greet - slot_was_set: - my_slot
HIGH…e/training_data/story_reader/test_yaml_story_reader.py0stories: - story: my story steps: - intent: greet - slot_was_set: - my_slot
HIGH…e/training_data/story_reader/test_yaml_story_reader.py0stories: - story: my story steps: - intent: greet - slot_was_set: - my_slot
HIGH…e/training_data/story_reader/test_yaml_story_reader.py0stories: - story: my story steps: - intent: greet - slot_was_set: - my_slot
HIGHtests/engine/test_validation.py0any extra python dependencies required for this component to run.
HIGHtests/engine/test_validation.py0any extra python dependencies required for this component to run.
HIGHdata/test_classes/graph_component_interface.py0any extra python dependencies required for this component to run.
HIGHdata/test_classes/custom_graph_components/nlu_dense.py0any extra python dependencies required for this component to run.
HIGHdata/test_classes/custom_graph_components/nlu_sparse.py0any extra python dependencies required for this component to run.
HIGH…a/nlu/featurizers/dense_featurizer/mitie_featurizer.py0any extra python dependencies required for this component to run.
HIGH…a/nlu/featurizers/dense_featurizer/spacy_featurizer.py0any extra python dependencies required for this component to run.
HIGH…turizers/sparse_featurizer/count_vectors_featurizer.py0any extra python dependencies required for this component to run.
210 more matches not shown…
Hallucination Indicators40 hits · 438 pts
SeverityFileLineSnippet
CRITICALtests/test_server.py1954 assert rasa_app.sanic_app.ctx.agent.processor._has_session_expired(tracker)
CRITICALtests/core/featurizers/test_tracker_featurizer.py30from rasa.core.exceptions import InvalidTrackerFeaturizerUsageError
CRITICALtests/nlu/test_evaluation.py611 training_data_obj = rasa.shared.nlu.training_data.loading.load_data(
CRITICALtests/nlu/test_evaluation.py614 training_data_responses_obj = rasa.shared.nlu.training_data.loading.load_data(
CRITICALtests/nlu/test_evaluation.py161TRAINING_DATA = rasa.shared.nlu.training_data.loading.load_data(
CRITICALtests/nlu/test_evaluation.py421 td = rasa.shared.nlu.training_data.loading.load_data(
CRITICALtests/nlu/test_evaluation.py515 td = rasa.shared.nlu.training_data.loading.load_data(
CRITICALtests/nlu/test_evaluation.py562 td = rasa.shared.nlu.training_data.loading.load_data(
CRITICALtests/nlu/test_evaluation.py694 td = rasa.shared.nlu.training_data.loading.load_data(
CRITICALtests/nlu/classifiers/test_mitie_intent_classifier.py50 training_data = rasa.shared.nlu.training_data.loading.load_data(
CRITICALtests/nlu/classifiers/test_keyword_classifier.py25 return rasa.shared.nlu.training_data.loading.load_data(nlu_as_json_path)
CRITICALtests/nlu/classifiers/test_sklearn_classifier.py23 return rasa.shared.nlu.training_data.loading.load_data(nlu_data_path)
CRITICALtests/nlu/selectors/test_selectors.py65 training_data = rasa.shared.nlu.training_data.loading.load_data(
CRITICALtests/nlu/selectors/test_selectors.py68 training_data_responses = rasa.shared.nlu.training_data.loading.load_data(
CRITICALtests/shared/core/training_data/test_structures.py85 rasa.shared.core.training_data.structures._cap_length("mystring", 6) == "mys..."
CRITICALtests/shared/core/training_data/test_structures.py91 rasa.shared.core.training_data.structures._cap_length(
CRITICALtests/shared/core/training_data/test_structures.py99 assert rasa.shared.core.training_data.structures._cap_length("my", 3) == "my"
CRITICALtests/shared/core/training_data/test_graph.py56 story_steps = rasa.shared.core.training_data.loading.load_data_from_resource(
CRITICALtests/shared/core/training_data/test_graph.py62 story_steps_2 = rasa.shared.core.training_data.loading.load_data_from_resource(
CRITICALtests/shared/core/training_data/test_graph.py77 story_steps = rasa.shared.core.training_data.loading.load_data_from_resource(
CRITICALtests/shared/nlu/training_data/test_util.py21 rasa.shared.nlu.training_data.util.has_string_escape_chars(s)
CRITICALtests/shared/nlu/training_data/test_util.py32 result = rasa.shared.nlu.training_data.util.sparse_matrix_to_string(m_sparse)
CRITICALrasa/server.py181 if await request.app.ctx.agent.tracker_store.exists(conversation_id):
CRITICALrasa/server.py1487 rasa.shared.nlu.training_data.schemas.data_schema.rasa_nlu_data_schema(),
CRITICALrasa/core/processor.py223 new_events = rasa.shared.core.trackers.TrackerEventDiffEngine.event_difference(
CRITICALrasa/core/visualize.py47 nlu_training_data = rasa.shared.nlu.training_data.loading.load_data(
CRITICALrasa/core/visualize.py57 rasa.shared.core.training_data.visualization.visualize_stories(
CRITICALrasa/core/brokers/kafka.py12from rasa.core.exceptions import KafkaProducerInitializationError
CRITICALrasa/core/featurizers/tracker_featurizers.py29from rasa.core.exceptions import InvalidTrackerFeaturizerUsageError
CRITICALrasa/core/channels/twilio_voice.py255 tracker = await request.app.ctx.agent.tracker_store.retrieve(sender_id)
CRITICALrasa/nlu/convert.py34 td = rasa.shared.nlu.training_data.loading.load_data(data_file, language)
CRITICALrasa/nlu/persistor.py218 from azure.core.exceptions import ResourceExistsError
CRITICALrasa/shared/nlu/training_data/features.py275 f_as_text = rasa.shared.nlu.training_data.util.sparse_matrix_to_string(
CRITICALrasa/shared/nlu/training_data/entities_parser.py67 entity = rasa.shared.nlu.training_data.util.build_entity(
CRITICALrasa/shared/nlu/training_data/entities_parser.py92 entity = rasa.shared.nlu.training_data.util.build_entity(
CRITICALrasa/shared/nlu/training_data/formats/readerwriter.py102 return f"- {rasa.shared.nlu.training_data.util.encode_string(text)}\n"
CRITICALrasa/shared/nlu/training_data/formats/dialogflow.py98 entity = rasa.shared.nlu.training_data.util.build_entity(
CRITICALrasa/shared/nlu/training_data/formats/rasa_yaml.py526 rasa.shared.nlu.training_data.util.has_string_escape_chars(
CRITICALrasa/cli/data.py182 nlu_data = rasa.shared.nlu.training_data.loading.load_data(data_path)
CRITICALrasa/cli/data.py183 extension = rasa.shared.nlu.training_data.util.get_file_format_extension(data_path)
Docstring Block Structure41 hits · 205 pts
SeverityFileLineSnippet
HIGH.github/scripts/mr_publish_results.py91Transform string (with hours, minutes, and seconds) to seconds. Args: duration: Examples: '1m27s', '1m27.3s
HIGHrasa/model_testing.py395Completes the sklearn classification report with accuracy xor micro avg. Args: report: Report generated by
HIGHrasa/model_training.py101Checks if there are any unresolved slots. Args: domain: The domain. stories: The story graph.
HIGHrasa/model.py20Returns verified path to local model archive. Args: model_path: Path to the zipped model. If it's a directo
HIGHrasa/core/brokers/pika.py99Get queues for this event broker. The preferred argument defining the RabbitMQ queues the `PikaEventBroker` sho
HIGHrasa/core/featurizers/precomputation.py174Collects features for all attributes in the given substate. There might be be multiple messages in the containe
HIGHrasa/core/actions/action.py165Retrieves an action by its name or by its text in case it's an end-to-end action. Args: action_name_or_text
HIGHrasa/core/evaluation/marker_base.py799Creates an operator marker from the given config. The configuration must consist of a list of marker configurat
HIGHrasa/core/evaluation/marker_base.py896Creates an atomic marker from the given config. Args: tag: the tag identifying a condition
HIGHrasa/nlu/featurizers/dense_featurizer/lm_featurizer.py304Computes token ids and token strings for each example in batch. A token id is the id of that token in the vocab
HIGHrasa/nlu/featurizers/dense_featurizer/lm_featurizer.py571Computes dense features of each example in the batch. We first add the special tokens corresponding to each lan
HIGHrasa/nlu/featurizers/dense_featurizer/lm_featurizer.py666Computes language model docs for all examples in the batch. Args: batch_examples: Batch of message
HIGHrasa/utils/train_utils.py307Create data generators for train and optional validation data. Args: model_data: The model data to use.
HIGHrasa/utils/plotting.py154Extracts all information from the data needed to plot a paired histogram. Args: histogram_data: Two data ve
HIGHrasa/utils/tensorflow/metrics.py13Computes F-Beta score. It is the weighted harmonic mean of precision and recall. Output range is `[0, 1]`. Work
HIGHrasa/utils/tensorflow/metrics.py211Computes F-1 Score. It is the harmonic mean of precision and recall. Output range is `[0, 1]`. Works for both m
HIGHrasa/utils/tensorflow/model_data.py215Obtain number of examples in data. Args: data: The data. Raises: A ValueError if number of
HIGHrasa/utils/tensorflow/model_data.py399Create random hold out test set using stratified split. Args: number_of_test_examples: Number of te
HIGHrasa/utils/tensorflow/model_data.py606Check whether the test data set is too large or too small. Args: number_of_test_examples: number of
HIGHrasa/utils/tensorflow/model_data.py774Convert various size label_ids into single dim array. For multi-label y, map each distinct row to a string repr
HIGHrasa/utils/tensorflow/model_data_utils.py34Converts training data into a list of attribute to features. Possible attributes are, for example, INTENT, RESPONSE
HIGHrasa/shared/core/domain.py1799Checks whether the given file path is a Rasa domain file. Args: filename: Path of the file which sh
HIGHrasa/shared/core/conversation.py32Create `Dialogue` from parameters. Args: parameters: Serialised dialogue, should contain keys 'name
HIGHrasa/shared/core/events.py164Splits events according to an event type and condition. Examples: Splitting events according to the event t
HIGH…d/core/training_data/story_reader/yaml_story_reader.py168Check if file contains Core training data or rule data in YAML format. Args: file_path: Path of the
HIGHrasa/shared/nlu/training_data/training_data.py538Get all responses used in any of the examples. Args: examples: messages to select responses by.
HIGHrasa/shared/nlu/training_data/features.py291Filters the given list of features. Args: features_list: list of features to be filtered at
HIGHrasa/shared/nlu/training_data/features.py331Groups the given features according to their attribute. Args: features_list: list of features to be g
HIGHrasa/shared/nlu/training_data/entities_parser.py154Converts the provided `json_str` to a valid dict containing the entity attributes. Users can specify entity rol
HIGHrasa/shared/nlu/training_data/formats/rasa_yaml.py340Checks if the specified file possibly contains NLU training data in YAML. Args: filename: name of t
HIGHrasa/shared/nlu/training_data/formats/rasa_yaml.py495Prepares training examples to be written to YAML. This can be any NLU training data (intent examples, lookup t
HIGHrasa/shared/utils/io.py562Validates YAML file content and returns parsed content. Args: filename: The path to the file which should b
HIGHrasa/shared/utils/io.py586Parses a yaml configuration file. Content needs to be a dictionary. Args: filename: The path to the file wh
HIGHrasa/shared/utils/io.py602Parses a model configuration file. Args: filename: The path to the file which should be read. Raises:
HIGHrasa/shared/utils/common.py16Given the module name and path of a class, tries to retrieve the class. The loaded class can be used to instantiate
HIGH…sa/graph_components/validators/finetuning_validator.py87Validates whether we can finetune Core and NLU when finetuning is enabled. Args: importer: a traini
HIGHrasa/engine/graph.py95Loads a graph schema which has been serialized using `schema.as_dict()`. Args: serialized_graph_sch
HIGHrasa/engine/storage/storage.py42Unpacks a model archive and initializes a `ModelStorage`. Args: storage_path: Directory which will
HIGHrasa/engine/storage/storage.py62Retrieves metadata from archive. Args: model_archive_path: The path to the model archive.
HIGHrasa/engine/storage/storage.py95Provides the data of a persisted `Resource`. Args: resource: The `Resource` whose persisted should
HIGHrasa/engine/recipes/recipe.py77Converts a config to a graph compatible model configuration. Args: config: The config which the `Re
Unused Imports174 hits · 168 pts
SeverityFileLineSnippet
LOWtests/core/test_evaluation.py28
LOWtests/core/test_evaluation.py28
LOWtests/core/utilities.py13
LOWtests/core/test_processor.py44
LOWtests/engine/graph_components_test_classes.py1
LOWtests/engine/test_graph.py1
LOWtests/engine/test_graph_node.py1
LOWtests/engine/runner/test_dask.py1
LOWexamples/formbot/actions/actions.py1
LOWscripts/prepare_nightly_release.py11
LOWdata/test_classes/graph_component_interface.py1
LOW…t_classes/custom_graph_components/nlu_meta_fallback.py1
LOW…t_classes/custom_graph_components/nlu_meta_fallback.py3
LOW…t_classes/custom_graph_components/nlu_meta_fallback.py7
LOWrasa/server.py81
LOWrasa/server.py82
LOWrasa/__init__.py3
LOWrasa/__init__.py4
LOWrasa/__init__.py4
LOWrasa/__init__.py4
LOWrasa/telemetry.py37
LOWrasa/telemetry.py38
LOWrasa/telemetry.py39
LOWrasa/telemetry.py40
LOWrasa/telemetry.py41
LOWrasa/telemetry.py42
LOWrasa/api.py1
LOWrasa/api.py1
LOWrasa/api.py1
LOWrasa/api.py1
LOWrasa/api.py1
LOWrasa/api.py1
LOWrasa/api.py14
LOWrasa/plugin.py11
LOWrasa/plugin.py12
LOWrasa/plugin.py13
LOWrasa/plugin.py14
LOWrasa/plugin.py15
LOWrasa/plugin.py16
LOWrasa/plugin.py17
LOWrasa/plugin.py18
LOWrasa/jupyter.py12
LOWrasa/core/run.py30
LOWrasa/core/test.py67
LOWrasa/core/test.py69
LOWrasa/core/tracker_store.py1
LOWrasa/core/tracker_store.py59
LOWrasa/core/tracker_store.py60
LOWrasa/core/tracker_store.py60
LOWrasa/core/agent.py1
LOWrasa/core/lock_store.py1
LOWrasa/core/brokers/pika.py18
LOWrasa/core/brokers/file.py10
LOWrasa/core/brokers/kafka.py18
LOWrasa/core/brokers/broker.py1
LOWrasa/core/featurizers/tracker_featurizers.py1
LOWrasa/core/featurizers/precomputation.py1
LOWrasa/core/nlg/__init__.py1
LOWrasa/core/nlg/__init__.py2
LOWrasa/core/nlg/__init__.py3
114 more matches not shown…
Deep Nesting117 hits · 112 pts
SeverityFileLineSnippet
LOWtests/core/featurizers/test_tracker_featurizer.py159
LOWtests/nlu/classifiers/test_diet_classifier.py751
LOWtests/nlu/classifiers/test_diet_classifier.py842
LOWtests/nlu/selectors/test_selectors.py655
LOWtests/nlu/selectors/test_selectors.py768
LOWtests/utils/tensorflow/test_model_data.py59
LOW…e/training_data/story_reader/test_yaml_story_reader.py837
LOW…ts/providers/test_domain_for_core_training_provider.py45
LOW…aph_components/validators/test_finetuning_validator.py310
LOWtests/engine/test_validation.py972
LOWscripts/release.py269
LOWscripts/publish_gh_release_notes.py38
LOW.github/scripts/mr_generate_summary.py11
LOW.github/scripts/mr_publish_results.py122
LOWrasa/validator.py359
LOWrasa/server.py444
LOWrasa/telemetry.py617
LOWrasa/core/processor.py953
LOWrasa/core/test.py455
LOWrasa/core/test.py598
LOWrasa/core/test.py813
LOWrasa/core/test.py244
LOWrasa/core/test.py284
LOWrasa/core/tracker_store.py1494
LOWrasa/core/agent.py97
LOWrasa/core/agent.py195
LOWrasa/core/migrate.py168
LOWrasa/core/migrate.py203
LOWrasa/core/migrate.py280
LOWrasa/core/brokers/kafka.py109
LOWrasa/core/brokers/kafka.py171
LOWrasa/core/brokers/broker.py81
LOWrasa/core/featurizers/single_state_featurizer.py111
LOWrasa/core/featurizers/tracker_featurizers.py572
LOWrasa/core/featurizers/tracker_featurizers.py786
LOWrasa/core/featurizers/tracker_featurizers.py849
LOWrasa/core/featurizers/tracker_featurizers.py1040
LOWrasa/core/nlg/interpolator.py55
LOWrasa/core/training/interactive.py494
LOWrasa/core/training/interactive.py635
LOWrasa/core/training/interactive.py1474
LOWrasa/core/training/story_conflict.py281
LOWrasa/core/training/story_conflict.py335
LOWrasa/core/training/story_conflict.py96
LOWrasa/core/policies/policy.py438
LOWrasa/core/policies/memoization.py96
LOWrasa/core/policies/unexpected_intent_policy.py645
LOWrasa/core/policies/rule_policy.py609
LOWrasa/core/actions/action.py1101
LOWrasa/core/actions/action.py1231
LOWrasa/core/actions/forms.py123
LOWrasa/core/channels/hangouts.py103
LOWrasa/core/channels/hangouts.py239
LOWrasa/core/channels/console.py188
LOWrasa/core/channels/telegram.py52
LOWrasa/core/channels/telegram.py195
LOWrasa/core/channels/telegram.py216
LOWrasa/core/channels/facebook.py98
LOWrasa/core/channels/facebook.py107
LOWrasa/core/channels/facebook.py270
57 more matches not shown…
Self-Referential Comments26 hits · 86 pts
SeverityFileLineSnippet
MEDIUMtests/test_model_testing.py50 # Create a fake model on disk so that `is_file` returns `True`
MEDIUMtests/core/training/test_story_conflict.py41 # Create a list of `StoryConflict` objects
MEDIUMtests/core/training/test_story_conflict.py81 # Create a list of `StoryConflict` objects
MEDIUMtests/core/training/test_story_conflict.py94 # Create a list of `StoryConflict` objects
MEDIUMtests/core/training/test_story_conflict.py107 # Create a list of `StoryConflict` objects
MEDIUMtests/core/training/test_story_conflict.py120 # Create a list of `StoryConflict` objects
MEDIUMtests/core/training/test_story_conflict.py132 # Create a list of `StoryConflict` objects
MEDIUMtests/core/training/test_story_conflict.py145 # Create a list of `StoryConflict` objects
MEDIUMtests/utils/tensorflow/test_layers.py426 # Create a unit vector [1, 0, 0, 0, ...]
MEDIUMtests/shared/core/test_domain.py1391 # Create a sorted list of entity names from 'a' to 'z', and two randomly shuffled
MEDIUMtests/shared/core/test_events.py319 # Create the event from a `dict` that will be accepted by the
MEDIUMtests/shared/core/test_events.py338 # Create an event without metadata. When converting the `Event` to a
MEDIUMexamples/reminderbot/endpoints.yml1# This file contains the different endpoints your bot can use.
MEDIUMexamples/reminderbot/credentials.yml1# This file contains the credentials for the voice & chat platforms
MEDIUM…test_action_extract_slots_11333/tests/test_stories.yml1#### This file contains tests to evaluate that your bot behaves as expected.
MEDIUMrasa/validator.py310 # Create a list of `StoryConflict` objects
MEDIUMrasa/server.py680 # Initialize shared object of type unsigned int for tracking
MEDIUMrasa/core/policies/unexpected_intent_policy.py980 # Create a tensor of values with sign opposite to `LABEL_PAD_ID` which
MEDIUMrasa/core/policies/rule_policy.py862 # This function is called a lot (e.g. for checking contradictions) so we cache
MEDIUMrasa/core/channels/webexteams.py113 # Create a Webhook object from the JSON data
MEDIUMrasa/utils/tensorflow/layers.py1564 # Create an indicator for the positive labels by concatenating the 1 for all
MEDIUMrasa/utils/tensorflow/feature_array.py230 """This method is called when the system allocates a new array from obj.
MEDIUMrasa/shared/nlu/training_data/features.py47 # Create a unique key for this tensor in the safetensors file
MEDIUMrasa/cli/initial_project/endpoints.yml1# This file contains the different endpoints your bot can use.
MEDIUMrasa/cli/initial_project/credentials.yml1# This file contains the credentials for the voice & chat platforms
MEDIUMrasa/cli/initial_project/tests/test_stories.yml1#### This file contains tests to evaluate that your bot behaves as expected.
Over-Commented Block81 hits · 78 pts
SeverityFileLineSnippet
LOW.typo-ci.yml1# This is a sample .typo-ci.yml file, it's used to configure how Typo CI will behave.
LOWtests/core/evaluation/test_marker.py601 [
LOWexamples/reminderbot/endpoints.yml1# This file contains the different endpoints your bot can use.
LOWexamples/reminderbot/endpoints.yml21# type: redis
LOWexamples/reminderbot/endpoints.yml41# password: password
LOWexamples/reminderbot/credentials.yml1# This file contains the credentials for the voice & chat platforms
LOWexamples/reminderbot/credentials.yml21# slack_token: "<your slack token>"
LOWexamples/rules/domain.yml21 type: text
LOWscripts/push_docs_to_branch.sh1#!/bin/bash
LOW.github/workflows/ci-model-regression.yml521 env:
LOW.github/workflows/continous-integration.yml21# - DOCKERHUB_PASSWORD: password for an account with write access to the rasa
LOW.github/workflows/continous-integration.yml1101 # In this scenario, we've pushed the '2.0.6' tag
LOW.github/workflows/continous-integration.yml1221# RELEASE_TAG="${IMAGE_TAG}"
LOW.github/workflows/ci-model-regression-on-schedule.yml181
LOW.github/configs/mr-test-example.yaml1## Example configuration
LOW.github/configs/mr-test-example.yaml21## Example: Use all available configurations for the "Carbon Bot" and "Sara" datasets
LOW…no_session_config_and_custom_session_config/config.yml1recipe: default.v1
LOW…no_session_config_and_custom_session_config/config.yml21# constrain_similarities: true
LOW…_for_docs/example_for_suggested_config_after_train.yml1recipe: default.v1
LOWdata/test_config/config_unique_assistant_id.yml1recipe: default.v1
LOWdata/test_config/config_unique_assistant_id.yml21# epochs: 100
LOWdata/test_config/config_empty_en_after_dumping.yml1recipe: default.v1
LOWdata/test_config/config_empty_en_after_dumping.yml21# epochs: 100
LOWdata/test_config/config_defaults.yml1recipe: default.v1
LOWdata/test_config/config_defaults.yml21# epochs: 100
LOW…est_config/config_with_comment_between_suggestions.yml1recipe: default.v1
LOW…est_config/config_with_comment_between_suggestions.yml21# - name: FallbackClassifier
LOWdata/test_config/config_with_comments_after_dumping.yml21 epochs: 100
LOWdata/test_config/config_empty_fr_after_dumping.yml1language: fr
LOWdata/test_config/config_empty_fr_after_dumping.yml21# constrain_similarities: true
LOWdata/test_config/config_empty_en_after_dumping_nlu.yml1recipe: default.v1
LOWdata/test_config/config_empty_en_after_dumping_nlu.yml21# epochs: 100
LOWdata/test_config/config_empty_en_after_dumping_core.yml1recipe: default.v1
LOW…from_trigger_intent_with_mapping_conditions/config.yml41# # See https://rasa.com/docs/rasa/policies for more information.
LOW…m_trigger_intent_with_no_mapping_conditions/config.yml41# # See https://rasa.com/docs/rasa/policies for more information.
LOWdata/test_action_extract_slots_11333/config.yml21 min_ngram: 1
LOWdata/test_action_extract_slots_11333/config.yml41 - name: AugmentedMemoizationPolicy
LOWrasa/core/constants.py41# policies only predict an action if the last event in
LOWrasa/core/policies/ted_policy.py221 # Number of attention heads in transformer
LOWrasa/core/policies/ted_policy.py241 # Number of epochs to train
LOWrasa/core/policies/ted_policy.py261 # Determines wether the confidences of the chosen top actions should be
LOWrasa/core/policies/ted_policy.py281 # The scale of regularization
LOWrasa/core/policies/ted_policy.py301 # If 'True' random tokens of the input message will be masked. Since there
LOWrasa/core/policies/ted_policy.py321 CHECKPOINT_MODEL: False,
LOWrasa/core/policies/ted_policy.py1481
LOWrasa/core/policies/ted_policy.py1581 # For example:
LOWrasa/core/policies/ted_policy.py1861 ) -> Tuple[tf.Tensor, tf.Tensor, tf.Tensor]:
LOWrasa/core/policies/unexpected_intent_policy.py181 # if key- or value relative attention are turned on
LOWrasa/core/policies/unexpected_intent_policy.py201 EMBEDDING_DIMENSION: 20,
LOWrasa/core/policies/unexpected_intent_policy.py221 DROP_RATE_ATTENTION: 0.0,
LOWrasa/core/policies/unexpected_intent_policy.py241 # metrics, set this option to a valid output directory.
LOWrasa/core/policies/unexpected_intent_policy.py261 # examples. Any tracker with a similarity score below this
LOWrasa/core/policies/rule_policy.py121 # Priority of the policy which is used if multiple policies predict
LOW…turizers/sparse_featurizer/count_vectors_featurizer.py61 # whether to use a shared vocab
LOWrasa/nlu/classifiers/diet_classifier.py161 HIDDEN_LAYERS_SIZES: {TEXT: [], LABEL: []},
LOWrasa/nlu/classifiers/diet_classifier.py181 # Batch size will be linearly increased for each epoch.
LOWrasa/nlu/classifiers/diet_classifier.py201 NUM_NEG: 20,
LOWrasa/nlu/classifiers/diet_classifier.py221 SCALE_LOSS: False,
LOWrasa/nlu/classifiers/diet_classifier.py241 # Small values may hurt performance.
LOWrasa/nlu/classifiers/diet_classifier.py261 # metrics, set this option to a valid output directory.
21 more matches not shown…
Excessive Try-Catch Wrapping66 hits · 64 pts
SeverityFileLineSnippet
MEDIUMrasa/server.py554def wrapped() -> None:
LOWrasa/server.py1510 except Exception as e:
LOWrasa/server.py486 except Exception as e:
LOWrasa/server.py565 except Exception as e:
LOWrasa/server.py734 except Exception as e:
LOWrasa/server.py770 except Exception as e:
LOWrasa/server.py820 except Exception as e:
LOWrasa/server.py847 except Exception as e:
LOWrasa/server.py899 except Exception as e:
LOWrasa/server.py957 except Exception as e:
LOWrasa/server.py986 except Exception as e:
LOWrasa/server.py1036 except Exception as e:
LOWrasa/server.py1089 except Exception as e:
LOWrasa/server.py1123 except Exception as e:
LOWrasa/server.py1179 except Exception as e:
LOWrasa/server.py1274 except Exception as e:
LOWrasa/server.py1287 except Exception as e:
LOWrasa/server.py1311 except Exception as e:
LOWrasa/server.py1322 except Exception as e:
LOWrasa/telemetry.py450 except Exception: # skipcq:PYL-W0703
LOWrasa/telemetry.py456 except Exception: # skipcq:PYL-W0703
LOWrasa/telemetry.py207 except Exception as e: # skipcq:PYL-W0703
LOWrasa/telemetry.py268 except Exception: # skipcq:PYL-W0703
LOWrasa/telemetry.py540 except Exception as e: # skipcq:PYL-W0703
LOWrasa/telemetry.py558 except Exception as e: # skipcq:PYL-W0703
LOWrasa/telemetry.py921 except Exception:
LOWrasa/core/exporter.py82 except Exception as e:
LOWrasa/core/processor.py993 except Exception:
LOWrasa/core/tracker_store.py1441 except Exception as e:
LOWrasa/core/tracker_store.py1449 except Exception as e:
LOWrasa/core/tracker_store.py1457 except Exception as e:
LOWrasa/core/tracker_store.py1471 except Exception as e:
LOWrasa/core/http_interpreter.py82 except Exception: # skipcq: PYL-W0703
LOWrasa/core/agent.py89 except Exception: # skipcq: PYL-W0703
LOWrasa/core/agent.py266 except Exception as e:
LOWrasa/core/lock_store.py86 except Exception as e:
LOWrasa/core/migrate.py395 except Exception as e:
LOWrasa/core/brokers/pika.py211 except Exception as e:
LOWrasa/core/brokers/pika.py312 except Exception as e:
LOWrasa/core/brokers/kafka.py140 except Exception as e:
LOWrasa/core/training/interactive.py871 except Exception as e:
LOWrasa/core/training/interactive.py1557 except Exception:
LOWrasa/core/channels/hangouts.py328 except Exception:
LOWrasa/core/channels/telegram.py276 except Exception as e:
LOWrasa/core/channels/rest.py175 except Exception:
LOWrasa/core/channels/channel.py200 except Exception:
LOWrasa/core/channels/botframework.py332 except Exception as e:
LOWrasa/core/channels/mattermost.py198 except Exception as e:
LOWrasa/core/channels/facebook.py158 except Exception:
LOWrasa/core/channels/facebook.py408 except Exception:
LOWrasa/core/channels/webexteams.py92 except Exception as e:
LOWrasa/core/channels/twilio.py155 except Exception as e:
LOWrasa/core/channels/slack.py395 except Exception as e:
LOWrasa/core/channels/slack.py490 except Exception as e:
LOWrasa/nlu/test.py1859 except Exception as e: # skipcq: PYL-W0703
LOWrasa/nlu/utils/__init__.py30 except Exception:
LOWrasa/nlu/extractors/mitie_entity_extractor.py182 except Exception as e:
LOWrasa/utils/plotting.py21 except Exception: # skipcq:PYL-W0703
LOWrasa/utils/common.py140 except Exception:
LOWrasa/utils/common.py386 except Exception as e:
6 more matches not shown…
AI Slop Vocabulary15 hits · 31 pts
SeverityFileLineSnippet
LOWtests/core/test_lock_store.py192 # we'll just return None.
LOWtests/integration_tests/core/test_lock_store.py110 # we'll just return None.
MEDIUMdocs/static/js/rasa-chatblock.min.js6*/var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function
MEDIUMdocs/static/js/rasa-chatblock.min.js6*/var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function
MEDIUMdocs/static/js/rasa-chatblock.min.js27 */var r=n(0),o=n(4),i=n(30);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<ar
MEDIUMdocs/static/js/rasa-chatblock.min.js27 */var r=n(0),o=n(4),i=n(30);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<ar
LOWrasa/core/training/interactive.py662 # in this case we will just return, and the original
LOWrasa/core/policies/ensemble.py306 # Reminder: If just a single policy is given, we do *not* just return it because
LOWrasa/core/evaluation/marker_base.py457 # Reminder: We could also just create a dictionary of markers from this.
MEDIUM…nlu/featurizers/dense_featurizer/convert_featurizer.py200 # Definitely invalid since the specified path should be a directory
MEDIUM…turizers/sparse_featurizer/count_vectors_featurizer.py728 # Definitely need to persist some vocabularies
LOWrasa/nlu/classifiers/diet_classifier.py711 # we don't have any intent labels during prediction, just add them during
LOWrasa/utils/tensorflow/crf.py153 # If max_seq_len is 1, we skip the algorithm and simply return the
MEDIUMrasa/utils/tensorflow/feature_array.py286 """Needed in order to pickle this object.
LOWrasa/engine/training/graph_trainer.py246 # execute the node again. We can just return it from a
Cross-Language Confusion3 hits · 22 pts
SeverityFileLineSnippet
HIGHtests/core/training/test_interactive.py559 "attachment": null,
HIGHtests/core/training/test_interactive.py560 "buttons": null,
HIGHtests/core/training/test_interactive.py568 "text": null,
Redundant / Tautological Comments10 hits · 14 pts
SeverityFileLineSnippet
LOWtests/core/policies/test_unexpected_intent_policy.py887 # Check if ranking is sorted correctly and truncated to `ranking_length`
LOWtests/core/policies/test_rule_policy.py3119 # Check if the presence of action_unlikely_intent
LOWtests/core/channels/test_slack.py313 # Check if re.escape was called with the expected argument
LOWtests/shared/importers/test_importer.py170 # Check if the NLU training data was added correctly from the story training data
LOWtests/shared/importers/test_multi_project.py38 # Check if loading from `.yaml` also works
LOW.github/workflows/ci-model-regression-on-schedule.yml598 # Set IS_DROPPED to true if there is any value lower
LOWrasa/server.py1432 # Check if matching channels can provide a valid output channel,
LOWrasa/core/policies/unexpected_intent_policy.py206 # Set this to `0` to include all intents.
LOWrasa/core/policies/rule_policy.py1058 # Check if a rule that predicted action_listen
LOWrasa/cli/utils.py280 # Check if a valid setting for `max_history` was given
Slop Phrases8 hits · 12 pts
SeverityFileLineSnippet
LOWtests/shared/nlu/training_data/test_features.py365 # don't forget to check the origin
LOWtests/shared/nlu/training_data/test_features.py365 # don't forget to check the origin
LOWrasa/core/training/interactive.py96# automatically. If you change anything in here, please make sure to
LOWrasa/core/policies/ted_policy.py174 # please make sure to update the docs when changing a default parameter
LOWrasa/core/policies/memoization.py68 # please make sure to update the docs when changing a default parameter
LOWrasa/nlu/classifiers/fallback_classifier.py44 # please make sure to update the docs when changing a default parameter
LOWrasa/nlu/classifiers/diet_classifier.py154 # please make sure to update the docs when changing a default parameter
LOWrasa/shared/core/constants.py132# if you add more policy/classifier names, make sure to add a test as well to ensure
Overly Generic Function Names4 hits · 6 pts
SeverityFileLineSnippet
LOWtests/utils/test_common.py68 async def my_function():
LOWtests/utils/test_common.py79 def my_function():
LOWtests/shared/utils/test_common.py131 def my_function():
LOWtests/shared/utils/test_common.py141 async def my_function():
Fake / Example Data2 hits · 3 pts
SeverityFileLineSnippet
LOWtests/core/conftest.py92 entities=[{"entity": "name", "value": "Jane Doe"}],
LOWtests/core/conftest.py98 entities=[{"entity": "name", "value": "Jane Doe"}],