Repository Analysis

mlflow/mlflow

The open source AI engineering platform for agents, LLMs, and ML models. MLflow enables teams of all sizes to debug, evaluate, monitor, and optimize production-quality AI applications while controlling costs and managing access to models and data.

15.9 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of mlflow/mlflow, a Python project with 27,017 GitHub stars. SynthScan v2.0 examined 1,499,655 lines of code across 5905 source files, recording 19891 pattern matches distributed across 28 syntactic categories. The overall adjusted score of 15.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).

15.9
Adjusted Score
15.9
Raw Score
100%
Time Factor
2026-07-14
Last Push
27.0K
Stars
Python
Language
1.5M
Lines of Code
5.9K
Files
19.9K
Pattern Hits
2026-07-14
Scan Date
0.14
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 42HIGH 814MEDIUM 1023LOW 18012

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 19891 distinct pattern matches across 28 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 Identifiers14176 hits · 12388 pts
SeverityFileLineSnippetContext
LOWtests/conftest.py599def pytest_collection_modifyitems(session, config, items):CODE
LOWtests/conftest.py726def remote_backend_for_tracing_sdk_test():CODE
LOWtests/conftest.py777def tmp_experiment_for_tracing_sdk_test(monkeypatch):CODE
LOWtests/conftest.py800def disable_workspace_mode_by_default(monkeypatch):CODE
LOWtests/conftest.py839def reset_active_experiment_id():CODE
LOWtests/conftest.py888def disable_async_trace_logging(monkeypatch):CODE
LOWtests/conftest.py924def enable_test_mode_by_default_for_autologging_integrations():CODE
LOWtests/conftest.py961def prevent_infer_pip_requirements_fallback(request):CODE
LOWtests/conftest.py987def clean_up_mlruns_directory(request):CODE
LOWtests/conftest.py1006def clean_up_last_logged_model_id():CODE
LOWtests/conftest.py1048def _mock_databricks_host_metadata():CODE
LOWtests/conftest.py1155def mock_databricks_serving_with_tracing_env(monkeypatch):CODE
LOWtests/conftest.py1169def reset_active_model_context():CODE
LOWtests/conftest.py1175def clean_up_telemetry_threads():CODE
LOWtests/helper_functions.py109def score_model_in_sagemaker_docker_container(CODE
LOWtests/helper_functions.py144def pyfunc_generate_dockerfile(output_directory, model_uri=None, extra_args=None, env=None):CODE
LOWtests/helper_functions.py205def pyfunc_serve_from_docker_image(image_name, host_port, extra_args=None):CODE
LOWtests/helper_functions.py218def pyfunc_serve_from_docker_image_with_env_override(CODE
LOWtests/helper_functions.py240def pyfunc_serve_and_score_model(CODE
LOWtests/helper_functions.py427def _compare_logged_code_paths(code_path: str, model_uri: str, flavor_name: str) -> None:CODE
LOWtests/helper_functions.py444def _compare_conda_env_requirements(env_path, req_path):CODE
LOWtests/helper_functions.py455def _get_deps_from_requirement_file(model_uri):CODE
LOWtests/helper_functions.py466def assert_register_model_called_with_local_model_path(CODE
LOWtests/helper_functions.py555def allow_infer_pip_requirements_fallback_if(condition):CODE
LOWtests/helper_functions.py605def assert_array_almost_equal(actual_array, desired_array, rtol=1e-6):CODE
LOWtests/helper_functions.py617def _mlflow_major_version_string():CODE
LOWtests/test_skinny_client_anthropic_import.py18def test_mlflow_types_chat_importable_without_numpy():CODE
LOWtests/test_skinny_client_omits_sql_libs.py10def test_fails_import_sqlalchemy():CODE
LOWtests/test_skinny_client_omits_sql_libs.py20def test_skinny_client_without_importing_sqlalchemy() -> None:CODE
LOWtests/test_mismatch.py26def test_check_version_mismatch_no_warn(CODE
LOWtests/test_mismatch.py60def test_check_version_mismatch_warn(CODE
LOWtests/test_skinny_client_autolog_without_scipy.py9def test_autolog_without_scipy():CODE
LOWtests/test_exceptions.py17def test_error_code_constructor():CODE
LOWtests/test_exceptions.py35def test_get_http_status_code():CODE
LOWtests/test_exceptions.py45def test_invalid_parameter_value():CODE
LOWtests/test_exceptions.py58def test_rest_exception_with_unrecognized_error_code():CODE
LOWtests/test_exceptions.py71def test_rest_exception_pickleable():CODE
LOWtests/test_exceptions.py79def test_rest_exception_with_null_error_code():CODE
LOWtests/test_exceptions.py85def test_rest_exception_with_missing_error_code():CODE
LOWtests/test_exceptions.py94def test_sqlstate_auto_derived_from_error_code():CODE
LOWtests/test_exceptions.py108def test_sqlstate_explicit_overrides_auto_derive():CODE
LOWtests/test_exceptions.py119def test_sqlstate_serialize_as_json_includes_auto_derived():CODE
LOWtests/test_exceptions.py126def test_sqlstate_serialize_as_json_includes_explicit():CODE
LOWtests/test_exceptions.py133def test_sqlstate_none_for_unknown_error_code():CODE
LOWtests/test_exceptions.py142def test_invalid_parameter_value_auto_derives_sqlstate():CODE
LOWtests/test_exceptions.py149def test_invalid_parameter_value_with_explicit_override():CODE
LOWtests/test_exceptions.py173def test_rest_exception_cp_sqlstate_mapping(error_code, expected_sqlstate, expected_error_class):CODE
LOWtests/test_exceptions.py179def test_rest_exception_preserves_sqlstate_from_json():CODE
LOWtests/test_exceptions.py190def test_rest_exception_ignores_null_sqlstate_from_json():CODE
LOWtests/test_exceptions.py199def test_rest_exception_pickle_with_sqlstate():CODE
LOWtests/test_exceptions.py208def test_rest_exception_unrecognized_error_code():CODE
LOWtests/test_environment_variables.py9def test_boolean_environment_variable_invalid_default_value(value):CODE
LOWtests/test_environment_variables.py15def test_boolean_environment_variable_valid_default_value(value):CODE
LOWtests/test_environment_variables.py32def test_boolean_environment_variable_valid_value(monkeypatch, value, expected):CODE
LOWtests/test_environment_variables.py41def test_boolean_environment_variable_invalid_value(monkeypatch, value):CODE
LOWtests/test_environment_variables.py64def test_environment_variable_functionality(CODE
LOWtests/test_mlflow_version_comp.py30def check_list_artifacts_with_run_id_and_path(run_id: str, path: str) -> None:CODE
LOWtests/test_mlflow_version_comp.py45def check_list_artifacts_with_model_uri(model_uri: str) -> None:CODE
LOWtests/test_mlflow_version_comp.py51def check_download_artifacts_with_run_id_and_path(run_id: str, path: str, tmp_path: Path) -> None:CODE
LOWtests/test_mlflow_version_comp.py67def check_download_artifacts_with_model_uri(model_uri: str, tmp_path: Path) -> None:CODE
14116 more matches not shown…
Cross-File Repetition463 hits · 2315 pts
SeverityFileLineSnippetContext
HIGHtests/langchain/test_langchain_model_export.py0here is a history between you and a human: {chat_history} now, please answer this question: {question}STRING
HIGHtests/langchain/test_langchain_autolog.py0here is a history between you and a human: {chat_history} now, please answer this question: {question}STRING
HIGHexamples/langchain/chain_autolog.py0here is a history between you and a human: {chat_history} now, please answer this question: {question}STRING
HIGH…mlflow-test-plugin/mlflow_test_plugin/dummy_dataset.py0compute a digest for the dataset. called if the user doesn't supply a digest when constructing the dataset.STRING
HIGHtests/resources/data/dataset.py0compute a digest for the dataset. called if the user doesn't supply a digest when constructing the dataset.STRING
HIGHmlflow/data/pandas_dataset.py0compute a digest for the dataset. called if the user doesn't supply a digest when constructing the dataset.STRING
HIGHmlflow/data/tensorflow_dataset.py0compute a digest for the dataset. called if the user doesn't supply a digest when constructing the dataset.STRING
HIGHmlflow/data/numpy_dataset.py0compute a digest for the dataset. called if the user doesn't supply a digest when constructing the dataset.STRING
HIGHmlflow/data/spark_dataset.py0compute a digest for the dataset. called if the user doesn't supply a digest when constructing the dataset.STRING
HIGHmlflow/data/huggingface_dataset.py0compute a digest for the dataset. called if the user doesn't supply a digest when constructing the dataset.STRING
HIGHmlflow/data/polars_dataset.py0compute a digest for the dataset. called if the user doesn't supply a digest when constructing the dataset.STRING
HIGHtests/resources/db/initial_models.py0db model for :py:class:`mlflow.entities.experiment`. these are recorded in ``experiment`` table.STRING
HIGHmlflow/store/tracking/dbmodels/models.py0db model for :py:class:`mlflow.entities.experiment`. these are recorded in ``experiment`` table.STRING
HIGHmlflow/store/tracking/dbmodels/initial_models.py0db model for :py:class:`mlflow.entities.experiment`. these are recorded in ``experiment`` table.STRING
HIGHtests/resources/db/initial_models.py0experiment id: `integer`. *primary key* for ``experiment`` table.STRING
HIGHmlflow/store/tracking/dbmodels/models.py0experiment id: `integer`. *primary key* for ``experiment`` table.STRING
HIGHmlflow/store/tracking/dbmodels/initial_models.py0experiment id: `integer`. *primary key* for ``experiment`` table.STRING
HIGHtests/resources/db/initial_models.py0default artifact location for this experiment: `string` (limit 256 characters). defined as *non null* in table schema.STRING
HIGHmlflow/store/tracking/dbmodels/models.py0default artifact location for this experiment: `string` (limit 256 characters). defined as *non null* in table schema.STRING
HIGHmlflow/store/tracking/dbmodels/initial_models.py0default artifact location for this experiment: `string` (limit 256 characters). defined as *non null* in table schema.STRING
HIGHtests/resources/db/initial_models.py0lifecycle stage of run: `string` (limit 32 characters). can be either ``active`` (default) or ``deleted``.STRING
HIGHmlflow/store/tracking/dbmodels/models.py0lifecycle stage of run: `string` (limit 32 characters). can be either ``active`` (default) or ``deleted``.STRING
HIGHmlflow/store/tracking/dbmodels/initial_models.py0lifecycle stage of run: `string` (limit 32 characters). can be either ``active`` (default) or ``deleted``.STRING
HIGHtests/resources/db/initial_models.py0db model for :py:class:`mlflow.entities.run`. these are recorded in ``runs`` table.STRING
HIGHmlflow/store/tracking/dbmodels/models.py0db model for :py:class:`mlflow.entities.run`. these are recorded in ``runs`` table.STRING
HIGHmlflow/store/tracking/dbmodels/initial_models.py0db model for :py:class:`mlflow.entities.run`. these are recorded in ``runs`` table.STRING
HIGHtests/resources/db/initial_models.py0run uuid: `string` (limit 32 characters). *primary key* for ``runs`` table.STRING
HIGHmlflow/store/tracking/dbmodels/models.py0run uuid: `string` (limit 32 characters). *primary key* for ``runs`` table.STRING
HIGHmlflow/store/tracking/dbmodels/initial_models.py0run uuid: `string` (limit 32 characters). *primary key* for ``runs`` table.STRING
HIGHtests/resources/db/initial_models.py0source type: `string` (limit 20 characters). can be one of ``notebook``, ``job``, ``project``, ``local`` (default), or `STRING
HIGHmlflow/store/tracking/dbmodels/models.py0source type: `string` (limit 20 characters). can be one of ``notebook``, ``job``, ``project``, ``local`` (default), or `STRING
HIGHmlflow/store/tracking/dbmodels/initial_models.py0source type: `string` (limit 20 characters). can be one of ``notebook``, ``job``, ``project``, ``local`` (default), or `STRING
HIGHtests/resources/db/initial_models.py0name of source recording the run: `string` (limit 500 characters).STRING
HIGHmlflow/store/tracking/dbmodels/models.py0name of source recording the run: `string` (limit 500 characters).STRING
HIGHmlflow/store/tracking/dbmodels/initial_models.py0name of source recording the run: `string` (limit 500 characters).STRING
HIGHtests/resources/db/initial_models.py0entry-point name that launched the run run: `string` (limit 50 characters).STRING
HIGHmlflow/store/tracking/dbmodels/models.py0entry-point name that launched the run run: `string` (limit 50 characters).STRING
HIGHmlflow/store/tracking/dbmodels/initial_models.py0entry-point name that launched the run run: `string` (limit 50 characters).STRING
HIGHtests/resources/db/initial_models.py0user id: `string` (limit 256 characters). defaults to ``null``.STRING
HIGHmlflow/store/tracking/dbmodels/models.py0user id: `string` (limit 256 characters). defaults to ``null``.STRING
HIGHmlflow/store/tracking/dbmodels/initial_models.py0user id: `string` (limit 256 characters). defaults to ``null``.STRING
HIGHtests/resources/db/initial_models.py0run status: `string` (limit 20 characters). can be one of ``running``, ``scheduled`` (default), ``finished``, ``failed``STRING
HIGHmlflow/store/tracking/dbmodels/models.py0run status: `string` (limit 20 characters). can be one of ``running``, ``scheduled`` (default), ``finished``, ``failed``STRING
HIGHmlflow/store/tracking/dbmodels/initial_models.py0run status: `string` (limit 20 characters). can be one of ``running``, ``scheduled`` (default), ``finished``, ``failed``STRING
HIGHtests/resources/db/initial_models.py0run start time: `biginteger`. defaults to current system time.STRING
HIGHmlflow/store/tracking/dbmodels/models.py0run start time: `biginteger`. defaults to current system time.STRING
HIGHmlflow/store/tracking/dbmodels/initial_models.py0run start time: `biginteger`. defaults to current system time.STRING
HIGHtests/resources/db/initial_models.py0default artifact location for this run: `string` (limit 200 characters).STRING
HIGHmlflow/store/tracking/dbmodels/models.py0default artifact location for this run: `string` (limit 200 characters).STRING
HIGHmlflow/store/tracking/dbmodels/initial_models.py0default artifact location for this run: `string` (limit 200 characters).STRING
HIGHtests/resources/db/initial_models.py0experiment id to which this run belongs to: *foreign key* into ``experiment`` table.STRING
HIGHmlflow/store/tracking/dbmodels/models.py0experiment id to which this run belongs to: *foreign key* into ``experiment`` table.STRING
HIGHmlflow/store/tracking/dbmodels/initial_models.py0experiment id to which this run belongs to: *foreign key* into ``experiment`` table.STRING
HIGHtests/resources/db/initial_models.py0sqlalchemy relationship (many:one) with :py:class:`mlflow.store.dbmodels.models.sqlexperiment`.STRING
HIGHmlflow/store/tracking/dbmodels/models.py0sqlalchemy relationship (many:one) with :py:class:`mlflow.store.dbmodels.models.sqlexperiment`.STRING
HIGHmlflow/store/tracking/dbmodels/initial_models.py0sqlalchemy relationship (many:one) with :py:class:`mlflow.store.dbmodels.models.sqlexperiment`.STRING
HIGHtests/resources/db/initial_models.py0db model for :py:class:`mlflow.entities.runtag`. these are recorded in ``tags`` table.STRING
HIGHmlflow/store/tracking/dbmodels/models.py0db model for :py:class:`mlflow.entities.runtag`. these are recorded in ``tags`` table.STRING
HIGHmlflow/store/tracking/dbmodels/initial_models.py0db model for :py:class:`mlflow.entities.runtag`. these are recorded in ``tags`` table.STRING
HIGHtests/resources/db/initial_models.py0tag key: `string` (limit 250 characters). *primary key* for ``tags`` table.STRING
403 more matches not shown…
Decorative Section Separators410 hits · 1490 pts
SeverityFileLineSnippetContext
MEDIUMpyproject.toml166# -----------------------------------------------------------------COMMENT
MEDIUM…assistant/providers/test_openai_compatible_provider.py251# ---------------------------------------------------------------------------COMMENT
MEDIUM…assistant/providers/test_openai_compatible_provider.py253# ---------------------------------------------------------------------------COMMENT
MEDIUM…assistant/providers/test_openai_compatible_provider.py434# ---------------------------------------------------------------------------COMMENT
MEDIUM…assistant/providers/test_openai_compatible_provider.py436# ---------------------------------------------------------------------------COMMENT
MEDIUM…assistant/providers/test_openai_compatible_provider.py21# ---------------------------------------------------------------------------COMMENT
MEDIUM…assistant/providers/test_openai_compatible_provider.py23# ---------------------------------------------------------------------------COMMENT
MEDIUM…assistant/providers/test_openai_compatible_provider.py85# ---------------------------------------------------------------------------COMMENT
MEDIUM…assistant/providers/test_openai_compatible_provider.py87# ---------------------------------------------------------------------------COMMENT
MEDIUM…assistant/providers/test_openai_compatible_provider.py116# ---------------------------------------------------------------------------COMMENT
MEDIUM…assistant/providers/test_openai_compatible_provider.py118# ---------------------------------------------------------------------------COMMENT
MEDIUM…assistant/providers/test_openai_compatible_provider.py493# ---------------------------------------------------------------------------COMMENT
MEDIUM…assistant/providers/test_openai_compatible_provider.py495# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/tracing/processor/test_mlflow_v3_processor.py182# ── Batch span processor tests ──────────────────────────────────────────COMMENT
MEDIUMtests/pytest/test_plugin.py12# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/pytest/test_plugin.py16# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/pytest/test_plugin.py108# ---------------------------------------------------------------------------STRING
MEDIUMtests/pytest/test_plugin.py110# ---------------------------------------------------------------------------STRING
MEDIUMtests/pytest/test_plugin.py179# ---------------------------------------------------------------------------STRING
MEDIUMtests/pytest/test_plugin.py182# ---------------------------------------------------------------------------STRING
MEDIUMtests/pytest/test_plugin.py220# ---------------------------------------------------------------------------STRING
MEDIUMtests/pytest/test_plugin.py223# ---------------------------------------------------------------------------STRING
MEDIUMtests/claude_code/test_tracing.py31# ============================================================================COMMENT
MEDIUMtests/claude_code/test_tracing.py33# ============================================================================COMMENT
MEDIUMtests/claude_code/test_tracing.py64# ============================================================================COMMENT
MEDIUMtests/claude_code/test_tracing.py66# ============================================================================COMMENT
MEDIUMtests/claude_code/test_tracing.py118# ============================================================================COMMENT
MEDIUMtests/claude_code/test_tracing.py120# ============================================================================COMMENT
MEDIUMtests/claude_code/test_tracing.py138# ============================================================================COMMENT
MEDIUMtests/claude_code/test_tracing.py140# ============================================================================COMMENT
MEDIUMtests/claude_code/test_tracing.py161# ============================================================================COMMENT
MEDIUMtests/claude_code/test_tracing.py163# ============================================================================COMMENT
MEDIUMtests/claude_code/test_tracing.py398# ============================================================================COMMENT
MEDIUMtests/claude_code/test_tracing.py400# ============================================================================COMMENT
MEDIUMtests/claude_code/test_tracing.py565# ============================================================================COMMENT
MEDIUMtests/claude_code/test_tracing.py567# ============================================================================COMMENT
MEDIUMtests/server/test_gateway_api.py955# =============================================================================COMMENT
MEDIUMtests/server/test_gateway_api.py957# =============================================================================COMMENT
MEDIUMtests/server/test_gateway_api.py1757# =============================================================================COMMENT
MEDIUMtests/server/test_gateway_api.py1759# =============================================================================COMMENT
MEDIUMtests/server/test_gateway_api.py1896# =============================================================================COMMENT
MEDIUMtests/server/test_gateway_api.py1898# =============================================================================COMMENT
MEDIUMtests/server/test_gateway_api.py2627# =============================================================================COMMENT
MEDIUMtests/server/test_gateway_api.py2629# =============================================================================COMMENT
MEDIUMtests/server/test_gateway_api.py2303# =============================================================================COMMENT
MEDIUMtests/server/test_gateway_api.py2305# =============================================================================COMMENT
MEDIUMtests/server/test_gateway_api.py3160# ─── Guardrail end-to-end scenarios ──────────────────────────────────────────COMMENT
MEDIUMtests/server/auth/test_sqlalchemy_store.py153# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/server/auth/test_sqlalchemy_store.py163# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/server/auth/test_auth_workspace.py2238# =============================================================================COMMENT
MEDIUMtests/server/auth/test_auth_workspace.py2240# =============================================================================COMMENT
MEDIUMtests/server/auth/test_auth_workspace.py2524# =============================================================================COMMENT
MEDIUMtests/server/auth/test_auth_workspace.py2526# =============================================================================COMMENT
MEDIUMtests/server/auth/test_auth_workspace.py3550# =============================================================================COMMENT
MEDIUMtests/server/auth/test_auth_workspace.py3552# =============================================================================COMMENT
MEDIUMtests/pydantic_ai/test_pydanticai_tracing.py470# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/pydantic_ai/test_pydanticai_tracing.py474# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/bedrock/test_genai_semconv_converter.py30# ── End-to-end autolog integration tests ─────────────────────────────────────COMMENT
MEDIUMtests/bedrock/test_genai_semconv_converter.py232# ── Multimodal content conversion tests ──────────────────────────────────────COMMENT
MEDIUMtests/db/test_workspace_move.py64# ---------------------------------------------------------------------------COMMENT
350 more matches not shown…
Unused Imports1375 hits · 1185 pts
SeverityFileLineSnippetContext
LOWtests/conftest.py139CODE
LOWtests/conftest.py1264CODE
LOWtests/test_skinny_client_anthropic_import.py24CODE
LOWtests/test_skinny_client_omits_sql_libs.py11CODE
LOWtests/test_skinny_client_omits_sql_libs.py14CODE
LOWtests/test_skinny_client_autolog_without_scipy.py13CODE
LOWtests/simple_repository_server.py7CODE
LOWtests/test_skinny_client_omits_data_science_libs.py13CODE
LOWtests/test_skinny_client_omits_data_science_libs.py20CODE
LOWtests/test_skinny_client_omits_data_science_libs.py27CODE
LOWtests/test_skinny_client_omits_data_science_libs.py16CODE
LOWtests/test_skinny_client_omits_data_science_libs.py23CODE
LOWtests/test_skinny_client_omits_data_science_libs.py30CODE
LOWtests/dspy/test_dspy_evaluate.py13CODE
LOWtests/langgraph/conftest.py7CODE
LOWtests/tracing/otel/test_otel_archival.py1CODE
LOWtests/gemini/test_gemini_genai_semconv_converter.py16CODE
LOWtests/pytest/test_plugin.py1CODE
LOWtests/langchain/conftest.py10CODE
LOW…ain/test_langchain_databricks_dependency_extraction.py46CODE
LOWtests/projects/test_projects_cli.py18CODE
LOWtests/projects/test_docker_projects.py24CODE
LOWtests/llama_index/test_llama_index_evaluate.py9CODE
LOWtests/server/test_workspace_endpoints.py1CODE
LOWtests/server/test_workspace_middleware.py1CODE
LOWtests/utils/test_requirements_utils.py212CODE
LOWtests/utils/test_requirements_utils.py247CODE
LOWtests/utils/test_requirements_utils.py315CODE
LOWtests/utils/test_requirements_utils.py316CODE
LOWtests/utils/test_requirements_utils.py317CODE
LOWtests/utils/test_requirements_utils.py318CODE
LOWtests/utils/test_requirements_utils.py319CODE
LOWtests/utils/test_requirements_utils.py327CODE
LOWtests/utils/test_requirements_utils.py328CODE
LOWtests/utils/test_requirements_utils.py329CODE
LOWtests/utils/test_requirements_utils.py330CODE
LOWtests/utils/test_requirements_utils.py331CODE
LOWtests/utils/test_requirements_utils.py441CODE
LOWtests/utils/test_requirements_utils.py622CODE
LOWtests/utils/test_requirements_utils.py667CODE
LOWtests/utils/test_requirements_utils.py715CODE
LOWtests/utils/test_requirements_utils.py716CODE
LOWtests/utils/test_model_utils.py82CODE
LOWtests/utils/test_model_utils.py77CODE
LOWtests/utils/test_model_utils.py74CODE
LOWtests/utils/test_databricks_utils.py598CODE
LOWtests/utils/test_workspace_utils.py1CODE
LOWtests/utils/test_resources/dummy_package/base.py3CODE
LOWtests/agent/test_prompt.py1CODE
LOWtests/agent/test_cli.py1CODE
LOWtests/bedrock/test_genai_semconv_converter.py13CODE
LOWtests/sklearn/test_sklearn_model_export.py53CODE
LOWtests/sklearn/test_sklearn_model_export.py53CODE
LOW…sts/sklearn/test_sklearn_autolog_without_matplotlib.py15CODE
LOWtests/evaluate/test_default_evaluator.py1CODE
LOWtests/autologging/test_autologging_behaviors_unit.py17CODE
LOW…/autologging/test_autologging_behaviors_integration.py21CODE
LOWtests/semantic_kernel/conftest.py10CODE
LOWtests/semantic_kernel/resources.py12CODE
LOWtests/agno/test_agno_tracing.py29CODE
1315 more matches not shown…
Excessive Try-Catch Wrapping1038 hits · 1106 pts
SeverityFileLineSnippetContext
LOWtests/helper_functions.py351 except Exception:CODE
LOWtests/helper_functions.py680 except Exception as e:CODE
LOWtests/helper_functions.py702 except Exception as e:CODE
LOWtests/helper_functions.py773 except Exception as e:CODE
MEDIUMtests/helper_functions.py547def _is_importable(module_name):CODE
LOWtests/dspy/test_save.py598 except Exception:CODE
LOW…ain/test_langchain_databricks_dependency_extraction.py272 except Exception:CODE
LOW…ain/test_langchain_databricks_dependency_extraction.py372 except Exception:CODE
MEDIUM…ain/test_langchain_databricks_dependency_extraction.py44def _is_partner_package_installed():CODE
LOWtests/pyspark/optuna/test_study.py25 except Exception as e:CODE
LOW…test-plugin/mlflow_test_plugin/dummy_dataset_source.py36 except Exception:CODE
LOWtests/resources/data/dataset_source.py35 except Exception:CODE
LOWtests/strands/conftest.py15 except Exception:CODE
LOWtests/system_metrics/test_collect_metrics.py26 except Exception:CODE
MEDIUMtests/system_metrics/test_collect_metrics.py23def test_gpu_monitor():CODE
LOWtests/tracking/fluent/test_fluent_autolog.py104 except Exception:CODE
LOWtests/tracking/fluent/test_fluent_autolog.py121 except Exception:CODE
LOWtests/johnsnowlabs/test_johnsnowlabs_model_export.py74 except Exception:CODE
LOWtests/genai/utils/test_prompt_cache.py151 except Exception as e:CODE
LOWtests/genai/utils/test_prompt_cache.py175 except Exception as e:CODE
LOWtests/genai/utils/test_prompt_cache.py183 except Exception as e:CODE
MEDIUMtests/genai/utils/test_prompt_cache.py147def get_instance():CODE
MEDIUMtests/genai/utils/test_prompt_cache.py170def writer(thread_id):CODE
MEDIUMtests/genai/utils/test_prompt_cache.py178def reader(thread_id):CODE
LOWtests/genai/scorers/test_builtin_scorers.py881 except Exception:CODE
LOWtests/genai/scorers/test_scorer_telemetry.py176 except Exception as e:CODE
MEDIUMtests/genai/scorers/test_scorer_telemetry.py86def __call__(self, outputs) -> Feedback:CODE
LOWtests/genai/evaluate/test_utils.py46 except Exception:CODE
LOWtests/spark/test_spark_model_export.py86 except Exception as e:CODE
LOWtests/gateway/tools.py282 except Exception:CODE
MEDIUMtests/store/model_registry/test_abstract_store.py304def link_prompt(prompt_name):CODE
LOWtests/store/model_registry/test_abstract_store.py307 except Exception as e:CODE
LOWtests/pyfunc/test_virtualenv.py154 except Exception:CODE
MEDIUM.claude/skills/src/skills/github/utils.py14 print("Error: GH_TOKEN not found (set env var or install gh CLI)", file=sys.stderr)CODE
LOWmlflow/environment_variables.py49 except Exception as e:CODE
LOWmlflow/runs.py214 except Exception as e:CODE
LOWmlflow/runs.py251 except Exception as e:CODE
LOWmlflow/demo/base.py121 except Exception:CODE
LOWmlflow/demo/generators/issues.py201 except Exception:CODE
LOWmlflow/demo/generators/issues.py229 except Exception:CODE
MEDIUMmlflow/demo/generators/issues.py190def _data_exists(self) -> bool:CODE
LOWmlflow/demo/generators/evaluation.py235 except Exception:CODE
LOWmlflow/demo/generators/evaluation.py257 except Exception:CODE
LOWmlflow/demo/generators/evaluation.py259 except Exception:CODE
LOWmlflow/demo/generators/evaluation.py316 except Exception:CODE
LOWmlflow/demo/generators/evaluation.py355 except Exception:CODE
LOWmlflow/demo/generators/review_queues.py163 except Exception:CODE
LOWmlflow/demo/generators/review_queues.py177 except Exception:CODE
LOWmlflow/demo/generators/review_queues.py188 except Exception:CODE
MEDIUMmlflow/demo/generators/review_queues.py155def _data_exists(self) -> bool:CODE
LOWmlflow/demo/generators/prompts.py87 except Exception:CODE
LOWmlflow/demo/generators/prompts.py109 except Exception:CODE
LOWmlflow/demo/generators/prompts.py117 except Exception:CODE
LOWmlflow/demo/generators/prompts.py119 except Exception:CODE
LOWmlflow/demo/generators/prompts.py130 except Exception:CODE
MEDIUMmlflow/demo/generators/prompts.py80def _data_exists(self) -> bool:CODE
LOWmlflow/demo/generators/judges.py90 except Exception:CODE
LOWmlflow/demo/generators/judges.py110 except Exception:CODE
LOWmlflow/demo/generators/judges.py130 except Exception:CODE
LOWmlflow/demo/generators/judges.py132 except Exception:CODE
978 more matches not shown…
Self-Referential Comments383 hits · 1080 pts
SeverityFileLineSnippetContext
MEDIUMpyproject.release.toml2# This file defines the package metadata of `mlflow`. `mlflow-skinny` and `mlflow-tracing`COMMENT
MEDIUMpyproject.toml2# This file defines the package metadata of `mlflow` **during development**. To install `mlflow`COMMENT
MEDIUMtests/test_cli.py1261 # Create a test .env file pointing to this tracking URICOMMENT
MEDIUMtests/dspy/test_dspy_autolog.py351 # Create a custom span inside the module using fluent APICOMMENT
MEDIUMtests/tracing/test_fluent.py2680 # Create a trace without a session ID - should result in no sessionsCOMMENT
MEDIUMtests/tracing/test_tracing_client.py345 # Create a trace with spans in the tracking storeCOMMENT
MEDIUMtests/tracing/test_tracing_client.py349 # Create a trace without spans (artifact-repo case)COMMENT
MEDIUMtests/tracing/test_tracing_client.py401 # Create a traceCOMMENT
MEDIUMtests/tracing/test_otel_loading.py96 # Create a span with various attributes to test conversionCOMMENT
MEDIUMtests/tracing/test_otel_loading.py287 # Create a fake trace ID in OTel formatCOMMENT
MEDIUMtests/tracing/test_otel_loading.py355 # Create a span that represents a question-answer scenarioCOMMENT
MEDIUMtests/tracing/test_otel_loading.py394 # Create a span representing a model predictionCOMMENT
MEDIUMtests/tracing/test_otel_loading.py447 # Create a complex trace with nested spansCOMMENT
MEDIUMtests/tracing/test_otel_logging.py274 # Create a valid OTLP requestCOMMENT
MEDIUMtests/tracing/test_otel_logging.py398 # Create a span with unique trace_idCOMMENT
MEDIUMtests/tracing/test_otel_logging.py446 # Create a request with 15 different traces (exceeds the 10 thread pool limit)COMMENT
MEDIUMtests/tracing/test_otel_logging.py940 # Create a valid OTLP requestCOMMENT
MEDIUMtests/tracing/utils/test_utils.py608 # Create a mock span with empty attributesCOMMENT
MEDIUMtests/tracing/utils/test_utils.py617 # Create a mock span where attributes.get() returns NoneCOMMENT
MEDIUMtests/tracing/utils/test_utils.py627 # Create a mock span with invalid JSONCOMMENT
MEDIUMtests/tracing/utils/test_utils.py580 # Create a mock span with attributesCOMMENT
MEDIUMtests/tracing/utils/test_timeout.py139 # Create a first trace. At this moment, there is no timeout setCOMMENT
MEDIUMtests/tracing/utils/test_timeout.py149 # Create a second trace. This should use the new timeoutCOMMENT
MEDIUMtests/tracing/export/test_mlflow_v3_exporter.py277 # Create a mock function that simulates delayCOMMENT
MEDIUMtests/tracing/export/test_mlflow_v3_exporter.py401 # Create a mock OTEL span and traceCOMMENT
MEDIUMtests/tracing/export/test_mlflow_v3_exporter.py494 # Create a mock OTEL span and trace (no prompts added)COMMENT
MEDIUMtests/tracing/export/test_mlflow_v3_exporter.py557 # Create a mock OTEL span and trace with a promptCOMMENT
MEDIUMtests/tracing/export/test_mlflow_v3_exporter.py570 # Create a test promptCOMMENT
MEDIUMtests/tracing/export/test_mlflow_v3_exporter.py609 # Create a mock OTEL span and traceCOMMENT
MEDIUMtests/tracing/export/test_async_export_queue.py116 # Create a slow handler to keep tasks in the queueCOMMENT
MEDIUMtests/shap/test_log.py392 # Create a numba-compatible identify link function due to breaking changes in shapCOMMENT
MEDIUMtests/langchain/conftest.py43# Define a special embedding for testingCOMMENT
MEDIUMtests/langchain/test_langchain_model_export.py283 # Create the vector db, persist the db to a local fs folderCOMMENT
MEDIUMtests/langchain/test_langchain_model_export.py293 # Define the loader_fnCOMMENT
MEDIUMtests/langchain/test_langchain_model_export.py651 # Create the vector db, persist the db to a local fs folderCOMMENT
MEDIUMtests/langchain/test_langchain_autolog.py91 # Create the vector db, persist the db to a local fs folderCOMMENT
MEDIUMtests/projects/test_utils.py249 # Create a runCOMMENT
MEDIUMtests/resources/mlflow-test-plugin/pyproject.toml18# Define a Tracking Store plugin for tracking URIs with scheme 'file-plugin'COMMENT
MEDIUMtests/resources/mlflow-test-plugin/pyproject.toml22# Define a ArtifactRepository plugin for artifact URIs with scheme 'file-plugin'COMMENT
MEDIUMtests/resources/mlflow-test-plugin/pyproject.toml26# Define a RunContextProvider plugin. The entry point name for run context providersCOMMENT
MEDIUMtests/resources/mlflow-test-plugin/pyproject.toml31# Define a DefaultExperimentProvider plugin. The entry point name forCOMMENT
MEDIUMtests/resources/mlflow-test-plugin/pyproject.toml36# Define a RequestHeaderProvider plugin. The entry point name for request header providersCOMMENT
MEDIUMtests/resources/mlflow-test-plugin/pyproject.toml41# Define a RequestAuthProvider plugin. The entry point name for request auth providersCOMMENT
MEDIUMtests/resources/mlflow-test-plugin/pyproject.toml46# Define a Model Registry Store plugin for tracking URIs with scheme 'file-plugin'COMMENT
MEDIUMtests/resources/mlflow-test-plugin/pyproject.toml50# Define a MLflow Project Backend plugin called 'dummy-backend'COMMENT
MEDIUMtests/resources/mlflow-test-plugin/pyproject.toml54# Define a MLflow model deployment plugin for target 'faketarget'COMMENT
MEDIUMtests/resources/mlflow-test-plugin/pyproject.toml58# Define a MLflow model evaluator with name "dummy_evaluator"COMMENT
MEDIUMtests/resources/mlflow-test-plugin/pyproject.toml62# Define a custom MLflow application with name custom_appCOMMENT
MEDIUMtests/resources/mlflow-test-plugin/pyproject.toml66# Define an MLflow dataset source called "dummy_source"COMMENT
MEDIUMtests/resources/mlflow-test-plugin/pyproject.toml70# Define an MLflow dataset constructor called "from_dummy"COMMENT
MEDIUMtests/server/conftest.py47 # Create a fresh app for each test to avoid state pollutionCOMMENT
MEDIUMtests/server/test_handlers.py3157 # Create the request messageCOMMENT
MEDIUMtests/server/test_handlers.py3182 # Create the request message with V3COMMENT
MEDIUMtests/server/test_handlers.py3283 # Create the request messageCOMMENT
MEDIUMtests/server/test_handlers.py3309 # Create the request message (v3 version)COMMENT
MEDIUMtests/server/test_handlers.py3383 # Create the request messageCOMMENT
MEDIUMtests/server/test_handlers.py3605 # Create the request messageCOMMENT
MEDIUMtests/server/test_handlers.py3635 # Create a mock result object with next_page_token attributeCOMMENT
MEDIUMtests/server/test_handlers.py4158 # Create a test file with binary data larger than the chunk size (2MB + 1000 bytes)COMMENT
MEDIUMtests/server/test_gateway_api.py502 # Create a file whose path will be used as the "api_key" valueCOMMENT
323 more matches not shown…
Docstring Block Structure183 hits · 915 pts
SeverityFileLineSnippetContext
HIGHmlflow/metrics/genai/model_utils.py548Call the deployment endpoint with the given payload and parameters. Args: deployment_uri: The URI of the deSTRING
HIGHmlflow/metrics/genai/metric_definitions.py24 This function will create a genai metric used to evaluate the answer similarity of an LLM using the model proviSTRING
HIGHmlflow/metrics/genai/metric_definitions.py115 This function will create a genai metric used to evaluate the answer correctness of an LLM using the model provSTRING
HIGHmlflow/metrics/genai/metric_definitions.py207 This function will create a genai metric used to evaluate the faithfullness of an LLM using the model provided.STRING
HIGHmlflow/metrics/genai/metric_definitions.py296 This function will create a genai metric used to evaluate the answer relevance of an LLM using the model providSTRING
HIGHmlflow/metrics/genai/metric_definitions.py379 This function will create a genai metric used to evaluate the evaluate the relevance of an LLM using the model STRING
HIGHmlflow/metrics/genai/genai_metric.py216 Create a genai metric used to evaluate LLM using LLM as a judge in MLflow. This produces a metric using only thSTRING
HIGHmlflow/metrics/genai/genai_metric.py382 Create a genai metric used to evaluate LLM using LLM as a judge in MLflow. The full grading prompt is stored inSTRING
HIGHmlflow/tracing/assessment.py139 Logs an expectation (e.g. ground truth label) to a Trace. This API only takes keyword arguments. Args: STRING
HIGHmlflow/tracing/assessment.py263 Logs feedback to a Trace. This API only takes keyword arguments. Args: trace_id: The ID of the trace. STRING
HIGHmlflow/tracing/assessment.py343 Logs an issue reference to a Trace. This links a trace to a discovered issue. This API only takes keyword argumSTRING
HIGHmlflow/tracing/assessment.py412 Overrides an existing feedback assessment with a new assessment. This API logs a new assessment with the `overrSTRING
HIGHmlflow/tracing/config.py66 Configure MLflow tracing. Can be used as function or context manager. Only updates explicitly provided argumenSTRING
HIGHmlflow/tracing/fluent.py532 Context manager to create a new span and start it as the current span in the context. This context manager autSTRING
HIGHmlflow/tracing/fluent.py691 Start a span without attaching it to the global tracing context. This is useful when you want to create a spanSTRING
HIGHmlflow/tracing/fluent.py1789 Create a trace with a single root span. This API is useful when you want to log an arbitrary (request, responseSTRING
HIGHmlflow/tracing/utils/prompt.py10 Utility method to update linked prompts tag value with a new prompt version. Args: current_tag_value: STRING
HIGHmlflow/tracing/otel/translation/__init__.py214 Get input value from various OTEL semantic conventions. Checks both span attributes and events (for frameworksSTRING
HIGHmlflow/tracing/otel/translation/__init__.py243 Get output value from various OTEL semantic conventions. Checks both span attributes and events (for frameworkSTRING
HIGHmlflow/tracing/otel/translation/__init__.py270 Get message format from span attributes for chat UI rendering. Args: attributes: Dictionary of span atSTRING
HIGHmlflow/tracing/otel/translation/__init__.py293 Get model name from span attributes. Args: attributes: Dictionary of span attributes Returns: STRING
HIGHmlflow/tracing/otel/translation/__init__.py330 Get model provider from span attributes. Args: attributes: Dictionary of span attributes Returns:STRING
HIGHmlflow/tracing/otel/translation/__init__.py346 Translate OTEL span kind attributes to MLflow span type. This function checks for span kind attributes from vaSTRING
HIGHmlflow/tracing/otel/translation/traceloop.py58 Get attribute value from OTEL attributes by checking whether the keys in valid_keys are present in the STRING
HIGHmlflow/tracing/otel/translation/voltagent.py93 Get message format identifier for VoltAgent traces. Returns 'voltagent' if VoltAgent-specific attributSTRING
HIGHmlflow/tracing/otel/translation/livekit.py62 Translate LiveKit span type to MLflow span type. LiveKit uses gen_ai.operation.name for LLM spans and STRING
HIGHmlflow/tracing/otel/translation/livekit.py97 Get message format identifier for LiveKit traces. Returns 'livekit' if LiveKit-specific attributes areSTRING
HIGHmlflow/tracing/otel/translation/base.py37 Get message format identifier for chat UI rendering. Subclasses should override this method to return STRING
HIGHmlflow/tracing/otel/translation/base.py51 Translate OTEL span kind attribute to MLflow span type. Args: attributes: Dictionary of spSTRING
HIGHmlflow/tracing/otel/translation/base.py79 Get input token count from OTEL attributes. Args: attributes: Dictionary of span attributeSTRING
HIGHmlflow/tracing/otel/translation/base.py92 Get output token count from OTEL attributes. Args: attributes: Dictionary of span attributSTRING
HIGHmlflow/tracing/otel/translation/base.py105 Get total token count from OTEL attributes. Args: attributes: Dictionary of span attributeSTRING
HIGHmlflow/tracing/otel/translation/base.py126 Get model name from OTEL attributes. Args: attributes: Dictionary of span attributes STRING
HIGHmlflow/tracing/otel/translation/base.py140 Get model provider from OTEL attributes. Args: attributes: Dictionary of span attributes STRING
HIGHmlflow/tracing/otel/translation/base.py164 Get input value from OTEL attributes. Args: attributes: Dictionary of span attributes STRING
HIGHmlflow/tracing/otel/translation/base.py176 Get output value from OTEL attributes. Args: attributes: Dictionary of span attributes STRING
HIGHmlflow/tracing/otel/translation/base.py188 Get tool definitions from OTEL attributes. Args: attributes: Dictionary of span attributesSTRING
HIGHmlflow/tracing/otel/translation/base.py202 Get attribute value from OTEL attributes by checking whether the keys in keys_to_check are present in tSTRING
HIGHmlflow/tracing/otel/translation/base.py220 Get attribute value from OTEL attributes by checking whether the value is valid or not. This avoids fetSTRING
HIGHmlflow/diffusers/__init__.py485Load a diffusers adapter model from a local file or a run. Args: model_uri: The location, in URI format, ofSTRING
HIGHmlflow/projects/__init__.py227 Run an MLflow project. The project can be local or stored at a Git URI. MLflow provides built-in support for rSTRING
HIGHmlflow/server/gateway_api.py92 Get request body, using cached version if available. The auth middleware may have already parsed the request bSTRING
HIGHmlflow/server/gateway_api.py256 Build an EndpointConfig from model configuration. This function combines provider config building and endpointSTRING
HIGHmlflow/server/gateway_api.py430 Create a provider instance based on endpoint routing strategy. Fallback is independent of routing strategy - iSTRING
HIGHmlflow/server/gateway_api.py569 Extract and validate the endpoint name from the 'model' parameter in the request body. Args: body: TheSTRING
HIGHmlflow/server/handlers.py1056 Get and validate request data without protobuf parsing. This is an alternative to _get_request_message for endSTRING
HIGHmlflow/server/otel_api.py104 Export trace spans to MLflow via the OpenTelemetry protocol. This endpoint accepts OTLP/HTTP protobuf trace exSTRING
HIGHmlflow/server/assistant/session.py128Get the file path for a session. Args: session_id: Session ID Returns: Path toSTRING
HIGHmlflow/server/assistant/api.py408 Install skills bundled with MLflow. This endpoint only handles installation. Config updates should be done via STRING
HIGHmlflow/server/auth/client.py58 Create a new user. Args: username: The username. password: The user's passwordSTRING
HIGHmlflow/server/auth/client.py99 Get a user with a specific username. Args: username: The username. Raises: STRING
HIGHmlflow/server/jobs/__init__.py261 Cancel a job by its ID. Args: job_id: The ID of the job to cancel Returns: The job entitySTRING
HIGHmlflow/utils/model_utils.py37Validates and copies extra files to the model directory. Downloads extra files from URIs and copies them to an 'extSTRING
HIGHmlflow/utils/rest_utils.py498 Retry a Databricks SDK call with exponential backoff until timeout or max retries reached. Args: call_STRING
HIGHmlflow/utils/crypto.py271 Encrypt plaintext using AES-256-GCM. INTERNAL FUNCTION. AES-GCM provides authenticated encryption with associaSTRING
HIGHmlflow/utils/crypto.py316 Decrypt ciphertext using AES-256-GCM. Automatically verifies authentication tag to detect tampering. ArgsSTRING
HIGHmlflow/utils/crypto.py377 Unwrap (decrypt) a DEK using the KEK. Args: wrapped_dek: Encrypted DEK kek: Key Encryption KeySTRING
HIGHmlflow/utils/crypto.py534 Decrypt a secret value using envelope encryption with AAD verification. This function is the main entry point STRING
HIGHmlflow/utils/crypto.py606 Rotate a secret's encryption from old KEK to new KEK. This is used during KEK rotation to re-encrypt secrets wSTRING
HIGHmlflow/utils/databricks_utils.py1674 Invoke Databricks App /invocations endpoint with OAuth authentication. Databricks Apps require OAuth authenticSTRING
123 more matches not shown…
Cross-Language Confusion117 hits · 758 pts
SeverityFileLineSnippetContext
HIGHtests/assistant/providers/test_claude_code_provider.py443 b'{"type": "result", "result": null, "session_id": "sess-123"}\n',CODE
HIGHtests/server/test_gateway_api.py1656 b'data: {"id":"chatcmpl-123","object":"chat.completion.chunk","created":1234567890,"model":"gpt-4o","choices":[{CODE
HIGHtests/server/test_gateway_api.py1657 b'data: {"id":"chatcmpl-123","object":"chat.completion.chunk","created":1234567890,"model":"gpt-4o","choices":[{CODE
HIGHtests/server/test_gateway_api.py1720 b'data: {"type":"response.created","response":{"id":"resp_1","object":"response","created_at":1741290958,"statusCODE
HIGHtests/server/test_gateway_api.py1727 b'data: {"type":"response.completed","response":{"id":"resp_1","object":"response","created_at":1741290958,"statCODE
HIGHtests/server/test_gateway_api.py1858 b'event: message_start\ndata: {"type":"message_start","message":{"id":"msg_01XFDUDYJgAACzvnptvVoYEL","type":"mesCODE
HIGHtests/server/test_gateway_api.py1863 b'event: message_delta\ndata: {"type":"message_delta","delta":{"stop_reason":"end_turn","stop_sequence":null},"uCODE
HIGHtests/server/test_gateway_api.py2472 b'data: {"id":"chatcmpl-123","object":"chat.completion.chunk","created":1234567890,"model":"gpt-4","choices":[{"CODE
HIGHtests/server/test_gateway_api.py2473 b'data: {"id":"chatcmpl-123","object":"chat.completion.chunk","created":1234567890,"model":"gpt-4","choices":[{"CODE
HIGHtests/server/jobs/test_jobs.py137 assert job.params == '{"data": null}'CODE
HIGHtests/utils/test_databricks_utils.py542 # both file mount and env var exist, both values should return trueCOMMENT
HIGHtests/utils/test_databricks_utils.py545 # file mount without env var should return falseCOMMENT
HIGHtests/models/test_container.py112 dependencies=["numpy && echo INJECTED > /tmp/test_injection_ampersand.txt"],CODE
HIGHtests/models/test_container.py122 assert not os.path.exists(evidence_file), "Command injection via && succeeded!"CODE
HIGHtests/models/test_python_api.py69 assert model_input.equals(expected_data)CODE
HIGHtests/models/test_signature.py274 "params": '[{"name": "param1", "default": "test", "shape": null, "type": "string"}]',CODE
HIGHtests/evaluate/test_default_evaluator.py2575 assert output1.equals(data_df["target"])CODE
HIGHtests/evaluate/test_default_evaluator.py2576 assert other1.equals(data_df.drop(columns=["target"]))CODE
HIGHtests/evaluate/test_default_evaluator.py2578 assert output2.equals(data_df["target"])CODE
HIGHtests/evaluate/test_default_evaluator.py2579 assert other2.equals(data_df.drop(columns=["target"]))CODE
HIGHtests/evaluate/test_default_evaluator.py2581 assert output3.equals(data_df["target"])CODE
HIGHtests/evaluate/test_default_evaluator.py2582 assert other3.equals(data_df.drop(columns=["target"]))CODE
HIGHtests/evaluate/test_default_evaluator.py2587 assert output5.equals(pd.Series(data_list))CODE
HIGHtests/evaluate/test_default_evaluator.py2590 assert output6.equals(pd.Series(data_dict_text["text"]))CODE
HIGHtests/evaluate/test_default_evaluator.py2593 assert output7.equals(pd.Series(data_dict_text["text"]))CODE
HIGHtests/evaluate/test_default_evaluator.py2654 assert eval_df_value.equals(test_eval_df_value)CODE
HIGHtests/genai/datasets/test_evaluation_dataset.py201 assert legacy_dataset._features_data.equals(dataset.to_df())CODE
HIGH…nai/judges/adapters/test_databricks_managed_adapter.py316 content='{"name": "root_span", "inputs": null}',CODE
HIGHtests/data/test_huggingface_dataset_and_source.py274 assert evaluation_dataset.features_data.equals(dataset.ds.to_pandas().drop("label", axis=1))CODE
HIGHtests/data/test_pandas_dataset.py145 assert input_outputs.inputs.equals(pd.DataFrame([[1, 2], [1, 2]], columns=["a", "b"]))CODE
HIGHtests/data/test_pandas_dataset.py146 assert input_outputs.outputs.equals(pd.Series([3, 3], name="c"))CODE
HIGHtests/data/test_pandas_dataset.py156 assert input_outputs.inputs.equals(pd.DataFrame([[1, 2], [1, 2]], columns=["a", "b"]))CODE
HIGHtests/data/test_pandas_dataset.py157 assert input_outputs.outputs.equals(pd.Series([3, 3], name="c"))CODE
HIGHtests/data/test_pandas_dataset.py167 assert mlflow_df.df.equals(df)CODE
HIGHtests/data/test_pandas_dataset.py187 assert mlflow_df.df.equals(df)CODE
HIGHtests/data/test_pandas_dataset.py207 assert mlflow_df.df.equals(df)CODE
HIGHtests/data/test_pandas_dataset.py82 assert dataset.df.equals(df)CODE
HIGHtests/data/test_pandas_dataset.py244 assert evaluation_dataset.features_data.equals(df.drop("c", axis=1))CODE
HIGHtests/data/test_pandas_dataset.py281 assert evaluation_dataset.features_data.equals(df)CODE
HIGHtests/data/test_polars_dataset.py153 assert dataset.df.equals(df)CODE
HIGHtests/data/test_polars_dataset.py229 assert mlflow_df.df.equals(df)CODE
HIGHtests/data/test_polars_dataset.py256 assert evaluation_dataset.features_data.equals(df.drop("c").to_pandas())CODE
HIGHtests/data/test_spark_dataset.py400 assert not df2.equals(df)CODE
HIGHtests/data/test_spark_dataset.py373 assert not df_v0.equals(df)CODE
HIGHtests/data/test_spark_dataset.py430 assert evaluation_dataset.features_data.equals(df_spark.toPandas()[["a"]])CODE
HIGHtests/gateway/test_tracing_utils.py879 b'"created_at":1741290958,"status":"in_progress","output":[],"usage":null}}\n'CODE
HIGHtests/gateway/providers/test_anthropic.py718 b'"role": "assistant", "content": [], "model": "claude-2.1", "stop_reason": null, 'CODE
HIGHtests/gateway/providers/test_anthropic.py719 b'"stop_sequence": null, "usage": {"input_tokens": 25, "output_tokens": 1}}}\n',CODE
HIGHtests/gateway/providers/test_anthropic.py955 b'event: message_start\ndata: {"type":"message_start","message":{"id":"msg_01XFDUDYJgAACzvnptvVoYEL","type":"mesCODE
HIGHtests/gateway/providers/test_anthropic.py960 b'event: message_delta\ndata: {"type":"message_delta","delta":{"stop_reason":"end_turn","stop_sequence":null},"uCODE
HIGHtests/gateway/providers/test_anthropic.py292 b'"role": "assistant", "content": [], "model": "claude-2.1", "stop_reason": null, 'CODE
HIGHtests/gateway/providers/test_anthropic.py293 b'"stop_sequence": null, "usage": {"input_tokens": 25, "output_tokens": 1}}}\n',CODE
HIGHtests/gateway/providers/test_anthropic.py315 b'"stop_sequence":null}, "usage":{"output_tokens": 15}}\n',CODE
HIGHtests/gateway/providers/test_anthropic.py740 b'"stop_sequence":null}, "usage":{"output_tokens": 15}}\n',CODE
HIGHtests/gateway/providers/test_mistral.py360 b'"model":"mistral-large-latest","choices":[{"index":0,"finish_reason":null,'CODE
HIGHtests/gateway/providers/test_mistral.py364 b'"model":"mistral-large-latest","choices":[{"index":0,"finish_reason":null,'CODE
HIGHtests/gateway/providers/test_mistral.py368 b'"model":"mistral-large-latest","choices":[{"index":0,"finish_reason":null,'CODE
HIGHtests/gateway/providers/test_mistral.py385 b'ces":[{"index":0,"finish_reason":null,"delta":{"role":"assistant"}}]}\n\n'CODE
HIGHtests/gateway/providers/test_mistral.py389 b'test","choices":[{"index":0,"finish_reason":null,"delta":{"content":"test"}}]}\n',CODE
HIGHtests/gateway/providers/test_openai.py180 b'"choices":[{"index":0,"finish_reason":null,"delta":{"role":"assistant"}}]}\n',CODE
57 more matches not shown…
Deep Nesting615 hits · 514 pts
SeverityFileLineSnippetContext
LOWfs2db/src/generate_synthetic_data.py98CODE
LOWfs2db/src/generate_synthetic_data.py183CODE
LOWbin/install.py228CODE
LOWbin/install.py239CODE
LOWtests/conftest.py285CODE
LOWtests/conftest.py726CODE
LOWtests/conftest.py1019CODE
LOWtests/conftest.py1227CODE
LOWtests/helper_functions.py714CODE
LOWtests/test_mismatch.py26CODE
LOWtests/test_mismatch.py60CODE
LOWtests/test_mismatch.py29CODE
LOWtests/test_mismatch.py66CODE
LOWtests/h2o/test_h2o_model_export.py107CODE
LOW…raph/sample_code/langgraph_chat_agent_custom_inputs.py159CODE
LOWtests/tracing/test_fluent.py636CODE
LOWtests/tracing/test_fluent.py1753CODE
LOWtests/tracing/test_fluent.py639CODE
LOWtests/tracing/test_distributed.py43CODE
LOWtests/tracing/test_assessment.py941CODE
LOWtests/tracing/test_otel_loading.py525CODE
LOWtests/tracing/opentelemetry/test_integration.py152CODE
LOWtests/tracing/processor/test_otel_metrics.py21CODE
LOWtests/onnx/test_onnx_model_export.py291CODE
LOWtests/langchain/test_langchain_autolog.py1175CODE
LOWtests/langchain/test_langchain_autolog.py1203CODE
LOWtests/xgboost/test_xgboost_model_export.py133CODE
LOWtests/xgboost/test_xgboost_model_export.py169CODE
LOWtests/projects/test_virtualenv_projects.py23CODE
LOWtests/paddle/test_paddle_model_export.py241CODE
LOWtests/server/auth/test_auth.py843CODE
LOWtests/server/jobs/test_genai_evaluate_invocation.py119CODE
LOWtests/server/jobs/test_scorer_invocation.py186CODE
LOWtests/server/jobs/test_scorer_invocation.py30CODE
LOWtests/server/jobs/test_jobs.py237CODE
LOWtests/server/jobs/test_endpoint.py105CODE
LOWtests/utils/test_env_pack.py53CODE
LOWtests/utils/test_async_logging_queue.py167CODE
LOWtests/sklearn/test_sklearn_model_export.py240CODE
LOWtests/sklearn/test_sklearn_model_export.py282CODE
LOWtests/sklearn/test_sklearn_autolog.py464CODE
LOWtests/evaluate/test_validation.py30CODE
LOWtests/evaluate/test_evaluation.py545CODE
LOWtests/evaluate/test_evaluation.py873CODE
LOWtests/evaluate/test_evaluation.py944CODE
LOWtests/transformers/test_transformers_model_export.py1527CODE
LOWtests/tensorflow/test_keras_model_export.py251CODE
LOWtests/autologging/test_autologging_utils.py340CODE
LOWtests/agno/test_agno_tracing.py286CODE
LOWtests/agno/test_agno_tracing.py326CODE
LOWtests/tracking/test_log_image.py167CODE
LOWtests/tracking/test_log_image.py219CODE
LOWtests/tracking/test_rest_tracking.py825CODE
LOWtests/tracking/test_rest_tracking.py1919CODE
LOWtests/lightgbm/test_lightgbm_model_export.py146CODE
LOWtests/lightgbm/test_lightgbm_model_export.py184CODE
LOWtests/johnsnowlabs/test_johnsnowlabs_model_export.py190CODE
LOWtests/johnsnowlabs/test_johnsnowlabs_model_export.py213CODE
LOWtests/spacy/test_spacy_model_export.py119CODE
LOWtests/spacy/test_spacy_model_export.py156CODE
555 more matches not shown…
Hallucination Indicators42 hits · 500 pts
SeverityFileLineSnippetContext
CRITICAL…ransformers/test_sentence_transformers_model_export.py227 mlflow.tracking._model_registry.fluent._register_model.assert_not_called()CODE
CRITICALtests/onnx/test_onnx_model_export.py476 mlflow.tracking._model_registry.fluent._register_model.assert_not_called()CODE
CRITICALtests/xgboost/test_xgboost_model_export.py227 mlflow.tracking._model_registry.fluent._register_model.assert_not_called()CODE
CRITICALtests/paddle/test_paddle_model_export.py207 mlflow.tracking._model_registry.fluent._register_model.assert_not_called()CODE
CRITICALtests/server/jobs/helpers.py78 mlflow.server.jobs.utils._huey_instance_map.clear()CODE
CRITICALtests/pmdarima/test_pmdarima_model_export.py244 mlflow.tracking._model_registry.fluent._register_model.assert_not_called()CODE
CRITICALtests/sklearn/test_sklearn_model_export.py381 mlflow.tracking._model_registry.fluent._register_model.assert_not_called()CODE
CRITICALtests/transformers/test_transformers_model_export.py634 mlflow.tracking._model_registry.fluent._register_model.assert_not_called()STRING
CRITICALtests/prophet/test_prophet_model_export.py280 mlflow.tracking._model_registry.fluent._register_model.assert_not_called()CODE
CRITICALtests/tensorflow/test_keras_model_export.py385 mlflow.tracking._model_registry.fluent._register_model.assert_not_called()CODE
CRITICALtests/tracking/_tracking_service/test_utils.py374 mlflow.tracking._tracking_service.utils._tracking_store_registry._registry.keys()CODE
CRITICALtests/lightgbm/test_lightgbm_model_export.py242 mlflow.tracking._model_registry.fluent._register_model.assert_not_called()CODE
CRITICALtests/johnsnowlabs/test_johnsnowlabs_model_export.py312# mlflow.tracking._model_registry.fluent._register_model.assert_not_called()COMMENT
CRITICALtests/pytorch/test_pytorch_model_export.py283 mlflow.tracking._model_registry.fluent._register_model.assert_not_called()CODE
CRITICALtests/statsmodels/test_statsmodels_model_export.py219 mlflow.tracking._model_registry.fluent._register_model.assert_not_called()CODE
CRITICALtests/spark/test_spark_model_export.py525 mlflow.tracking._model_registry.fluent._register_model.assert_not_called()STRING
CRITICAL…re/artifact/test_unity_catalog_models_artifact_repo.py329 mlflow.store._unity_catalog.registry.rest_store.get_feature_dependencies(CODE
CRITICAL…re/artifact/test_unity_catalog_models_artifact_repo.py349 result = mlflow.store._unity_catalog.registry.rest_store.get_feature_dependencies(CODE
CRITICAL…re/artifact/test_unity_catalog_models_artifact_repo.py368 result = mlflow.store._unity_catalog.registry.rest_store.get_model_version_dependencies(CODE
CRITICALtests/store/artifact/test_azure_blob_artifact_repo.py8from azure.core.exceptions import ResourceNotFoundErrorCODE
CRITICAL…rc/main/java/org/mlflow/scalapb_interface/Scalapb.java588 // Construct using org.mlflow.scalapb_interface.Scalapb.ScalaPbOptions.newBuilder()COMMENT
CRITICAL…rc/main/java/org/mlflow/scalapb_interface/Scalapb.java623 return org.mlflow.scalapb_interface.Scalapb.ScalaPbOptions.getDefaultInstance();CODE
CRITICAL…rc/main/java/org/mlflow/scalapb_interface/Scalapb.java701 if (other == org.mlflow.scalapb_interface.Scalapb.ScalaPbOptions.getDefaultInstance()) return this;CODE
CRITICAL…rc/main/java/org/mlflow/scalapb_interface/Scalapb.java1038 com.google.protobuf.AbstractMessageLite.Builder.addAll(CODE
CRITICAL…rc/main/java/org/mlflow/scalapb_interface/Scalapb.java1499 // Construct using org.mlflow.scalapb_interface.Scalapb.MessageOptions.newBuilder()COMMENT
CRITICAL…rc/main/java/org/mlflow/scalapb_interface/Scalapb.java1530 return org.mlflow.scalapb_interface.Scalapb.MessageOptions.getDefaultInstance();CODE
CRITICAL…rc/main/java/org/mlflow/scalapb_interface/Scalapb.java1598 if (other == org.mlflow.scalapb_interface.Scalapb.MessageOptions.getDefaultInstance()) return this;CODE
CRITICAL…rc/main/java/org/mlflow/scalapb_interface/Scalapb.java1745 com.google.protobuf.AbstractMessageLite.Builder.addAll(CODE
CRITICAL…rc/main/java/org/mlflow/scalapb_interface/Scalapb.java2170 // Construct using org.mlflow.scalapb_interface.Scalapb.FieldOptions.newBuilder()COMMENT
CRITICAL…rc/main/java/org/mlflow/scalapb_interface/Scalapb.java2201 return org.mlflow.scalapb_interface.Scalapb.FieldOptions.getDefaultInstance();CODE
CRITICAL…rc/main/java/org/mlflow/scalapb_interface/Scalapb.java2270 if (other == org.mlflow.scalapb_interface.Scalapb.FieldOptions.getDefaultInstance()) return this;CODE
CRITICAL…rc/main/java/org/mlflow/scalapb_interface/Scalapb.java2457 org.mlflow.scalapb_interface.Scalapb.ScalaPbOptions.getDefaultInstance());CODE
CRITICAL…rc/main/java/org/mlflow/scalapb_interface/Scalapb.java2473 org.mlflow.scalapb_interface.Scalapb.MessageOptions.getDefaultInstance());CODE
CRITICAL…rc/main/java/org/mlflow/scalapb_interface/Scalapb.java2489 org.mlflow.scalapb_interface.Scalapb.FieldOptions.getDefaultInstance());CODE
CRITICALmlflow/utils/openai_utils.py101 from azure.core.exceptions import ClientAuthenticationErrorCODE
CRITICALmlflow/utils/_spark_utils.py41 version = spark._jvm.scala.util.Properties.versionNumberString().split(".", 2)CODE
CRITICALmlflow/data/spark_delta_utils.py64 j_delta_table = spark._jvm.io.delta.tables.DeltaTable.forPath(spark._jsparkSession, path)CODE
CRITICALmlflow/data/spark_delta_utils.py90 j_delta_table = spark._jvm.io.delta.tables.DeltaTable.forName(CODE
CRITICALmlflow/spark/__init__.py422 cls._filesystem = cls._jvm().org.apache.hadoop.fs.FileSystem.get(cls._conf())CODE
CRITICALmlflow/spark/__init__.py442 return cls._jvm().org.apache.hadoop.fs.FileSystem.getGlobalStorageStatistics()CODE
CRITICALmlflow/store/artifact/azure_blob_artifact_repo.py201 from azure.core.exceptions import ResourceNotFoundErrorCODE
CRITICALmlflow/store/artifact/azure_blob_artifact_repo.py217 from azure.core.exceptions import ResourceNotFoundErrorCODE
Modern AI Meta-Vocabulary79 hits · 248 pts
SeverityFileLineSnippetContext
MEDIUMCHANGELOG.md145- **🤖 [One-click observability & governance for coding agents](https://mlflow.org/docs/latest/genai/governance/ai-gatewaCODE
MEDIUMtests/demo/test_traces_generator.py133 # 2 RAG + 2 agent + 6 prompt + 4 multimodal + 7 session = 21 per versionCOMMENT
MEDIUMtests/demo/test_traces_generator.py153 # 2 RAG per version = 4 totalCOMMENT
MEDIUMtests/llama_index/test_llama_index_tracer.py644 # Since chat engine is a complex agent-based system, it is challenging to strictlyCOMMENT
MEDIUMtests/server/test_handlers.py4441 # No dataset_id - zero-shot optimizationCOMMENT
MEDIUMtests/server/test_handlers.py4440 "scorers": [], # Empty scorers for zero-shotCODE
MEDIUMtests/server/jobs/test_scorer_invocation.py348 # Create a trace with multiple spans (simulating an agentic workflow)COMMENT
MEDIUMtests/evaluate/test_evaluation.py2043 # This is an expected input format from the Databricks RAG Evaluator.COMMENT
MEDIUMtests/evaluate/test_evaluation.py2049 # This is not a typical input format from either default or Databricks RAG evaluators,COMMENT
MEDIUM…genai/optimize/optimizers/test_metaprompt_optimizer.py302 eval_fn=Mock(), # Not used in zero-shotCODE
MEDIUM…genai/optimize/optimizers/test_metaprompt_optimizer.py303 train_data=[], # Empty triggers zero-shotCODE
MEDIUM…genai/optimize/optimizers/test_metaprompt_optimizer.py309 assert result.initial_eval_score is None # No evaluation in zero-shotCODE
MEDIUMtests/genai/judges/test_search_trace_regex_tool.py276 # Test with small context window (10 characters)COMMENT
MEDIUMtests/genai/judges/test_search_trace_regex_tool.py281 # Test with large context window (30 characters)COMMENT
MEDIUMtests/genai/judges/test_make_judge.py2204 # Verify agentic mode was used (trace passed to invoke_judge_model)COMMENT
MEDIUMtests/genai/judges/test_make_judge.py2226 # Verify agentic mode was usedCOMMENT
MEDIUM…nai/judges/adapters/test_databricks_managed_adapter.py78 # Verify the managed RAG client was called with correct parametersCOMMENT
MEDIUM…nai/judges/adapters/test_databricks_managed_adapter.py107 # Verify the managed RAG client was called with correct parametersCOMMENT
MEDIUMtests/genai/scorers/ragas/test_ragas_scorer.py180 # RAG MetricsCOMMENT
MEDIUMmlflow/demo/data.py294# RAG Traces (2 traces)COMMENT
MEDIUMmlflow/demo/data.py688 # Session 2: Debugging a RAG Application (3 turns)COMMENT
MEDIUMmlflow/protos/service_pb2.py33 DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\rservice.proto\x12\x06mlflow\x1a\x11\x61ssessments.protCODE
MEDIUMmlflow/protos/service_pb2.py33 DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\rservice.proto\x12\x06mlflow\x1a\x11\x61ssessments.protCODE
MEDIUMmlflow/protos/service_pb2.py714 _globals['_MLFLOWSERVICE'].methods_by_name['removeGuardrailFromEndpoint']._serialized_options = b'\362\206\031c\n?\nCODE
MEDIUMmlflow/protos/service_pb2.py1460 DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\rservice.proto\x12\x06mlflow\x1a\x11\x61ssessments.protCODE
MEDIUMmlflow/protos/service_pb2.py1460 DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\rservice.proto\x12\x06mlflow\x1a\x11\x61ssessments.protCODE
MEDIUMmlflow/protos/service_pb2.py4921 _MLFLOWSERVICE.methods_by_name['removeGuardrailFromEndpoint']._serialized_options = b'\362\206\031c\n?\n\006DELETE\0CODE
MEDIUMmlflow/server/gateway_api.py638 # Post-LLM guardrails are not applied to streaming responses.COMMENT
MEDIUMmlflow/server/gateway_api.py639 # Pre-LLM guardrails run inside the trace as child spans; violationsCOMMENT
MEDIUMmlflow/server/gateway_api.py772 # Post-LLM guardrails are not applied to streaming responses.COMMENT
MEDIUMmlflow/server/gateway_api.py773 # Pre-LLM guardrails run inside the trace as child spans; violationsCOMMENT
MEDIUMmlflow/server/gateway_api.py875 # Post-LLM guardrails are not applied to streaming responses.COMMENT
MEDIUMmlflow/server/gateway_api.py984 # Post-LLM guardrails are skipped for embeddings: responses are float vectorsCOMMENT
MEDIUMmlflow/server/gateway_api.py1077 # Post-LLM guardrails are not applied to streaming responses. StreamingCOMMENT
MEDIUMmlflow/server/gateway_api.py1211 # Post-LLM guardrails are not applied to streaming responses.COMMENT
MEDIUMmlflow/server/gateway_api.py1379 # Post-LLM guardrails are not applied to streaming responses.COMMENT
MEDIUMmlflow/server/gateway_api.py1473 # Post-LLM guardrails are not applied to streaming responses.COMMENT
MEDIUMmlflow/server/auth/__init__.py3167# any of these roles. The two roles exist as ready-made scaffolding for theCOMMENT
MEDIUMmlflow/server/js/src/lang/default/en.json3195 "defaultMessage": "Delete {count, plural, one {guardrail} other {# guardrails}}",CODE
MEDIUMmlflow/server/js/src/lang/default/en.json8019 "defaultMessage": "Are you sure you want to remove {count, plural, one {this guardrail} other {these # guardrails}}?CODE
MEDIUM…nents/traces/quickstart/TraceTableQuickstart.utils.tsx328# Define a simple chain-of-thought model and run itCOMMENT
MEDIUM…xperiment-scorers/SampleScorerOutputPanelContainer.tsx174 // Check if instructions contain {{trace}} variable (only supported when agentic judges are enabled)COMMENT
MEDIUM…gateway/components/guardrails/GuardrailsTabContent.tsx386 defaultMessage: 'Delete {count, plural, one {guardrail} other {# guardrails}}',CODE
MEDIUM…gateway/components/guardrails/GuardrailsTabContent.tsx427 defaultMessage="Are you sure you want to remove {count, plural, one {this guardrail} other {these # guardrCODE
MEDIUMmlflow/utils/requirements_utils.py668 # Suppress databricks-chains, databricks-rag, and databricks-agents warnings for RAGCOMMENT
MEDIUMmlflow/utils/requirements_utils.py671 # "Databricks RAG Studio" product, remove unrelated names from this listing.COMMENT
MEDIUMmlflow/telemetry/events.py746 # `scorer_count` is useful for indicating zero-shot vs few-shot optimization, and toCOMMENT
MEDIUM…flow/genai/optimize/optimizers/metaprompt_optimizer.py20# Unified meta-prompt template that supports both zero-shot and few-shot modesCOMMENT
MEDIUM…flow/genai/optimize/optimizers/metaprompt_optimizer.py172 predict_fn=lambda question: "", # Not used in zero-shotCODE
MEDIUM…flow/genai/optimize/optimizers/metaprompt_optimizer.py173 train_data=[], # Empty dataset triggers zero-shot modeCODE
MEDIUM…flow/genai/optimize/optimizers/metaprompt_optimizer.py179 scorers=[], # No scorers needed for zero-shotCODE
MEDIUM…flow/genai/optimize/optimizers/metaprompt_optimizer.py277 initial_eval_score=None, # No evaluation in zero-shot modeSTRING
MEDIUMmlflow/genai/simulators/prompts.py100# NB: We include "rationale" to invoke chain-of-thought reasoning for better results.COMMENT
MEDIUMmlflow/genai/utils/llm_utils.py215 # no context window management and no per-request cost tracking.COMMENT
MEDIUMmlflow/genai/judges/adapters/gateway_adapter.py653 # Proactively prune if approaching context window limit,COMMENT
MEDIUM…ai/judges/adapters/databricks_managed_judge_adapter.py12T = TypeVar("T") # Generic type for agentic loop return valueCODE
MEDIUMmlflow/genai/judges/instructions_judge/__init__.py567 # Detect if we need to fall back to agentic (trace-based) mode.COMMENT
MEDIUMmlflow/genai/judges/instructions_judge/__init__.py594 # In fallback mode, inputs/outputs will be discovered by the agentic judgeCOMMENT
MEDIUMmlflow/genai/scorers/guardrails/__init__.py85 # guardrails-ai < 0.9.0: on_fail is passed to Guard.use() insteadCOMMENT
MEDIUMmlflow/genai/scorers/ragas/__init__.py358 # RAG metricsCOMMENT
19 more matches not shown…
Redundant / Tautological Comments153 hits · 230 pts
SeverityFileLineSnippetContext
LOWtests/conftest.py431 # Check if we should enable flaky rerun logicCOMMENT
LOWtests/conftest.py440 # Check if we should profile this testCOMMENT
LOWtests/tracing/test_fluent.py2172 # Check if span information is correctly copiedCOMMENT
LOWtests/tracing/test_fluent.py2305 # Check if span information is correctly copiedCOMMENT
LOWtests/tracing/utils/test_otlp.py182 # Check if spans are in the logs - the debug exporter outputs span detailsCOMMENT
LOWtests/tracing/utils/test_otlp.py253 # Check if spans are in the logs - the debug exporter outputs span detailsCOMMENT
LOWtests/tracing/utils/test_utils.py66 # Check if the span order is preservedCOMMENT
LOWtests/types/test_type_hints.py502 # Check if dict is in the union (it could be dict or dict[str, Any])COMMENT
LOWtests/langchain/test_langchain_model_export.py1143 # Check if the deserialized model has the same endpoint and temperatureSTRING
LOWtests/server/auth/test_auth.py121 # Set _MLFLOW_SGI_NAME to "uvicorn" so auth module returns FastAPI appCOMMENT
LOWtests/models/test_wheeled_model.py105 # Check if conda.yaml files of the original model and wheeled model are the sameCOMMENT
LOWtests/models/test_wheeled_model.py125 # Check if conda.yaml and requirements.txt are consistentCOMMENT
LOWtests/models/test_wheeled_model.py136 # Check if requirements.txt and wheels directory are consistentCOMMENT
LOWtests/sklearn/test_sklearn_autolog.py874 # Verify if the params match the best estimator, then metrics are logged in the modelCOMMENT
LOWtests/evaluate/test_default_evaluator.py4505 # Check if binary metrics are present based on classification typeCOMMENT
LOWtests/ag2/test_ag2_autolog.py83 # Check if the initiate_chat method is patchedCOMMENT
LOWtests/ag2/test_ag2_autolog.py332 # Check if the initiate_chat method is patchedCOMMENT
LOWtests/ag2/test_ag2_autolog.py342 # Check if the start time is in reasonable rangeCOMMENT
LOWtests/transformers/test_transformers_signature.py149 monkeypatch.setenv("MLFLOW_INPUT_EXAMPLE_INFERENCE_TIMEOUT", "1") # Set timeout to 1 secondCODE
LOWtests/optuna/test_storage.py543 # Set params to another trial.COMMENT
LOWtests/tracking/test_client.py3134 # Assign alias to version 1COMMENT
LOWtests/genai/evaluate/test_evaluation.py506 # Check if the model_id is set in the tracesCOMMENT
LOWtests/genai/prompts/test_prompts.py1405 # Set alias to version 1COMMENT
LOWtests/gateway/providers/test_togetherai.py269 # Check if the raised exception has correct status code and detailCOMMENT
LOWtests/gateway/providers/test_togetherai.py304 # Check if the raised exception has correct status code and detailCOMMENT
LOWtests/gateway/providers/test_fallback.py121 # Set max_attempts to 2, even though we have 3 providersCOMMENT
LOWtests/store/tracking/test_file_store.py1496 # Set start_time to ensure the search result is deterministicCOMMENT
LOWtests/store/tracking/test_file_store.py1557 # Set start_time to ensure the search result is deterministicCOMMENT
LOW…racking/sqlalchemy_store/test_sqlalchemy_store_runs.py1772 # Set start_time to ensure the search result is deterministicCOMMENT
LOW…racking/sqlalchemy_store/test_sqlalchemy_store_runs.py1832 # Set start_time to ensure the search result is deterministicCOMMENT
LOW…racking/sqlalchemy_store/test_sqlalchemy_store_runs.py1886 # Set start_time to ensure the search result is deterministicCOMMENT
LOWtests/store/artifact/test_models_artifact_repo.py222 # Check if the files are downloaded correctlyCOMMENT
LOWtests/store/artifact/test_models_artifact_repo.py226 # Check if the metadata file is createdCOMMENT
LOWmlflow/demo/base.py65 # Check if demo data exists (version handled by base class)STRING
LOWmlflow/assistant/cli.py62 # Check if already configuredCOMMENT
LOWmlflow/assistant/providers/claude_code.py451 # Check if killed by interrupt (SIGKILL = -9)COMMENT
LOWmlflow/tracing/enablement.py86 # Check if the experiment exists. In Databricks notebook, this `get_experiment` call triggersCOMMENT
LOWmlflow/tracing/fluent.py247 # Check if the function is a classmethod or staticmethodCOMMENT
LOWmlflow/tracing/fluent.py1107 # Check if pandas is installed early to avoid unnecessary computationCOMMENT
LOWmlflow/tracing/utils/truncation.py73 # Check if the object contains messages with OpenAI ChatCompletion formatCOMMENT
LOWmlflow/tracing/utils/truncation.py77 # Check if the object contains a message in OpenAI ChatCompletion response format (choices)COMMENT
LOWmlflow/tracing/utils/truncation.py88 # Check if the object contains a message in OpenAI Responses API request formatCOMMENT
LOWmlflow/tracing/utils/truncation.py92 # Check if the object contains a message in OpenAI Responses API response formatCOMMENT
LOWmlflow/gemini/genai_semconv_converter.py18 # Check if this is a list of Content dicts (have "role" key)COMMENT
LOWmlflow/onnx/__init__.py265 # Check if the MLModel config has the providers meta dataCOMMENT
LOWmlflow/langchain/utils/chat.py450 # Check if this is streaming (contains ChatGenerationChunk)COMMENT
LOWmlflow/pyspark/optuna/study.py189 # Check if study exists and auto-resume if it doesCOMMENT
LOWmlflow/llama_index/tracer.py605 # Check if generator/async generator is already closedCOMMENT
LOWmlflow/server/gateway_api.py108 # Check if body was already parsed by auth middlewareCOMMENT
LOWmlflow/server/gateway_api.py291 # Check if this is Azure OpenAI (requires api_type, deployment_name, api_base, api_version)COMMENT
LOWmlflow/server/handlers.py1079 # Check if this field is a list type by looking for _assert_array validatorCOMMENT
LOWmlflow/server/handlers.py7650 # Check if run exists before attempting deletion - user may haveCOMMENT
LOWmlflow/server/__init__.py448 # Check if job execution can be enabled (requirements met)COMMENT
LOWmlflow/server/assistant/api.py455 # Check if skills already exist - skip re-installationCOMMENT
LOWmlflow/server/auth/__init__.py4325 # Check if this is a trusted internal request from a job subprocess.COMMENT
LOWmlflow/utils/credentials.py112 # Check if databricks credentials are valid.COMMENT
LOWmlflow/utils/uv_utils.py451 # Set UV_PROJECT_ENVIRONMENT to install packages into python environment atSTRING
LOWmlflow/utils/rest_utils.py531 # Check if this is a retryable errorCOMMENT
LOWmlflow/utils/rest_utils.py535 # Check if we've exceeded max retriesCOMMENT
LOWmlflow/utils/rest_utils.py551 # Check if we've exceeded or would exceed timeoutCOMMENT
93 more matches not shown…
Over-Commented Block213 hits · 188 pts
SeverityFileLineSnippetContext
LOWtests/server/auth/test_auth_workspace.py2521 assert auth_module.validate_can_manage_gateway_endpoint() is TrueCOMMENT
LOWtests/sklearn/test_sklearn_autolog.py941 #COMMENT
LOWtests/db/test_tracking_operations.py61 # > transaction could not be processed, a memory allocation error occurredCOMMENT
LOWtests/johnsnowlabs/test_johnsnowlabs_model_export.py161COMMENT
LOWtests/johnsnowlabs/test_johnsnowlabs_model_export.py281 registered_model_name="AdsModel1",COMMENT
LOWtests/johnsnowlabs/test_johnsnowlabs_model_export.py301COMMENT
LOWtests/johnsnowlabs/test_johnsnowlabs_model_export.py321# artifact_repo.log_artifacts(model_path, artifact_path=artifact_path)COMMENT
LOWtests/johnsnowlabs/test_johnsnowlabs_model_export.py341# spark_custom_env_parsed = yaml.safe_load(f)COMMENT
LOWtests/johnsnowlabs/test_johnsnowlabs_model_export.py361# req_file = tmpdir.join("requirements.txt")COMMENT
LOWtests/johnsnowlabs/test_johnsnowlabs_model_export.py381# jsl_model, "model", pip_requirements=[f"-c {req_file.strpath}", "b"]COMMENT
LOWtests/johnsnowlabs/test_johnsnowlabs_model_export.py401# mlflow.get_artifact_uri("model"), [expected_mlflow_version, *default_reqs, "a"]COMMENT
LOWtests/johnsnowlabs/test_johnsnowlabs_model_export.py421# ["a"],COMMENT
LOWtests/johnsnowlabs/test_johnsnowlabs_model_export.py441# ):COMMENT
LOWtests/johnsnowlabs/test_johnsnowlabs_model_export.py461# spark_custom_env_parsed = yaml.safe_load(f)COMMENT
LOWtests/johnsnowlabs/test_johnsnowlabs_model_export.py481# model_path = _download_artifact_from_uri(artifact_uri=model_uri)COMMENT
LOWtests/johnsnowlabs/test_johnsnowlabs_model_export.py501# _assert_pip_requirements(model_uri, mlflow.johnsnowlabs.get_default_pip_requirements())COMMENT
LOWtests/johnsnowlabs/test_johnsnowlabs_model_export.py521# ),COMMENT
LOWtests/johnsnowlabs/test_johnsnowlabs_model_export.py541# "12.0",COMMENT
LOWtests/johnsnowlabs/test_johnsnowlabs_model_export.py561# "dbfs:/databricks/mlflow-tracking/a/b/model/sparkml",COMMENT
LOWtests/johnsnowlabs/test_johnsnowlabs_model_export.py581# mlflowdbfs_available,COMMENT
LOWtests/johnsnowlabs/test_johnsnowlabs_model_export.py601# if dbutils_available:COMMENT
LOWtests/johnsnowlabs/test_johnsnowlabs_model_export.py621# mock_get_dbutils,COMMENT
LOWtests/johnsnowlabs/test_johnsnowlabs_model_export.py641# == "dbfs:/databricks/mlflow-tracking/a/b/model/sparkml"COMMENT
LOWtests/johnsnowlabs/test_johnsnowlabs_model_export.py661#COMMENT
LOWtests/johnsnowlabs/test_johnsnowlabs_model_export.py681# ), mock.patch(COMMENT
LOWtests/johnsnowlabs/test_johnsnowlabs_model_export.py701#COMMENT
LOWtests/johnsnowlabs/test_johnsnowlabs_model_export.py721# python_env_path = Path(model_path, pyfunc_conf[pyfunc.ENV]["virtualenv"])COMMENT
LOWtests/johnsnowlabs/test_johnsnowlabs_model_export.py741# artifact_path=artifact_path,COMMENT
LOW…ts/spark/autologging/ml/test_pyspark_ml_autologging.py921 logloss1 = mce.evaluate(pred1_result)COMMENT
LOWcharts/artifacthub-repo.yml1# Artifact Hub repository metadata for the MLflow Helm chart.COMMENT
LOWcharts/example-mlflow-charts.yaml21 flag_options: []COMMENT
LOWcharts/example-mlflow-charts.yaml41COMMENT
LOWcharts/example-mlflow-charts.yaml61# name: s3-credentialsCOMMENT
LOWcharts/values.yaml1# MLflow container image.COMMENT
LOWcharts/values.yaml21replicaCount: 1COMMENT
LOWcharts/values.yaml41 workers: 4COMMENT
LOWcharts/values.yaml61 schedule: "0 2 * * 0"COMMENT
LOWcharts/values.yaml121 # secretKeyRef:COMMENT
LOWcharts/values.yaml141 artifactsDestination: ""COMMENT
LOWcharts/values.yaml181metrics:COMMENT
LOWcharts/values.yaml241 # Access mode for the PersistentVolumeClaim. Use ReadWriteOnce for single-nodeCOMMENT
LOWmlflow/environment_variables.py101#: Specifies the tracking URI.COMMENT
LOWmlflow/environment_variables.py121#: bypasses RBAC, so the creator is not assigned to any role. Set to ``False`` to skipCOMMENT
LOWmlflow/environment_variables.py141MLFLOW_WORKSPACE_ARTIFACT_ROOT_CACHE_TTL_SECONDS = _EnvironmentVariable(COMMENT
LOWmlflow/environment_variables.py221#: Specifies the chunk size to use when uploading a file to GCS.COMMENT
LOWmlflow/environment_variables.py241COMMENT
LOWmlflow/environment_variables.py261#: Specifies the ``pool_size`` parameter to use for ``sqlalchemy.create_engine`` in the SQLAlchemyCOMMENT
LOWmlflow/environment_variables.py501#: (default: ``None``)COMMENT
LOWmlflow/environment_variables.py521 "MLFLOW_ENABLE_ARTIFACTS_PROGRESS_BAR", TrueCOMMENT
LOWmlflow/environment_variables.py601 "MLFLOW_MULTIPART_UPLOAD_CHUNK_SIZE", int, 10 * 1024**2COMMENT
LOWmlflow/environment_variables.py701#: If set to True, the following entities will be truncated to their maximum length:COMMENT
LOWmlflow/environment_variables.py781)COMMENT
LOWmlflow/environment_variables.py841#: ``Guidelines``, ``Safety``) when no ``model`` is passed explicitly. When unset,COMMENT
LOWmlflow/environment_variables.py901COMMENT
LOWmlflow/environment_variables.py921MLFLOW_ENABLE_OTLP_EXPORTER = _BooleanEnvironmentVariable("MLFLOW_ENABLE_OTLP_EXPORTER", True)COMMENT
LOWmlflow/environment_variables.py961COMMENT
LOWmlflow/environment_variables.py981COMMENT
LOWmlflow/environment_variables.py1081)COMMENT
LOWmlflow/environment_variables.py1121)COMMENT
LOWmlflow/environment_variables.py1161#: (default: ``1000``)COMMENT
153 more matches not shown…
Modern Structural Boilerplate190 hits · 182 pts
SeverityFileLineSnippetContext
LOWtests/strands/test_strands_tracing.py97 def update_config(self, **model_config: Any) -> None:CODE
LOWtests/pyfunc/custom_model/loader.py5__all__ = ["mod2"]CODE
LOWtests/pyfunc/custom_model/mod1/__init__.py3__all__ = ["mod2"]CODE
LOWtests/pyfunc/custom_model/mod1/mod2/__init__.py3__all__ = ["mod4"]CODE
LOW.claude/skills/src/skills/github/__init__.py13__all__ = [CODE
LOWmlflow/client.py10__all__ = [CODE
LOWmlflow/__init__.py209__all__ = [CODE
LOWmlflow/demo/__init__.py10__all__ = [CODE
LOWmlflow/demo/generators/__init__.py21__all__ = [CODE
LOWmlflow/dspy/__init__.py4__all__ = ["autolog"]CODE
LOWmlflow/assistant/config.py163__all__ = [CODE
LOWmlflow/assistant/__init__.py25__all__ = ["get_project_path", "clear_project_path_cache", "AssistantConfig"]CODE
LOWmlflow/assistant/providers/__init__.py8__all__ = [CODE
LOWmlflow/metrics/__init__.py486__all__ = [CODE
LOWmlflow/metrics/genai/__init__.py15__all__ = [CODE
LOWmlflow/tracing/__init__.py13__all__ = [CODE
LOWmlflow/tracing/locations.py3__all__ = ["UnityCatalog"]CODE
LOWmlflow/tracing/processor/uc_table.py85 def _set_user_session_span_attributes(self, root_span: OTelReadableSpan) -> None:CODE
LOWmlflow/tracing/processor/otel_metrics_mixin.py39 def _setup_metrics_if_necessary(self) -> None:CODE
LOWmlflow/tracing/utils/otlp.py164def _set_otel_proto_anyvalue(pb_any_value: AnyValue, value: Any) -> None:CODE
LOWmlflow/tracing/utils/__init__.py839def set_span_model_attribute(span: LiveSpan, inputs: dict[str, Any]) -> None:CODE
LOWmlflow/tracing/utils/__init__.py871def set_span_cost_attribute(span: LiveSpan) -> None:CODE
LOWmlflow/tracing/utils/truncation.py15def set_request_response_preview(trace_info: TraceInfo, trace_data: TraceData) -> None:CODE
LOWmlflow/tracing/display/__init__.py7__all__ = [CODE
LOWmlflow/tracing/export/async_export_queue.py138 def _set_up_threads(self) -> None:CODE
LOWmlflow/types/responses.py22__all__ = [CODE
LOWmlflow/pytest/session.py36def set_plugin_active() -> None:CODE
LOWmlflow/pytest/session.py45def set_current_test(test_name: str | None, case_id: str | None = None) -> None:CODE
LOWmlflow/pytest/__init__.py3__all__ = ["test"]CODE
LOWmlflow/langchain/autolog.py10logger = logging.getLogger(__name__)CODE
LOWmlflow/langchain/__init__.py5__all__ = ["autolog", "FLAVOR_NAME"]CODE
LOWmlflow/langchain/utils/logging.py62logger = logging.getLogger(__name__)CODE
LOWmlflow/config/__init__.py44__all__ = [CODE
LOWmlflow/diffusers/__init__.py533__all__ = [CODE
LOWmlflow/pyspark/__init__.py3__all__ = ["ml"]CODE
LOWmlflow/projects/__init__.py447__all__ = ["run", "SubmittedRun"]CODE
LOWmlflow/projects/backend/__init__.py8__all__ = ["AbstractBackend"]CODE
LOWmlflow/llama_index/__init__.py5__all__ = ["autolog", "FLAVOR_NAME"]CODE
LOWmlflow/claude_code/tracing.py411def _set_token_usage_attribute(span, usage: dict[str, Any]) -> None:CODE
LOWmlflow/server/gateway_api.py227def _set_gateway_telemetry_state(request: Request, endpoint_config) -> None:CODE
LOWmlflow/server/workspace_helpers.py148__all__ = [CODE
LOWmlflow/server/assistant/session.py38 def set_pending_message(self, role: str, content: str) -> None:CODE
LOWmlflow/server/assistant/session.py57 def update_context(self, context: dict[str, Any]) -> None:CODE
LOWmlflow/server/jobs/progress.py32def _set_job_tracker(tracker: "JobTracker | None") -> None:CODE
LOWmlflow/server/jobs/progress.py37def update_status_details(status_details: dict[str, Any]) -> None:CODE
LOWmlflow/utils/workspace_utils.py57def set_workspace_store_uri(uri: str | None) -> None:CODE
LOWmlflow/utils/workspace_utils.py111__all__ = [CODE
LOWmlflow/utils/jsonpath_utils.py199def set_nested_value(data: dict[str, Any], parts: list[str], value: Any) -> None:CODE
LOWmlflow/utils/async_logging/async_logging_queue.py323 def _set_up_logging_thread(self) -> None:CODE
LOW…w/utils/async_logging/async_artifacts_logging_queue.py219 def _set_up_logging_thread(self) -> None:CODE
LOWmlflow/utils/autologging_utils/client.py241 def set_tags(self, run_id: str | PendingRunId, tags: dict[str, Any]) -> None:CODE
LOWmlflow/models/__init__.py49__all__ = [CODE
LOWmlflow/models/model.py1610def set_model(model) -> None:CODE
LOWmlflow/models/evaluation/__init__.py13__all__ = [CODE
LOWmlflow/cli/demo.py42def _set_quiet_logging() -> None:CODE
LOWmlflow/cli/traces.py481def set_trace_tag(trace_id: str, key: str, value: str) -> None:CODE
LOWmlflow/ai_commands/__init__.py14__all__ = ["get_command", "get_command_body", "list_commands", "parse_frontmatter", "commands"]CODE
LOWmlflow/haystack/autolog.py146 def set_component_info(self, mlflow_span: LiveSpan, span: OTelReadableSpan) -> None:CODE
LOWmlflow/haystack/autolog.py186 def set_pipeline_info(self, mlflow_span: LiveSpan, span: OTelReadableSpan) -> None:CODE
LOWmlflow/strands/autolog.py112def _set_span_type(mlflow_span: LiveSpan, span: OTelReadableSpan) -> None:CODE
130 more matches not shown…
Cross-Language Confusion (JS/TS)30 hits · 150 pts
SeverityFileLineSnippetContext
HIGH…ged-models/ExperimentLoggedModelListPageTableEmpty.tsx83 print(logged_model.model_id, logged_model.params)CODE
HIGH…ged-models/ExperimentLoggedModelListPageTableEmpty.tsx101 print(logged_model.model_id, logged_model.metrics)`.trim();CODE
HIGH…/experiment-scorers/utils/scorerTransformUtils.test.ts298 call_source: 'def evaluate(inputs, outputs):\n return True',CODE
HIGH…/experiment-scorers/utils/scorerTransformUtils.test.ts308 code: 'def evaluate(inputs, outputs):\n return True',CODE
HIGH…/experiment-scorers/utils/scorerTransformUtils.test.ts632 code: 'def my_scorer(inputs, outputs):\n return True',CODE
HIGH…/experiment-scorers/utils/scorerTransformUtils.test.ts649 call_source: 'def my_scorer(inputs, outputs):\n return True',CODE
HIGH…/experiment-scorers/utils/scorerTransformUtils.test.ts661 code: 'return True',CODE
HIGH…/experiment-scorers/utils/scorerTransformUtils.test.ts954 code: 'def original_scorer():\n return False',CODE
HIGH…/experiment-scorers/utils/scorerTransformUtils.test.ts965 code: 'def original_scorer():\n return False',CODE
HIGH…/experiment-scorers/utils/scorerTransformUtils.test.ts975 code: 'def original_scorer():\n return False', // Code unchangedCODE
HIGH…/experiment-scorers/utils/scorerTransformUtils.test.ts1053 code: 'def original_scorer():\n return False',CODE
HIGH…iment-scorers/hooks/scheduledScorersCacheUtils.test.ts51 serialized_scorer: '{"name": "custom", "call_source": "return True"}',CODE
HIGH…iment-scorers/hooks/scheduledScorersCacheUtils.test.ts78 code: 'return True',CODE
HIGH…nt-tracking/pages/prompts/components/OptimizeModal.tsx76print(f"The new prompt URI: {result.optimized_prompts[0].uri}")`;CODE
HIGH…king/pages/prompts/components/PromptContentPreview.tsx331print(run_prompt(**variables))`;CODE
HIGH…king/pages/prompts/components/PromptContentPreview.tsx353print(run_prompt(**variables))`;CODE
HIGH…king/pages/prompts/components/PromptContentPreview.tsx368print(run_prompt(${variables.map((name) => `${name}="<${name}>"`).join(', ')}))`;CODE
HIGH…king/pages/prompts/components/PromptContentPreview.tsx384print(run_prompt(${variables.map((name) => `${name}="<${name}>"`).join(', ')}))`;CODE
HIGH…rc/gateway/components/endpoints/EndpointUsageModal.tsx91print(response.json())`,CODE
HIGH…rc/gateway/components/endpoints/EndpointUsageModal.tsx123print(response.choices[0].message)`,CODE
HIGH…rc/gateway/components/endpoints/EndpointUsageModal.tsx152print(response.output_text)`,CODE
HIGH…rc/gateway/components/endpoints/EndpointUsageModal.tsx178print(response.content[0].text)`,CODE
HIGH…rc/gateway/components/endpoints/EndpointUsageModal.tsx212print(response.candidates[0].content.parts[0].text)`,CODE
HIGH…c/gateway/components/edit-endpoint/StarterCodeCard.tsx59print(response.choices[0].message)`,CODE
HIGH…c/gateway/components/edit-endpoint/StarterCodeCard.tsx86print(response.output_text)`,CODE
HIGH…c/gateway/components/edit-endpoint/StarterCodeCard.tsx117print(response.content[0].text)`,CODE
HIGH…c/gateway/components/edit-endpoint/StarterCodeCard.tsx148print(response.candidates[0].content.parts[0].text)`,CODE
HIGH…cs/src/components/OpenAICompatibleGatewayDoc/index.tsx142print(response.choices[0].message.content)`}CODE
HIGH…cs/src/components/OpenAICompatibleGatewayDoc/index.tsx221print(answer)`}CODE
HIGH…cs/src/components/OpenAICompatibleGatewayDoc/index.tsx288 print(chunk.choices[0].delta.content, end="")`}CODE
AI Structural Patterns139 hits · 120 pts
SeverityFileLineSnippetContext
LOWtests/tracking/fluent/test_fluent.py87CODE
LOWtests/gateway/test_tracing_utils.py66CODE
LOWtests/store/tracking/sqlalchemy_store/conftest.py281CODE
LOWtests/store/tracking/sqlalchemy_store/conftest.py319CODE
LOW…cking/sqlalchemy_store/test_sqlalchemy_store_traces.py770CODE
LOWmlflow/h2o/__init__.py77CODE
LOWmlflow/h2o/__init__.py213CODE
LOWmlflow/dspy/save.py82CODE
LOWmlflow/dspy/save.py308CODE
LOWmlflow/sentence_transformers/__init__.py117CODE
LOWmlflow/sentence_transformers/__init__.py304CODE
LOWmlflow/keras/save.py103CODE
LOWmlflow/keras/save.py275CODE
LOWmlflow/keras/autologging.py115CODE
LOWmlflow/metrics/genai/metric_definitions.py14CODE
LOWmlflow/metrics/genai/metric_definitions.py105CODE
LOWmlflow/metrics/genai/metric_definitions.py197CODE
LOWmlflow/metrics/genai/metric_definitions.py286CODE
LOWmlflow/metrics/genai/metric_definitions.py369CODE
LOWmlflow/metrics/genai/genai_metric.py204CODE
LOWmlflow/metrics/genai/genai_metric.py365CODE
LOWmlflow/tracing/client.py271CODE
LOWmlflow/tracing/fluent.py91CODE
LOWmlflow/tracing/fluent.py105CODE
LOWmlflow/tracing/fluent.py118CODE
LOWmlflow/tracing/fluent.py369CODE
LOWmlflow/tracing/fluent.py678CODE
LOWmlflow/tracing/fluent.py928CODE
LOWmlflow/tracing/fluent.py1425CODE
LOWmlflow/tracing/fluent.py1779CODE
LOWmlflow/shap/__init__.py292CODE
LOWmlflow/shap/__init__.py378CODE
LOWmlflow/protos/unity_catalog_prompt_service_pb2_grpc.py329CODE
LOWmlflow/protos/unity_catalog_prompt_service_pb2_grpc.py356CODE
LOWmlflow/protos/unity_catalog_prompt_service_pb2_grpc.py383CODE
LOWmlflow/protos/unity_catalog_prompt_service_pb2_grpc.py410CODE
LOWmlflow/protos/unity_catalog_prompt_service_pb2_grpc.py437CODE
LOWmlflow/protos/unity_catalog_prompt_service_pb2_grpc.py464CODE
LOWmlflow/protos/unity_catalog_prompt_service_pb2_grpc.py491CODE
LOWmlflow/protos/unity_catalog_prompt_service_pb2_grpc.py518CODE
LOWmlflow/protos/unity_catalog_prompt_service_pb2_grpc.py545CODE
LOWmlflow/protos/unity_catalog_prompt_service_pb2_grpc.py572CODE
LOWmlflow/protos/unity_catalog_prompt_service_pb2_grpc.py599CODE
LOWmlflow/protos/unity_catalog_prompt_service_pb2_grpc.py626CODE
LOWmlflow/protos/unity_catalog_prompt_service_pb2_grpc.py653CODE
LOWmlflow/protos/unity_catalog_prompt_service_pb2_grpc.py680CODE
LOWmlflow/protos/unity_catalog_prompt_service_pb2_grpc.py707CODE
LOWmlflow/protos/unity_catalog_prompt_service_pb2_grpc.py734CODE
LOWmlflow/protos/unity_catalog_prompt_service_pb2_grpc.py761CODE
LOWmlflow/onnx/__init__.py93CODE
LOWmlflow/onnx/__init__.py500CODE
LOWmlflow/langchain/model.py132CODE
LOWmlflow/langchain/model.py441CODE
LOWmlflow/xgboost/__init__.py115CODE
LOWmlflow/xgboost/__init__.py237CODE
LOWmlflow/xgboost/__init__.py465CODE
LOWmlflow/diffusers/__init__.py214CODE
LOWmlflow/diffusers/__init__.py408CODE
LOWmlflow/pyspark/ml/__init__.py803CODE
LOWmlflow/projects/__init__.py209CODE
79 more matches not shown…
Structural Annotation Overuse67 hits · 116 pts
SeverityFileLineSnippetContext
LOWtests/gateway/test_tracing_utils.py422 # Step 1: Agent creates span and generates traceparent headersCOMMENT
LOWtests/gateway/test_tracing_utils.py428 # Step 2: Gateway processes request (no active agent span, simulating separate server)COMMENT
LOW…/sqlalchemy_store/test_sqlalchemy_store_assessments.py503 # Step 1: log_spans() creates the trace row as spans are exported incrementally.COMMENT
LOW…/sqlalchemy_store/test_sqlalchemy_store_assessments.py527 # Step 2: _log_trace() calls start_trace() with the full TraceInfo (includingCOMMENT
LOW…king/sqlalchemy_store/test_sqlalchemy_store_scorers.py484 # Step 9: Test delete_scorer for non-existent scorerCOMMENT
LOW…king/sqlalchemy_store/test_sqlalchemy_store_scorers.py488 # Step 10: Test delete_scorer for non-existent versionCOMMENT
LOW…king/sqlalchemy_store/test_sqlalchemy_store_scorers.py494 # Step 11: Test delete_scorer for remaining scorersCOMMENT
LOW…king/sqlalchemy_store/test_sqlalchemy_store_scorers.py504 # Step 12: Test list_scorer_versionsCOMMENT
LOW…king/sqlalchemy_store/test_sqlalchemy_store_scorers.py349 # Step 2: Test list_scorers - should return latest version for each scorer nameCOMMENT
LOW…king/sqlalchemy_store/test_sqlalchemy_store_scorers.py393 # Step 3: Test get_scorer with specific versionsCOMMENT
LOW…king/sqlalchemy_store/test_sqlalchemy_store_scorers.py409 # Step 4: Test get_scorer without version (should return latest)COMMENT
LOW…king/sqlalchemy_store/test_sqlalchemy_store_scorers.py422 # Step 5: Test error cases for get_scorerCOMMENT
LOW…king/sqlalchemy_store/test_sqlalchemy_store_scorers.py433 # Step 6: Test delete_scorer - delete specific version of accuracy_scorerCOMMENT
LOW…king/sqlalchemy_store/test_sqlalchemy_store_scorers.py457 # Step 7: Test delete_scorer - delete all versions of accuracy_scorerCOMMENT
LOW…king/sqlalchemy_store/test_sqlalchemy_store_scorers.py473 # Step 8: Test list_scorers after deletionCOMMENT
LOW.claude/skills/add-review-comment/SKILL.md14## Step 1: Locate the line to comment onCOMMENT
LOW.claude/skills/add-review-comment/SKILL.md18## Step 2: Post the commentCOMMENT
LOWmlflow/assistant/cli.py103 # Step 1: Select providerCOMMENT
LOWmlflow/assistant/cli.py108 # Step 2: Check provider availabilityCOMMENT
LOWmlflow/assistant/cli.py112 # Step 3: Optionally connect experiment with code repositoryCOMMENT
LOWmlflow/assistant/cli.py115 # Step 4: Ask for modelCOMMENT
LOWmlflow/assistant/cli.py118 # Step 5: Ask for skill locationCOMMENT
LOWmlflow/assistant/cli.py121 # Step 6: Install skillsCOMMENT
LOWmlflow/assistant/cli.py124 # Step 7: Save configurationCOMMENT
LOWmlflow/tracing/fluent.py1237 # Step 1: Page through traces to collect unique session IDs (up to max_results)COMMENT
LOWmlflow/tracing/fluent.py1268 # Step 2: Fetch complete traces for each session in parallelCOMMENT
LOWmlflow/server/js/src/assistant/AssistantService.ts230 // Step 1: POST the message to initiate processingCOMMENT
LOWmlflow/server/js/src/assistant/AssistantService.ts247 // Step 2: Get the session_id from the responseCOMMENT
LOWmlflow/server/js/src/assistant/AssistantService.ts259 // Step 3: Connect to the SSE endpoint to receive the streamCOMMENT
LOW…explorer/timeline-tree/gantt/TimelineTreeGanttBars.tsx21 // Step 1: raw intervalCOMMENT
LOW…explorer/timeline-tree/gantt/TimelineTreeGanttBars.tsx24 // Step 2: round to a "nice" intervalCOMMENT
LOW…explorer/timeline-tree/gantt/TimelineTreeGanttBars.tsx36 // Step 3: extend right bound so we always overshoot itCOMMENT
LOW…explorer/timeline-tree/gantt/TimelineTreeGanttBars.tsx41 // Step 4: Generate tick positionsCOMMENT
LOW…/model-trace-explorer/graph-view/GraphView.workflow.ts244 // Step 1: Position leaf nodes (no children) sequentiallyCOMMENT
LOW…/model-trace-explorer/graph-view/GraphView.workflow.ts255 // Step 2: Center parent nodes above their positioned childrenCOMMENT
LOW…/model-trace-explorer/graph-view/GraphView.workflow.ts270 // Step 3: Position any remaining unpositioned nodes in this layerCOMMENT
LOW…/model-trace-explorer/graph-view/GraphView.workflow.ts279 // Step 4: Resolve overlaps — sort by x, push right as neededCOMMENT
LOW…s/experiment-evaluation-runs/evaluationCodeSnippets.ts13# Step 1: Define evaluation datasetCOMMENT
LOW…s/experiment-evaluation-runs/evaluationCodeSnippets.ts20# Step 2: Define predict_fnCOMMENT
LOW…s/experiment-evaluation-runs/evaluationCodeSnippets.ts28# Step 3: Run evaluationCOMMENT
LOW…s/experiment-evaluation-runs/evaluationCodeSnippets.ts54# Step 1: Pull traces to evaluate.COMMENT
LOW…s/experiment-evaluation-runs/evaluationCodeSnippets.ts59# Step 2: Run evaluation. No predict_fn needed — inputs/outputsCOMMENT
LOWmlflow/cli/crypto.py77 # Step 1: Stop server (or ctrl-c if running in foreground)STRING
LOWmlflow/cli/crypto.py85 # Step 4: Run rotationSTRING
LOWmlflow/cli/crypto.py88 # Step 5: Update deployment config (example for Kubernetes)STRING
LOWmlflow/cli/crypto.py94 # Step 6: Restart serverSTRING
LOWmlflow/ai_commands/genai/analyze_experiment.md17## Step 1: Setup and ConfigurationCOMMENT
LOWmlflow/ai_commands/genai/analyze_experiment.md79## Step 2: Analysis PhaseCOMMENT
LOWmlflow/genai/agent_tester.py415 # Step 1: Describe the agentCOMMENT
LOWmlflow/genai/agent_tester.py422 # Step 2: Generate test casesCOMMENT
LOWmlflow/genai/agent_tester.py429 # Step 3: Simulate conversationsCOMMENT
LOWmlflow/genai/agent_tester.py440 # Step 4: Detect issuesCOMMENT
LOWmlflow/genai/datasets/__init__.py501 # WARNING: This returns ALL datasets - use with caution!STRING
LOWmlflow/store/tracking/sqlalchemy_store.py3896 # Step 1: Find sessions with at least one trace >= min timestamp (optimization)COMMENT
LOWmlflow/store/tracking/sqlalchemy_store.py3904 # Step 2: Optional filter on first trace (e.g., tags.myTag = "value")COMMENT
LOWmlflow/store/tracking/sqlalchemy_store.py3912 # Step 3: Compute first/last trace timestamps for each sessionCOMMENT
LOWmlflow/store/tracking/sqlalchemy_store.py3920 # Step 4: Get completed sessions (last trace <= max timestamp)COMMENT
LOWlibs/typescript/core/src/exporters/mlflow.ts216 // Step 1: Create trace metadata in backendCOMMENT
LOWlibs/typescript/core/src/exporters/mlflow.ts218 // Step 2: Upload trace data (spans) to artifact storageCOMMENT
LOWlibs/typescript/core/src/exporters/uc_table.ts220 // Step 1: persist the trace info (tags, metadata, state).COMMENT
7 more matches not shown…
Verbosity Indicators60 hits · 104 pts
SeverityFileLineSnippetContext
LOWtests/gateway/test_tracing_utils.py422 # Step 1: Agent creates span and generates traceparent headersCOMMENT
LOWtests/gateway/test_tracing_utils.py428 # Step 2: Gateway processes request (no active agent span, simulating separate server)COMMENT
LOW…/sqlalchemy_store/test_sqlalchemy_store_assessments.py503 # Step 1: log_spans() creates the trace row as spans are exported incrementally.COMMENT
LOW…/sqlalchemy_store/test_sqlalchemy_store_assessments.py527 # Step 2: _log_trace() calls start_trace() with the full TraceInfo (includingCOMMENT
LOW…king/sqlalchemy_store/test_sqlalchemy_store_scorers.py484 # Step 9: Test delete_scorer for non-existent scorerCOMMENT
LOW…king/sqlalchemy_store/test_sqlalchemy_store_scorers.py488 # Step 10: Test delete_scorer for non-existent versionCOMMENT
LOW…king/sqlalchemy_store/test_sqlalchemy_store_scorers.py494 # Step 11: Test delete_scorer for remaining scorersCOMMENT
LOW…king/sqlalchemy_store/test_sqlalchemy_store_scorers.py504 # Step 12: Test list_scorer_versionsCOMMENT
LOW…king/sqlalchemy_store/test_sqlalchemy_store_scorers.py349 # Step 2: Test list_scorers - should return latest version for each scorer nameCOMMENT
LOW…king/sqlalchemy_store/test_sqlalchemy_store_scorers.py393 # Step 3: Test get_scorer with specific versionsCOMMENT
LOW…king/sqlalchemy_store/test_sqlalchemy_store_scorers.py409 # Step 4: Test get_scorer without version (should return latest)COMMENT
LOW…king/sqlalchemy_store/test_sqlalchemy_store_scorers.py422 # Step 5: Test error cases for get_scorerCOMMENT
LOW…king/sqlalchemy_store/test_sqlalchemy_store_scorers.py433 # Step 6: Test delete_scorer - delete specific version of accuracy_scorerCOMMENT
LOW…king/sqlalchemy_store/test_sqlalchemy_store_scorers.py457 # Step 7: Test delete_scorer - delete all versions of accuracy_scorerCOMMENT
LOW…king/sqlalchemy_store/test_sqlalchemy_store_scorers.py473 # Step 8: Test list_scorers after deletionCOMMENT
LOWmlflow/assistant/cli.py103 # Step 1: Select providerCOMMENT
LOWmlflow/assistant/cli.py108 # Step 2: Check provider availabilityCOMMENT
LOWmlflow/assistant/cli.py112 # Step 3: Optionally connect experiment with code repositoryCOMMENT
LOWmlflow/assistant/cli.py115 # Step 4: Ask for modelCOMMENT
LOWmlflow/assistant/cli.py118 # Step 5: Ask for skill locationCOMMENT
LOWmlflow/assistant/cli.py121 # Step 6: Install skillsCOMMENT
LOWmlflow/assistant/cli.py124 # Step 7: Save configurationCOMMENT
LOWmlflow/tracing/fluent.py1237 # Step 1: Page through traces to collect unique session IDs (up to max_results)COMMENT
LOWmlflow/tracing/fluent.py1268 # Step 2: Fetch complete traces for each session in parallelCOMMENT
LOWmlflow/types/schema.py266 When two properties have the same name, we need to check if their dtypesSTRING
LOWmlflow/langchain/databricks_dependencies.py190 To keep backward compatibility, we need to check if the object is an instance of theSTRING
LOWmlflow/server/js/src/assistant/AssistantService.ts230 // Step 1: POST the message to initiate processingCOMMENT
LOWmlflow/server/js/src/assistant/AssistantService.ts247 // Step 2: Get the session_id from the responseCOMMENT
LOWmlflow/server/js/src/assistant/AssistantService.ts259 // Step 3: Connect to the SSE endpoint to receive the streamCOMMENT
LOW…explorer/timeline-tree/gantt/TimelineTreeGanttBars.tsx21 // Step 1: raw intervalCOMMENT
LOW…explorer/timeline-tree/gantt/TimelineTreeGanttBars.tsx24 // Step 2: round to a "nice" intervalCOMMENT
LOW…explorer/timeline-tree/gantt/TimelineTreeGanttBars.tsx36 // Step 3: extend right bound so we always overshoot itCOMMENT
LOW…explorer/timeline-tree/gantt/TimelineTreeGanttBars.tsx41 // Step 4: Generate tick positionsCOMMENT
LOW…/model-trace-explorer/graph-view/GraphView.workflow.ts244 // Step 1: Position leaf nodes (no children) sequentiallyCOMMENT
LOW…/model-trace-explorer/graph-view/GraphView.workflow.ts255 // Step 2: Center parent nodes above their positioned childrenCOMMENT
LOW…/model-trace-explorer/graph-view/GraphView.workflow.ts270 // Step 3: Position any remaining unpositioned nodes in this layerCOMMENT
LOW…/model-trace-explorer/graph-view/GraphView.workflow.ts279 // Step 4: Resolve overlaps — sort by x, push right as neededCOMMENT
LOW…s/experiment-evaluation-runs/evaluationCodeSnippets.ts13# Step 1: Define evaluation datasetCOMMENT
LOW…s/experiment-evaluation-runs/evaluationCodeSnippets.ts20# Step 2: Define predict_fnCOMMENT
LOW…s/experiment-evaluation-runs/evaluationCodeSnippets.ts28# Step 3: Run evaluationCOMMENT
LOW…s/experiment-evaluation-runs/evaluationCodeSnippets.ts54# Step 1: Pull traces to evaluate.COMMENT
LOW…s/experiment-evaluation-runs/evaluationCodeSnippets.ts59# Step 2: Run evaluation. No predict_fn needed — inputs/outputsCOMMENT
LOWmlflow/utils/async_logging/async_logging_queue.py148 # `queue_size` is an estimate, so we need to check if the queue is empty.COMMENT
LOWmlflow/cli/crypto.py77 # Step 1: Stop server (or ctrl-c if running in foreground)STRING
LOWmlflow/cli/crypto.py85 # Step 4: Run rotationSTRING
LOWmlflow/cli/crypto.py88 # Step 5: Update deployment config (example for Kubernetes)STRING
LOWmlflow/cli/crypto.py94 # Step 6: Restart serverSTRING
LOWmlflow/transformers/__init__.py2330 The purpose of this function is to convert them into the correct format for inputSTRING
LOWmlflow/genai/agent_tester.py415 # Step 1: Describe the agentCOMMENT
LOWmlflow/genai/agent_tester.py422 # Step 2: Generate test casesCOMMENT
LOWmlflow/genai/agent_tester.py429 # Step 3: Simulate conversationsCOMMENT
LOWmlflow/genai/agent_tester.py440 # Step 4: Detect issuesCOMMENT
LOWmlflow/store/tracking/sqlalchemy_store.py3896 # Step 1: Find sessions with at least one trace >= min timestamp (optimization)COMMENT
LOWmlflow/store/tracking/sqlalchemy_store.py3904 # Step 2: Optional filter on first trace (e.g., tags.myTag = "value")COMMENT
LOWmlflow/store/tracking/sqlalchemy_store.py3912 # Step 3: Compute first/last trace timestamps for each sessionCOMMENT
LOWmlflow/store/tracking/sqlalchemy_store.py3920 # Step 4: Get completed sessions (last trace <= max timestamp)COMMENT
LOWlibs/typescript/core/src/exporters/mlflow.ts216 // Step 1: Create trace metadata in backendCOMMENT
LOWlibs/typescript/core/src/exporters/mlflow.ts218 // Step 2: Upload trace data (spans) to artifact storageCOMMENT
LOWlibs/typescript/core/src/exporters/uc_table.ts220 // Step 1: persist the trace info (tags, metadata, state).COMMENT
LOWlibs/typescript/core/src/exporters/uc_table.ts246 // Step 2: upload spans via OTLP.COMMENT
AI Slop Vocabulary37 hits · 94 pts
SeverityFileLineSnippetContext
LOWtests/tracing/test_fluent.py1385# Test a field that doesn't exist for extraction - we shouldn't throw, just return empty columnCOMMENT
LOWtests/utils/test_environment.py375 # Should just pass with warningCOMMENT
MEDIUMtests/ag2/test_ag2_autolog.py321 # Test if the duration calculation for LLM completion is robust to timezone changes.COMMENT
LOWtests/tracking/test_tracking.py811 # Create a run and verify that the current active experiment is the one we just setCOMMENT
LOWtests/tracking/test_tracking.py897 # Create a run and verify that the current active experiment is the one we just setCOMMENT
MEDIUMtests/genai/evaluate/test_utils.py505 # Using set because eval harness runs predict_fn in parallelCOMMENT
MEDIUMtests/genai/evaluate/test_evaluation.py802 # Eval harness runs prediction in parallel, so the order is not deterministicCOMMENT
MEDIUMtests/genai/evaluate/test_evaluation.py862 # ThreadPoolExecutor is called twice in OSS (harness + scorers)COMMENT
MEDIUMmlflow/demo/__init__.py30 # demo generation (e.g. by the evaluation harness's ThreadPoolExecutor) can resolveCOMMENT
MEDIUMmlflow/tracing/fluent.py82# This is necessary for evaluation harness to access generated traces duringCOMMENT
MEDIUMmlflow/tracing/processor/base_mlflow.py279 # synchronously for the evaluation harness.COMMENT
LOWmlflow/tracing/display/display_handler.py73 # we can't just call trace.to_json() because thisSTRING
MEDIUMmlflow/tracing/export/mlflow_v3.py196 # harness can access to the trace using mlflow.get_trace(eval_request_id)COMMENT
MEDIUMmlflow/tracing/export/mlflow_v3.py310 # During evaluate or assertion tests, the harness relies on the generatedCOMMENT
MEDIUMmlflow/R/mlflow/R/databricks-utils.R146#' mode. This function extracts relevant data that MLflow needs in order to properly utilize theCOMMENT
LOWmlflow/server/auth/__init__.py1772 # No secret being changed, just return TrueCOMMENT
MEDIUM…server/js/config-eslint/presets/createConfigFactory.js734 // TypeScript's `noFallthroughCasesInSwitch` option is more robust (#6906)COMMENT
MEDIUM…in/rules/no-new-object-or-array-in-zustand-selector.js138 // More robust check might involve looking at definition types or scope levelCOMMENT
LOWmlflow/utils/proto_json_utils.py451 else: # by default just return whatever this is and hope for the bestCODE
MEDIUMmlflow/utils/requirements_utils.py670 # NB: When a final name has been decided for GA for the aforementionedCOMMENT
MEDIUMmlflow/tracking/artifact_utils.py79 else: # if we're dealing with nt-based systems, we need to utilize pathname2url to encode.CODE
MEDIUMmlflow/genai/judges/adapters/litellm_adapter.py46# ContextVar that upstream modules (e.g. the evaluate harness) can set to disableCOMMENT
MEDIUMmlflow/genai/judges/adapters/litellm_adapter.py521 # When an upstream module (e.g. the evaluate harness) has set the flag,COMMENT
MEDIUMmlflow/genai/judges/instructions_judge/__init__.py180 # NB: We create a dummy PromptVersion here to leverage its existing template variableCOMMENT
MEDIUMmlflow/genai/scorers/job.py316 # Use _compute_eval_scores from harness - supports scorer tracing,COMMENT
MEDIUMmlflow/genai/scorers/base.py631 # TODO: Replace 'Assessment' with 'Feedback' once we migrate from the agent eval harnessCOMMENT
MEDIUMmlflow/genai/evaluation/entities.py261 # evaluation harness from the scorers that declare one. In-process only.COMMENT
MEDIUMmlflow/genai/evaluation/base.py363 # harness will use those traces directly rather than calling predict_fn again.COMMENT
MEDIUMmlflow/genai/evaluation/base.py392 # NB: The "RAG_EVAL_MAX_WORKERS" env var is used in the DBX agent harness, but isCOMMENT
LOWmlflow/entities/span.py1001 # propagation mechanism, so here we just use the native object that meets ourCOMMENT
LOWmlflow/spark/autologging.py249 # If there are active runs, simply set the tag on the latest active runCOMMENT
LOWmlflow/store/tracking/sqlalchemy_store.py1184 # simply call _log_metrics and let it handle the restCOMMENT
LOWmlflow/store/tracking/sqlalchemy_store.py1455 # just create a new SqlLatestMetric instance since bothCOMMENT
LOWmlflow/store/tracking/sqlalchemy_store.py4673 # Assessment doesn't exist - this is idempotent, so just returnCOMMENT
MEDIUM…ions/1b5f0d9ad7c1_add_workspace_columns_and_catalog.py442 # We could potentially leverage Alembic's batch_alter_table with recreate="auto" to avoid theCOMMENT
MEDIUMmlflow/store/analytics/trace_correlation.py5# Using Jeffreys prior (alpha=0.5) to minimize bias while providing robust estimatesCOMMENT
MEDIUMexamples/gemini/tracing.py25# Also leverage the chat feature to conduct multi-turn interactionsCOMMENT
Fake / Example Data70 hits · 60 pts
SeverityFileLineSnippetContext
LOWtests/tracing/export/test_mlflow_v3_exporter.py58 monkeypatch.setenv("DATABRICKS_TOKEN", "dummy-token")CODE
LOWtests/tracing/export/test_mlflow_v3_exporter.py154 monkeypatch.setenv("DATABRICKS_TOKEN", "dummy-token")CODE
LOWtests/tracing/export/test_mlflow_v3_exporter.py209 monkeypatch.setenv("DATABRICKS_TOKEN", "dummy-token")CODE
LOWtests/tracing/export/test_mlflow_v3_exporter.py240 monkeypatch.setenv("DATABRICKS_TOKEN", "dummy-token")CODE
LOWtests/tracing/export/test_mlflow_v3_exporter.py268 monkeypatch.setenv("DATABRICKS_TOKEN", "dummy-token")CODE
LOWtests/tracing/export/test_mlflow_v3_exporter.py314 monkeypatch.setenv("DATABRICKS_TOKEN", "dummy-token")CODE
LOWtests/tracing/export/test_mlflow_v3_exporter.py357 monkeypatch.setenv("DATABRICKS_TOKEN", "dummy-token")CODE
LOWtests/tracing/export/test_mlflow_v3_exporter.py465 monkeypatch.setenv("DATABRICKS_TOKEN", "dummy-token")CODE
LOWtests/tracing/export/test_mlflow_v3_exporter.py536 monkeypatch.setenv("DATABRICKS_TOKEN", "dummy-token")CODE
LOWtests/types/test_schema.py1405 {"role": "user", "content": "I like machine learning", "name": "John Doe"},CODE
LOWtests/langchain/sample_code/chain.py14os.environ.setdefault("DATABRICKS_TOKEN", "fake-token")CODE
LOWtests/langchain/sample_code/no_config/chain.py6os.environ.setdefault("DATABRICKS_TOKEN", "fake-token")CODE
LOWtests/server/test_handlers.py5382 request_message.created_by = "user@example.com"CODE
LOWtests/server/test_handlers.py5396 created_by="user@example.com",CODE
LOWtests/server/test_handlers.py5417 assert call_kwargs["created_by"] == "user@example.com"CODE
LOWtests/utils/test_jsonpath_utils.py213 "source": {"source_type": "HUMAN", "source_id": "user@example.com"},CODE
LOWtests/utils/test_databricks_tracing_utils.py396 source=AssessmentSource(source_type="HUMAN", source_id="user@example.com"),CODE
LOWtests/entities/test_issue.py170 created_by="user@example.com",CODE
LOWtests/entities/test_issue.py184 assert issue.created_by == "user@example.com"CODE
LOWtests/entities/test_issue.py232 "created_by": "admin@example.com",CODE
LOWtests/entities/test_issue.py248 assert issue.created_by == "admin@example.com"CODE
LOWtests/gateway/providers/test_anthropic.py1196 "content": [{"type": "text", "text": '{"name": "John Doe", "email": "john@example.com"}'}],CODE
LOWtests/gateway/providers/test_anthropic.py1219 == '{"name": "John Doe", "email": "john@example.com"}'CODE
LOWtests/gateway/providers/test_mistral.py329 "content": '{"name": "John Doe", "email": "john@example.com"}',CODE
LOWtests/gateway/providers/test_mistral.py346 == '{"name": "John Doe", "email": "john@example.com"}'CODE
LOWtests/store/tracking/test_databricks_rest_store.py1862 assert result[0].created_by == "user@example.com"CODE
LOWtests/store/tracking/test_databricks_rest_store.py1863 assert result[0].last_updated_by == "user@example.com"CODE
LOWtests/store/tracking/test_databricks_rest_store.py1827 "created_by": "user@example.com",CODE
LOWtests/store/tracking/test_databricks_rest_store.py1828 "last_updated_by": "user@example.com",CODE
LOW…cking/sqlalchemy_store/test_sqlalchemy_store_issues.py73 assert issue.created_by == "user@example.com"CODE
LOW…cking/sqlalchemy_store/test_sqlalchemy_store_issues.py58 created_by="user@example.com",CODE
LOW…ng/sqlalchemy_store/test_sqlalchemy_workspace_store.py1082 source = AssessmentSource(source_type="HUMAN", source_id="user@example.com")CODE
LOW…ng/sqlalchemy_store/test_sqlalchemy_workspace_store.py1231 source_type=AssessmentSourceType.HUMAN, source_id="user@example.com"CODE
LOW…cking/sqlalchemy_store/test_sqlalchemy_store_traces.py1633 source=AssessmentSource(source_type="HUMAN", source_id="user@example.com"),CODE
LOW…cking/sqlalchemy_store/test_sqlalchemy_store_traces.py1641 source=AssessmentSource(source_type="HUMAN", source_id="user@example.com"),CODE
LOW…cking/sqlalchemy_store/test_sqlalchemy_store_traces.py1651 source=AssessmentSource(source_type="HUMAN", source_id="user@example.com"),CODE
LOW…cking/sqlalchemy_store/test_sqlalchemy_store_traces.py1307 source = AssessmentSource(source_type="HUMAN", source_id="user@example.com")CODE
LOW…cking/sqlalchemy_store/test_sqlalchemy_store_traces.py1354 source = AssessmentSource(source_type="HUMAN", source_id="user@example.com")CODE
LOW…cking/sqlalchemy_store/test_sqlalchemy_store_traces.py1703 source=AssessmentSource(source_type="HUMAN", source_id="user@example.com"),CODE
LOW…cking/sqlalchemy_store/test_sqlalchemy_store_traces.py1713 source=AssessmentSource(source_type="HUMAN", source_id="user@example.com"),CODE
LOW…s/store/artifact/test_azure_data_lake_artifact_repo.py458 first_credential = AzureSasCredential("fake_token")CODE
LOW…atalog/model_registry/test_unity_catalog_rest_store.py756 access_key_id = "fake-key"CODE
LOW…atalog/model_registry/test_unity_catalog_rest_store.py992 access_key_id = "fake-key"CODE
LOW…atalog/model_registry/test_unity_catalog_rest_store.py491 access_key_id = "fake-key"CODE
LOW…atalog/model_registry/test_unity_catalog_rest_store.py561 access_key_id = "fake-key"CODE
LOW…atalog/model_registry/test_unity_catalog_rest_store.py625 access_key_id = "fake-key"CODE
LOW…atalog/model_registry/test_unity_catalog_rest_store.py687 access_key_id = "fake-key"CODE
LOW…atalog/model_registry/test_unity_catalog_rest_store.py1066 access_key_id = "fake-key"CODE
LOW…atalog/model_registry/test_unity_catalog_rest_store.py1151 access_key_id = "fake-key"CODE
LOW…atalog/model_registry/test_unity_catalog_rest_store.py1675 access_key_id = "fake-key"CODE
LOW…atalog/model_registry/test_unity_catalog_rest_store.py1729 access_key_id = "fake-key"CODE
LOW…atalog/model_registry/test_unity_catalog_rest_store.py1781 access_key_id = "fake-key"CODE
LOW…atalog/model_registry/test_unity_catalog_rest_store.py1821 access_key_id = "fake-key"CODE
LOW…b-shared/model-trace-explorer/custom-view/catalog.json387 "placeholder": {CODE
LOW…b-shared/model-trace-explorer/custom-view/catalog.json666 "placeholder": {CODE
LOW…c/experiment-tracking/utils/LoggedModels.test-utils.ts16 creator_id: 'test@test.com',CODE
LOW…t-view-components/ShowArtifactLoggedTableView.test.tsx16 ['row-2', 'ERROR', 'Lorem ipsum'],CODE
LOW…rts/components/RunsChartsDraggableCardsGridSection.tsx29const PlaceholderSymbol = Symbol('placeholder');CODE
LOW…gged-models/useCombinedRunInputsOutputsModels.test.tsx18 creator_id: 'test@test.com',CODE
LOW…experiment-tracking/pages/prompts/PromptsPage.test.tsx118 await userEvent.type(screen.getByLabelText('Prompt:'), 'lorem ipsum');CODE
10 more matches not shown…
Magic Placeholder Names11 hits · 58 pts
SeverityFileLineSnippetContext
HIGHmlflow/metrics/genai/genai_metric.py261 os.environ.setdefault("OPENAI_API_KEY", "your-api-key-here")STRING
HIGHmlflow/server/js/src/assistant/setup/CodexAuth.tsx143 {renderCodeBlock('export OPENAI_API_KEY=your-api-key')}CODE
HIGH…s/experiment-evaluation-runs/evaluationCodeSnippets.ts10os.environ["OPENAI_API_KEY"] = "your-api-key-here" # Replace with your API keyCODE
HIGH…s/experiment-evaluation-runs/evaluationCodeSnippets.ts51os.environ["OPENAI_API_KEY"] = "your-api-key-here" # Replace with your API keyCODE
HIGH…king/pages/prompts/components/PromptContentPreview.tsx298client = OpenAI(api_key="<YOUR_API_KEY>")`;CODE
HIGH…king/pages/prompts/components/PromptContentPreview.tsx298client = OpenAI(api_key="<YOUR_API_KEY>")`;CODE
HIGHdocs/src/components/OpenAICompatibleGateways/config.ts61 apiKeyPlaceholder: '<YOUR_API_KEY>',CODE
HIGHdocs/src/components/OpenAICompatibleGateways/config.ts61 apiKeyPlaceholder: '<YOUR_API_KEY>',CODE
HIGHlibs/tracing/README.md67client = openai.OpenAI(api_key="<your-api-key>")CODE
HIGHexamples/openai/autologging/README.md18python examples/openai/autologging/instantiated_client.py --api-key="your-api-key"CODE
HIGHexamples/openai/autologging/README.md27export OPENAI_API_KEY="your-api-key"CODE
Synthetic Comment Markers6 hits · 42 pts
SeverityFileLineSnippetContext
HIGHmlflow/metrics/genai/model_utils.py347 # new ones as requested, as long as the provider support chat endpoints.COMMENT
HIGH…table/components/GenAiEvaluationTracesReview.utils.tsx908 // It is not AI generated, and it doesn't have the `IS_FROM_AI` metadata field set to trueCOMMENT
HIGH…races-table/components/GenAiEvaluationTracesReview.tsx60 // We check if there are no user provided overall assessments and if the last overall assessment was AI generated.COMMENT
HIGH…races-table/components/GenAiEvaluationTracesReview.tsx66 // If we should repeat the AI generated overall assessment, we need to copy and add it to the list of assessments COMMENT
HIGHmlflow/genai/scorers/job.py240 # Preserve order of traces as requestedCOMMENT
HIGH.github/workflows/triage.yml157 🤖 This assessment was generated by AI and may be incorrect. A maintainer will review.CODE
AI Response Leakage4 hits · 30 pts
SeverityFileLineSnippetContext
HIGHtests/utils/test_uri.py797 # In this example, %2%0952e -> %2\t52e -> %252e -> %2e -> .COMMENT
HIGHexamples/demos/mlflow-3/deep_learning.py2# In this example, we will first run a model training job, which is tracked as an MLflow Run.COMMENT
HIGHexamples/demos/mlflow-3/genai.py2# In this example, we will create an agent and then evaluate its performance. First, we will define the agent and log itCOMMENT
HIGHexamples/demos/mlflow-3/ml.py2# In this example, we will first run a model training job, which is tracked asCOMMENT
Slop Phrases8 hits · 16 pts
SeverityFileLineSnippetContext
LOWtests/pyfunc/test_spark.py128 # Don't forget to revert these changes prior to pushing a branch!COMMENT
LOWexamples/tracing/client.py52 # End the child span. Please make sure to end the child span before ending the root span.COMMENT
MEDIUMexamples/tracing/client.py80# Alternatively, you can use search_traces() APICOMMENT
MEDIUMexamples/tracing/fluent.py44# Alternatively, you can use `search_traces` API to retrieveCOMMENT
LOWexamples/docker/train.py35 # Read the wine-quality csv file (make sure you're running this from the root of MLflow!)COMMENT
MEDIUMexamples/evaluation/evaluate_with_model_validation.py108# If you would like to catch model validation failures, you can add try except clauses aroundCOMMENT
LOW.github/ISSUE_TEMPLATE/good_first_issue.yaml22 # ^^ make sure to use thisCOMMENT
LOWdev/update_mlflow_versions.py124# version of a dependency. to work around, we make sure toCOMMENT
Overly Generic Function Names14 hits · 12 pts
SeverityFileLineSnippetContext
LOWtests/tracing/test_fluent.py2005 def test_function():CODE
LOWtests/tracing/test_fluent.py2600 def test_function():CODE
LOWtests/tracing/test_provider.py662 def test_function():CODE
LOWtests/tracing/test_otel_logging.py631 def test_function():CODE
LOWtests/tracing/processor/test_otel_metrics.py94 def test_function() -> str:CODE
LOWtests/llama_index/test_llama_index_tracer.py740 async def process_data(self, ev: ProcessEvent) -> ResultEvent:CODE
LOWtests/llama_index/test_llama_index_tracer.py811 async def process_data(self, ev: ProcessEvent) -> ResultEvent:CODE
LOWtests/genai/test_agent_server.py122 def my_function(request):CODE
LOWtests/genai/test_agent_server.py470 def test_function(request):CODE
LOWtests/genai/test_agent_server.py488 def test_function(request):CODE
LOWtests/pyfunc/sample_code/utils.py1def my_function(input):CODE
LOWmlflow/tracing/fluent.py149 def my_function(x, y):STRING
LOWmlflow/tracing/fluent.py161 def my_function(x, y):STRING
LOWdev/clint/tests/test_index.py12 test_file.write_text("def test_function(): pass")CODE
Example Usage Blocks5 hits · 8 pts
SeverityFileLineSnippetContext
LOWcharts/example-mlflow-charts.yaml2# Usage:COMMENT
LOWmlflow/protos/opentelemetry/update.sh5# Usage:COMMENT
LOW…ples/sklearn_elasticnet_diabetes/osx/train_diabetes.py13# Usage:COMMENT
LOW…es/sklearn_elasticnet_diabetes/linux/train_diabetes.py13# Usage:COMMENT
LOWdev/publish_model_catalog.sh4# Usage:COMMENT
Dead Code2 hits · 4 pts
SeverityFileLineSnippetContext
MEDIUMtests/utils/test_requirements_utils.py625CODE
MEDIUMtests/openai/test_openai_agent_autolog.py445CODE
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOW…ent-logged-models/ExperimentLoggedModelDetailsPage.tsx79 // TODO: implement error handlingCOMMENT