Repository Analysis

bokeh/bokeh

Interactive Data Visualization in the browser, from Python

111.3 Strong AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of bokeh/bokeh, a Python project with 20,437 GitHub stars. SynthScan v2.0 examined 355,407 lines of code across 2674 source files, recording 12064 pattern matches distributed across 19 syntactic categories. The overall adjusted score of 111.3 places this repository in the Strong 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).

111.3
Adjusted Score
111.3
Raw Score
100%
Time Factor
2026-08-28
Last Push
20.4K
Stars
Python
Language
355.4K
Lines of Code
2.7K
Files
12.1K
Pattern Hits
2026-08-29
Scan Date
0.09
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 12HIGH 232MEDIUM 8603LOW 3217

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

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

Decorative Section Separators8591 hits · 35349 pts
SeverityFileLineSnippetContext
MEDIUMsetup.py1#-----------------------------------------------------------------------------COMMENT
MEDIUMsetup.py6#-----------------------------------------------------------------------------COMMENT
MEDIUMtools/__init__.py1# -----------------------------------------------------------------------------COMMENT
MEDIUMtools/__init__.py6# -----------------------------------------------------------------------------COMMENT
MEDIUMtools/release/build.py1# -----------------------------------------------------------------------------COMMENT
MEDIUMtools/release/build.py6# -----------------------------------------------------------------------------COMMENT
MEDIUMtools/release/git.py1# -----------------------------------------------------------------------------COMMENT
MEDIUMtools/release/git.py6# -----------------------------------------------------------------------------COMMENT
MEDIUMtools/release/system.py1# -----------------------------------------------------------------------------COMMENT
MEDIUMtools/release/system.py6# -----------------------------------------------------------------------------COMMENT
MEDIUMtools/release/enums.py1# -----------------------------------------------------------------------------COMMENT
MEDIUMtools/release/enums.py6# -----------------------------------------------------------------------------COMMENT
MEDIUMtools/release/config.py1# -----------------------------------------------------------------------------COMMENT
MEDIUMtools/release/config.py6# -----------------------------------------------------------------------------COMMENT
MEDIUMtools/release/deploy.py1# -----------------------------------------------------------------------------COMMENT
MEDIUMtools/release/deploy.py6# -----------------------------------------------------------------------------COMMENT
MEDIUMtools/release/credentials.py1# -----------------------------------------------------------------------------COMMENT
MEDIUMtools/release/credentials.py6# -----------------------------------------------------------------------------COMMENT
MEDIUMtools/release/remote.py1# -----------------------------------------------------------------------------COMMENT
MEDIUMtools/release/remote.py6# -----------------------------------------------------------------------------COMMENT
MEDIUMtools/release/util.py1# -----------------------------------------------------------------------------COMMENT
MEDIUMtools/release/util.py6# -----------------------------------------------------------------------------COMMENT
MEDIUMtools/release/ui.py1# -----------------------------------------------------------------------------COMMENT
MEDIUMtools/release/ui.py6# -----------------------------------------------------------------------------COMMENT
MEDIUMtools/release/checks.py1# -----------------------------------------------------------------------------COMMENT
MEDIUMtools/release/checks.py6# -----------------------------------------------------------------------------COMMENT
MEDIUMtools/release/__init__.py1# -----------------------------------------------------------------------------COMMENT
MEDIUMtools/release/__init__.py6# -----------------------------------------------------------------------------COMMENT
MEDIUMtools/release/logger.py1# -----------------------------------------------------------------------------COMMENT
MEDIUMtools/release/logger.py6# -----------------------------------------------------------------------------COMMENT
MEDIUMtools/release/action.py1# -----------------------------------------------------------------------------COMMENT
MEDIUMtools/release/action.py6# -----------------------------------------------------------------------------COMMENT
MEDIUMtools/release/stages.py1# -----------------------------------------------------------------------------COMMENT
MEDIUMtools/release/stages.py6# -----------------------------------------------------------------------------COMMENT
MEDIUMtools/release/pipeline.py1# -----------------------------------------------------------------------------COMMENT
MEDIUMtools/release/pipeline.py6# -----------------------------------------------------------------------------COMMENT
MEDIUMtools/release/__main__.py1# -----------------------------------------------------------------------------COMMENT
MEDIUMtools/release/__main__.py6# -----------------------------------------------------------------------------COMMENT
MEDIUMtools/hooks/__init__.py1# -----------------------------------------------------------------------------COMMENT
MEDIUMtools/hooks/__init__.py6# -----------------------------------------------------------------------------COMMENT
MEDIUMtests/conftest.py1#-----------------------------------------------------------------------------COMMENT
MEDIUMtests/conftest.py6#-----------------------------------------------------------------------------COMMENT
MEDIUMtests/__init__.py1#-----------------------------------------------------------------------------COMMENT
MEDIUMtests/__init__.py7#-----------------------------------------------------------------------------COMMENT
MEDIUMtests/test_bokehjs.py1#-----------------------------------------------------------------------------COMMENT
MEDIUMtests/test_bokehjs.py6#-----------------------------------------------------------------------------COMMENT
MEDIUMtests/test_bokehjs.py8#-----------------------------------------------------------------------------COMMENT
MEDIUMtests/test_bokehjs.py10#-----------------------------------------------------------------------------COMMENT
MEDIUMtests/test_bokehjs.py15#-----------------------------------------------------------------------------COMMENT
MEDIUMtests/test_bokehjs.py17#-----------------------------------------------------------------------------COMMENT
MEDIUMtests/test_bokehjs.py23#-----------------------------------------------------------------------------COMMENT
MEDIUMtests/test_bokehjs.py25#-----------------------------------------------------------------------------COMMENT
MEDIUMtests/test_bokehjs.py27#-----------------------------------------------------------------------------COMMENT
MEDIUMtests/test_bokehjs.py29#-----------------------------------------------------------------------------COMMENT
MEDIUMtests/test_bokehjs.py42#-----------------------------------------------------------------------------COMMENT
MEDIUMtests/test_bokehjs.py44#-----------------------------------------------------------------------------COMMENT
MEDIUMtests/test_bokehjs.py46#-----------------------------------------------------------------------------COMMENT
MEDIUMtests/test_bokehjs.py48#-----------------------------------------------------------------------------COMMENT
MEDIUMtests/test_bokehjs.py50#-----------------------------------------------------------------------------COMMENT
MEDIUMtests/test_bokehjs.py52#-----------------------------------------------------------------------------COMMENT
8531 more matches not shown…
Hyper-Verbose Identifiers1409 hits · 1238 pts
SeverityFileLineSnippetContext
LOWtools/backport/git.py283 def remove_worktree_and_branch(CODE
LOWtools/backport/planning.py133def _advance_dedicated_commits(CODE
LOWtools/backport/planning.py197def continue_dedicated_commit(CODE
LOWtools/backport/planning.py379def _validate_candidate_sequence(git: GitRepo, state: PlanState, head: str) -> None:CODE
LOWtools/backport/candidates.py230def candidate_source_problems(CODE
LOWtools/backport/candidates.py256def candidate_policy_problems(CODE
LOWtools/backport/candidates.py280def candidate_target_problems(CODE
LOWtools/backport/__main__.py38def _require_supported_python() -> None:CODE
LOWtools/release/build.py294def verify_pip_install_from_sdist(config: Config, system: System) -> ActionReturn:CODE
LOWtools/release/build.py301def verify_pip_install_using_sdist(config: Config, system: System) -> ActionReturn:CODE
LOWtools/release/build.py308def verify_pip_install_using_wheel(config: Config, system: System) -> ActionReturn:CODE
LOWtools/release/deploy.py90def unpack_deployment_tarball(config: Config, system: System) -> ActionReturn:CODE
LOWtools/release/credentials.py67def verify_anaconda_credentials(config: Config, system: System, *, token: str) -> None:CODE
LOWtools/release/credentials.py80def verify_google_credentials(config: Config, system: System, *, token: str) -> None:CODE
LOWtools/release/remote.py26def download_deployment_tarball(config: Config, system: System) -> ActionReturn:CODE
LOWtools/release/remote.py76def upload_deployment_tarball(config: Config, system: System) -> ActionReturn:CODE
LOWtools/release/checks.py80def check_release_notes_present(config: Config, system: System) -> ActionReturn:CODE
LOWtools/release/checks.py90def check_checkout_on_base_branch(config: Config, system: System) -> ActionReturn:CODE
LOWtools/release/checks.py113def check_checkout_matches_remote(config: Config, system: System) -> ActionReturn:CODE
LOWtools/release/checks.py133def check_docs_version_config(config: Config, system: System) -> ActionReturn:CODE
LOWtools/release/checks.py174def check_release_tag_is_available(config: Config, system: System) -> ActionReturn:CODE
LOWtools/release/checks.py203def check_staging_branch_is_available(config: Config, system: System) -> ActionReturn:CODE
LOWtests/conftest.py61def pandas_nullable_constructor(obj) -> IntoDataFrame:CODE
LOWtests/conftest.py65def pandas_pyarrow_constructor(obj) -> IntoDataFrame:CODE
LOWtests/conftest.py74def pyarrow_table_constructor(obj) -> IntoDataFrame:CODE
LOWtests/unit/bokeh/test_resources.py68 def test_get_all_sri_versions_valid_format(self) -> None:CODE
LOWtests/unit/bokeh/test_resources.py74 def test_get_sri_hashes_for_standard_versions(self, v) -> None:CODE
LOWtests/unit/bokeh/test_resources.py84 def test_get_sri_hashes_for_weird_versions(self, v) -> None:CODE
LOWtests/unit/bokeh/test_resources.py96 def test_get_sri_hashes_for_version_bad(self) -> None:CODE
LOWtests/unit/bokeh/test_resources.py245 def test_server_root_url_empty(self) -> None:CODE
LOWtests/unit/bokeh/test_resources.py260 def test_server_with_versioner(self) -> None:CODE
LOWtests/unit/bokeh/test_resources.py344 def test_builtin_importable_with_env(self, monkeypatch: pytest.MonkeyPatch, env) -> None:CODE
LOWtests/unit/bokeh/test_resources.py352 def test_render_js_cdn_release(self, monkeypatch: pytest.MonkeyPatch) -> None:CODE
LOWtests/unit/bokeh/test_resources.py369 def test_render_js_cdn_dev_release(self, v: str, monkeypatch: pytest.MonkeyPatch) -> None:CODE
LOWtests/unit/bokeh/test_resources.py380 def test_render_js_cdn_dev_local(self, monkeypatch: pytest.MonkeyPatch) -> None:CODE
LOWtests/unit/bokeh/test_resources.py412def test_external_js_and_css_resource_embedding() -> None:CODE
LOWtests/unit/bokeh/test_resources.py452def test_external_js_and_css_resource_ordering() -> None:CODE
LOWtests/unit/bokeh/test_palettes.py30def test_cmap_generator_function() -> None:CODE
LOWtests/unit/bokeh/test_palettes.py40def test_all_palettes___palettes__() -> None:CODE
LOWtests/unit/bokeh/test_palettes.py76def test_varying_alpha_palette() -> None:CODE
LOWtests/unit/bokeh/test_layouts__typing.py33def test_gridplot_typing_no_ncols() -> None:CODE
LOWtests/unit/bokeh/test_layouts__typing.py48def test_gridplot_typing_using_ncols() -> None:CODE
LOWtests/unit/bokeh/test_typing.py59def mypy_test_figure_list_attr_splat() -> None:CODE
LOWtests/unit/bokeh/test_themes.py71 def test_construct_empty_theme_from_json(self) -> None:STRING
LOWtests/unit/bokeh/test_themes.py76 def test_construct_no_json_or_filename(self) -> None:STRING
LOWtests/unit/bokeh/test_themes.py81 def test_construct_json_and_filename(self) -> None:STRING
LOWtests/unit/bokeh/test_themes.py290 def test_setting_built_in_theme_obj(self) -> None:STRING
LOWtests/unit/bokeh/test_themes.py297 def test_setting_built_in_theme_str(self) -> None:STRING
LOWtests/unit/bokeh/test_themes.py304 def test_setting_built_in_theme_missing(self) -> None:STRING
LOWtests/unit/bokeh/test_themes.py311 def test_setting_built_in_theme_error(self) -> None:STRING
LOWtests/unit/bokeh/test_themes.py60 def test_construct_empty_theme_from_file(self) -> None:STRING
LOWtests/unit/bokeh/test_themes.py93 def test_construct_bad_class_props(self) -> None:STRING
LOWtests/unit/bokeh/test_themes.py98 def test_construct_nonempty_theme_from_file(self) -> None:STRING
LOWtests/unit/bokeh/test_themes.py140 def test_theming_a_model_via_base(self) -> None:STRING
LOWtests/unit/bokeh/test_themes.py158 def test_subclass_theme_used_rather_than_base(self) -> None:STRING
LOWtests/unit/bokeh/test_themes.py179 def test_theming_a_document_after_adding_root(self) -> None:STRING
LOWtests/unit/bokeh/test_themes.py202 def test_theming_a_document_before_adding_root(self) -> None:STRING
LOWtests/unit/bokeh/test_themes.py225 def test_setting_document_theme_to_none(self) -> None:STRING
LOWtests/unit/bokeh/test_themes.py248 def _compare_dict_to_model_class_defaults(self, props, model_class):STRING
LOWtests/unit/bokeh/test_themes.py260 def _compare_dict_to_model_defaults(self, props, model_name):STRING
1349 more matches not shown…
Unused Imports885 hits · 713 pts
SeverityFileLineSnippetContext
LOWsetup.py7CODE
LOWtools/milestone.py3CODE
LOWtools/release/build.py10CODE
LOWtools/release/git.py10CODE
LOWtools/release/system.py10CODE
LOWtools/release/enums.py10CODE
LOWtools/release/config.py10CODE
LOWtools/release/deploy.py7CODE
LOWtools/release/credentials.py10CODE
LOWtools/release/remote.py7CODE
LOWtools/release/util.py10CODE
LOWtools/release/ui.py10CODE
LOWtools/release/checks.py7CODE
LOWtools/release/__init__.py7CODE
LOWtools/release/logger.py10CODE
LOWtools/release/action.py10CODE
LOWtools/release/stages.py7CODE
LOWtools/release/pipeline.py10CODE
LOWtools/release/__main__.py7CODE
LOWtests/conftest.py7CODE
LOWtests/test_bokehjs.py11CODE
LOWtests/test_cross.py11CODE
LOWtests/test_examples.py11CODE
LOWtests/test_defaults.py11CODE
LOWtests/unit/bokeh/test_resources.py11CODE
LOWtests/unit/bokeh/test_palettes.py11CODE
LOWtests/unit/bokeh/test_transform.py11CODE
LOWtests/unit/bokeh/test___init__.py11CODE
LOWtests/unit/bokeh/test_driving.py11CODE
LOWtests/unit/bokeh/test_typing.py24CODE
LOWtests/unit/bokeh/test_themes.py11CODE
LOWtests/unit/bokeh/test_client_server.py11CODE
LOWtests/unit/bokeh/test_server.py11CODE
LOWtests/unit/bokeh/test___main__.py11CODE
LOWtests/unit/bokeh/test_ext.py11CODE
LOWtests/unit/bokeh/test_events.py11CODE
LOWtests/unit/bokeh/test_regressions.py11CODE
LOWtests/unit/bokeh/test_free_threading.py11CODE
LOWtests/unit/bokeh/test_objects.py11CODE
LOWtests/unit/bokeh/test_layouts.py11CODE
LOWtests/unit/bokeh/test_settings.py11CODE
LOWtests/unit/bokeh/core/test_validation.py11CODE
LOWtests/unit/bokeh/core/test_templates.py11CODE
LOWtests/unit/bokeh/core/test_json_encoder.py11CODE
LOWtests/unit/bokeh/core/test_enums.py11CODE
LOWtests/unit/bokeh/core/test_query.py11CODE
LOWtests/unit/bokeh/core/test_has_props.py11CODE
LOWtests/unit/bokeh/core/test_serialization.py11CODE
LOWtests/unit/bokeh/core/test_properties.py11CODE
LOW…sts/unit/bokeh/core/property/test_string_properties.py11CODE
LOWtests/unit/bokeh/core/property/test_color__property.py11CODE
LOWtests/unit/bokeh/core/property/test_required.py11CODE
LOWtests/unit/bokeh/core/property/test_vectorization.py11CODE
LOW…ts/unit/bokeh/core/property/test_wrappers__property.py11CODE
LOWtests/unit/bokeh/core/property/test_primitive.py11CODE
LOWtests/unit/bokeh/core/property/test_visual.py11CODE
LOWtests/unit/bokeh/core/property/test_container.py11CODE
LOWtests/unit/bokeh/core/property/test_instance.py11CODE
LOWtests/unit/bokeh/core/property/test_singletons.py11CODE
LOWtests/unit/bokeh/core/property/test_struct.py11CODE
825 more matches not shown…
Over-Commented Block734 hits · 676 pts
SeverityFileLineSnippetContext
LOWtools/__init__.py1# -----------------------------------------------------------------------------COMMENT
LOWtools/hooks/__init__.py1# -----------------------------------------------------------------------------COMMENT
LOWtests/__init__.py1#-----------------------------------------------------------------------------COMMENT
LOWtests/test_bokehjs.py1#-----------------------------------------------------------------------------COMMENT
LOWtests/test_bokehjs.py41COMMENT
LOWtests/test_cross.py1#-----------------------------------------------------------------------------COMMENT
LOWtests/test_examples.py1#-----------------------------------------------------------------------------COMMENT
LOWtests/test_examples.py321# CodeCOMMENT
LOWtests/test_defaults.py1#-----------------------------------------------------------------------------COMMENT
LOWtests/unit/bokeh/test_resources.py1# -----------------------------------------------------------------------------COMMENT
LOWtests/unit/bokeh/test_palettes.py1#-----------------------------------------------------------------------------COMMENT
LOWtests/unit/bokeh/test_layouts__typing.py1# -----------------------------------------------------------------------------COMMENT
LOWtests/unit/bokeh/test_layouts__typing.py61COMMENT
LOWtests/unit/bokeh/test_transform.py1#-----------------------------------------------------------------------------COMMENT
LOWtests/unit/bokeh/test_transform.py301COMMENT
LOWtests/unit/bokeh/test___init__.py1#-----------------------------------------------------------------------------COMMENT
LOWtests/unit/bokeh/test_driving.py1#-----------------------------------------------------------------------------COMMENT
LOWtests/unit/bokeh/test_typing.py1#-----------------------------------------------------------------------------COMMENT
LOWtests/unit/bokeh/test_typing.py101# Dev APICOMMENT
LOWtests/unit/bokeh/test_themes.py1#-----------------------------------------------------------------------------COMMENT
LOWtests/unit/bokeh/test_themes.py321#-----------------------------------------------------------------------------COMMENT
LOWtests/unit/bokeh/test_client_server.py1#-----------------------------------------------------------------------------COMMENT
LOWtests/unit/bokeh/test_client_server.py1001COMMENT
LOWtests/unit/bokeh/test_server.py1#-----------------------------------------------------------------------------COMMENT
LOWtests/unit/bokeh/test_server.py61# Private APICOMMENT
LOWtests/unit/bokeh/test___main__.py1#-----------------------------------------------------------------------------COMMENT
LOWtests/unit/bokeh/test___main__.py61#-----------------------------------------------------------------------------COMMENT
LOWtests/unit/bokeh/test_ext.py1#-----------------------------------------------------------------------------COMMENT
LOWtests/unit/bokeh/test_events.py1#-----------------------------------------------------------------------------COMMENT
LOWtests/unit/bokeh/test_events.py421 assert isinstance(event.msg_data, ClearInput)COMMENT
LOWtests/unit/bokeh/test_regressions.py1#-----------------------------------------------------------------------------COMMENT
LOWtests/unit/bokeh/test_regressions.py61 assert obj0.p0 == [obj1]COMMENT
LOWtests/unit/bokeh/test_free_threading.py1#-----------------------------------------------------------------------------COMMENT
LOWtests/unit/bokeh/test_objects.py1#-----------------------------------------------------------------------------COMMENT
LOWtests/unit/bokeh/test_objects.py601#-----------------------------------------------------------------------------COMMENT
LOWtests/unit/bokeh/test_layouts.py1#-----------------------------------------------------------------------------COMMENT
LOWtests/unit/bokeh/test_settings.py1#-----------------------------------------------------------------------------COMMENT
LOWtests/unit/bokeh/test_settings.py441#-----------------------------------------------------------------------------COMMENT
LOWtests/unit/bokeh/core/test_validation.py1#-----------------------------------------------------------------------------COMMENT
LOWtests/unit/bokeh/core/test_templates.py1#-----------------------------------------------------------------------------COMMENT
LOWtests/unit/bokeh/core/test_templates.py101#-----------------------------------------------------------------------------COMMENT
LOWtests/unit/bokeh/core/test_json_encoder.py1#-----------------------------------------------------------------------------COMMENT
LOWtests/unit/bokeh/core/test_enums.py1#-----------------------------------------------------------------------------COMMENT
LOWtests/unit/bokeh/core/test_enums.py521# Private APICOMMENT
LOWtests/unit/bokeh/core/test_query.py1#-----------------------------------------------------------------------------COMMENT
LOWtests/unit/bokeh/core/test_query.py281#-----------------------------------------------------------------------------COMMENT
LOWtests/unit/bokeh/core/test_has_props.py1#-----------------------------------------------------------------------------COMMENT
LOWtests/unit/bokeh/core/test_serialization.py1#-----------------------------------------------------------------------------COMMENT
LOWtests/unit/bokeh/core/test_properties.py1#-----------------------------------------------------------------------------COMMENT
LOWtests/unit/bokeh/core/test_properties.py621 assert f.x == 30COMMENT
LOW…sts/unit/bokeh/core/property/test_string_properties.py1#-----------------------------------------------------------------------------COMMENT
LOW…sts/unit/bokeh/core/property/test_string_properties.py81# Dev APICOMMENT
LOWtests/unit/bokeh/core/property/test_color__property.py1#-----------------------------------------------------------------------------COMMENT
LOWtests/unit/bokeh/core/property/test_required.py1#-----------------------------------------------------------------------------COMMENT
LOWtests/unit/bokeh/core/property/test_vectorization.py1#-----------------------------------------------------------------------------COMMENT
LOWtests/unit/bokeh/core/property/test_vectorization.py61 assert bcpv.expr(expr, transform=transform) == bcpv.Expr(expr=expr, transform=transform)COMMENT
LOW…ts/unit/bokeh/core/property/test_wrappers__property.py1#-----------------------------------------------------------------------------COMMENT
LOWtests/unit/bokeh/core/property/test_primitive.py1#-----------------------------------------------------------------------------COMMENT
LOWtests/unit/bokeh/core/property/test_visual.py1#-----------------------------------------------------------------------------COMMENT
LOWtests/unit/bokeh/core/property/test_container.py1#-----------------------------------------------------------------------------COMMENT
674 more matches not shown…
Cross-Language Confusion73 hits · 420 pts
SeverityFileLineSnippetContext
HIGHtools/backport/publishing.py123 git.push(worktree, state.branch)CODE
HIGHtests/unit/bokeh/core/test_json_encoder.py44[null,true,false,-128,-1,0,1,128,{"type":"number","value":"nan"}]\CODE
HIGHtests/unit/bokeh/core/test_json_encoder.py48[null,true,false,-128,-1,0,1,128,{"type":"number","value":"nan"}]\CODE
HIGHtests/unit/bokeh/core/test_json_encoder.py53 null,CODE
HIGHtests/unit/bokeh/core/test_json_encoder.py70 null,CODE
HIGHtests/unit/bokeh/core/test_has_props.py346 assert p1.equals(p2)CODE
HIGHtests/unit/bokeh/core/test_has_props.py348 assert not p1.equals(p2)CODE
HIGHtests/unit/bokeh/core/test_has_props.py350 assert p1.equals(p2)CODE
HIGHtests/unit/bokeh/core/test_serialization.py1415 '"name":null,' +STRING
HIGHtests/unit/bokeh/core/test_serialization.py1416 '"null_child":null,' +STRING
HIGHtests/unit/bokeh/util/test_compiler.py191 formatted.push(`+${difference}}`)CODE
HIGHtests/tools/backport/test_git.py61 git.push(worktree, branch)CODE
HIGHtests/integration/server_e2e/test_examples.py136 "() => globalThis.Bokeh != null && Bokeh.documents.length === 1",CODE
HIGHexamples/advanced/extensions/ticking.py17 formatted.push(`+${(Number(ticks[i]) - Number(ticks[0])).toPrecision(2)}`)CODE
HIGHexamples/basic/data/server_sent_events_source.py17 result.x.push(pts[i][0])CODE
HIGHexamples/basic/data/server_sent_events_source.py18 result.y.push(pts[i][1])CODE
HIGHexamples/basic/data/ajax_source.py13 result.x.push(x)CODE
HIGHexamples/basic/data/ajax_source.py14 result.y.push(y)CODE
HIGHexamples/server/app/events_app.py28 args.push(attrs[i] + '=' + val)CODE
HIGHexamples/models/custom.py40 colors.push(`${color} ${offset}px`)CODE
HIGHexamples/models/custom.py42 colors.push(`${color} ${offset}px`)CODE
HIGHexamples/models/buttons.py23button.js_on_event("button_click", CustomJS(code="console.log('button: click ', this.toString())"))CODE
HIGHexamples/models/buttons.py24button.js_on_event("button_click", CustomJS(code="console.log('button: click ', this.toString())"))CODE
HIGHexamples/models/buttons.py27button_disabled.js_on_event("button_click", CustomJS(code="console.log('button(disabled): click ', this.toString())"))CODE
HIGHexamples/models/buttons.py30toggle_inactive.js_on_event('button_click', CustomJS(code="console.log('toggle(inactive): active=' + this.origin.active,CODE
HIGHexamples/models/buttons.py33toggle_active.js_on_event('button_click', CustomJS(code="console.log('toggle(active): active=' + this.origin.active, thiCODE
HIGHexamples/models/buttons.py38dropdown.js_on_event("button_click", CustomJS(code="console.log('dropdown: click ' + this.toString())"))CODE
HIGHexamples/models/buttons.py39dropdown.js_on_event("menu_item_click", CustomJS(code="console.log('dropdown: ' + this.item, this.toString())"))CODE
HIGHexamples/models/buttons.py42dropdown_disabled.js_on_event("button_click", CustomJS(code="console.log('dropdown(disabled): click ' + this.toString())CODE
HIGHexamples/models/buttons.py43dropdown_disabled.js_on_event("menu_item_click", CustomJS(code="console.log('dropdown(disabled): ' + this.item, this.toSCODE
HIGHexamples/models/buttons.py46dropdown_split.js_on_event("button_click", CustomJS(code="console.log('dropdown(split): click ' + this.toString())"))CODE
HIGHexamples/models/buttons.py47dropdown_split.js_on_event("menu_item_click", CustomJS(code="console.log('dropdown(split): ' + this.item, this.toString(CODE
HIGHexamples/models/buttons.py50checkbox_group.js_on_change('active', CustomJS(code="console.log('checkbox_group: active=' + this.active, this.toString(CODE
HIGHexamples/models/buttons.py53radio_group.js_on_change('active', CustomJS(code="console.log('radio_group: active=' + this.active, this.toString())"))CODE
HIGHexamples/models/buttons.py56checkbox_button_group.js_on_event("button_click", CustomJS(code="console.log('checkbox_button_group: active=' + this.oriCODE
HIGHexamples/models/buttons.py59radio_button_group.js_on_event("button_click", CustomJS(code="console.log('radio_button_group: active=' + this.origin.acCODE
HIGHexamples/interaction/tools/hover_tooltip_advanced.py21x_filter = CustomJS(code="""export default (args, tool, {value: x}) => 20 <= x && x <= 80""")CODE
HIGHexamples/interaction/tools/hover_tooltip_advanced.py22y_filter = CustomJS(code="""export default (args, tool, {value: y}) => 20 <= y && y <= 80""")CODE
HIGH…amples/interaction/widgets/multiple_datetime_picker.py16 console.log("multiple_datetime_picker: value=" + this.value, this.toString())CODE
HIGHexamples/interaction/widgets/radio_button_group.py8 console.log('radio_button_group: active=' + btn.active, this.toString())CODE
HIGHexamples/interaction/widgets/datetime_picker.py11 console.log("datetime_picker: value=" + this.value, this.toString())CODE
HIGHexamples/interaction/widgets/checkbox_button_group.py8 console.log('checkbox_button_group: active=' + btn.active, this.toString())CODE
HIGHexamples/interaction/widgets/time_picker.py6 console.log("time_picker: value=" + this.value, this.toString())CODE
HIGHexamples/interaction/widgets/toggle_button.py6 console.log('toggle: active=' + btn.active, this.toString())CODE
HIGHexamples/interaction/widgets/dateslider.py10 console.log('date_slider: value=' + this.value, this.toString())CODE
HIGHexamples/interaction/widgets/radio_group.py8 console.log('radio_group: active=' + this.origin.active, this.toString())CODE
HIGHexamples/interaction/widgets/date_picker.py11 console.log("date_picker: value=" + this.value, this.toString())CODE
HIGHexamples/interaction/widgets/date_range_picker.py12 console.log("date_range_picker: value=" + this.value, this.toString())CODE
HIGHexamples/interaction/widgets/datetime_range_picker.py12 console.log("datetime_range_picker: value=" + this.value, this.toString())CODE
HIGHexamples/interaction/widgets/multiselect.py8 console.log('multi_select: value=' + this.value, this.toString())CODE
HIGHexamples/interaction/widgets/checkbox_group.py8 console.log('checkbox_group: active=' + this.active, this.toString())CODE
HIGHexamples/interaction/widgets/textinput.py6 console.log('text_input: value=' + this.value, this.toString())CODE
HIGHexamples/interaction/widgets/textareainput.py6 console.log('text_area_input: value=' + this.value, this.toString())CODE
HIGHexamples/interaction/widgets/button.py5button.js_on_event("button_click", CustomJS(code="console.log('button: click!', this.toString())"))CODE
HIGHexamples/interaction/widgets/select_widget.py6 console.log('select: value=' + this.value, this.toString())CODE
HIGHexamples/interaction/widgets/passwordinput.py6 console.log('password_input: value=' + this.value, this.toString())CODE
HIGHexamples/interaction/widgets/multichoice.py8 console.log('multi_choice: value=' + this.value, this.toString())CODE
HIGHexamples/interaction/widgets/range_slider.py6 console.log('range_slider: value=' + this.value, this.toString())CODE
HIGHexamples/interaction/widgets/daterangeslider.py9 console.log('date_range_slider: value=' + this.value, this.toString())CODE
HIGHexamples/interaction/widgets/dropdown.py7dropdown.js_on_event("menu_item_click", CustomJS(code="console.log('dropdown: ' + this.item, this.toString())"))CODE
13 more matches not shown…
Docstring Block Structure68 hits · 340 pts
SeverityFileLineSnippetContext
HIGHsrc/bokeh/palettes.py1510 Generate a new palette as a subset of a given palette. Given an input ``palette``, take ``n`` colors from it by diSTRING
HIGHsrc/bokeh/palettes.py1532 Generate a new palette by combining exactly two input palettes. Given an input ``palette1`` and ``palette2``, takeSTRING
HIGHsrc/bokeh/palettes.py1574 Generate a palette that is a single color with linearly varying alpha. Alpha may vary from low to high or high to STRING
HIGHsrc/bokeh/palettes.py1642 Generate a new palette by interpolating a given palette. Linear interpolation is performed separately on each of tSTRING
HIGHsrc/bokeh/palettes.py1679 Generate a palette of colors from the Magma palette. The full Magma palette that serves as input for deriving new STRING
HIGHsrc/bokeh/palettes.py1708 Generate a palette of colors from the Inferno palette. The full Inferno palette that serves as input for deriving STRING
HIGHsrc/bokeh/palettes.py1737 Generate a palette of colors from the Plasma palette. The full Plasma palette that serves as input for deriving neSTRING
HIGHsrc/bokeh/palettes.py1766 Generate a palette of colors from the Viridis palette. The full Viridis palette that serves as input for deriving STRING
HIGHsrc/bokeh/palettes.py1795 Generate a palette of colors from the Cividis palette. The full Cividis palette that serves as input for deriving STRING
HIGHsrc/bokeh/palettes.py1824 Generate a palette of colors from the Turbo palette. Turbo is described here: https://ai.googleblog.com/2019/STRING
HIGHsrc/bokeh/palettes.py1857 Generate a palette of colors from the Greys palette. The full Greys palette that serves as input for deriving new STRING
HIGHsrc/bokeh/palettes.py1889 Generate a palette of colors or from the Greys palette. The full Greys palette that serves as input for deriving nSTRING
HIGHsrc/bokeh/settings.py195 Convert a string to True or False. If a boolean is passed in, it is returned as-is. Otherwise the function mapSTRING
HIGHsrc/bokeh/settings.py262Convert a string to a Python logging level If a log level is passed in, it is returned as-is. Otherwise the functioSTRING
HIGHsrc/bokeh/settings.py299Convert a string to a validation level If a validation level is passed in, it is returned as-is. Args: STRING
HIGHsrc/bokeh/settings.py323Convert a string to an .ico path Args: value (str): A string value to convert to a .ico path STRING
HIGHsrc/bokeh/settings.py461Return the setting value according to the standard precedence. Args: value (any, optional): STRING
HIGHsrc/bokeh/resources.py126 Report SRI script hashes for a specific version of BokehJS. Bokeh provides `Subresource Integrity`_ hashes for allSTRING
HIGHsrc/bokeh/layouts.py91 Create a row of Bokeh Layout objects. Forces all objects to have the same sizing_mode, which is required for compleSTRING
HIGHsrc/bokeh/layouts.py126 Create a column of Bokeh Layout objects. Forces all objects to have the same sizing_mode, which is required for comSTRING
HIGHsrc/bokeh/layouts.py157 Create a grid-based arrangement of Bokeh Layout objects. Args: children (list of lists of :class:`~bokeh.mSTRING
HIGHsrc/bokeh/layouts.py234 Create a grid of plots rendered on separate canvases. The ``gridplot`` function builds a single toolbar for all thSTRING
HIGHsrc/bokeh/core/enums.py214 Create an |Enumeration| object from a sequence of values. Call ``enumeration`` with a sequence of (unique) stringsSTRING
HIGHsrc/bokeh/core/query.py63 Query a collection of Bokeh models and yield any that match the a selector. Args: objs (Iterable[ModelSTRING
HIGHsrc/bokeh/core/json_encoder.py72 Convert an object or a serialized representation to a JSON string. This function accepts Python-serializable oSTRING
HIGHsrc/bokeh/core/property/descriptors.py275 Implement the getter for the Python `descriptor protocol`_. For instance attribute access, we delegate to the STRING
HIGHsrc/bokeh/core/property/descriptors.py515 Internal implementation of instance attribute access for the ``PropertyDescriptor`` getter. If the valSTRING
HIGHsrc/bokeh/core/property/wrappers.py119 A decorator for mutating methods of property container classes that notifies owners of the property container aboutSTRING
HIGHsrc/bokeh/core/property/bases.py290 Determine whether we can set this property from this value. Validation happens before transform() ArgSTRING
HIGHsrc/bokeh/core/validation/decorators.py101 Decorator to mark a validator method for a Bokeh error condition Args: code_or_name (int, str or Issue) : STRING
HIGHsrc/bokeh/core/validation/decorators.py141 Decorator to mark a validator method for a Bokeh error condition Args: code_or_name (int, str or Issue) : STRING
HIGHsrc/bokeh/embed/standalone.py84 Return JavaScript code and a script tag that can be used to embed Bokeh Plots. The data for the plot is storedSTRING
HIGHsrc/bokeh/embed/standalone.py156 Return HTML components to embed a Bokeh plot. The data for the plot is stored directly in the returned HTML. ASTRING
HIGHsrc/bokeh/util/strings.py64 Join together sequences of strings into English-friendly phrases using the conjunction ``or`` when appropriate. STRING
HIGHsrc/bokeh/util/dependencies.py70 Attempt to import a required dependency. Raises a RuntimeError if the requested module is not available. ArgsSTRING
HIGHsrc/bokeh/io/util.py74 Generate a default filename with a given extension, attempting to use the filename of the currently running processSTRING
HIGHsrc/bokeh/io/notebook.py175 Install a new notebook display hook. Bokeh comes with support for Jupyter notebooks built-in. However, there are STRING
HIGHsrc/bokeh/io/notebook.py255 Update Bokeh plots in a Jupyter notebook output cells with new data or property values. When working inside thSTRING
HIGHsrc/bokeh/io/notebook.py348 Run an installed notebook hook with supplied arguments. Args: notebook_type (str) : Name of anSTRING
HIGHsrc/bokeh/server/server.py554 Create a ``Server`` instance, applying any relevant ``Server`` settings from the global settings module, if theSTRING
HIGHsrc/bokeh/server/util.py95 This allowlist can be used to restrict websocket or other connections to only those explicitly originating froSTRING
HIGHsrc/bokeh/server/util.py158 Match a host string against a pattern Args: host (str) A hostname to compare to the given pattSTRING
HIGHsrc/bokeh/models/sources.py466 Efficiently update data source columns with new append-only data. In cases where it is necessary to update datSTRING
HIGHsrc/bokeh/models/sources.py509 Internal implementation to efficiently update data source columns with new append-only data. The internal impleSTRING
HIGHsrc/bokeh/models/sources.py627 Efficiently update data source columns at specific locations If it is only necessary to update a small subset STRING
HIGHsrc/bokeh/models/plots.py125 Query this object and all of its references for objects that match the given selector. There are a fewSTRING
HIGHsrc/bokeh/models/widgets/tables.py900 Create a simple table from a pandas dataframe, dictionary or ColumnDataSource. Args: data (DataFraSTRING
HIGHsrc/bokeh/document/document.py678 Remove a callback added earlier with ``add_next_tick_callback``. Args: callback_obj : a value retuSTRING
HIGHsrc/bokeh/document/document.py708 Remove a callback added earlier with ``add_periodic_callback`` Args: callback_obj : a value returnSTRING
HIGHsrc/bokeh/document/document.py754 Remove a callback added earlier with ``add_timeout_callback``. Args: callback_obj : a value returnSTRING
HIGHsrc/bokeh/document/callbacks.py168 Internal implementation for adding session callbacks. Args: callback_obj (SessionCallback) : STRING
HIGHsrc/bokeh/plotting/graph.py45 Generate a ``GraphRenderer`` from a ``networkx.Graph`` object and networkx layout function. Any keywordSTRING
HIGHsrc/bokeh/plotting/_renderer.py153 Applies basic cascading logic to deduce properties for a glyph. Args: glyphclass : the typSTRING
HIGHsrc/bokeh/plotting/_figure.py385 Generate multiple ``HArea`` renderers for levels stacked left to right. Args: stackers (seSTRING
HIGHsrc/bokeh/plotting/_figure.py431 Generate multiple ``HBar`` renderers for levels stacked left to right. Args: stackers (seq[str]) :STRING
HIGHsrc/bokeh/plotting/_figure.py477 Generate multiple ``Line`` renderers for lines stacked vertically or horizontally. Args: sSTRING
HIGHsrc/bokeh/plotting/_figure.py527 Generate multiple ``Line`` renderers for lines stacked horizontally. Args: stackers (seq[str]) : aSTRING
HIGHsrc/bokeh/plotting/_figure.py570 Generate multiple ``VArea`` renderers for levels stacked bottom to top. Args: stackers (seSTRING
HIGHsrc/bokeh/plotting/_figure.py616 Generate multiple ``VBar`` renderers for levels stacked bottom to top. Args: stackers (seqSTRING
HIGHsrc/bokeh/plotting/_figure.py662 Generate multiple ``Line`` renderers for lines stacked vertically. Args: stackers (seq[str]) : a lSTRING
8 more matches not shown…
Cross-File Repetition64 hits · 320 pts
SeverityFileLineSnippetContext
HIGHsrc/bokeh/core/property/descriptor_factory.py0return a list of ``propertydescriptor`` instances to install on a class, in order to delegate attribute access to this pSTRING
HIGHsrc/bokeh/core/property/container.py0return a list of ``propertydescriptor`` instances to install on a class, in order to delegate attribute access to this pSTRING
HIGHsrc/bokeh/core/property/dataspec.py0return a list of ``propertydescriptor`` instances to install on a class, in order to delegate attribute access to this pSTRING
HIGHsrc/bokeh/core/property/bases.py0return a list of ``propertydescriptor`` instances to install on a class, in order to delegate attribute access to this pSTRING
HIGHsrc/bokeh/core/property/constraints.py0clone this property and allow to override ``default`` and ``help``.STRING
HIGHsrc/bokeh/core/property/enum.py0clone this property and allow to override ``default`` and ``help``.STRING
HIGHsrc/bokeh/core/property/bases.py0clone this property and allow to override ``default`` and ``help``.STRING
HIGHsrc/bokeh/server/views/autoload_js_handler.py0provide a request handler that returns a page displaying a document.STRING
HIGHsrc/bokeh/server/views/static_handler.py0provide a request handler that returns a page displaying a document.STRING
HIGHsrc/bokeh/server/views/doc_handler.py0provide a request handler that returns a page displaying a document.STRING
HIGHsrc/bokeh/server/views/session_handler.py0implements a custom tornado handler for document display pageSTRING
HIGHsrc/bokeh/server/views/doc_handler.py0implements a custom tornado handler for document display pageSTRING
HIGHsrc/bokeh/server/views/metadata_handler.py0implements a custom tornado handler for document display pageSTRING
HIGHsrc/bokeh/models/transforms.py0a mapping of names to python objects. in particular those can be bokeh's models. these objects are made available to theSTRING
HIGHsrc/bokeh/models/tickers.py0a mapping of names to python objects. in particular those can be bokeh's models. these objects are made available to theSTRING
HIGHsrc/bokeh/models/formatters.py0a mapping of names to python objects. in particular those can be bokeh's models. these objects are made available to theSTRING
HIGHsrc/bokeh/models/callbacks.py0a mapping of names to python objects. in particular those can be bokeh's models. these objects are made available to theSTRING
HIGHsrc/bokeh/models/filters.py0a mapping of names to python objects. in particular those can be bokeh's models. these objects are made available to theSTRING
HIGHsrc/bokeh/models/expressions.py0filter data sources with a custom defined javascript function. .. warning:: the explicit purpose of this bokeh model is STRING
HIGHsrc/bokeh/models/callbacks.py0filter data sources with a custom defined javascript function. .. warning:: the explicit purpose of this bokeh model is STRING
HIGHsrc/bokeh/models/filters.py0filter data sources with a custom defined javascript function. .. warning:: the explicit purpose of this bokeh model is STRING
HIGHsrc/bokeh/models/glyphs.py0the angles to rotate the text, as measured from the horizontal.STRING
HIGHsrc/bokeh/models/annotations/labels.py0the angles to rotate the text, as measured from the horizontal.STRING
HIGHsrc/bokeh/models/annotations/html/labels.py0the angles to rotate the text, as measured from the horizontal.STRING
HIGHsrc/bokeh/models/glyphs.py0offset values to apply to the y-coordinates. this is useful, for instance, if it is desired to "float" text a fixed distSTRING
HIGHsrc/bokeh/models/annotations/labels.py0offset values to apply to the y-coordinates. this is useful, for instance, if it is desired to "float" text a fixed distSTRING
HIGHsrc/bokeh/models/annotations/html/labels.py0offset values to apply to the y-coordinates. this is useful, for instance, if it is desired to "float" text a fixed distSTRING
HIGHsrc/bokeh/models/glyphs.py0extra space between the text of a label and its bounding box (border). .. note:: this property is experimental and may cSTRING
HIGHsrc/bokeh/models/annotations/labels.py0extra space between the text of a label and its bounding box (border). .. note:: this property is experimental and may cSTRING
HIGHsrc/bokeh/models/annotations/html/labels.py0extra space between the text of a label and its bounding box (border). .. note:: this property is experimental and may cSTRING
HIGHsrc/bokeh/models/glyphs.py0allows label's box to have rounded corners. for the best results, it should be used in combination with ``padding``. .. STRING
HIGHsrc/bokeh/models/annotations/labels.py0allows label's box to have rounded corners. for the best results, it should be used in combination with ``padding``. .. STRING
HIGHsrc/bokeh/models/annotations/html/labels.py0allows label's box to have rounded corners. for the best results, it should be used in combination with ``padding``. .. STRING
HIGHsrc/bokeh/models/annotations/labels.py0the unit type for the ``xs`` attribute. interpreted as |data units| by default.STRING
HIGHsrc/bokeh/models/annotations/geometry.py0the unit type for the ``xs`` attribute. interpreted as |data units| by default.STRING
HIGHsrc/bokeh/models/annotations/html/labels.py0the unit type for the ``xs`` attribute. interpreted as |data units| by default.STRING
HIGHsrc/bokeh/models/annotations/labels.py0the unit type for the ``ys`` attribute. interpreted as |data units| by default.STRING
HIGHsrc/bokeh/models/annotations/geometry.py0the unit type for the ``ys`` attribute. interpreted as |data units| by default.STRING
HIGHsrc/bokeh/models/annotations/html/labels.py0the unit type for the ``ys`` attribute. interpreted as |data units| by default.STRING
HIGHsrc/bokeh/document/models.py0args: document (document): a document to manage modules for a weak reference to the document will be retainedSTRING
HIGHsrc/bokeh/document/callbacks.py0args: document (document): a document to manage modules for a weak reference to the document will be retainedSTRING
HIGHsrc/bokeh/document/modules.py0args: document (document): a document to manage modules for a weak reference to the document will be retainedSTRING
HIGHsrc/bokeh/model/util.py0provide a base class for all objects (called bokeh models) that can go in a bokeh |document|.STRING
HIGHsrc/bokeh/model/docs.py0provide a base class for all objects (called bokeh models) that can go in a bokeh |document|.STRING
HIGHsrc/bokeh/model/model.py0provide a base class for all objects (called bokeh models) that can go in a bokeh |document|.STRING
HIGHsrc/bokeh/model/data_model.py0provide a base class for all objects (called bokeh models) that can go in a bokeh |document|.STRING
HIGHsrc/bokeh/application/application.py0processes incoming http request returning a dictionary of additional data to add to the session_context. args: request: STRING
HIGHsrc/bokeh/application/handlers/handler.py0processes incoming http request returning a dictionary of additional data to add to the session_context. args: request: STRING
HIGHsrc/bokeh/application/handlers/directory.py0processes incoming http request returning a dictionary of additional data to add to the session_context. args: request: STRING
HIGHsrc/bokeh/application/handlers/request_handler.py0processes incoming http request returning a dictionary of additional data to add to the session_context. args: request: STRING
HIGH…c/bokeh/application/handlers/server_request_handler.py0bokeh application handler to look for bokeh server lifecycle callbacks in a specified python module.STRING
HIGHsrc/bokeh/application/handlers/request_handler.py0bokeh application handler to look for bokeh server lifecycle callbacks in a specified python module.STRING
HIGHsrc/bokeh/application/handlers/server_lifecycle.py0bokeh application handler to look for bokeh server lifecycle callbacks in a specified python module.STRING
HIGHsrc/bokeh/application/handlers/lifecycle.py0bokeh application handler to look for bokeh server lifecycle callbacks in a specified python module.STRING
HIGH…c/bokeh/application/handlers/server_request_handler.py0if the handler fails, may contain a related error message.STRING
HIGHsrc/bokeh/application/handlers/handler.py0if the handler fails, may contain a related error message.STRING
HIGHsrc/bokeh/application/handlers/server_lifecycle.py0if the handler fails, may contain a related error message.STRING
HIGHsrc/bokeh/application/handlers/code.py0if the handler fails, may contain a related error message.STRING
HIGHsrc/bokeh/application/handlers/directory.py0if the handler fails, may contain a related error message.STRING
HIGH…c/bokeh/application/handlers/server_request_handler.py0if the handler fails, may contain a traceback or other details.STRING
4 more matches not shown…
Cross-Language Confusion (JS/TS)27 hits · 152 pts
SeverityFileLineSnippetContext
HIGHbokehjs/make/task.ts68 print(`${chalk.red("failed:")} ${msg}`)CODE
HIGHbokehjs/src/compiler/build.ts72 print(`${cyan("npm install")} failed with exit code ${red(`${status}`)}.`)CODE
HIGHbokehjs/src/compiler/build.ts78 print(`Using nodejs ${magenta(node_version)} and npm ${magenta(npm_version(base_dir))}`)CODE
HIGHbokehjs/src/compiler/build.ts79 print(`Working directory: ${cyan(base_dir)}`)CODE
HIGHbokehjs/src/compiler/build.ts218 print(`Created empty ${cyan("index.ts")}. This is the entry point of your extension.`)CODE
HIGHbokehjs/src/compiler/build.ts221 print(`You can build your extension with ${magenta(`bokeh build ${rel}`)}`)CODE
HIGHbokehjs/src/compiler/build.ts223 print("All done.")CODE
HIGHbokehjs/src/compiler/build.ts264 print("Using different version of bokeh, rebuilding from scratch.")CODE
HIGHbokehjs/src/compiler/build.ts274 print(`${cyan(package_json_path)} doesn't exist. Not a npm package.`)CODE
HIGHbokehjs/src/compiler/build.ts277 print(`Running ${cyan("npm install")}.`)CODE
HIGHbokehjs/src/compiler/build.ts282 print(`${result} Running ${cyan("npm install")}.`)CODE
HIGHbokehjs/src/compiler/build.ts359 print(report_diagnostics(tsconfig2.diagnostics).text)CODE
HIGHbokehjs/src/compiler/build.ts367 print(`Compiling TypeScript (${magenta(count_files(files))})`)CODE
HIGHbokehjs/src/compiler/build.ts374 print(report_diagnostics(tsoutput.diagnostics).text)CODE
HIGHbokehjs/src/compiler/build.ts51 print(` ${file}`)CODE
HIGHbokehjs/src/compiler/build.ts143 print("Already a bokeh extension. Quitting.")CODE
HIGHbokehjs/src/compiler/build.ts149 print(`Wrote ${cyan(path)}`)CODE
HIGHbokehjs/src/compiler/build.ts188 print(`${red("Invalid input")}. Assuming no.`)CODE
HIGHbokehjs/src/compiler/build.ts246 print("Not a bokeh extension. Quitting.")CODE
HIGHbokehjs/src/compiler/build.ts305 print(`TypeScript lib: ${cyan(tslib_dir)}`)CODE
HIGHbokehjs/src/compiler/build.ts309 print(`Using ${cyan(tsconfig_path)}`)CODE
HIGHbokehjs/src/compiler/build.ts330 print(report_diagnostics(tsconfig.diagnostics).text)CODE
HIGHbokehjs/src/compiler/build.ts346 print(`Compiling styles (${magenta(count_files(styles))})`)CODE
HIGHbokehjs/src/compiler/build.ts397 print("Linking modules")CODE
HIGHbokehjs/src/compiler/build.ts418 print(`Failed to license text from ${magenta(license_path)}`)CODE
HIGHbokehjs/src/compiler/build.ts460 print(`Output written to ${cyan(dist_dir)}`)CODE
HIGHbokehjs/src/compiler/build.ts461 print("All done.")CODE
Hallucination Indicators12 hits · 150 pts
SeverityFileLineSnippetContext
CRITICALbokehjs/src/lib/models/annotations/toolbar_panel.ts48 this.plot_view.canvas.ui_event_bus.focus.connect(() => {CODE
CRITICALbokehjs/src/lib/models/annotations/toolbar_panel.ts51 this.plot_view.canvas.ui_event_bus.blur.connect(() => {CODE
CRITICALbokehjs/src/lib/models/graphs/graph_hit_test_policy.ts94 graph_view.edge_view.model.data_source.inspect.emit([graph_view.edge_view.model, {geometry}])CODE
CRITICALbokehjs/src/lib/models/graphs/graph_hit_test_policy.ts142 graph_view.node_view.model.data_source.inspect.emit([graph_view.node_view.model, {geometry}])CODE
CRITICALbokehjs/src/lib/models/graphs/graph_hit_test_policy.ts221 const node_inspection = graph_view.node_view.model.data_source.selection_manager.get_or_create_inspector(graph_view.CODE
CRITICALbokehjs/src/lib/models/graphs/graph_hit_test_policy.ts225 const edge_inspection = graph_view.edge_view.model.data_source.selection_manager.get_or_create_inspector(graph_view.CODE
CRITICALbokehjs/src/lib/models/graphs/graph_hit_test_policy.ts231 graph_view.node_view.model.data_source.inspect.emit([graph_view.node_view.model, {geometry}])CODE
CRITICALbokehjs/src/lib/models/graphs/graph_hit_test_policy.ts301 const edge_inspection = graph_view.edge_view.model.data_source.selection_manager.get_or_create_inspector(graph_view.CODE
CRITICALbokehjs/src/lib/models/graphs/graph_hit_test_policy.ts305 const node_inspection = graph_view.node_view.model.data_source.selection_manager.get_or_create_inspector(graph_view.CODE
CRITICALbokehjs/src/lib/models/graphs/graph_hit_test_policy.ts311 graph_view.edge_view.model.data_source.inspect.emit([graph_view.edge_view.model, {geometry}])CODE
CRITICALbokehjs/src/lib/models/graphs/graph_hit_test_policy.ts394 const node_inspection = graph_view.node_view.model.data_source.selection_manager.get_or_create_inspector(graph_view.CODE
CRITICALbokehjs/src/lib/models/graphs/graph_hit_test_policy.ts404 graph_view.node_view.model.data_source.inspect.emit([graph_view.node_view.model, {geometry}])CODE
Excessive Try-Catch Wrapping64 hits · 63 pts
SeverityFileLineSnippetContext
LOWsetup.py130 except Exception:CODE
LOWtools/release/build.py173 except Exception as e:CODE
LOWtools/release/credentials.py58 except Exception as e:CODE
LOWtools/release/remote.py72 except Exception as e:CODE
LOW…ts/unit/bokeh/core/property/test_wrappers__property.py534 except Exception:CODE
LOW…ts/unit/bokeh/core/property/test_wrappers__property.py539 except Exception:CODE
LOWtests/unit/bokeh/model/test_model.py228 except Exception:CODE
MEDIUMtests/unit/bokeh/command/subcommands/test_serve.py434 print("An error occurred: %s", e)CODE
LOWtests/unit/bokeh/command/subcommands/test_serve.py431 except Exception as e:CODE
LOWtests/unit/bokeh/command/subcommands/test_serve.py439 except Exception:CODE
LOWtests/unit/bokeh/command/subcommands/test_serve.py532 except Exception:CODE
LOWtests/support/util/filesystem.py67 except Exception as e:CODE
LOWexamples/server/app/taylor.py51 except Exception as exception:CODE
MEDIUMexamples/server/app/taylor.py48def update():CODE
LOWexamples/server/app/server_auth/auth.py30 except Exception:CODE
MEDIUMexamples/server/app/server_auth/auth.py27def get(self):CODE
LOWexamples/server/app/spectrogram/audio.py37 except Exception:CODE
LOWsrc/bokeh/settings.py243 except Exception:CODE
LOWsrc/bokeh/settings.py949 except Exception:STRING
LOWsrc/bokeh/settings.py929 except Exception:STRING
LOWsrc/bokeh/resources.py170 except Exception as e:CODE
LOWsrc/bokeh/core/property/datetime.py77 except Exception:CODE
LOWsrc/bokeh/core/property/datetime.py117 except Exception:CODE
LOWsrc/bokeh/sphinxext/bokeh_plot.py180 except Exception as e:CODE
LOWsrc/bokeh/sphinxext/bokeh_plot.py241 except Exception as e:CODE
LOWsrc/bokeh/sphinxext/_internal/bokeh_palette.py137 except Exception as e:CODE
LOWsrc/bokeh/util/asyncio.py137 except Exception:CODE
LOWsrc/bokeh/util/browser.py128 except Exception:CODE
LOWsrc/bokeh/util/info.py72 except Exception:CODE
LOWsrc/bokeh/util/dependencies.py62 except Exception:CODE
LOWsrc/bokeh/io/browser.py426 except Exception:CODE
LOWsrc/bokeh/io/browser.py206 except Exception:CODE
LOWsrc/bokeh/io/browser.py213 except Exception:CODE
LOWsrc/bokeh/io/browser.py242 except Exception as e:CODE
LOWsrc/bokeh/io/browser.py275 except Exception as e:CODE
LOWsrc/bokeh/io/browser.py287 except Exception:CODE
LOWsrc/bokeh/io/notebook.py113 except Exception as e:CODE
LOWsrc/bokeh/io/notebook.py396 except Exception as e:CODE
LOWsrc/bokeh/io/webdriver.py275 except Exception:CODE
LOWsrc/bokeh/io/webdriver.py304 except Exception:STRING
LOWsrc/bokeh/io/webdriver.py310 except Exception:STRING
LOWsrc/bokeh/server/server.py525 except Exception:CODE
LOWsrc/bokeh/server/asgi.py180 except Exception as error:CODE
LOWsrc/bokeh/server/asgi.py452 except Exception:CODE
LOWsrc/bokeh/server/connection.py90 except Exception:CODE
MEDIUMsrc/bokeh/server/contexts.py201def run_load_hook(self) -> None:CODE
MEDIUMsrc/bokeh/server/contexts.py207def run_unload_hook(self) -> None:CODE
LOWsrc/bokeh/server/contexts.py204 except Exception as e:CODE
LOWsrc/bokeh/server/contexts.py210 except Exception as e:CODE
LOWsrc/bokeh/server/contexts.py270 except Exception as error:CODE
LOWsrc/bokeh/server/contexts.py303 except Exception as e:CODE
LOWsrc/bokeh/server/contexts.py363 except Exception as e:CODE
LOWsrc/bokeh/server/views/ws.py167 except Exception as e:CODE
LOWsrc/bokeh/server/views/ws.py248 except Exception as e:CODE
LOWsrc/bokeh/server/views/ws.py265 except Exception as e:CODE
LOWsrc/bokeh/server/views/static_handler.py140 except Exception:CODE
LOWsrc/bokeh/models/plots.py987 except Exception:STRING
LOWsrc/bokeh/document/locking.py235 except Exception:CODE
LOWsrc/bokeh/command/bootstrap.py114 except Exception as e:CODE
LOWsrc/bokeh/application/handlers/code_runner.py232 except Exception as e:CODE
4 more matches not shown…
Deep Nesting78 hits · 61 pts
SeverityFileLineSnippetContext
LOWtools/milestone.py345CODE
LOWtools/backport/updating.py180CODE
LOWtools/release/build.py140CODE
LOWtools/release/build.py181CODE
LOWtools/release/remote.py34CODE
LOWtools/release/checks.py113CODE
LOWtools/release/checks.py133CODE
LOWtests/test_examples.py172CODE
LOWtests/unit/bokeh/test_events.py63CODE
LOWtests/unit/bokeh/command/subcommands/test_serve.py512CODE
LOWtests/integration/server_proxy/test_proxy.py44CODE
LOWtests/integration/server_e2e/test_examples.py63CODE
LOWtests/support/util/filesystem.py79CODE
LOWtests/support/util/examples.py152CODE
LOWtests/support/util/compare.py47CODE
LOWexamples/server/app/image_blur.py33CODE
LOWexamples/server/app/ohlc/main.py67CODE
LOWexamples/server/api/asgi/framework_free.py40CODE
LOWexamples/server/api/asgi/streamlit_particles/ui.py58CODE
LOWsrc/bokeh/layouts.py223CODE
LOWsrc/bokeh/layouts.py415CODE
LOWsrc/bokeh/layouts.py607CODE
LOWsrc/bokeh/layouts.py681CODE
LOWsrc/bokeh/layouts.py485CODE
LOWsrc/bokeh/layouts.py500CODE
LOWsrc/bokeh/core/query.py108CODE
LOWsrc/bokeh/core/has_props.py657CODE
LOWsrc/bokeh/core/serialization.py263CODE
LOWsrc/bokeh/core/property/descriptors.py807CODE
LOWsrc/bokeh/core/property/wrappers.py449CODE
LOWsrc/bokeh/core/property/wrappers.py522CODE
LOWsrc/bokeh/core/property/struct.py85CODE
LOWsrc/bokeh/core/property/bases.py339CODE
LOWsrc/bokeh/sphinxext/_internal/bokeh_model.py187CODE
LOWsrc/bokeh/sphinxext/_internal/bokeh_model.py217CODE
LOWsrc/bokeh/sphinxext/_internal/bokeh_prop.py175CODE
LOWsrc/bokeh/sphinxext/_internal/bokeh_sampledata_xref.py127CODE
LOWsrc/bokeh/sphinxext/_internal/bokeh_sampledata_xref.py169CODE
LOWsrc/bokeh/sphinxext/_internal/bokeh_example_metadata.py123CODE
LOWsrc/bokeh/embed/bundle.py149CODE
LOWsrc/bokeh/embed/bundle.py222CODE
LOWsrc/bokeh/embed/bundle.py271CODE
LOWsrc/bokeh/embed/bundle.py136CODE
LOWsrc/bokeh/embed/util.py85CODE
LOWsrc/bokeh/util/package.py42CODE
LOWsrc/bokeh/util/compiler.py532CODE
LOWsrc/bokeh/util/compiler.py550CODE
LOWsrc/bokeh/util/asyncio.py72CODE
LOWsrc/bokeh/util/asyncio.py100CODE
LOWsrc/bokeh/util/asyncio.py229CODE
LOWsrc/bokeh/util/serialization.py232CODE
LOWsrc/bokeh/server/util.py94CODE
LOWsrc/bokeh/server/asgi.py70CODE
LOWsrc/bokeh/server/asgi.py190CODE
LOWsrc/bokeh/server/asgi.py383CODE
LOWsrc/bokeh/server/core.py96CODE
LOWsrc/bokeh/server/connection.py76CODE
LOWsrc/bokeh/server/tornado.py259CODE
LOWsrc/bokeh/server/callbacks.py209CODE
LOWsrc/bokeh/models/sources.py226CODE
18 more matches not shown…
AI Slop Vocabulary8 hits · 19 pts
SeverityFileLineSnippetContext
MEDIUMtests/examples.yaml28 "spectrogram", # Custom models not working in CI test harnessCODE
MEDIUM…s/src/lib/models/formatters/datetime_tick_formatter.ts321 // For repeating labels only utilize the first entryCOMMENT
MEDIUM…/src/lib/models/formatters/timedelta_tick_formatter.ts294 // For repeating labels only utilize the first entryCOMMENT
MEDIUM.github/workflows/bokeh-ci.yml256 # and included examples can utilize newest available syntax and standard APIs.COMMENT
MEDIUM.github/workflows/bokeh-ci-full.yml18 cancel-in-progress: false # Don't cancel comprehensive testsCODE
LOWsrc/bokeh/sphinxext/_internal/util.py42 # if BOKEH_DOCS_CDN is unset just use default CDN resourcesCOMMENT
LOWsrc/bokeh/sphinxext/_internal/bokeh_example_metadata.py143 # just use class role as-is for anything elseCOMMENT
LOWsrc/bokeh/embed/util.py169 # we are using all the roots of a single doc, just use doc as-isCOMMENT
Modern Structural Boilerplate25 hits · 16 pts
SeverityFileLineSnippetContext
LOWtools/release/build.py141 def update_package_json(content: dict[str, Any]) -> None:CODE
LOWtools/release/build.py144 def update_package_lock_json(content: dict[str, Any]) -> None:CODE
LOWtests/integration/server_e2e/test_examples.py141def _set_fourier_terms(target: Any, terms: int) -> None:CODE
LOWexamples/server/api/asgi/fourier_studio.py157 def update_data() -> None:STRING
LOWexamples/server/api/asgi/fastapi_shared_data.py92 def update_document(doc: Document) -> None:CODE
LOW…ples/server/api/asgi/streamlit_particles/simulation.py203 def update_presentation(state: Snapshot) -> None:CODE
LOWsrc/bokeh/settings.py491 def set_value(self, value: str | T) -> None:CODE
LOWsrc/bokeh/core/has_props.py484 def set_from_json(self, name: str, value: Any, *, setter: Setter | None = None) -> None:CODE
LOWsrc/bokeh/core/property/descriptors.py424 def set_from_json(self, obj: HasProps, value: Any, *, setter: Setter | None = None) -> None:STRING
LOWsrc/bokeh/core/property/descriptors.py573 def _set_value(self, obj: HasProps, value: Any) -> None:STRING
LOWsrc/bokeh/core/property/descriptors.py807 def set_from_json(self, obj: HasProps, value: Any, *, setter: Setter | None = None) -> None:STRING
LOWsrc/bokeh/core/property/descriptors.py909 def set_from_json(self, obj: HasProps, value: Any, *, models: Any = None, setter: Setter | None = None) -> None:STRING
LOWsrc/bokeh/embed/util.py437def _set_temp_theme(doc: Document, apply_theme: ThemeSource | None) -> None:STRING
LOWsrc/bokeh/util/callback_manager.py117 def _update_event_callbacks(self) -> None:CODE
LOWsrc/bokeh/util/compiler.py280def set_cache_hook(hook: Callable[[CustomModel, Implementation], AttrDict | None]) -> None:CODE
LOWsrc/bokeh/io/doc.py90def set_curdoc(doc: Document) -> None:CODE
LOWsrc/bokeh/server/contexts.py105 def _set_session(self, session: ServerSession) -> None:CODE
LOWsrc/bokeh/server/views/autoload_js_handler.py67 def set_default_headers(self) -> None:CODE
LOWsrc/bokeh/models/layouts.py286 def _set_background(self, color: ColorLike) -> None:STRING
LOWsrc/bokeh/models/renderers/contour_renderer.py73 def set_data(self, data: ContourData) -> None:STRING
LOWsrc/bokeh/document/models.py257 def update_name(self, model: Model, old_name: str | None, new_name: str | None) -> None:CODE
LOWsrc/bokeh/document/document.py819 def set_select(self, selector: SelectorType | type[Model], updates: dict[str, Any]) -> None:STRING
LOWsrc/bokeh/document/document.py840 def set_title(self, title: str, setter: Setter | None = None) -> None:STRING
LOWsrc/bokeh/document/document.py933 def _set_config(self, config: DocumentConfig) -> None:STRING
LOWsrc/bokeh/model/model.py542 def set_select(self, selector: type[Model] | SelectorType, updates: dict[str, Any]) -> None:STRING
TODO Padding6 hits · 8 pts
SeverityFileLineSnippetContext
LOWbokehjs/src/lib/core/util/svg.ts363 globalCompositeOperation: GlobalCompositeOperation // TODO: implementCODE
LOWbokehjs/src/lib/core/util/svg.ts370 filter: string // TODO: implementCODE
LOWbokehjs/src/lib/core/util/svg.ts371 imageSmoothingEnabled: boolean // TODO: implementCODE
LOWbokehjs/src/lib/core/util/svg.ts372 imageSmoothingQuality: ImageSmoothingQuality // TODO: implementCODE
LOWbokehjs/src/lib/core/serialization/deserializer.ts149 this.error(`can't resolve named symbol '${obj.name}'`) // TODO: implement symbol resolutionCODE
LOWsrc/bokeh/core/serialization.py595 self.error(f"can't resolve named symbol '{name}'") # TODO: implement symbol resolutionCODE
Self-Referential Comments2 hits · 8 pts
SeverityFileLineSnippetContext
MEDIUMtests/unit/bokeh/test_typing.py10# This file is meant only for type-checking with mypy. Thus "test" functionsCOMMENT
MEDIUMexamples/models/dateaxis.py15# Create an array of synthetic times, starting at the current time, and extending 24hrsCOMMENT
AI Structural Patterns8 hits · 6 pts
SeverityFileLineSnippetContext
LOWsrc/bokeh/events.py650CODE
LOWsrc/bokeh/resources.py310CODE
LOWsrc/bokeh/core/property/datetime.py169CODE
LOWsrc/bokeh/io/export.py75CODE
LOWsrc/bokeh/io/export.py314CODE
LOWsrc/bokeh/server/server.py537CODE
LOWsrc/bokeh/server/core.py172CODE
LOWsrc/bokeh/server/tornado.py259CODE
Overly Generic Function Names5 hits · 4 pts
SeverityFileLineSnippetContext
LOWtools/milestone.py147 def helper(cursor: str | None = None) -> int | None:CODE
LOWtools/milestone.py264 def helper(kind: MilestoneKind, cursor: str | None = None) -> None:STRING
LOWtests/support/plugins/bokeh_server.py83 def helper() -> Any:CODE
LOWtests/support/plugins/jupyter_notebook.py148 def helper() -> Any:STRING
LOWexamples/server/app/gapminder/data.py4def process_data():CODE
Fake / Example Data3 hits · 3 pts
SeverityFileLineSnippetContext
LOWbokehjs/test/unit/models/sources/ajax_data_source.ts177 const source = new AjaxDataSource({data_url: "/ajax/dummy_data", polling_interval: 100, if_modified: true})CODE
LOWbokehjs/test/devtools/server.ts93app.post("/ajax/dummy_data", async (_req, res) => {CODE
LOWbokehjs/src/lib/core/dom.ts198 placeholder: HTMLInputElement["placeholder"]CODE
Redundant / Tautological Comments2 hits · 3 pts
SeverityFileLineSnippetContext
LOWexamples/interaction/tools/toolbar_autohide.py17# Set autohide to true to only show the toolbar when mouse is over plotCOMMENT
LOW.github/workflows/bokeh-ci-full.yml488 # Check if any dependency jobs were cancelledCOMMENT