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

22.9 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of RasaHQ/rasa, a Python project with 21,240 GitHub stars. SynthScan v2.0 examined 202,310 lines of code across 1163 source files, recording 3524 pattern matches distributed across 19 syntactic categories. The overall adjusted score of 22.9 places this repository in the Moderate AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

22.9
Adjusted Score
22.9
Raw Score
100%
Time Factor
2026-05-22
Last Push
21.2K
Stars
Python
Language
202.3K
Lines of Code
1.2K
Files
3.5K
Pattern Hits
2026-07-14
Scan Date
0.23
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 40HIGH 229MEDIUM 34LOW 3221

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 3524 distinct pattern matches across 19 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Hyper-Verbose Identifiers2513 hits · 2219 pts
SeverityFileLineSnippetContext
LOWtests/test_model.py34def test_get_local_model_exception(model_path: Optional[Text]):CODE
LOWtests/test_model.py45def test_model_fingerprint_with_no_git(monkeypatch: MonkeyPatch, tmp_path: Path):CODE
LOWtests/conftest.py121def domain_with_categorical_slot_path() -> Text:CODE
LOWtests/conftest.py195def story_file_trips_circuit_breaker_path() -> Text:STRING
LOWtests/conftest.py233async def trained_default_agent_model(STRING
LOWtests/conftest.py276async def trained_moodbot_core_path(trained_async: Callable) -> Text:STRING
LOWtests/conftest.py294async def trained_unexpected_intent_policy_path(trained_async: Callable) -> Text:STRING
LOWtests/conftest.py336async def unexpected_intent_policy_agent(STRING
LOWtests/conftest.py561def rasa_server_secured_asymmetric(CODE
LOWtests/conftest.py590def rasa_non_trained_server_secured(empty_agent: Agent) -> Sanic:CODE
LOWtests/conftest.py620def spacy_case_sensitive_nlp_component() -> SpacyNLP:CODE
LOWtests/conftest.py637async def response_selector_test_stories() -> Path:CODE
LOWtests/conftest.py642async def trained_response_selector_bot(trained_async: Callable) -> Path:CODE
LOWtests/conftest.py711def write_endpoint_config_to_yaml(CODE
LOWtests/conftest.py721def random_user_uttered_event(timestamp: Optional[float] = None) -> UserUttered:CODE
LOWtests/conftest.py759def _get_marker_for_ci_matrix(item: Function) -> Text:CODE
LOWtests/conftest.py790def pytest_collection_modifyitems(items: List[Function]) -> None:CODE
LOWtests/conftest.py803def create_test_file_with_size(directory: Path, size_in_mb: float) -> Path:CODE
LOWtests/conftest.py818def default_execution_context() -> ExecutionContext:CODE
LOWtests/conftest.py899def initial_events_including_restart() -> List[Event]:CODE
LOWtests/conftest.py924def tracker_with_restarted_event(CODE
LOWtests/test_dependencies.py5def test_tensorflow_text_install():CODE
LOWtests/test_plugin.py25def test_plugin_create_tracker_store(CODE
LOWtests/test_plugin.py49def test_init_anonymization_pipeline(CODE
LOWtests/test_plugin.py64def test_get_anonymization_pipeline(monkeypatch: MonkeyPatch) -> None:CODE
LOWtests/test_model_testing.py38def monkeypatch_get_latest_model(tmp_path: Path, monkeypatch: MonkeyPatch) -> None:CODE
LOWtests/test_model_testing.py43def test_get_sanitized_model_directory_when_not_passing_model(CODE
LOWtests/test_model_testing.py62def test_get_sanitized_model_directory_when_passing_model_file_explicitly(CODE
LOWtests/test_model_testing.py81def test_get_sanitized_model_directory_when_passing_other_input(CODE
LOWtests/test_model_testing.py117def test_get_evaluation_metrics(CODE
LOWtests/test_model_testing.py248def test_make_classification_report_complete(CODE
LOWtests/test_model_testing.py313def test_make_classification_report_complete_raises_clf_report_exception(CODE
LOWtests/test_model_testing.py366def test_write_classification_errors():CODE
LOWtests/test_model_testing.py528def test_evaluation_store_serialise(STRING
LOWtests/test_model_testing.py559def test_test_does_not_use_rules(tmp_path: Path, default_agent: Agent):STRING
LOWtests/test_model_testing.py586def test_duplicated_entity_predictions_tolerated():STRING
LOWtests/test_model_testing.py612def test_differently_ordered_entity_predictions_tolerated():STRING
LOWtests/test_server.py304async def test_parse_with_different_emulation_mode(CODE
LOWtests/test_server.py313async def test_parse_without_nlu_model(rasa_app_core: SanicASGITestClient):CODE
LOWtests/test_server.py321async def test_parse_on_invalid_emulation_mode(rasa_app: SanicASGITestClient):CODE
LOWtests/test_server.py145def rasa_secured_app_asymmetric(CODE
LOWtests/test_server.py152def rasa_non_trained_secured_app(CODE
LOWtests/test_server.py170async def test_root_without_enable_api(rasa_app_without_api: SanicASGITestClient):CODE
LOWtests/test_server.py217async def test_status_not_ready_agent(rasa_app: SanicASGITestClient):CODE
LOWtests/test_server.py366async def test_train_core_success_with(CODE
LOWtests/test_server.py1917async def test_get_story_without_conversation_id(CODE
LOWtests/test_server.py1929async def test_get_story_does_not_update_conversation_session(CODE
LOWtests/test_server.py2037async def test_update_conversation_with_events(CODE
LOWtests/test_server.py2064async def test_append_events_does_not_repeat_session_start(CODE
LOWtests/test_server.py2110async def _create_tracker_for_query_params(CODE
LOWtests/test_server.py2160async def test_get_tracker_with_query_param_include_events_all(CODE
LOWtests/test_server.py2187async def test_get_tracker_with_query_param_include_events_after_restart(CODE
LOWtests/test_server.py2218async def test_get_tracker_with_query_param_include_events_applied(CODE
LOWtests/test_server.py2254async def test_get_tracker_with_query_param_include_events_none(CODE
LOWtests/test_server.py2274async def test_retrieve_story_with_query_param_all_sessions_true(CODE
LOWtests/test_server.py2315async def test_retrieve_story_with_query_param_all_sessions_false(CODE
LOWtests/test_server.py2340async def test_retrieve_tracker_with_customized_action_session_start(CODE
LOWtests/test_server.py2346 async def mock_run_action_session_start(CODE
LOWtests/test_server.py750async def test_evaluate_invalid_intent_model_file(rasa_app: SanicASGITestClient):STRING
LOWtests/test_server.py760async def test_evaluate_intent_without_body(rasa_app: SanicASGITestClient):STRING
2453 more matches not shown…
Cross-File Repetition185 hits · 925 pts
SeverityFileLineSnippetContext
HIGHtests/engine/test_validation.py0any extra python dependencies required for this component to run.STRING
HIGHdata/test_classes/graph_component_interface.py0any extra python dependencies required for this component to run.STRING
HIGHdata/test_classes/custom_graph_components/nlu_dense.py0any extra python dependencies required for this component to run.STRING
HIGHdata/test_classes/custom_graph_components/nlu_sparse.py0any extra python dependencies required for this component to run.STRING
HIGH…a/nlu/featurizers/dense_featurizer/mitie_featurizer.py0any extra python dependencies required for this component to run.STRING
HIGH…a/nlu/featurizers/dense_featurizer/spacy_featurizer.py0any extra python dependencies required for this component to run.STRING
HIGH…turizers/sparse_featurizer/count_vectors_featurizer.py0any extra python dependencies required for this component to run.STRING
HIGHrasa/nlu/tokenizers/spacy_tokenizer.py0any extra python dependencies required for this component to run.STRING
HIGHrasa/nlu/tokenizers/jieba_tokenizer.py0any extra python dependencies required for this component to run.STRING
HIGHrasa/nlu/tokenizers/mitie_tokenizer.py0any extra python dependencies required for this component to run.STRING
HIGHrasa/nlu/extractors/crf_entity_extractor.py0any extra python dependencies required for this component to run.STRING
HIGHrasa/nlu/extractors/mitie_entity_extractor.py0any extra python dependencies required for this component to run.STRING
HIGHrasa/nlu/classifiers/sklearn_intent_classifier.py0any extra python dependencies required for this component to run.STRING
HIGHrasa/nlu/classifiers/logistic_regression_classifier.py0any extra python dependencies required for this component to run.STRING
HIGHrasa/engine/graph.py0any extra python dependencies required for this component to run.STRING
HIGHscripts/release.py0parse all the command line arguments for the release script.STRING
HIGHscripts/evaluate_release_tag.py0parse all the command line arguments for the release script.STRING
HIGHscripts/prepare_nightly_release.py0parse all the command line arguments for the release script.STRING
HIGHdata/test_classes/graph_component_interface.py0components that should be included in the pipeline before this component.STRING
HIGHdata/test_classes/custom_graph_components/nlu_dense.py0components that should be included in the pipeline before this component.STRING
HIGHdata/test_classes/custom_graph_components/nlu_sparse.py0components that should be included in the pipeline before this component.STRING
HIGH…a/nlu/featurizers/dense_featurizer/mitie_featurizer.py0components that should be included in the pipeline before this component.STRING
HIGH…a/nlu/featurizers/dense_featurizer/spacy_featurizer.py0components that should be included in the pipeline before this component.STRING
HIGHrasa/nlu/featurizers/dense_featurizer/lm_featurizer.py0components that should be included in the pipeline before this component.STRING
HIGH…nlu/featurizers/dense_featurizer/convert_featurizer.py0components that should be included in the pipeline before this component.STRING
HIGH…zers/sparse_featurizer/lexical_syntactic_featurizer.py0components that should be included in the pipeline before this component.STRING
HIGH…/nlu/featurizers/sparse_featurizer/regex_featurizer.py0components that should be included in the pipeline before this component.STRING
HIGH…turizers/sparse_featurizer/count_vectors_featurizer.py0components that should be included in the pipeline before this component.STRING
HIGHrasa/nlu/tokenizers/spacy_tokenizer.py0components that should be included in the pipeline before this component.STRING
HIGHrasa/nlu/extractors/spacy_entity_extractor.py0components that should be included in the pipeline before this component.STRING
HIGHrasa/nlu/extractors/crf_entity_extractor.py0components that should be included in the pipeline before this component.STRING
HIGHrasa/nlu/extractors/mitie_entity_extractor.py0components that should be included in the pipeline before this component.STRING
HIGHrasa/nlu/classifiers/fallback_classifier.py0components that should be included in the pipeline before this component.STRING
HIGHrasa/nlu/classifiers/mitie_intent_classifier.py0components that should be included in the pipeline before this component.STRING
HIGHrasa/nlu/classifiers/sklearn_intent_classifier.py0components that should be included in the pipeline before this component.STRING
HIGHrasa/nlu/classifiers/logistic_regression_classifier.py0components that should be included in the pipeline before this component.STRING
HIGHrasa/nlu/classifiers/diet_classifier.py0components that should be included in the pipeline before this component.STRING
HIGHrasa/nlu/selectors/response_selector.py0components that should be included in the pipeline before this component.STRING
HIGHrasa/engine/graph.py0components that should be included in the pipeline before this component.STRING
HIGHdata/test_classes/graph_component_interface.py0creates a new `graphcomponent`. args: config: this config overrides the `default_config`. model_storage: storage which gSTRING
HIGHrasa/engine/graph.py0creates a new `graphcomponent`. args: config: this config overrides the `default_config`. model_storage: storage which gSTRING
HIGHrasa/nlu/extractors/mitie_entity_extractor.py0creates a new `graphcomponent`. args: config: this config overrides the `default_config`. model_storage: storage which gSTRING
HIGHrasa/nlu/extractors/regex_entity_extractor.py0creates a new `graphcomponent`. args: config: this config overrides the `default_config`. model_storage: storage which gSTRING
HIGHdata/test_classes/graph_component_interface.py0determines which languages this component cannot work with. returns: a list of not supported languages, or `none` to sigSTRING
HIGH…nlu/featurizers/dense_featurizer/convert_featurizer.py0determines which languages this component cannot work with. returns: a list of not supported languages, or `none` to sigSTRING
HIGHrasa/engine/graph.py0determines which languages this component cannot work with. returns: a list of not supported languages, or `none` to sigSTRING
HIGHdata/test_classes/custom_graph_components/nlu_dense.py0creates a new untrained component (see parent class for full docstring).STRING
HIGH…a/nlu/featurizers/dense_featurizer/spacy_featurizer.py0creates a new untrained component (see parent class for full docstring).STRING
HIGH…nlu/featurizers/dense_featurizer/convert_featurizer.py0creates a new untrained component (see parent class for full docstring).STRING
HIGHrasa/nlu/tokenizers/tokenizer.py0creates a new untrained component (see parent class for full docstring).STRING
HIGHrasa/nlu/tokenizers/whitespace_tokenizer.py0creates a new untrained component (see parent class for full docstring).STRING
HIGHrasa/nlu/tokenizers/jieba_tokenizer.py0creates a new untrained component (see parent class for full docstring).STRING
HIGHrasa/nlu/tokenizers/mitie_tokenizer.py0creates a new untrained component (see parent class for full docstring).STRING
HIGHrasa/nlu/extractors/spacy_entity_extractor.py0creates a new untrained component (see parent class for full docstring).STRING
HIGHrasa/nlu/classifiers/fallback_classifier.py0creates a new untrained component (see parent class for full docstring).STRING
HIGHdata/test_classes/custom_graph_components/nlu_sparse.py0creates a new untrained component (see parent class for full docstring).STRING
HIGH…t_classes/custom_graph_components/nlu_meta_fallback.py0creates a new untrained component (see parent class for full docstring).STRING
HIGH…a/nlu/featurizers/dense_featurizer/mitie_featurizer.py0creates a new untrained component (see parent class for full docstring).STRING
HIGH…zers/sparse_featurizer/lexical_syntactic_featurizer.py0creates a new untrained component (see parent class for full docstring).STRING
HIGH…/nlu/featurizers/sparse_featurizer/regex_featurizer.py0creates a new untrained component (see parent class for full docstring).STRING
125 more matches not shown…
Hallucination Indicators40 hits · 438 pts
SeverityFileLineSnippetContext
CRITICALtests/test_server.py1954 assert rasa_app.sanic_app.ctx.agent.processor._has_session_expired(tracker)CODE
CRITICALtests/core/featurizers/test_tracker_featurizer.py30from rasa.core.exceptions import InvalidTrackerFeaturizerUsageErrorCODE
CRITICALtests/nlu/test_evaluation.py611 training_data_obj = rasa.shared.nlu.training_data.loading.load_data(CODE
CRITICALtests/nlu/test_evaluation.py614 training_data_responses_obj = rasa.shared.nlu.training_data.loading.load_data(CODE
CRITICALtests/nlu/test_evaluation.py161TRAINING_DATA = rasa.shared.nlu.training_data.loading.load_data(CODE
CRITICALtests/nlu/test_evaluation.py421 td = rasa.shared.nlu.training_data.loading.load_data(CODE
CRITICALtests/nlu/test_evaluation.py515 td = rasa.shared.nlu.training_data.loading.load_data(CODE
CRITICALtests/nlu/test_evaluation.py562 td = rasa.shared.nlu.training_data.loading.load_data(CODE
CRITICALtests/nlu/test_evaluation.py694 td = rasa.shared.nlu.training_data.loading.load_data(CODE
CRITICALtests/nlu/classifiers/test_mitie_intent_classifier.py50 training_data = rasa.shared.nlu.training_data.loading.load_data(CODE
CRITICALtests/nlu/classifiers/test_keyword_classifier.py25 return rasa.shared.nlu.training_data.loading.load_data(nlu_as_json_path)CODE
CRITICALtests/nlu/classifiers/test_sklearn_classifier.py23 return rasa.shared.nlu.training_data.loading.load_data(nlu_data_path)CODE
CRITICALtests/nlu/selectors/test_selectors.py65 training_data = rasa.shared.nlu.training_data.loading.load_data(CODE
CRITICALtests/nlu/selectors/test_selectors.py68 training_data_responses = rasa.shared.nlu.training_data.loading.load_data(CODE
CRITICALtests/shared/core/training_data/test_structures.py85 rasa.shared.core.training_data.structures._cap_length("mystring", 6) == "mys..."STRING
CRITICALtests/shared/core/training_data/test_structures.py91 rasa.shared.core.training_data.structures._cap_length(STRING
CRITICALtests/shared/core/training_data/test_structures.py99 assert rasa.shared.core.training_data.structures._cap_length("my", 3) == "my"STRING
CRITICALtests/shared/core/training_data/test_graph.py56 story_steps = rasa.shared.core.training_data.loading.load_data_from_resource(CODE
CRITICALtests/shared/core/training_data/test_graph.py62 story_steps_2 = rasa.shared.core.training_data.loading.load_data_from_resource(CODE
CRITICALtests/shared/core/training_data/test_graph.py77 story_steps = rasa.shared.core.training_data.loading.load_data_from_resource(CODE
CRITICALtests/shared/nlu/training_data/test_util.py21 rasa.shared.nlu.training_data.util.has_string_escape_chars(s)CODE
CRITICALtests/shared/nlu/training_data/test_util.py32 result = rasa.shared.nlu.training_data.util.sparse_matrix_to_string(m_sparse)CODE
CRITICALrasa/server.py181 if await request.app.ctx.agent.tracker_store.exists(conversation_id):CODE
CRITICALrasa/server.py1487 rasa.shared.nlu.training_data.schemas.data_schema.rasa_nlu_data_schema(),CODE
CRITICALrasa/core/processor.py223 new_events = rasa.shared.core.trackers.TrackerEventDiffEngine.event_difference(CODE
CRITICALrasa/core/visualize.py47 nlu_training_data = rasa.shared.nlu.training_data.loading.load_data(CODE
CRITICALrasa/core/visualize.py57 rasa.shared.core.training_data.visualization.visualize_stories(CODE
CRITICALrasa/core/brokers/kafka.py12from rasa.core.exceptions import KafkaProducerInitializationErrorCODE
CRITICALrasa/core/featurizers/tracker_featurizers.py29from rasa.core.exceptions import InvalidTrackerFeaturizerUsageErrorCODE
CRITICALrasa/core/channels/twilio_voice.py255 tracker = await request.app.ctx.agent.tracker_store.retrieve(sender_id)CODE
CRITICALrasa/nlu/convert.py34 td = rasa.shared.nlu.training_data.loading.load_data(data_file, language)CODE
CRITICALrasa/nlu/persistor.py218 from azure.core.exceptions import ResourceExistsErrorCODE
CRITICALrasa/shared/nlu/training_data/features.py275 f_as_text = rasa.shared.nlu.training_data.util.sparse_matrix_to_string(CODE
CRITICALrasa/shared/nlu/training_data/entities_parser.py67 entity = rasa.shared.nlu.training_data.util.build_entity(CODE
CRITICALrasa/shared/nlu/training_data/entities_parser.py92 entity = rasa.shared.nlu.training_data.util.build_entity(CODE
CRITICALrasa/shared/nlu/training_data/formats/readerwriter.py102 return f"- {rasa.shared.nlu.training_data.util.encode_string(text)}\n"CODE
CRITICALrasa/shared/nlu/training_data/formats/dialogflow.py98 entity = rasa.shared.nlu.training_data.util.build_entity(CODE
CRITICALrasa/shared/nlu/training_data/formats/rasa_yaml.py526 rasa.shared.nlu.training_data.util.has_string_escape_chars(CODE
CRITICALrasa/cli/data.py182 nlu_data = rasa.shared.nlu.training_data.loading.load_data(data_path)CODE
CRITICALrasa/cli/data.py183 extension = rasa.shared.nlu.training_data.util.get_file_format_extension(data_path)CODE
Modern Structural Boilerplate204 hits · 208 pts
SeverityFileLineSnippetContext
LOWtests/core/test_channels.py33logger = logging.getLogger(__name__)CODE
LOWtests/core/test_processor.py95logger = logging.getLogger(__name__)CODE
LOWtests/core/channels/test_telegram.py10logger = logging.getLogger(__name__)CODE
LOWtests/core/channels/test_hangouts.py8logger = logging.getLogger(__name__)CODE
LOWtests/core/channels/test_slack.py19logger = logging.getLogger(__name__)CODE
LOWtests/core/channels/test_twilio.py5logger = logging.getLogger(__name__)CODE
LOWtests/core/channels/test_twilio_voice.py14logger = logging.getLogger(__name__)CODE
LOWtests/core/channels/test_facebook.py7logger = logging.getLogger(__name__)CODE
LOWexamples/nlg_server/nlg_server.py12logger = logging.getLogger(__name__)CODE
LOW.github/scripts/download_pretrained.py14logger = logging.getLogger(__name__)CODE
LOWdata/test_classes/custom_slots.py6logger = logging.getLogger(__name__)CODE
LOWdata/test_classes/custom_graph_components/nlu_dense.py27logger = logging.getLogger(__name__)CODE
LOWdata/test_classes/custom_graph_components/nlu_dense.py106 def _set_features(self, message: Message, attribute: Text = TEXT) -> None:CODE
LOWdata/test_classes/custom_graph_components/nlu_sparse.py26logger = logging.getLogger(__name__)CODE
LOWdata/test_classes/custom_graph_components/nlu_sparse.py90 def _set_features(self, message: Message, attribute: Text = TEXT) -> None:CODE
LOWrasa/validator.py29logger = logging.getLogger(__name__)CODE
LOWrasa/server.py94logger = logging.getLogger(__name__)CODE
LOWrasa/model_testing.py31logger = logging.getLogger(__name__)CODE
LOWrasa/telemetry.py46logger = logging.getLogger(__name__)CODE
LOWrasa/model.py14logger = logging.getLogger(__name__)CODE
LOWrasa/__main__.py36logger = logging.getLogger(__name__)CODE
LOWrasa/core/exporter.py21logger = logging.getLogger(__name__)CODE
LOWrasa/core/processor.py78logger = logging.getLogger(__name__)CODE
LOWrasa/core/processor.py740 def _update_full_retrieval_intent(self, parse_data: Dict[Text, Any]) -> None:CODE
LOWrasa/core/visualize.py10logger = logging.getLogger(__name__)CODE
LOWrasa/core/test.py71logger = logging.getLogger(__name__)CODE
LOWrasa/core/tracker_store.py63logger = logging.getLogger(__name__)CODE
LOWrasa/core/tracker_store.py488 def _set_key_prefix(self, key_prefix: Text) -> None:CODE
LOWrasa/core/jobs.py10logger = logging.getLogger(__name__)CODE
LOWrasa/core/http_interpreter.py14logger = logging.getLogger(__name__)CODE
LOWrasa/core/utils.py21logger = logging.getLogger(__name__)CODE
LOWrasa/core/lock.py8logger = logging.getLogger(__name__)CODE
LOWrasa/core/agent.py36logger = logging.getLogger(__name__)CODE
LOWrasa/core/agent.py74async def _update_model_from_server(model_server: EndpointConfig, agent: Agent) -> None:CODE
LOWrasa/core/agent.py511 def _set_fingerprint(self, fingerprint: Optional[Text] = None) -> None:CODE
LOWrasa/core/train.py12logger = logging.getLogger(__name__)CODE
LOWrasa/core/lock_store.py16logger = logging.getLogger(__name__)CODE
LOWrasa/core/lock_store.py144 def update_lock(self, conversation_id: Text) -> None:CODE
LOWrasa/core/lock_store.py254 def _set_key_prefix(self, key_prefix: Text) -> None:CODE
LOWrasa/core/brokers/pika.py22logger = logging.getLogger(__name__)CODE
LOWrasa/core/brokers/file.py12logger = logging.getLogger(__name__)CODE
LOWrasa/core/brokers/kafka.py20logger = logging.getLogger(__name__)CODE
LOWrasa/core/brokers/sql.py15logger = logging.getLogger(__name__)CODE
LOWrasa/core/brokers/broker.py13logger = logging.getLogger(__name__)CODE
LOWrasa/core/featurizers/single_state_featurizer.py28logger = logging.getLogger(__name__)CODE
LOWrasa/core/featurizers/tracker_featurizers.py48logger = logging.getLogger(__name__)CODE
LOWrasa/core/nlg/callback.py11logger = logging.getLogger(__name__)CODE
LOWrasa/core/nlg/response.py11logger = logging.getLogger(__name__)CODE
LOWrasa/core/nlg/generator.py11logger = logging.getLogger(__name__)CODE
LOWrasa/core/nlg/interpolator.py7logger = logging.getLogger(__name__)CODE
LOWrasa/core/training/interactive.py103logger = logging.getLogger(__name__)CODE
LOWrasa/core/training/story_conflict.py21logger = logging.getLogger(__name__)CODE
LOWrasa/core/policies/ted_policy.py130logger = logging.getLogger(__name__)CODE
LOWrasa/core/policies/policy.py50logger = logging.getLogger(__name__)CODE
LOWrasa/core/policies/memoization.py38logger = logging.getLogger(__name__)CODE
LOWrasa/core/policies/unexpected_intent_policy.py130logger = logging.getLogger(__name__)CODE
LOWrasa/core/policies/rule_policy.py59logger = logging.getLogger(__name__)CODE
LOWrasa/core/policies/ensemble.py21logger = logging.getLogger(__name__)CODE
LOWrasa/core/actions/action.py92logger = logging.getLogger(__name__)CODE
LOWrasa/core/actions/forms.py35logger = logging.getLogger(__name__)CODE
144 more matches not shown…
Docstring Block Structure41 hits · 205 pts
SeverityFileLineSnippetContext
HIGH.github/scripts/mr_publish_results.py91Transform string (with hours, minutes, and seconds) to seconds. Args: duration: Examples: '1m27s', '1m27.3sSTRING
HIGHrasa/model_testing.py395Completes the sklearn classification report with accuracy xor micro avg. Args: report: Report generated by STRING
HIGHrasa/model_training.py101Checks if there are any unresolved slots. Args: domain: The domain. stories: The story graph. STRING
HIGHrasa/model.py20Returns verified path to local model archive. Args: model_path: Path to the zipped model. If it's a directoSTRING
HIGHrasa/core/brokers/pika.py99Get queues for this event broker. The preferred argument defining the RabbitMQ queues the `PikaEventBroker` shoSTRING
HIGHrasa/core/featurizers/precomputation.py174Collects features for all attributes in the given substate. There might be be multiple messages in the containeSTRING
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_textSTRING
HIGHrasa/core/evaluation/marker_base.py799Creates an operator marker from the given config. The configuration must consist of a list of marker configuratSTRING
HIGHrasa/core/evaluation/marker_base.py896Creates an atomic marker from the given config. Args: tag: the tag identifying a condition STRING
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 vocabSTRING
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 lanSTRING
HIGHrasa/nlu/featurizers/dense_featurizer/lm_featurizer.py666Computes language model docs for all examples in the batch. Args: batch_examples: Batch of message STRING
HIGHrasa/utils/train_utils.py307Create data generators for train and optional validation data. Args: model_data: The model data to use. STRING
HIGHrasa/utils/plotting.py154Extracts all information from the data needed to plot a paired histogram. Args: histogram_data: Two data veSTRING
HIGHrasa/utils/tensorflow/metrics.py13Computes F-Beta score. It is the weighted harmonic mean of precision and recall. Output range is `[0, 1]`. WorkSTRING
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 mSTRING
HIGHrasa/utils/tensorflow/model_data.py215Obtain number of examples in data. Args: data: The data. Raises: A ValueError if number ofSTRING
HIGHrasa/utils/tensorflow/model_data.py399Create random hold out test set using stratified split. Args: number_of_test_examples: Number of teSTRING
HIGHrasa/utils/tensorflow/model_data.py606Check whether the test data set is too large or too small. Args: number_of_test_examples: number ofSTRING
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 reprSTRING
HIGHrasa/utils/tensorflow/model_data_utils.py34Converts training data into a list of attribute to features. Possible attributes are, for example, INTENT, RESPONSESTRING
HIGHrasa/shared/core/domain.py1799Checks whether the given file path is a Rasa domain file. Args: filename: Path of the file which shSTRING
HIGHrasa/shared/core/conversation.py32Create `Dialogue` from parameters. Args: parameters: Serialised dialogue, should contain keys 'nameSTRING
HIGHrasa/shared/core/events.py164Splits events according to an event type and condition. Examples: Splitting events according to the event tSTRING
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 theSTRING
HIGHrasa/shared/nlu/training_data/training_data.py538Get all responses used in any of the examples. Args: examples: messages to select responses by. STRING
HIGHrasa/shared/nlu/training_data/features.py291Filters the given list of features. Args: features_list: list of features to be filtered atSTRING
HIGHrasa/shared/nlu/training_data/features.py331Groups the given features according to their attribute. Args: features_list: list of features to be gSTRING
HIGHrasa/shared/nlu/training_data/entities_parser.py154Converts the provided `json_str` to a valid dict containing the entity attributes. Users can specify entity rolSTRING
HIGHrasa/shared/nlu/training_data/formats/rasa_yaml.py340Checks if the specified file possibly contains NLU training data in YAML. Args: filename: name of tSTRING
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 tSTRING
HIGHrasa/shared/utils/io.py562Validates YAML file content and returns parsed content. Args: filename: The path to the file which should bSTRING
HIGHrasa/shared/utils/io.py586Parses a yaml configuration file. Content needs to be a dictionary. Args: filename: The path to the file whSTRING
HIGHrasa/shared/utils/io.py602Parses a model configuration file. Args: filename: The path to the file which should be read. Raises: STRING
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 instantiateSTRING
HIGH…sa/graph_components/validators/finetuning_validator.py87Validates whether we can finetune Core and NLU when finetuning is enabled. Args: importer: a trainiSTRING
HIGHrasa/engine/graph.py95Loads a graph schema which has been serialized using `schema.as_dict()`. Args: serialized_graph_schSTRING
HIGHrasa/engine/storage/storage.py42Unpacks a model archive and initializes a `ModelStorage`. Args: storage_path: Directory which will STRING
HIGHrasa/engine/storage/storage.py62Retrieves metadata from archive. Args: model_archive_path: The path to the model archive. STRING
HIGHrasa/engine/storage/storage.py95Provides the data of a persisted `Resource`. Args: resource: The `Resource` whose persisted should STRING
HIGHrasa/engine/recipes/recipe.py77Converts a config to a graph compatible model configuration. Args: config: The config which the `ReSTRING
Unused Imports174 hits · 167 pts
SeverityFileLineSnippetContext
LOWtests/core/test_evaluation.py28CODE
LOWtests/core/test_evaluation.py28CODE
LOWtests/core/utilities.py13CODE
LOWtests/core/test_processor.py44CODE
LOWtests/engine/graph_components_test_classes.py1CODE
LOWtests/engine/test_graph.py1CODE
LOWtests/engine/test_graph_node.py1CODE
LOWtests/engine/runner/test_dask.py1CODE
LOWexamples/formbot/actions/actions.py1CODE
LOWscripts/prepare_nightly_release.py11CODE
LOWdata/test_classes/graph_component_interface.py1CODE
LOW…t_classes/custom_graph_components/nlu_meta_fallback.py1CODE
LOW…t_classes/custom_graph_components/nlu_meta_fallback.py3CODE
LOW…t_classes/custom_graph_components/nlu_meta_fallback.py7CODE
LOWrasa/server.py81CODE
LOWrasa/server.py82CODE
LOWrasa/__init__.py3CODE
LOWrasa/__init__.py4CODE
LOWrasa/__init__.py4CODE
LOWrasa/__init__.py4CODE
LOWrasa/telemetry.py37CODE
LOWrasa/telemetry.py38CODE
LOWrasa/telemetry.py39CODE
LOWrasa/telemetry.py40CODE
LOWrasa/telemetry.py41CODE
LOWrasa/telemetry.py42CODE
LOWrasa/api.py1CODE
LOWrasa/api.py1CODE
LOWrasa/api.py1CODE
LOWrasa/api.py1CODE
LOWrasa/api.py1CODE
LOWrasa/api.py1CODE
LOWrasa/api.py14CODE
LOWrasa/plugin.py11CODE
LOWrasa/plugin.py12CODE
LOWrasa/plugin.py13CODE
LOWrasa/plugin.py14CODE
LOWrasa/plugin.py15CODE
LOWrasa/plugin.py16CODE
LOWrasa/plugin.py17CODE
LOWrasa/plugin.py18CODE
LOWrasa/jupyter.py12CODE
LOWrasa/core/run.py30CODE
LOWrasa/core/test.py67CODE
LOWrasa/core/test.py69CODE
LOWrasa/core/tracker_store.py1CODE
LOWrasa/core/tracker_store.py59CODE
LOWrasa/core/tracker_store.py60CODE
LOWrasa/core/tracker_store.py60CODE
LOWrasa/core/agent.py1CODE
LOWrasa/core/lock_store.py1CODE
LOWrasa/core/brokers/pika.py18CODE
LOWrasa/core/brokers/file.py10CODE
LOWrasa/core/brokers/kafka.py18CODE
LOWrasa/core/brokers/broker.py1CODE
LOWrasa/core/featurizers/tracker_featurizers.py1CODE
LOWrasa/core/featurizers/precomputation.py1CODE
LOWrasa/core/nlg/__init__.py1CODE
LOWrasa/core/nlg/__init__.py2CODE
LOWrasa/core/nlg/__init__.py3CODE
114 more matches not shown…
Deep Nesting117 hits · 108 pts
SeverityFileLineSnippetContext
LOWtests/core/featurizers/test_tracker_featurizer.py159CODE
LOWtests/nlu/classifiers/test_diet_classifier.py751CODE
LOWtests/nlu/classifiers/test_diet_classifier.py842CODE
LOWtests/nlu/selectors/test_selectors.py655CODE
LOWtests/nlu/selectors/test_selectors.py768CODE
LOWtests/utils/tensorflow/test_model_data.py59CODE
LOW…e/training_data/story_reader/test_yaml_story_reader.py837CODE
LOW…ts/providers/test_domain_for_core_training_provider.py45CODE
LOW…aph_components/validators/test_finetuning_validator.py310CODE
LOWtests/engine/test_validation.py972CODE
LOWscripts/release.py269CODE
LOWscripts/publish_gh_release_notes.py38CODE
LOW.github/scripts/mr_generate_summary.py11CODE
LOW.github/scripts/mr_publish_results.py122CODE
LOWrasa/validator.py359CODE
LOWrasa/server.py444CODE
LOWrasa/telemetry.py617CODE
LOWrasa/core/processor.py953CODE
LOWrasa/core/test.py455CODE
LOWrasa/core/test.py598CODE
LOWrasa/core/test.py813CODE
LOWrasa/core/test.py244CODE
LOWrasa/core/test.py284CODE
LOWrasa/core/tracker_store.py1494CODE
LOWrasa/core/agent.py97CODE
LOWrasa/core/agent.py195CODE
LOWrasa/core/migrate.py168CODE
LOWrasa/core/migrate.py203CODE
LOWrasa/core/migrate.py280CODE
LOWrasa/core/brokers/kafka.py109CODE
LOWrasa/core/brokers/kafka.py171CODE
LOWrasa/core/brokers/broker.py81CODE
LOWrasa/core/featurizers/single_state_featurizer.py111CODE
LOWrasa/core/featurizers/tracker_featurizers.py572CODE
LOWrasa/core/featurizers/tracker_featurizers.py786CODE
LOWrasa/core/featurizers/tracker_featurizers.py849CODE
LOWrasa/core/featurizers/tracker_featurizers.py1040CODE
LOWrasa/core/nlg/interpolator.py55CODE
LOWrasa/core/training/interactive.py494CODE
LOWrasa/core/training/interactive.py635CODE
LOWrasa/core/training/interactive.py1474CODE
LOWrasa/core/training/story_conflict.py281CODE
LOWrasa/core/training/story_conflict.py335CODE
LOWrasa/core/training/story_conflict.py96CODE
LOWrasa/core/policies/policy.py438CODE
LOWrasa/core/policies/memoization.py96CODE
LOWrasa/core/policies/unexpected_intent_policy.py645CODE
LOWrasa/core/policies/rule_policy.py609CODE
LOWrasa/core/actions/action.py1101CODE
LOWrasa/core/actions/action.py1231CODE
LOWrasa/core/actions/forms.py123CODE
LOWrasa/core/channels/hangouts.py103CODE
LOWrasa/core/channels/hangouts.py239CODE
LOWrasa/core/channels/console.py188CODE
LOWrasa/core/channels/telegram.py52CODE
LOWrasa/core/channels/telegram.py195CODE
LOWrasa/core/channels/telegram.py216CODE
LOWrasa/core/channels/facebook.py98CODE
LOWrasa/core/channels/facebook.py107CODE
LOWrasa/core/channels/facebook.py270CODE
57 more matches not shown…
Self-Referential Comments26 hits · 86 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_model_testing.py50 # Create a fake model on disk so that `is_file` returns `True`COMMENT
MEDIUMtests/core/training/test_story_conflict.py41 # Create a list of `StoryConflict` objectsCOMMENT
MEDIUMtests/core/training/test_story_conflict.py81 # Create a list of `StoryConflict` objectsCOMMENT
MEDIUMtests/core/training/test_story_conflict.py94 # Create a list of `StoryConflict` objectsCOMMENT
MEDIUMtests/core/training/test_story_conflict.py107 # Create a list of `StoryConflict` objectsCOMMENT
MEDIUMtests/core/training/test_story_conflict.py120 # Create a list of `StoryConflict` objectsCOMMENT
MEDIUMtests/core/training/test_story_conflict.py132 # Create a list of `StoryConflict` objectsCOMMENT
MEDIUMtests/core/training/test_story_conflict.py145 # Create a list of `StoryConflict` objectsCOMMENT
MEDIUMtests/utils/tensorflow/test_layers.py426 # Create a unit vector [1, 0, 0, 0, ...]COMMENT
MEDIUMtests/shared/core/test_domain.py1391 # Create a sorted list of entity names from 'a' to 'z', and two randomly shuffledCOMMENT
MEDIUMtests/shared/core/test_events.py319 # Create the event from a `dict` that will be accepted by theCOMMENT
MEDIUMtests/shared/core/test_events.py338 # Create an event without metadata. When converting the `Event` to aCOMMENT
MEDIUMexamples/reminderbot/endpoints.yml1# This file contains the different endpoints your bot can use.COMMENT
MEDIUMexamples/reminderbot/credentials.yml1# This file contains the credentials for the voice & chat platformsCOMMENT
MEDIUM…test_action_extract_slots_11333/tests/test_stories.yml1#### This file contains tests to evaluate that your bot behaves as expected.COMMENT
MEDIUMrasa/validator.py310 # Create a list of `StoryConflict` objectsCOMMENT
MEDIUMrasa/server.py680 # Initialize shared object of type unsigned int for trackingCOMMENT
MEDIUMrasa/core/policies/unexpected_intent_policy.py980 # Create a tensor of values with sign opposite to `LABEL_PAD_ID` whichCOMMENT
MEDIUMrasa/core/policies/rule_policy.py862 # This function is called a lot (e.g. for checking contradictions) so we cacheCOMMENT
MEDIUMrasa/core/channels/webexteams.py113 # Create a Webhook object from the JSON dataCOMMENT
MEDIUMrasa/utils/tensorflow/layers.py1564 # Create an indicator for the positive labels by concatenating the 1 for allCOMMENT
MEDIUMrasa/utils/tensorflow/feature_array.py230 """This method is called when the system allocates a new array from obj.STRING
MEDIUMrasa/shared/nlu/training_data/features.py47 # Create a unique key for this tensor in the safetensors fileCOMMENT
MEDIUMrasa/cli/initial_project/endpoints.yml1# This file contains the different endpoints your bot can use.COMMENT
MEDIUMrasa/cli/initial_project/credentials.yml1# This file contains the credentials for the voice & chat platformsCOMMENT
MEDIUMrasa/cli/initial_project/tests/test_stories.yml1#### This file contains tests to evaluate that your bot behaves as expected.COMMENT
Over-Commented Block81 hits · 78 pts
SeverityFileLineSnippetContext
LOW.typo-ci.yml1# This is a sample .typo-ci.yml file, it's used to configure how Typo CI will behave.COMMENT
LOWtests/core/evaluation/test_marker.py601 [COMMENT
LOWexamples/reminderbot/endpoints.yml1# This file contains the different endpoints your bot can use.COMMENT
LOWexamples/reminderbot/endpoints.yml21# type: redisCOMMENT
LOWexamples/reminderbot/endpoints.yml41# password: passwordCOMMENT
LOWexamples/reminderbot/credentials.yml1# This file contains the credentials for the voice & chat platformsCOMMENT
LOWexamples/reminderbot/credentials.yml21# slack_token: "<your slack token>"COMMENT
LOWexamples/rules/domain.yml21 type: textCOMMENT
LOWscripts/push_docs_to_branch.sh1#!/bin/bashCOMMENT
LOW.github/workflows/ci-model-regression.yml521 env:COMMENT
LOW.github/workflows/continous-integration.yml21# - DOCKERHUB_PASSWORD: password for an account with write access to the rasaCOMMENT
LOW.github/workflows/continous-integration.yml1101 # In this scenario, we've pushed the '2.0.6' tagCOMMENT
LOW.github/workflows/continous-integration.yml1221# RELEASE_TAG="${IMAGE_TAG}"COMMENT
LOW.github/workflows/ci-model-regression-on-schedule.yml181COMMENT
LOW.github/configs/mr-test-example.yaml1## Example configurationCOMMENT
LOW.github/configs/mr-test-example.yaml21## Example: Use all available configurations for the "Carbon Bot" and "Sara" datasetsCOMMENT
LOW…no_session_config_and_custom_session_config/config.yml1recipe: default.v1COMMENT
LOW…no_session_config_and_custom_session_config/config.yml21# constrain_similarities: trueCOMMENT
LOW…_for_docs/example_for_suggested_config_after_train.yml1recipe: default.v1COMMENT
LOWdata/test_config/config_unique_assistant_id.yml1recipe: default.v1COMMENT
LOWdata/test_config/config_unique_assistant_id.yml21# epochs: 100COMMENT
LOWdata/test_config/config_empty_en_after_dumping.yml1recipe: default.v1COMMENT
LOWdata/test_config/config_empty_en_after_dumping.yml21# epochs: 100COMMENT
LOWdata/test_config/config_defaults.yml1recipe: default.v1COMMENT
LOWdata/test_config/config_defaults.yml21# epochs: 100COMMENT
LOW…est_config/config_with_comment_between_suggestions.yml1recipe: default.v1COMMENT
LOW…est_config/config_with_comment_between_suggestions.yml21# - name: FallbackClassifierCOMMENT
LOWdata/test_config/config_with_comments_after_dumping.yml21 epochs: 100COMMENT
LOWdata/test_config/config_empty_fr_after_dumping.yml1language: frCOMMENT
LOWdata/test_config/config_empty_fr_after_dumping.yml21# constrain_similarities: trueCOMMENT
LOWdata/test_config/config_empty_en_after_dumping_nlu.yml1recipe: default.v1COMMENT
LOWdata/test_config/config_empty_en_after_dumping_nlu.yml21# epochs: 100COMMENT
LOWdata/test_config/config_empty_en_after_dumping_core.yml1recipe: default.v1COMMENT
LOW…from_trigger_intent_with_mapping_conditions/config.yml41# # See https://rasa.com/docs/rasa/policies for more information.COMMENT
LOW…m_trigger_intent_with_no_mapping_conditions/config.yml41# # See https://rasa.com/docs/rasa/policies for more information.COMMENT
LOWdata/test_action_extract_slots_11333/config.yml21 min_ngram: 1COMMENT
LOWdata/test_action_extract_slots_11333/config.yml41 - name: AugmentedMemoizationPolicyCOMMENT
LOWrasa/core/constants.py41# policies only predict an action if the last event inCOMMENT
LOWrasa/core/policies/ted_policy.py221 # Number of attention heads in transformerCOMMENT
LOWrasa/core/policies/ted_policy.py241 # Number of epochs to trainCOMMENT
LOWrasa/core/policies/ted_policy.py261 # Determines wether the confidences of the chosen top actions should beCOMMENT
LOWrasa/core/policies/ted_policy.py281 # The scale of regularizationCOMMENT
LOWrasa/core/policies/ted_policy.py301 # If 'True' random tokens of the input message will be masked. Since thereCOMMENT
LOWrasa/core/policies/ted_policy.py321 CHECKPOINT_MODEL: False,COMMENT
LOWrasa/core/policies/ted_policy.py1481COMMENT
LOWrasa/core/policies/ted_policy.py1581 # For example:COMMENT
LOWrasa/core/policies/ted_policy.py1861 ) -> Tuple[tf.Tensor, tf.Tensor, tf.Tensor]:COMMENT
LOWrasa/core/policies/unexpected_intent_policy.py181 # if key- or value relative attention are turned onCOMMENT
LOWrasa/core/policies/unexpected_intent_policy.py201 EMBEDDING_DIMENSION: 20,COMMENT
LOWrasa/core/policies/unexpected_intent_policy.py221 DROP_RATE_ATTENTION: 0.0,COMMENT
LOWrasa/core/policies/unexpected_intent_policy.py241 # metrics, set this option to a valid output directory.COMMENT
LOWrasa/core/policies/unexpected_intent_policy.py261 # examples. Any tracker with a similarity score below thisCOMMENT
LOWrasa/core/policies/rule_policy.py121 # Priority of the policy which is used if multiple policies predictCOMMENT
LOW…turizers/sparse_featurizer/count_vectors_featurizer.py61 # whether to use a shared vocabCOMMENT
LOWrasa/nlu/classifiers/diet_classifier.py161 HIDDEN_LAYERS_SIZES: {TEXT: [], LABEL: []},COMMENT
LOWrasa/nlu/classifiers/diet_classifier.py181 # Batch size will be linearly increased for each epoch.COMMENT
LOWrasa/nlu/classifiers/diet_classifier.py201 NUM_NEG: 20,COMMENT
LOWrasa/nlu/classifiers/diet_classifier.py221 SCALE_LOSS: False,COMMENT
LOWrasa/nlu/classifiers/diet_classifier.py241 # Small values may hurt performance.COMMENT
LOWrasa/nlu/classifiers/diet_classifier.py261 # metrics, set this option to a valid output directory.COMMENT
21 more matches not shown…
Excessive Try-Catch Wrapping66 hits · 64 pts
SeverityFileLineSnippetContext
MEDIUMrasa/server.py554def wrapped() -> None:CODE
LOWrasa/server.py1510 except Exception as e:CODE
LOWrasa/server.py486 except Exception as e:CODE
LOWrasa/server.py565 except Exception as e:CODE
LOWrasa/server.py734 except Exception as e:CODE
LOWrasa/server.py770 except Exception as e:CODE
LOWrasa/server.py820 except Exception as e:CODE
LOWrasa/server.py847 except Exception as e:CODE
LOWrasa/server.py899 except Exception as e:CODE
LOWrasa/server.py957 except Exception as e:CODE
LOWrasa/server.py986 except Exception as e:CODE
LOWrasa/server.py1036 except Exception as e:CODE
LOWrasa/server.py1089 except Exception as e:CODE
LOWrasa/server.py1123 except Exception as e:CODE
LOWrasa/server.py1179 except Exception as e:CODE
LOWrasa/server.py1274 except Exception as e:CODE
LOWrasa/server.py1287 except Exception as e:CODE
LOWrasa/server.py1311 except Exception as e:CODE
LOWrasa/server.py1322 except Exception as e:CODE
LOWrasa/telemetry.py450 except Exception: # skipcq:PYL-W0703CODE
LOWrasa/telemetry.py456 except Exception: # skipcq:PYL-W0703CODE
LOWrasa/telemetry.py207 except Exception as e: # skipcq:PYL-W0703CODE
LOWrasa/telemetry.py268 except Exception: # skipcq:PYL-W0703CODE
LOWrasa/telemetry.py540 except Exception as e: # skipcq:PYL-W0703CODE
LOWrasa/telemetry.py558 except Exception as e: # skipcq:PYL-W0703CODE
LOWrasa/telemetry.py921 except Exception:CODE
LOWrasa/core/exporter.py82 except Exception as e:CODE
LOWrasa/core/processor.py993 except Exception:CODE
LOWrasa/core/tracker_store.py1441 except Exception as e:CODE
LOWrasa/core/tracker_store.py1449 except Exception as e:CODE
LOWrasa/core/tracker_store.py1457 except Exception as e:CODE
LOWrasa/core/tracker_store.py1471 except Exception as e:CODE
LOWrasa/core/http_interpreter.py82 except Exception: # skipcq: PYL-W0703CODE
LOWrasa/core/agent.py89 except Exception: # skipcq: PYL-W0703CODE
LOWrasa/core/agent.py266 except Exception as e:CODE
LOWrasa/core/lock_store.py86 except Exception as e:CODE
LOWrasa/core/migrate.py395 except Exception as e:CODE
LOWrasa/core/brokers/pika.py211 except Exception as e:CODE
LOWrasa/core/brokers/pika.py312 except Exception as e:CODE
LOWrasa/core/brokers/kafka.py140 except Exception as e:CODE
LOWrasa/core/training/interactive.py871 except Exception as e:CODE
LOWrasa/core/training/interactive.py1557 except Exception:CODE
LOWrasa/core/channels/hangouts.py328 except Exception:CODE
LOWrasa/core/channels/telegram.py276 except Exception as e:CODE
LOWrasa/core/channels/rest.py175 except Exception:CODE
LOWrasa/core/channels/channel.py200 except Exception:CODE
LOWrasa/core/channels/botframework.py332 except Exception as e:CODE
LOWrasa/core/channels/mattermost.py198 except Exception as e:CODE
LOWrasa/core/channels/facebook.py158 except Exception:CODE
LOWrasa/core/channels/facebook.py408 except Exception:CODE
LOWrasa/core/channels/webexteams.py92 except Exception as e:CODE
LOWrasa/core/channels/twilio.py155 except Exception as e:CODE
LOWrasa/core/channels/slack.py395 except Exception as e:CODE
LOWrasa/core/channels/slack.py490 except Exception as e:CODE
LOWrasa/nlu/test.py1859 except Exception as e: # skipcq: PYL-W0703CODE
LOWrasa/nlu/utils/__init__.py30 except Exception:CODE
LOWrasa/nlu/extractors/mitie_entity_extractor.py182 except Exception as e:CODE
LOWrasa/utils/plotting.py21 except Exception: # skipcq:PYL-W0703CODE
LOWrasa/utils/common.py140 except Exception:CODE
LOWrasa/utils/common.py386 except Exception as e:CODE
6 more matches not shown…
AI Slop Vocabulary15 hits · 31 pts
SeverityFileLineSnippetContext
LOWtests/core/test_lock_store.py192 # we'll just return None.COMMENT
LOWtests/integration_tests/core/test_lock_store.py110 # we'll just return None.COMMENT
MEDIUMdocs/static/js/rasa-chatblock.min.js6*/var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function COMMENT
MEDIUMdocs/static/js/rasa-chatblock.min.js6*/var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function COMMENT
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<arCOMMENT
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<arCOMMENT
LOWrasa/core/training/interactive.py662 # in this case we will just return, and the originalCOMMENT
LOWrasa/core/policies/ensemble.py306 # Reminder: If just a single policy is given, we do *not* just return it becauseCOMMENT
LOWrasa/core/evaluation/marker_base.py457 # Reminder: We could also just create a dictionary of markers from this.COMMENT
MEDIUM…nlu/featurizers/dense_featurizer/convert_featurizer.py200 # Definitely invalid since the specified path should be a directoryCOMMENT
MEDIUM…turizers/sparse_featurizer/count_vectors_featurizer.py728 # Definitely need to persist some vocabulariesCOMMENT
LOWrasa/nlu/classifiers/diet_classifier.py711 # we don't have any intent labels during prediction, just add them duringCOMMENT
LOWrasa/utils/tensorflow/crf.py153 # If max_seq_len is 1, we skip the algorithm and simply return theCOMMENT
MEDIUMrasa/utils/tensorflow/feature_array.py286 """Needed in order to pickle this object.STRING
LOWrasa/engine/training/graph_trainer.py246 # execute the node again. We can just return it from aCOMMENT
Cross-Language Confusion3 hits · 22 pts
SeverityFileLineSnippetContext
HIGHtests/core/training/test_interactive.py559 "attachment": null,CODE
HIGHtests/core/training/test_interactive.py560 "buttons": null,CODE
HIGHtests/core/training/test_interactive.py568 "text": null,CODE
AI Structural Patterns25 hits · 22 pts
SeverityFileLineSnippetContext
LOWtests/nlu/test_evaluation.py201CODE
LOWtests/utils/tensorflow/test_models.py84CODE
LOWrasa/server.py640CODE
LOWrasa/model_training.py124CODE
LOWrasa/api.py65CODE
LOWrasa/core/run.py99CODE
LOWrasa/core/run.py187CODE
LOWrasa/core/test.py1060CODE
LOWrasa/core/tracker_store.py447CODE
LOWrasa/core/tracker_store.py1061CODE
LOWrasa/core/tracker_store.py1123CODE
LOWrasa/core/agent.py293CODE
LOWrasa/core/agent.py320CODE
LOWrasa/core/lock_store.py198CODE
LOWrasa/core/brokers/pika.py32CODE
LOWrasa/core/brokers/kafka.py27CODE
LOWrasa/core/policies/policy.py495CODE
LOWrasa/core/channels/slack.py152CODE
LOWrasa/core/channels/socketio.py153CODE
LOWrasa/utils/plotting.py221CODE
LOWrasa/utils/tensorflow/transformer.py410CODE
LOWrasa/utils/tensorflow/transformer.py515CODE
LOWrasa/utils/tensorflow/layers.py839CODE
LOWrasa/shared/core/domain.py410CODE
LOWrasa/shared/core/events.py439CODE
Redundant / Tautological Comments10 hits · 14 pts
SeverityFileLineSnippetContext
LOWtests/core/policies/test_unexpected_intent_policy.py887 # Check if ranking is sorted correctly and truncated to `ranking_length`COMMENT
LOWtests/core/policies/test_rule_policy.py3119 # Check if the presence of action_unlikely_intentSTRING
LOWtests/core/channels/test_slack.py313 # Check if re.escape was called with the expected argumentCOMMENT
LOWtests/shared/importers/test_importer.py170 # Check if the NLU training data was added correctly from the story training dataCOMMENT
LOWtests/shared/importers/test_multi_project.py38 # Check if loading from `.yaml` also worksCOMMENT
LOW.github/workflows/ci-model-regression-on-schedule.yml598 # Set IS_DROPPED to true if there is any value lowerCOMMENT
LOWrasa/server.py1432 # Check if matching channels can provide a valid output channel,COMMENT
LOWrasa/core/policies/unexpected_intent_policy.py206 # Set this to `0` to include all intents.COMMENT
LOWrasa/core/policies/rule_policy.py1058 # Check if a rule that predicted action_listenCOMMENT
LOWrasa/cli/utils.py280 # Check if a valid setting for `max_history` was givenCOMMENT
Fake / Example Data9 hits · 14 pts
SeverityFileLineSnippetContext
LOWtests/core/conftest.py92 entities=[{"entity": "name", "value": "Jane Doe"}],CODE
LOWtests/core/conftest.py98 entities=[{"entity": "name", "value": "Jane Doe"}],CODE
LOWtests/core/featurizers/test_precomputation.py117 dummy_value = "this-could-be-anything"CODE
LOWtests/core/featurizers/test_precomputation.py120 {TEXT: "text", ENTITIES: dummy_value},CODE
LOWtests/core/featurizers/test_precomputation.py146 dummy_value = "this-could-be-anything"CODE
LOWtests/core/featurizers/test_precomputation.py149 {TEXT: "text", ENTITIES: dummy_value},CODE
LOWtests/core/featurizers/test_precomputation.py167 dummy_value = "this-could-be-anything"CODE
LOWtests/core/featurizers/test_precomputation.py170 {TEXT: "text", ENTITIES: dummy_value},CODE
LOWdocs/static/js/rasa-chatblock.min.js43 */var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):6010COMMENT
Slop Phrases8 hits · 13 pts
SeverityFileLineSnippetContext
LOWtests/shared/nlu/training_data/test_features.py365 # don't forget to check the originCOMMENT
LOWtests/shared/nlu/training_data/test_features.py365 # don't forget to check the originCOMMENT
LOWrasa/core/training/interactive.py96# automatically. If you change anything in here, please make sure toCOMMENT
LOWrasa/core/policies/ted_policy.py174 # please make sure to update the docs when changing a default parameterCOMMENT
LOWrasa/core/policies/memoization.py68 # please make sure to update the docs when changing a default parameterCOMMENT
LOWrasa/nlu/classifiers/fallback_classifier.py44 # please make sure to update the docs when changing a default parameterCOMMENT
LOWrasa/nlu/classifiers/diet_classifier.py154 # please make sure to update the docs when changing a default parameterCOMMENT
LOWrasa/shared/core/constants.py132# if you add more policy/classifier names, make sure to add a test as well to ensureCOMMENT
Overly Generic Function Names4 hits · 6 pts
SeverityFileLineSnippetContext
LOWtests/utils/test_common.py68 async def my_function():CODE
LOWtests/utils/test_common.py79 def my_function():CODE
LOWtests/shared/utils/test_common.py131 def my_function():CODE
LOWtests/shared/utils/test_common.py141 async def my_function():CODE
Structural Annotation Overuse2 hits · 4 pts
SeverityFileLineSnippetContext
LOWrasa/api.py5# WARNING: Be careful about adding any top level imports at this place!COMMENT
LOWrasa/core/training/interactive.py94# WARNING: This command line UI is using an external libraryCOMMENT
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOWrasa/server.py1012 # TODO: implement for agent / botCOMMENT