AI Slop Code RIsk Monitor

HumanSignal/label-studio

Label Studio is a multi-type data labeling and annotation tool with standardized output format

6.1 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for HumanSignal/label-studio, a TypeScript project with 28,437 GitHub stars. SynthScan examined 733,842 lines of code across 4041 source files, recording 2861 pattern matches distributed across 25 syntactic categories. The legacy adjusted pattern signal is 6.1 (Moderate pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

6.1
Adjusted Signal
6.1
Raw Pattern Score
100%
Time Factor
2026-10-09
Last Push
28.4K
Stars
TypeScript
Language
733.8K
Lines of Code
4.0K
Files
2.9K
Pattern Hits
2026-10-12
Scan Date
0.07
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 15.2/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 2156 finding(s).

Hallucinated Dependency & Supply Chain Risk 3.8/100 · LOW

Are imports declared and package/API names verified? 158 finding(s).

Agent Over-Engineering Ratio 19.7/100 · LOW

Are wrappers, guards, and repeated structures necessary? 2291 finding(s).

PR Review Velocity Impact 27.0/100 · MEDIUM

Which changes need focused human review? 2861 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 26HIGH 253MEDIUM 127LOW 2455

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 2861 distinct pattern matches across 25 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hyper-Verbose Identifiers1736 hits · 1732 pts
SeverityFileLineSnippetContext
LOWlabel_studio/conftest.py15def clear_current_context_after_test():CODE
LOWlabel_studio/server.py58def _apply_database_migrations():CODE
LOWlabel_studio/organizations/models.py18def _workforce_closure_blocked(user):CODE
LOWlabel_studio/organizations/models.py201 def projects_sorted_by_created_at(self):CODE
LOWlabel_studio/organizations/models.py212 def per_project_invited_users(self):CODE
LOWlabel_studio/organizations/serializers.py61 def get_contributed_to_projects(self, user) -> list[ProjectInfo] | None:CODE
LOWlabel_studio/organizations/serializers.py86 def get_contributed_to_projects(self, member) -> list[ProjectInfo] | None:CODE
LOWlabel_studio/organizations/serializers.py103 def get_contributed_projects_count(self, member) -> int:CODE
LOWlabel_studio/organizations/serializers.py121 def get_contributed_to_projects(self, member) -> list[ProjectInfo] | None:CODE
LOWlabel_studio/organizations/api.py140 def _get_created_projects_map(self):STRING
LOWlabel_studio/organizations/api.py158 def _get_contributed_to_projects_map(self):STRING
LOWlabel_studio/organizations/tests/factories.py19 def created_by_active_organization(self, create, extracted, **kwargs):CODE
LOWlabel_studio/organizations/tests/test_models.py13 def test_soft_delete_preserves_avatar_and_other_org_task_locks(self):CODE
LOWlabel_studio/organizations/tests/test_models.py39 def test_soft_delete_clears_avatar_and_org_task_locks_for_last_membership(self):CODE
LOWlabel_studio/organizations/tests/test_api.py22 def test_list_organization_members(self):CODE
LOWlabel_studio/organizations/tests/test_api.py47 def test_list_with_contributed_to_projects(self):CODE
LOWlabel_studio/organizations/tests/test_api.py138 def test_member_cannot_take_ownership(self):CODE
LOWlabel_studio/organizations/tests/test_api.py151 def test_member_cannot_allow_unsafe_instruction_tags(self):CODE
LOWlabel_studio/organizations/tests/test_api.py164 def test_title_and_contact_info_stay_writable(self):CODE
LOW…bel_studio/session_policy/tests/test_session_policy.py9def test_session_timeout_policy():CODE
LOWlabel_studio/tasks/functions.py27def bulk_create_annotations_with_side_effects(CODE
LOWlabel_studio/tasks/functions.py135def redis_job_for_calculation(org_id, from_scratch, migration_name='0018_manual_migrate_counters'):CODE
LOWlabel_studio/tasks/functions.py223def _fill_annotations_project(project_id):CODE
LOWlabel_studio/tasks/functions.py237def _fill_predictions_project(migration_name='0043_auto_20230825'):CODE
LOWlabel_studio/tasks/functions.py324def bulk_update_is_labeled_by_overlap(tasks_ids, project):CODE
LOW⚡label_studio/tasks/mixins.py17 def post_process_bulk_update_stats(cls, tasks) -> None:CODE
LOW⚡label_studio/tasks/mixins.py27 def after_bulk_delete_actions(tasks_ids, project):CODE
LOW⚡label_studio/tasks/mixins.py36 def get_lock_extra_exclude_query(self):CODE
LOW⚡label_studio/tasks/models.py549 def increase_project_summary_counters(self):CODE
LOW⚡label_studio/tasks/models.py555 def decrease_project_summary_counters(self):CODE
LOW⚡label_studio/tasks/models.py560 def ensure_unique_groundtruth(self, annotation_id):CODE
LOWlabel_studio/tasks/models.py225 def get_predictions_for_prelabeling(self):CODE
LOWlabel_studio/tasks/models.py346 def overlap_with_agreement_threshold(self, num, num_locks):CODE
LOWlabel_studio/tasks/models.py578 def delete_tasks_without_signals(queryset):CODE
LOWlabel_studio/tasks/models.py601 def delete_tasks_without_signals_from_task_ids(task_ids):CODE
LOWlabel_studio/tasks/models.py814 def increase_project_summary_counters(self):CODE
LOWlabel_studio/tasks/models.py820 def decrease_project_summary_counters(self):CODE
LOWlabel_studio/tasks/models.py871 def _update_task_state_after_deletion(self, task, project):CODE
LOWlabel_studio/tasks/models.py877 def on_delete_update_counters(self):CODE
LOWlabel_studio/tasks/models.py1107 def prepare_prediction_result(cls, result, project):CODE
LOWlabel_studio/tasks/models.py1378def update_all_task_states_after_deleting_task(sender, instance, **kwargs):CODE
LOWlabel_studio/tasks/models.py1402def _task_data_is_not_updated(update_fields):CODE
LOWlabel_studio/tasks/models.py1414def delete_project_summary_data_columns_before_updating_task(sender, instance, update_fields, **kwargs):CODE
LOWlabel_studio/tasks/models.py1428def update_project_summary_data_columns(sender, instance, created, update_fields, **kwargs):CODE
LOWlabel_studio/tasks/models.py1437def delete_project_summary_annotations_before_updating_annotation(sender, instance, **kwargs):CODE
LOWlabel_studio/tasks/models.py1465def update_project_summary_annotations_and_is_labeled(sender, instance, created, **kwargs):CODE
LOWlabel_studio/tasks/models.py1481def update_task_counters_after_annotation_delete(sender, instance, **kwargs):CODE
LOWlabel_studio/tasks/models.py1520def remove_predictions_from_project(sender, instance, **kwargs):CODE
LOWlabel_studio/tasks/models.py1528def save_predictions_to_project(sender, instance, created, **kwargs):CODE
LOWlabel_studio/tasks/models.py1590def deprecated_bulk_update_stats_project_tasks(tasks, project=None):CODE
LOWlabel_studio/tasks/models.py1640def bulk_update_stats_project_tasks(tasks, project=None):CODE
LOWlabel_studio/tasks/serializers.py48def sanitize_prediction_import_payload(prediction):CODE
LOWlabel_studio/tasks/serializers.py231 def _resolve_project_for_validation(self, data):CODE
LOWlabel_studio/tasks/serializers.py590 def _insert_valid_completed_by(annotations, members_email_to_id, members_ids, default_user, ff_user=None):CODE
LOWlabel_studio/tasks/serializers.py649 def _insert_valid_user_reviews(dicts, members_email_to_id, default_user):CODE
LOWlabel_studio/tasks/serializers.py673 def _insert_valid_user_drafts(dicts, members_email_to_id, default_user):CODE
LOWlabel_studio/tasks/serializers.py1025 def _backfill_task_fsm_states_skipping_inference(self, db_tasks: list, task_annotations: list):CODE
LOWlabel_studio/tasks/serializers.py1071 def post_process_custom_callback(project_id, user):CODE
LOWlabel_studio/tasks/api.py379 def get_retrieve_serializer_context(self, request):STRING
LOWlabel_studio/tasks/api.py405 def maybe_evaluate_predictions(self, project, request):STRING
1676 more matches not shown…
Cross-File Repetition173 hits · 865 pts
SeverityFileLineSnippetContext
HIGHlabel_studio/server.py0this file and its contents are licensed under the apache license 2.0. please see the included notice for copyright inforSTRING
HIGHlabel_studio/__init__.py0this file and its contents are licensed under the apache license 2.0. please see the included notice for copyright inforSTRING
HIGHlabel_studio/manage.py0this file and its contents are licensed under the apache license 2.0. please see the included notice for copyright inforSTRING
HIGHlabel_studio/organizations/models.py0this file and its contents are licensed under the apache license 2.0. please see the included notice for copyright inforSTRING
HIGHlabel_studio/organizations/serializers.py0this file and its contents are licensed under the apache license 2.0. please see the included notice for copyright inforSTRING
HIGHlabel_studio/organizations/__init__.py0this file and its contents are licensed under the apache license 2.0. please see the included notice for copyright inforSTRING
HIGHlabel_studio/organizations/apps.py0this file and its contents are licensed under the apache license 2.0. please see the included notice for copyright inforSTRING
HIGHlabel_studio/organizations/forms.py0this file and its contents are licensed under the apache license 2.0. please see the included notice for copyright inforSTRING
HIGHlabel_studio/organizations/api.py0this file and its contents are licensed under the apache license 2.0. please see the included notice for copyright inforSTRING
HIGHlabel_studio/organizations/admin.py0this file and its contents are licensed under the apache license 2.0. please see the included notice for copyright inforSTRING
HIGHlabel_studio/organizations/urls.py0this file and its contents are licensed under the apache license 2.0. please see the included notice for copyright inforSTRING
HIGHlabel_studio/organizations/middleware.py0this file and its contents are licensed under the apache license 2.0. please see the included notice for copyright inforSTRING
HIGHlabel_studio/organizations/views.py0this file and its contents are licensed under the apache license 2.0. please see the included notice for copyright inforSTRING
HIGHlabel_studio/tasks/models.py0this file and its contents are licensed under the apache license 2.0. please see the included notice for copyright inforSTRING
HIGHlabel_studio/tasks/serializers.py0this file and its contents are licensed under the apache license 2.0. please see the included notice for copyright inforSTRING
HIGHlabel_studio/tasks/__init__.py0this file and its contents are licensed under the apache license 2.0. please see the included notice for copyright inforSTRING
HIGHlabel_studio/tasks/api.py0this file and its contents are licensed under the apache license 2.0. please see the included notice for copyright inforSTRING
HIGHlabel_studio/tasks/urls.py0this file and its contents are licensed under the apache license 2.0. please see the included notice for copyright inforSTRING
HIGHlabel_studio/tasks/validation.py0this file and its contents are licensed under the apache license 2.0. please see the included notice for copyright inforSTRING
HIGHlabel_studio/core/mixins.py0this file and its contents are licensed under the apache license 2.0. please see the included notice for copyright inforSTRING
HIGHlabel_studio/core/label_config.py0this file and its contents are licensed under the apache license 2.0. please see the included notice for copyright inforSTRING
HIGHlabel_studio/core/version.py0this file and its contents are licensed under the apache license 2.0. please see the included notice for copyright inforSTRING
HIGHlabel_studio/core/__init__.py0this file and its contents are licensed under the apache license 2.0. please see the included notice for copyright inforSTRING
HIGHlabel_studio/core/context_processors.py0this file and its contents are licensed under the apache license 2.0. please see the included notice for copyright inforSTRING
HIGHlabel_studio/core/redis.py0this file and its contents are licensed under the apache license 2.0. please see the included notice for copyright inforSTRING
HIGHlabel_studio/core/storage.py0this file and its contents are licensed under the apache license 2.0. please see the included notice for copyright inforSTRING
HIGHlabel_studio/core/permissions.py0this file and its contents are licensed under the apache license 2.0. please see the included notice for copyright inforSTRING
HIGHlabel_studio/core/job_deduplication.py0this file and its contents are licensed under the apache license 2.0. please see the included notice for copyright inforSTRING
HIGHlabel_studio/core/argparser.py0this file and its contents are licensed under the apache license 2.0. please see the included notice for copyright inforSTRING
HIGHlabel_studio/core/bulk_update_utils.py0this file and its contents are licensed under the apache license 2.0. please see the included notice for copyright inforSTRING
HIGHlabel_studio/core/middleware.py0this file and its contents are licensed under the apache license 2.0. please see the included notice for copyright inforSTRING
HIGHlabel_studio/core/views.py0this file and its contents are licensed under the apache license 2.0. please see the included notice for copyright inforSTRING
HIGHlabel_studio/core/wsgi.py0this file and its contents are licensed under the apache license 2.0. please see the included notice for copyright inforSTRING
HIGHlabel_studio/core/templatetags/filters.py0this file and its contents are licensed under the apache license 2.0. please see the included notice for copyright inforSTRING
HIGHlabel_studio/core/settings/label_studio.py0this file and its contents are licensed under the apache license 2.0. please see the included notice for copyright inforSTRING
HIGHlabel_studio/core/settings/__init__.py0this file and its contents are licensed under the apache license 2.0. please see the included notice for copyright inforSTRING
HIGHlabel_studio/core/settings/base.py0this file and its contents are licensed under the apache license 2.0. please see the included notice for copyright inforSTRING
HIGHlabel_studio/core/utils/io.py0this file and its contents are licensed under the apache license 2.0. please see the included notice for copyright inforSTRING
HIGHlabel_studio/core/utils/__init__.py0this file and its contents are licensed under the apache license 2.0. please see the included notice for copyright inforSTRING
HIGHlabel_studio/core/utils/common.py0this file and its contents are licensed under the apache license 2.0. please see the included notice for copyright inforSTRING
HIGHlabel_studio/core/utils/exceptions.py0this file and its contents are licensed under the apache license 2.0. please see the included notice for copyright inforSTRING
HIGHlabel_studio/core/utils/contextlog.py0this file and its contents are licensed under the apache license 2.0. please see the included notice for copyright inforSTRING
HIGHlabel_studio/io_storages/models.py0this file and its contents are licensed under the apache license 2.0. please see the included notice for copyright inforSTRING
HIGHlabel_studio/io_storages/base_models.py0this file and its contents are licensed under the apache license 2.0. please see the included notice for copyright inforSTRING
HIGHlabel_studio/io_storages/filesystem.py0this file and its contents are licensed under the apache license 2.0. please see the included notice for copyright inforSTRING
HIGHlabel_studio/io_storages/serializers.py0this file and its contents are licensed under the apache license 2.0. please see the included notice for copyright inforSTRING
HIGHlabel_studio/io_storages/__init__.py0this file and its contents are licensed under the apache license 2.0. please see the included notice for copyright inforSTRING
HIGHlabel_studio/io_storages/api.py0this file and its contents are licensed under the apache license 2.0. please see the included notice for copyright inforSTRING
HIGHlabel_studio/io_storages/utils.py0this file and its contents are licensed under the apache license 2.0. please see the included notice for copyright inforSTRING
HIGHlabel_studio/io_storages/all_api.py0this file and its contents are licensed under the apache license 2.0. please see the included notice for copyright inforSTRING
HIGHlabel_studio/io_storages/urls.py0this file and its contents are licensed under the apache license 2.0. please see the included notice for copyright inforSTRING
HIGHlabel_studio/io_storages/s3/models.py0this file and its contents are licensed under the apache license 2.0. please see the included notice for copyright inforSTRING
HIGHlabel_studio/io_storages/s3/serializers.py0this file and its contents are licensed under the apache license 2.0. please see the included notice for copyright inforSTRING
HIGHlabel_studio/io_storages/s3/__init__.py0this file and its contents are licensed under the apache license 2.0. please see the included notice for copyright inforSTRING
HIGHlabel_studio/io_storages/s3/api.py0this file and its contents are licensed under the apache license 2.0. please see the included notice for copyright inforSTRING
HIGHlabel_studio/io_storages/s3/utils.py0this file and its contents are licensed under the apache license 2.0. please see the included notice for copyright inforSTRING
HIGHlabel_studio/io_storages/redis/models.py0this file and its contents are licensed under the apache license 2.0. please see the included notice for copyright inforSTRING
HIGHlabel_studio/io_storages/redis/serializers.py0this file and its contents are licensed under the apache license 2.0. please see the included notice for copyright inforSTRING
HIGHlabel_studio/io_storages/redis/__init__.py0this file and its contents are licensed under the apache license 2.0. please see the included notice for copyright inforSTRING
HIGHlabel_studio/io_storages/redis/api.py0this file and its contents are licensed under the apache license 2.0. please see the included notice for copyright inforSTRING
113 more matches not shown…
Hallucination Indicators26 hits · 275 pts
SeverityFileLineSnippetContext
CRITICALlabel_studio/core/static/js/jquery.min.js2!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):fCODE
CRITICAL⚡…tudio/io_storages/tests/test_localfiles_serializers.py6from django.core.exceptions import ValidationError as DjangoValidationError # type: ignore[import]CODE
CRITICAL…studio/io_storages/tests/test_localfiles_validation.py4from django.core.exceptions import ValidationError # type: ignore[import]CODE
CRITICALlabel_studio/io_storages/localfiles/models.py12from django.core.exceptions import ValidationErrorCODE
CRITICALlabel_studio/io_storages/localfiles/serializers.py6from django.core.exceptions import ValidationError as DjangoValidationError # type: ignore[import]CODE
CRITICALlabel_studio/io_storages/azure_blob/models.py10from azure.core.exceptions import ResourceNotFoundErrorCODE
CRITICALlabel_studio/users/validators.py2from django.core.exceptions import ValidationErrorCODE
CRITICALlabel_studio/users/forms.py9from django.core.exceptions import ValidationError as DjangoValidationErrorCODE
CRITICALlabel_studio/webhooks/models.py4from django.core.exceptions import ValidationErrorCODE
CRITICAL…ibs/ui/src/lib/multi-tree-select/tree-context.test.tsx135 const label1 = result.current.providerProps.dataRef.current.find((w) => w.id === "1");CODE
CRITICAL…editor/tests/integration/e2e/video/vector_points.cy.ts120 const video = win.Htx.annotationStore.selected.names.get("video");CODE
CRITICAL…itor/tests/integration/e2e/control_tags/textarea.cy.ts373 const model = win.Htx.annotationStore.selected.names.get("desc");CODE
CRITICAL…itor/tests/integration/e2e/control_tags/textarea.cy.ts386 const model = win.Htx.annotationStore.selected.names.get("desc");CODE
CRITICAL…itor/tests/integration/e2e/control_tags/textarea.cy.ts399 const model = win.Htx.annotationStore.selected.names.get("desc");CODE
CRITICAL…itor/tests/integration/e2e/control_tags/textarea.cy.ts416 const model = win.Htx.annotationStore.selected.names.get("desc");CODE
CRITICAL…itor/tests/integration/e2e/control_tags/textarea.cy.ts434 const model = win.Htx.annotationStore.selected.names.get("desc");CODE
CRITICAL…itor/tests/integration/e2e/control_tags/textarea.cy.ts457 const model = win.Htx.annotationStore.selected.names.get("desc");CODE
CRITICALweb/libs/editor/src/tags/object/Video/Video.js160 return self.annotation.regionStore.selection.list.filter((reg) => reg.type === "timelineregion");CODE
CRITICAL…/src/components/ImageView/__tests__/ImageView.test.jsx763 const onMouseEnter = item.stageRef.on.mock.calls.find((c) => c[0] === "mouseenter")?.[1];CODE
CRITICAL…/src/components/ImageView/__tests__/ImageView.test.jsx764 const onMouseMove = item.stageRef.on.mock.calls.find((c) => c[0] === "mousemove")?.[1];CODE
CRITICALweb/libs/editor/src/components/TextHighlight/Node.jsx27 store.annotationStore.selected.regionStore.regions.forEach((i) => {CODE
CRITICALweb/libs/frontend-test/src/helpers/LSF/LabelStudio.ts269 const isReady = win.Htx.annotationStore.selected.objects.every((object) => object.isReady);CODE
CRITICAL⚡docs/themes/v2/source/js/playground/jquery-ui.min.js6(function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)})(function(t){function e(t){for(var e=CODE
CRITICAL⚡docs/themes/v2/source/js/playground/jquery-ui.min.js9}},_updateDatepicker:function(e){this.maxRows=4,m=e,e.dpDiv.empty().append(this._generateHTML(e)),this._attachHandlers(eCODE
CRITICALdocs/themes/v2/source/js/playground/codemirror.js12084 return this.cm.display.wrapper.ownerDocument.getSelection();CODE
CRITICALdocs/themes/v2/source/js/playground/jquery.min.js2!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):fCODE
Excessive Try-Catch Wrapping190 hits · 201 pts
SeverityFileLineSnippetContext
LOWlabel_studio/server.py329 except Exception as e:CODE
LOWlabel_studio/tasks/models.py493 except Exception as exc:CODE
LOWlabel_studio/tasks/models.py515 except Exception as exc:CODE
LOWlabel_studio/tasks/models.py1224 except Exception as exc:CODE
LOWlabel_studio/tasks/models.py1358 except Exception as exc:CODE
LOWlabel_studio/tasks/models.py1389 except Exception as exc:CODE
LOWlabel_studio/tasks/serializers.py820 except Exception as e:CODE
LOWlabel_studio/tasks/serializers.py849 except Exception as e:CODE
LOWlabel_studio/core/label_config.py233 except Exception as exc:CODE
LOWlabel_studio/core/version.py119 except Exception as e:CODE
LOWlabel_studio/core/current_request.py102 except Exception:CODE
LOWlabel_studio/core/redis.py76 except Exception:CODE
LOWlabel_studio/core/redis.py181 except Exception:CODE
LOWlabel_studio/core/redis.py230 except Exception:CODE
LOW⚡label_studio/core/redis.py324 except Exception:CODE
LOW⚡label_studio/core/redis.py329 except Exception:CODE
LOW⚡label_studio/core/redis.py337 except Exception:CODE
LOWlabel_studio/core/redis.py359 except Exception:CODE
LOWlabel_studio/core/redis.py433 except Exception as e:CODE
MEDIUMlabel_studio/core/redis.py48def _truncate_args_for_logging(args, kwargs, max_length=30):CODE
LOWlabel_studio/core/job_deduplication.py131 except Exception:CODE
LOWlabel_studio/core/job_deduplication.py181 except Exception:CODE
LOWlabel_studio/core/job_deduplication.py195 except Exception:CODE
LOW⚡label_studio/core/job_deduplication.py249 except Exception:CODE
LOW⚡label_studio/core/job_deduplication.py258 except Exception:CODE
LOW⚡label_studio/core/job_deduplication.py267 except Exception:CODE
LOWlabel_studio/core/job_deduplication.py325 except Exception:CODE
LOWlabel_studio/core/migration_helpers.py154 except Exception as rq_err:CODE
LOWlabel_studio/core/migration_helpers.py246 except Exception as e:CODE
LOWlabel_studio/core/migration_helpers.py261 except Exception as e:CODE
LOWlabel_studio/core/views.py164 except Exception:CODE
MEDIUMlabel_studio/core/tests/test_redis.py339def runner():CODE
LOWlabel_studio/core/tests/test_redis.py342 except Exception as exc: # pragma: no cover - used for regression verificationCODE
LOWlabel_studio/core/utils/db.py208 except Exception as e:CODE
LOWlabel_studio/core/utils/params.py32 except Exception as e:CODE
LOWlabel_studio/core/utils/params.py52 except Exception as e:CODE
LOWlabel_studio/core/utils/secret_key.py53 except Exception as e:CODE
LOW⚡label_studio/core/utils/common.py387 except Exception:CODE
LOWlabel_studio/core/utils/common.py491 except Exception:CODE
LOWlabel_studio/core/utils/common.py499 except Exception:CODE
MEDIUMlabel_studio/core/utils/common.py233def string_is_url(url):CODE
LOWlabel_studio/core/utils/manifest_assets.py16except Exception:CODE
LOWlabel_studio/core/utils/contextlog.py28 except Exception as exc:CODE
LOWlabel_studio/core/utils/contextlog.py213 except Exception as exc:CODE
MEDIUMlabel_studio/core/utils/contextlog.py23def _load_log_payloads():CODE
MEDIUMlabel_studio/core/utils/contextlog.py72def _get_response_content(self, response):CODE
LOWlabel_studio/io_storages/functions.py62 except Exception as exc:CODE
LOWlabel_studio/io_storages/proxy_api.py83 except Exception as exc:CODE
LOWlabel_studio/io_storages/proxy_api.py175 except Exception as exc:CODE
LOWlabel_studio/io_storages/proxy_api.py221 except Exception as e:CODE
LOWlabel_studio/io_storages/proxy_api.py227 except Exception as e:CODE
LOWlabel_studio/io_storages/proxy_api.py381 except Exception as e:CODE
LOWlabel_studio/io_storages/base_models.py239 except Exception:CODE
LOWlabel_studio/io_storages/base_models.py432 except Exception:CODE
LOWlabel_studio/io_storages/base_models.py480 except Exception:CODE
LOWlabel_studio/io_storages/base_models.py907 except Exception:CODE
LOWlabel_studio/io_storages/base_models.py1059 except Exception:CODE
LOWlabel_studio/io_storages/base_models.py1119 except Exception:CODE
LOWlabel_studio/io_storages/base_models.py1201 except Exception as exc:CODE
LOWlabel_studio/io_storages/api.py106 except Exception as exc:CODE
130 more matches not shown…
Decorative Section Separators55 hits · 189 pts
SeverityFileLineSnippetContext
MEDIUMlabel_studio/organizations/serializers.py29# =========================================COMMENT
MEDIUMlabel_studio/organizations/serializers.py32# =========================================COMMENT
MEDIUMlabel_studio/organizations/serializers.py152# =========================================COMMENT
MEDIUM⚡label_studio/tasks/tests/test_result_utils.py92# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡label_studio/tasks/tests/test_result_utils.py94# ---------------------------------------------------------------------------COMMENT
MEDIUMlabel_studio/core/job_deduplication.py32# ----------------------COMMENT
MEDIUMlabel_studio/core/job_deduplication.py56# -------------COMMENT
MEDIUMlabel_studio/core/utils/db.py193# =====================COMMENT
MEDIUMlabel_studio/core/utils/db.py195# =====================COMMENT
MEDIUMlabel_studio/projects/models.py977 # ============================================================================COMMENT
MEDIUMlabel_studio/projects/models.py979 # ============================================================================COMMENT
MEDIUM⚡label_studio/tests/test_job_deduplication.py112# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡label_studio/tests/test_job_deduplication.py114# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡label_studio/tests/test_job_deduplication.py215# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡label_studio/tests/test_job_deduplication.py217# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡label_studio/tests/test_job_deduplication.py361# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡label_studio/tests/test_job_deduplication.py363# ---------------------------------------------------------------------------COMMENT
MEDIUMlabel_studio/tests/test_job_deduplication.py32# ---------------------------------------------------------------------------COMMENT
MEDIUMlabel_studio/tests/test_job_deduplication.py34# ---------------------------------------------------------------------------COMMENT
MEDIUMlabel_studio/tests/test_job_deduplication.py85# ---------------------------------------------------------------------------COMMENT
MEDIUMlabel_studio/tests/test_job_deduplication.py87# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡label_studio/tests/test_import_completed_by.py123# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡label_studio/tests/test_import_completed_by.py125# ---------------------------------------------------------------------------COMMENT
MEDIUMlabel_studio/tests/test_import_completed_by.py31# ---------------------------------------------------------------------------COMMENT
MEDIUMlabel_studio/tests/test_import_completed_by.py33# ---------------------------------------------------------------------------COMMENT
MEDIUMlabel_studio/tests/test_import_completed_by.py307# ---------------------------------------------------------------------------COMMENT
MEDIUMlabel_studio/tests/test_import_completed_by.py309# ---------------------------------------------------------------------------COMMENT
MEDIUM…el_studio/tests/test_storage_create_list_edge_cases.py57 # ── Happy path ──────────────────────────────────────────────────────COMMENT
MEDIUM…el_studio/tests/test_storage_create_list_edge_cases.py87 # ── Production scenario (TRIAG-2148 exact reproduction) ─────────────COMMENT
MEDIUM…el_studio/tests/test_storage_create_list_edge_cases.py268 # ── Defensive edge cases (meta corruption) ─────────────────────────COMMENT
MEDIUM⚡label_studio/fsm/models.py17# =============================================================================COMMENT
MEDIUM⚡label_studio/fsm/models.py19# =============================================================================COMMENT
MEDIUM⚡label_studio/fsm/utils.py27# =============================================================================COMMENT
MEDIUM⚡label_studio/fsm/utils.py29# =============================================================================COMMENT
MEDIUMlabel_studio/fsm/utils.py208# =============================================================================COMMENT
MEDIUMlabel_studio/fsm/utils.py210# =============================================================================COMMENT
MEDIUMlabel_studio/fsm/state_models.py222# =============================================================================COMMENT
MEDIUMlabel_studio/fsm/state_models.py224# =============================================================================COMMENT
MEDIUM⚡label_studio/fsm/tests/helpers.py27# ============================================================================COMMENT
MEDIUM⚡label_studio/fsm/tests/helpers.py29# ============================================================================COMMENT
MEDIUMlabel_studio/fsm/tests/helpers.py66# ============================================================================COMMENT
MEDIUMlabel_studio/fsm/tests/helpers.py68# ============================================================================COMMENT
MEDIUMlabel_studio/fsm/tests/helpers.py266# ============================================================================COMMENT
MEDIUMlabel_studio/fsm/tests/helpers.py268# ============================================================================COMMENT
MEDIUMweb/libs/core/src/lib/topbar/AnnotationsListFilter.tsx100// ─── Filter tooltip helpers ────────────────────────────────────────────────COMMENT
MEDIUMweb/libs/core/src/lib/topbar/AnnotationsListFilter.tsx201// ──────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…ibs/datamanager/src/components/Common/ColumnPicker.jsx5// ── Adapters ─────────────────────────────────────────────────────────────────COMMENT
MEDIUM…ibs/datamanager/src/components/Common/ColumnPicker.jsx266// ── Option renderer ───────────────────────────────────────────────────────────COMMENT
MEDIUM…ibs/datamanager/src/components/Common/ColumnPicker.jsx306// ── Unified component ─────────────────────────────────────────────────────────COMMENT
MEDIUM…/editor/src/ml-interactive/primitives/MaskConverter.ts208// ─── Contour tracing (marching squares) ─────────────────────────────────────COMMENT
MEDIUM…/editor/src/ml-interactive/primitives/MaskConverter.ts324// ─── Douglas-Peucker simplification ─────────────────────────────────────────COMMENT
MEDIUM…/editor/src/ml-interactive/primitives/MaskConverter.ts360// ─── Zhang-Suen thinning (skeleton extraction) ─────────────────────────────COMMENT
MEDIUM…/editor/src/ml-interactive/primitives/MaskConverter.ts426// ─── Skeleton path tracing ──────────────────────────────────────────────────COMMENT
MEDIUM…itor/src/ml-interactive/primitives/useInputHandlers.ts34 // ─── Click capture on the stage / overlay ──────────────────────────────COMMENT
MEDIUM…itor/src/ml-interactive/primitives/useInputHandlers.ts231 // ─── Cursor baseline for video ─────────────────────────────────────────COMMENT
Magic Placeholder Names31 hits · 162 pts
SeverityFileLineSnippetContext
HIGH…tings/PredictionsSettings/ImportPredictionsExample.jsx226 api_key="YOUR_API_KEY",CODE
HIGH…tings/PredictionsSettings/ImportPredictionsExample.jsx251 project's {usesCustomInterface ? "interface schema" : "labeling config"} — replace <code>YOUR_API_KEY</code>CODE
HIGHdocs/source/guide/api.md68LABEL_STUDIO_API_KEY = 'YOUR_API_KEY'CODE
HIGHdocs/source/guide/sdk.md42LABEL_STUDIO_API_KEY = 'YOUR_API_KEY'CODE
HIGHdocs/source/guide/ml_tutorials/yolo.md319 - LABEL_STUDIO_API_KEY=your_api_keyCODE
HIGHdocs/source/guide/ml_tutorials/yolo.md953python cli.py --ls-url http://localhost:8080 --ls-api-key your_api_key --project 1 --tasks tasks.jsonCODE
HIGHdocs/source/guide/ml_tutorials/yolo.md959python cli.py --ls-url http://localhost:8080 --ls-api-key YOUR_API_KEY --project 1 --tasks 1,2,3CODE
HIGHdocs/source/guide/ml_tutorials/yolo.md988LOG_LEVEL=DEBUG python cli.py --ls-url http://localhost:8080 --ls-api-key YOUR_API_KEY --project 2 --tasks 1,2,3CODE
HIGHdocs/source/guide/ml_tutorials/grounding_sam.md50 - `LABEL_STUDIO_ACCESS_TOKEN=your-api-key`CODE
HIGHdocs/source/guide/ml_tutorials/grounding_dino.md47 - `LABEL_STUDIO_ACCESS_TOKEN=your-api-key`CODE
HIGHdocs/source/templates/generative-supervised-llm.md93ls = label_studio_sdk.Client('YOUR_LABEL_STUDIO_URL', 'YOUR_API_KEY')CODE
HIGHdocs/source/templates/generative-supervised-llm.md105ls = Client(url='<YOUR-LABEL-STUDIO-URL>', api_key='<YOUR-API_KEY>')CODE
HIGHdocs/source/templates/generative-supervised-llm.md105ls = Client(url='<YOUR-LABEL-STUDIO-URL>', api_key='<YOUR-API_KEY>')CODE
HIGHdocs/source/templates/generative-llm-ranker.md141ls = label_studio_sdk.Client('YOUR_LABEL_STUDIO_URL', 'YOUR_API_KEY')CODE
HIGHdocs/source/templates/generative-llm-ranker.md156ls = Client(url='<YOUR-LABEL-STUDIO-URL>', api_key='<YOUR-API_KEY>')CODE
HIGHdocs/source/templates/generative-llm-ranker.md156ls = Client(url='<YOUR-LABEL-STUDIO-URL>', api_key='<YOUR-API_KEY>')CODE
HIGHdocs/source/templates/react_claims.md259 apiKey: 'YOUR-API-KEY',CODE
HIGHdocs/source/templates/video_object_detector.md208 -H 'Authorization: Token YOUR_API_KEY' \CODE
HIGHdocs/source/templates/video_object_detector.md230 -H 'Authorization: Token YOUR_API_KEY' \CODE
HIGHdocs/source/templates/video_object_detector.md244ls = Client(url='http://localhost:8080', api_key='YOUR_API_KEY')CODE
HIGH⚡docs/source/templates/video_object_detector.md273- Replace `YOUR_API_KEY` with your actual API key.CODE
HIGH⚡docs/source/templates/video_object_detector.md283label-studio export --host http://localhost:8080 --api-key YOUR_API_KEY PROJECT_ID JSON --interpolate-key-framesCODE
HIGH⚡docs/source/templates/video_object_detector.md287- Replace `YOUR_API_KEY` and `PROJECT_ID` with your API key and project ID, respectively.CODE
HIGHdocs/source/templates/video_object_detector.md301 -H 'Authorization: Token YOUR_API_KEY' \CODE
HIGHdocs/source/templates/generative-visual-ranker.md72ls = label_studio_sdk.Client('YOUR_LABEL_STUDIO_URL', 'YOUR_API_KEY')CODE
HIGHdocs/source/templates/generative-visual-ranker.md86ls = Client(url='<YOUR-LABEL-STUDIO-URL>', api_key='<YOUR-API_KEY>')CODE
HIGHdocs/source/templates/generative-visual-ranker.md86ls = Client(url='<YOUR-LABEL-STUDIO-URL>', api_key='<YOUR-API_KEY>')CODE
HIGH…urce/templates/generative-pairwise-human-preference.md64ls = Client(url='<YOUR-LABEL-STUDIO-URL>', api_key='<YOUR-API_KEY>')CODE
HIGH…urce/templates/generative-pairwise-human-preference.md64ls = Client(url='<YOUR-LABEL-STUDIO-URL>', api_key='<YOUR-API_KEY>')CODE
HIGH…s/how_to_connect_Hugging_Face_with_Label_Studio_SDK.md122export LABEL_STUDIO_API_KEY="your-api-key-here"CODE
HIGH…ulti_turn_chat_evals_with_chainlit_and_label_studio.md89export LABEL_STUDIO_API_KEY="your-api-key-here"CODE
Structural Annotation Overuse90 hits · 137 pts
SeverityFileLineSnippetContext
LOW⚡label_studio/tests/test_fsm_lso_workflows.py431 # Step 1: Create projectCOMMENT
LOW⚡label_studio/tests/test_fsm_lso_workflows.py438 # Step 2: Create 2 tasksCOMMENT
LOW⚡label_studio/tests/test_fsm_lso_workflows.py448 # Step 3: Submit annotation on task1COMMENT
LOW⚡label_studio/tests/test_fsm_lso_workflows.py458 # Step 4: Submit annotation on task2COMMENT
LOW⚡label_studio/tests/test_fsm_lso_workflows.py468 # Step 5: Delete annotation from task1COMMENT
LOW⚡label_studio/tests/test_fsm_lso_workflows.py473 # Step 6: Re-submit annotation on task1COMMENT
LOW⚡label_studio/tests/test_fsm_lso_workflows.py526 # Step 1: Create task directly without FSM stateCOMMENT
LOW⚡label_studio/tests/test_fsm_lso_workflows.py533 # Step 2: Create annotation directlyCOMMENT
LOW⚡label_studio/tests/test_fsm_lso_workflows.py543 # Step 3: Delete annotation via SDK (this triggers FSM logic)COMMENT
LOW⚡label_studio/tests/test_fsm_lso_workflows.py546 # Step 4: Verify task state was initialized and updatedCOMMENT
LOW⚡label_studio/tests/test_fsm_lso_workflows.py571 # Step 1: Create task without FSM stateCOMMENT
LOW⚡label_studio/tests/test_fsm_lso_workflows.py581 # Step 2: Submit annotation via SDKCOMMENT
LOW⚡label_studio/tests/test_fsm_lso_workflows.py588 # Step 3: Verify states initializedCOMMENT
LOW⚡label_studio/tests/test_fsm_lso_workflows.py630 # Step 2: Submit annotation on first task only via SDKCOMMENT
LOW⚡label_studio/tests/test_fsm_lso_workflows.py637 # Step 3: Verify both tasks now have statesCOMMENT
LOW⚡label_studio/tests/test_fsm_lso_workflows.py650 # Step 4: Verify project state is correct (IN_PROGRESS - some tasks completed)COMMENT
LOW⚡label_studio/tests/test_fsm_lso_workflows.py681 # Step 1: Create 3 tasks without FSM statesCOMMENT
LOW⚡label_studio/tests/test_fsm_lso_workflows.py689 # Step 2: Submit annotations on all tasks via SDKCOMMENT
LOW⚡label_studio/tests/test_fsm_lso_workflows.py699 # Step 3: Verify all tasks have correct statesCOMMENT
LOW⚡label_studio/tests/test_fsm_lso_workflows.py704 # Step 4: Verify project is COMPLETED (all tasks completed)COMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py619 # Step 1: Create two tasks without FSM statesCOMMENT
LOWlabel_studio/tests/data_manager/test_undefined.py60 # Step 1: Import task 1: {"$undefined$": "photo1.jpg"}COMMENT
LOW⚡label_studio/tests/data_manager/test_undefined.py83 # Step 4: Set labeling config <View> <Image value="$image" name="img"/> </View>COMMENT
LOW⚡label_studio/tests/data_manager/test_undefined.py93 # Step 7: Add task 2: {"$undefined$": "photo2.jpg", "extra": "123"}COMMENT
LOW⚡label_studio/tests/data_manager/test_undefined.py111 # Step 12: Update task 1 with {"extra": "456"}COMMENT
LOW⚡label_studio/tests/data_manager/test_undefined.py119 # Step 13: Check project.summary.common_data_columns, there should be ["$undefined$", "extra"]COMMENT
LOW⚡label_studio/tests/data_manager/test_undefined.py127 # Step 14: Filter by "image" with "photo" should return task 1 and task 2COMMENT
LOW⚡label_studio/tests/data_manager/test_views_api.py717 # Step 4: Test that the PATCHed view filters tasks correctlySTRING
LOW⚡label_studio/tests/data_manager/test_views_api.py726 # Step 5: PATCH again to modify the child filterSTRING
LOWlabel_studio/tests/data_manager/test_views_api.py601 # Step 1: Create a view with a non-nested filterSTRING
LOWlabel_studio/tests/data_manager/test_views_api.py660 # Step 2: PATCH the view to add a child filterSTRING
LOWlabel_studio/tests/data_manager/test_views_api.py691 # Step 3: Verify the PATCHed view has the child filterSTRING
LOWlabel_studio/tests/data_manager/test_views_api.py757 # Step 6: Verify the child filter was updatedSTRING
LOW…bel_studio/fsm/tests/test_integration_django_models.py210 # Step 1: Create taskCOMMENT
LOW…bel_studio/fsm/tests/test_integration_django_models.py232 # Step 2: Assign and start taskCOMMENT
LOW…bel_studio/fsm/tests/test_integration_django_models.py258 # Step 3: Complete taskCOMMENT
LOW⚡label_studio/fsm/tests/test_api_example.py127 # Step 1: Create transition from API dataCOMMENT
LOW⚡label_studio/fsm/tests/test_api_example.py130 # Step 2: Execute transitionCOMMENT
LOWlabel_studio/fsm/tests/test_api_example.py145 # Step 3: Format API responseCOMMENT
LOW⚡…libs/editor/src/components/KonvaVector/KonvaVector.tsx637 // Step 1: ScaleCOMMENT
LOW⚡…libs/editor/src/components/KonvaVector/KonvaVector.tsx641 // Step 2: RotateCOMMENT
LOW⚡…libs/editor/src/components/KonvaVector/KonvaVector.tsx645 // Step 3: Translate and clamp to image boundsCOMMENT
LOWdocs/source/guide/storage_gcp.md881#### Step 1: Create a service account in your target Google Cloud projectCOMMENT
LOWdocs/source/guide/storage_gcp.md893#### Step 2: Grant the target service account access to your bucketCOMMENT
LOWdocs/source/guide/storage_gcp.md932#### Step 3: Allow impersonation from the Label Studio base service accountCOMMENT
LOWdocs/source/guide/storage_gcp.md961#### Step 4: Configure CORS on the bucket (required for pre-signed URLs)COMMENT
LOWdocs/source/guide/ts+video.md21## Step 1: Media hostingCOMMENT
LOWdocs/source/guide/ts+video.md34## Step 2: Labeling config with example task dataCOMMENT
LOWdocs/source/guide/ts+video.md58## Step 3: Prepare and import tasksCOMMENT
LOWdocs/source/guide/ts+video.md73## Step 4: Explore imported taskCOMMENT
LOW⚡docs/source/guide/troubleshooting.md438#### Step 1: Adjust Git ConfigurationCOMMENT
LOW⚡docs/source/guide/troubleshooting.md448#### Step 2: Clone the Repository AgainCOMMENT
LOW⚡docs/source/guide/troubleshooting.md456#### Step 3: Build and Run the Docker ContainersCOMMENT
LOWdocs/source/guide/custom_metric.md142### Step 1: Create an AWS IAM role for loggingCOMMENT
LOWdocs/source/guide/custom_metric.md233### Step 2: Configure permissions between Label Studio Enterprise and AWS LambdaCOMMENT
LOWdocs/source/guide/custom_metric.md303### Step 1: Enable the required GCP APIsCOMMENT
LOWdocs/source/guide/custom_metric.md326### Step 2: Create a runtime service account for Cloud FunctionsCOMMENT
LOWdocs/source/guide/custom_metric.md346### Step 3: Grant permissions to the Label Studio Enterprise identityCOMMENT
LOWdocs/source/guide/agreement_metrics.md218#### Step 1: Check that labels matchCOMMENT
LOWdocs/source/guide/agreement_metrics.md224#### Step 2: Calculate IoU (Intersection over Union)COMMENT
30 more matches not shown…
Self-Referential Comments46 hits · 130 pts
SeverityFileLineSnippetContext
MEDIUMlabel_studio/tasks/models.py645 # Create a dynamic class that mixes FSM support into the querysetCOMMENT
MEDIUMlabel_studio/tasks/tests/test_lazy_load_annotations.py467 # Create a normal annotationCOMMENT
MEDIUMlabel_studio/tasks/tests/test_lazy_load_annotations.py480 # Create a cancelled annotationCOMMENT
MEDIUMlabel_studio/core/version.py39 'info = %s\n' % info_str + '\n# This file is automatically generated by version.py'CODE
MEDIUMlabel_studio/core/feature_flags/tests/test_base.py8 # Create a minimal organization-like objectCOMMENT
MEDIUMlabel_studio/core/management/commands/locked_migrate.py32 # Create a separate database connection to hold the lockCOMMENT
MEDIUMlabel_studio/core/utils/db.py160 # Create a database cursor that yields primary keys without loading all into memoryCOMMENT
MEDIUMlabel_studio/core/utils/iterators.py45 # Create a new queryset based on the original, preserving all optimizations:COMMENT
MEDIUMlabel_studio/io_storages/tests/test_get_bytes_stream.py61 # Create an instance of the concrete classCOMMENT
MEDIUMlabel_studio/io_storages/tests/test_get_bytes_stream.py77 # Create a mock response for get_objectCOMMENT
MEDIUMlabel_studio/io_storages/tests/test_get_bytes_stream.py103 # Create a mock response for get_object with range headerCOMMENT
MEDIUMlabel_studio/io_storages/tests/test_get_bytes_stream.py140 # Create a mock response for get_object with range headerCOMMENT
MEDIUMlabel_studio/io_storages/tests/test_get_bytes_stream.py197 # Create an instance of the concrete classCOMMENT
MEDIUMlabel_studio/io_storages/tests/test_get_bytes_stream.py549 # Create an instance of the concrete classCOMMENT
MEDIUMlabel_studio/io_storages/tests/test_get_bytes_stream.py595 # Create a proper AuthorizedSession patcher that returns our mock sessionCOMMENT
MEDIUMlabel_studio/io_storages/tests/test_base_models.py170 # Create the annotation before any storage exists so creation does not trigger an export.COMMENT
MEDIUM⚡label_studio/io_storages/tests/test_proxy_api.py308 # Create a mock stream with iter_chunks methodCOMMENT
MEDIUM⚡label_studio/io_storages/tests/test_proxy_api.py591 # Create the necessary objects for testing without databaseCOMMENT
MEDIUMlabel_studio/io_storages/tests/test_proxy_api.py331 # Create a mock stream with iter_chunks methodCOMMENT
MEDIUMlabel_studio/io_storages/tests/test_proxy_api.py354 # Create a mock stream with iter_chunks method that raises an exceptionCOMMENT
MEDIUMlabel_studio/io_storages/tests/test_proxy_api.py648 # Create the necessary objects for testing without databaseCOMMENT
MEDIUM⚡label_studio/tests/test_fsm_lso_workflows.py673 # Create a new project with FSMCOMMENT
MEDIUMlabel_studio/tests/conftest.py838 # This function is called by pytest after the collection of tests has been completed to modify their orderCOMMENT
MEDIUMlabel_studio/tests/config_validation.tavern.yml77- # Create a project with a specific labeling configurationCODE
MEDIUMlabel_studio/tests/config_validation.tavern.yml180- # Create a project with a specific labeling configurationCODE
MEDIUMlabel_studio/tests/config_validation.tavern.yml1380- # Create a project with Table labeling configurationCODE
MEDIUMlabel_studio/tests/test_prediction_validation.py46 # Create a project with a comprehensive label configurationCOMMENT
MEDIUMlabel_studio/tests/test_prediction_validation.py1059 # Create a project with Taxonomy tag and labels covering both pathsCOMMENT
MEDIUMlabel_studio/tests/test_prediction_validation.py64 # Create a taskSTRING
MEDIUMlabel_studio/tests/data_manager/test_views_api.py359 # Create a project with specific label config for testingCOMMENT
MEDIUMlabel_studio/tests/data_manager/test_views_api.py1023 # Create a gap: two views remain but max order is 5 (count would be 2).COMMENT
MEDIUMlabel_studio/tests/data_manager/test_views_api.py413 # Create a view with nested filtersSTRING
MEDIUMlabel_studio/tests/data_manager/test_views_api.py547 # Create a project with specific label config for testingSTRING
MEDIUM…studio/tests/data_manager/actions/test_cache_labels.py30 # Create a few tasksCOMMENT
MEDIUMlabel_studio/tests/sdk/test_prediction_validation.py21 # Create a project with a comprehensive label configurationCOMMENT
MEDIUMlabel_studio/tests/sdk/test_prediction_validation.py51 # Create a taskSTRING
MEDIUMlabel_studio/fsm/models.py238 # Create a temporary transition instance with full contextCOMMENT
MEDIUM⚡label_studio/fsm/tests/test_lso_integration.py147 # Create a project but delete its state recordsCOMMENT
MEDIUMlabel_studio/fsm/tests/test_lso_integration.py195 # Create a mock entity that doesn't have a state modelCOMMENT
MEDIUMlabel_studio/fsm/tests/test_fsm_integration.py369 # Create a state transitionCOMMENT
MEDIUMlabel_studio/data_manager/prepare_params.py300# Define the schemas for filters and selectedItemsCOMMENT
MEDIUMlabel_studio/data_manager/prepare_params.py452# Define the main schema for the data payloadCOMMENT
MEDIUMlabel_studio/data_manager/tests/test_managers.py165 # Create a simple mock querysetCOMMENT
MEDIUMlabel_studio/data_export/api.py188 # Create a prefetch for annotations with FSM stateSTRING
MEDIUMlabel_studio/users/tests/test_hotkeys_api.py21 # Create a test userCOMMENT
MEDIUMlabel_studio/jwt_auth/views.py263 # Create a new token for the userCOMMENT
Empty Error Handlers25 hits · 125 pts
SeverityFileLineSnippetContext
HIGHlabel_studio/tasks/api.py1159except AnnotationDraft.DoesNotExist:CODE
HIGHlabel_studio/core/urls.py119except ImportError:CODE
HIGHlabel_studio/core/middleware.py193except: # noqa: E722CODE
HIGHlabel_studio/core/utils/db.py244except RuntimeError:CODE
HIGHlabel_studio/core/utils/io.py89except OSError:CODE
HIGHlabel_studio/core/utils/common.py475except: # noqa: E722CODE
HIGHlabel_studio/core/utils/common.py483except: # noqa: E722CODE
HIGHlabel_studio/core/utils/common.py491except Exception:CODE
HIGHlabel_studio/core/utils/common.py499except Exception:CODE
HIGHlabel_studio/core/utils/manifest_assets.py16except Exception:CODE
HIGHlabel_studio/core/utils/contextlog.py329except: # noqa: E722CODE
HIGHlabel_studio/core/utils/contextlog.py335except: # noqa: E722CODE
HIGHlabel_studio/io_storages/utils.py263except json.decoder.JSONDecodeError:CODE
HIGHlabel_studio/io_storages/azure_blob/utils.py57except Exception:CODE
HIGHlabel_studio/io_storages/azure_blob/utils.py77except Exception:CODE
HIGHlabel_studio/projects/serializers.py280except ValueError:CODE
HIGHlabel_studio/projects/api.py433except KeyError:CODE
HIGHlabel_studio/tests/conftest.py432except ImportError:CODE
HIGHlabel_studio/tests/test_batch_update_deadlock.py45except OperationalError:CODE
HIGHlabel_studio/fsm/tests/test_performance_concurrency.py479except Exception:CODE
HIGHlabel_studio/fsm/tests/test_performance_concurrency.py488except Exception:CODE
HIGHlabel_studio/data_manager/actions/experimental.py31except KeyError:CODE
HIGH…dio/data_manager/actions/predictions_to_annotations.py70except ValueError:CODE
HIGHlabel_studio/data_import/functions.py256except Exception:CODE
HIGHlabel_studio/data_import/models.py62except: # noqa: E722CODE
Modern Structural Boilerplate104 hits · 106 pts
SeverityFileLineSnippetContext
LOWlabel_studio/server.py26logger = logging.getLogger(__name__)CODE
LOWlabel_studio/organizations/models.py13logger = logging.getLogger(__name__)CODE
LOWlabel_studio/organizations/api.py39logger = logging.getLogger(__name__)CODE
LOWlabel_studio/organizations/middleware.py7logger = logging.getLogger(__name__)CODE
LOWlabel_studio/tasks/functions.py24logger = logging.getLogger(__name__)CODE
LOW⚡label_studio/tasks/mixins.py13 def update_is_labeled(self, *args, **kwargs) -> None:CODE
LOWlabel_studio/tasks/models.py47logger = logging.getLogger(__name__)CODE
LOWlabel_studio/tasks/serializers.py45logger = logging.getLogger(__name__)CODE
LOWlabel_studio/tasks/apps.py7logger = logging.getLogger(__name__)CODE
LOWlabel_studio/tasks/api.py54logger = logging.getLogger(__name__)CODE
LOWlabel_studio/tasks/validation.py42logger = logging.getLogger(__name__)CODE
LOW…tasks/management/commands/recalculate_task_counters.py28logger = logging.getLogger(__name__)CODE
LOW…el_studio/tasks/management/commands/calculate_stats.py8logger = logging.getLogger(__name__)CODE
LOWlabel_studio/core/mixins.py9logger = logging.getLogger(__name__)CODE
LOWlabel_studio/core/label_config.py23logger = logging.getLogger(__name__)CODE
LOWlabel_studio/core/models.py9logger = logging.getLogger(__name__)CODE
LOWlabel_studio/core/redis.py20logger = logging.getLogger(__name__)CODE
LOWlabel_studio/core/storage.py15logger = logging.getLogger(__name__)CODE
LOWlabel_studio/core/permissions.py10logger = logging.getLogger(__name__)CODE
LOWlabel_studio/core/job_deduplication.py71logger = logging.getLogger(__name__)CODE
LOWlabel_studio/core/middleware.py22logger = logging.getLogger(__name__)CODE
LOWlabel_studio/core/migration_helpers.py10logger = logging.getLogger(__name__)CODE
LOWlabel_studio/core/views.py25logger = logging.getLogger(__name__)CODE
LOWlabel_studio/core/settings/base.py89logger = logging.getLogger(__name__)CODE
LOWlabel_studio/core/feature_flags/base.py17logger = logging.getLogger(__name__)CODE
LOW…udio/core/management/commands/show_async_migrations.py6logger = logging.getLogger(__name__)CODE
LOWlabel_studio/core/management/commands/locked_migrate.py8logger = logging.getLogger(__name__)CODE
LOWlabel_studio/core/utils/db.py12logger = logging.getLogger(__name__)CODE
LOWlabel_studio/core/utils/secret_key.py8logger = logging.getLogger(__name__)CODE
LOWlabel_studio/core/utils/common.py72logger = logging.getLogger(__name__)CODE
LOWlabel_studio/core/utils/contextlog.py20logger = logging.getLogger(__name__)CODE
LOWlabel_studio/io_storages/functions.py15logger = logging.getLogger(__name__)CODE
LOWlabel_studio/io_storages/proxy_api.py23logger = logging.getLogger(__name__)CODE
LOWlabel_studio/io_storages/base_models.py49logger = logging.getLogger(__name__)CODE
LOWlabel_studio/io_storages/filesystem.py12logger = logging.getLogger(__name__)CODE
LOWlabel_studio/io_storages/api.py20logger = logging.getLogger(__name__)CODE
LOWlabel_studio/io_storages/utils.py14logger = logging.getLogger(__name__)CODE
LOWlabel_studio/io_storages/all_api.py19logger = logging.getLogger(__name__)CODE
LOWlabel_studio/io_storages/react_code_proxy.py23logger = logging.getLogger(__name__)CODE
LOWlabel_studio/io_storages/s3/models.py39logger = logging.getLogger(__name__)CODE
LOWlabel_studio/io_storages/s3/serializers.py15logger = logging.getLogger(__name__)CODE
LOWlabel_studio/io_storages/s3/utils.py23logger = logging.getLogger(__name__)CODE
LOWlabel_studio/io_storages/redis/models.py23logger = logging.getLogger(__name__)CODE
LOWlabel_studio/io_storages/localfiles/models.py28logger = logging.getLogger(__name__)CODE
LOWlabel_studio/io_storages/localfiles/views.py21logger = logging.getLogger(__name__)CODE
LOWlabel_studio/io_storages/azure_blob/models.py36logger = logging.getLogger(__name__)CODE
LOWlabel_studio/io_storages/azure_blob/utils.py11logger = logging.getLogger(__name__)CODE
LOWlabel_studio/io_storages/gcs/models.py33logger = logging.getLogger(__name__)CODE
LOWlabel_studio/io_storages/gcs/utils.py20logger = logging.getLogger(__name__)CODE
LOWlabel_studio/projects/models.py66logger = logging.getLogger(__name__)CODE
LOWlabel_studio/projects/import_health.py13logger = logging.getLogger(__name__)CODE
LOWlabel_studio/projects/apps.py7logger = logging.getLogger(__name__)CODE
LOWlabel_studio/projects/api.py72logger = logging.getLogger(__name__)CODE
LOWlabel_studio/projects/views.py8logger = logging.getLogger(__name__)CODE
LOWlabel_studio/projects/functions/next_task.py16logger = logging.getLogger(__name__)CODE
LOWlabel_studio/tests/test_config_validation.py18logger = logging.getLogger(__name__)CODE
LOWlabel_studio/tests/utils.py33logger = logging.getLogger(__name__)CODE
LOWlabel_studio/ml_model_providers/models.py11logger = logging.getLogger(__name__)CODE
LOWlabel_studio/fsm/functions.py24logger = logging.getLogger(__name__)CODE
LOWlabel_studio/fsm/state_manager.py21logger = logging.getLogger(__name__)CODE
44 more matches not shown…
Deep Nesting115 hits · 101 pts
SeverityFileLineSnippetContext
LOWlabel_studio/server.py276CODE
LOWlabel_studio/tasks/models.py225CODE
LOWlabel_studio/tasks/models.py1107CODE
LOWlabel_studio/tasks/serializers.py590CODE
LOWlabel_studio/tasks/serializers.py696CODE
LOWlabel_studio/tasks/serializers.py782CODE
LOWlabel_studio/tasks/serializers.py1219CODE
LOWlabel_studio/tasks/api.py576CODE
LOWlabel_studio/tasks/api.py754CODE
LOWlabel_studio/tasks/api.py595CODE
LOWlabel_studio/tasks/api.py786CODE
LOWlabel_studio/tasks/validation.py133CODE
LOWlabel_studio/core/label_config.py57CODE
LOWlabel_studio/core/label_config.py146CODE
LOWlabel_studio/core/label_config.py245CODE
LOWlabel_studio/core/label_config.py262CODE
LOWlabel_studio/core/old_ls_migration.py39CODE
LOWlabel_studio/core/old_ls_migration.py82CODE
LOWlabel_studio/core/old_ls_migration.py127CODE
LOWlabel_studio/core/redis.py264CODE
LOWlabel_studio/core/middleware.py278CODE
LOW…_studio/core/management/commands/check_schema_drift.py92CODE
LOWlabel_studio/core/utils/db.py40CODE
LOWlabel_studio/core/utils/io.py39CODE
LOWlabel_studio/core/utils/serializer_to_openapi_params.py85CODE
LOWlabel_studio/core/utils/serializer_to_openapi_params.py150CODE
LOWlabel_studio/core/utils/common.py637CODE
LOWlabel_studio/core/utils/contextlog.py208CODE
LOWlabel_studio/core/utils/filterset_to_openapi_params.py109CODE
LOWlabel_studio/core/utils/filterset_to_openapi_params.py174CODE
LOWlabel_studio/io_storages/proxy_api.py233CODE
LOWlabel_studio/io_storages/base_models.py170CODE
LOWlabel_studio/io_storages/base_models.py395CODE
LOWlabel_studio/io_storages/base_models.py576CODE
LOWlabel_studio/io_storages/base_models.py704CODE
LOWlabel_studio/io_storages/base_models.py1018CODE
LOWlabel_studio/io_storages/utils.py200CODE
LOWlabel_studio/io_storages/azure_blob/models.py163CODE
LOWlabel_studio/io_storages/gcs/utils.py52CODE
LOWlabel_studio/projects/models.py498CODE
LOWlabel_studio/projects/models.py652CODE
LOWlabel_studio/projects/models.py884CODE
LOWlabel_studio/projects/models.py1118CODE
LOWlabel_studio/projects/models.py1204CODE
LOWlabel_studio/projects/models.py1610CODE
LOWlabel_studio/projects/models.py1765CODE
LOWlabel_studio/projects/models.py1864CODE
LOWlabel_studio/projects/serializers.py171CODE
LOWlabel_studio/projects/functions/stream_history.py10CODE
LOWlabel_studio/projects/functions/utils.py56CODE
LOWlabel_studio/projects/functions/next_task.py423CODE
LOWlabel_studio/projects/functions/next_task.py453CODE
LOWlabel_studio/tests/test_endpoints.py294CODE
LOWlabel_studio/tests/utils.py87CODE
LOWlabel_studio/tests/utils.py168CODE
LOWlabel_studio/tests/utils.py211CODE
LOWlabel_studio/tests/test_tasks_upload.py15CODE
LOW…studio/tests/data_manager/actions/test_cache_labels.py24CODE
LOWlabel_studio/fsm/functions.py132CODE
LOWlabel_studio/fsm/state_manager.py215CODE
55 more matches not shown…
Verbosity Indicators45 hits · 72 pts
SeverityFileLineSnippetContext
LOW⚡label_studio/tests/test_fsm_lso_workflows.py431 # Step 1: Create projectCOMMENT
LOW⚡label_studio/tests/test_fsm_lso_workflows.py438 # Step 2: Create 2 tasksCOMMENT
LOW⚡label_studio/tests/test_fsm_lso_workflows.py448 # Step 3: Submit annotation on task1COMMENT
LOW⚡label_studio/tests/test_fsm_lso_workflows.py458 # Step 4: Submit annotation on task2COMMENT
LOW⚡label_studio/tests/test_fsm_lso_workflows.py468 # Step 5: Delete annotation from task1COMMENT
LOW⚡label_studio/tests/test_fsm_lso_workflows.py473 # Step 6: Re-submit annotation on task1COMMENT
LOW⚡label_studio/tests/test_fsm_lso_workflows.py526 # Step 1: Create task directly without FSM stateCOMMENT
LOW⚡label_studio/tests/test_fsm_lso_workflows.py533 # Step 2: Create annotation directlyCOMMENT
LOW⚡label_studio/tests/test_fsm_lso_workflows.py543 # Step 3: Delete annotation via SDK (this triggers FSM logic)COMMENT
LOW⚡label_studio/tests/test_fsm_lso_workflows.py546 # Step 4: Verify task state was initialized and updatedCOMMENT
LOW⚡label_studio/tests/test_fsm_lso_workflows.py571 # Step 1: Create task without FSM stateCOMMENT
LOW⚡label_studio/tests/test_fsm_lso_workflows.py581 # Step 2: Submit annotation via SDKCOMMENT
LOW⚡label_studio/tests/test_fsm_lso_workflows.py588 # Step 3: Verify states initializedCOMMENT
LOW⚡label_studio/tests/test_fsm_lso_workflows.py630 # Step 2: Submit annotation on first task only via SDKCOMMENT
LOW⚡label_studio/tests/test_fsm_lso_workflows.py637 # Step 3: Verify both tasks now have statesCOMMENT
LOW⚡label_studio/tests/test_fsm_lso_workflows.py650 # Step 4: Verify project state is correct (IN_PROGRESS - some tasks completed)COMMENT
LOW⚡label_studio/tests/test_fsm_lso_workflows.py681 # Step 1: Create 3 tasks without FSM statesCOMMENT
LOW⚡label_studio/tests/test_fsm_lso_workflows.py689 # Step 2: Submit annotations on all tasks via SDKCOMMENT
LOW⚡label_studio/tests/test_fsm_lso_workflows.py699 # Step 3: Verify all tasks have correct statesCOMMENT
LOW⚡label_studio/tests/test_fsm_lso_workflows.py704 # Step 4: Verify project is COMPLETED (all tasks completed)COMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py619 # Step 1: Create two tasks without FSM statesCOMMENT
LOWlabel_studio/tests/data_manager/test_undefined.py60 # Step 1: Import task 1: {"$undefined$": "photo1.jpg"}COMMENT
LOW⚡label_studio/tests/data_manager/test_undefined.py83 # Step 4: Set labeling config <View> <Image value="$image" name="img"/> </View>COMMENT
LOW⚡label_studio/tests/data_manager/test_undefined.py93 # Step 7: Add task 2: {"$undefined$": "photo2.jpg", "extra": "123"}COMMENT
LOW⚡label_studio/tests/data_manager/test_undefined.py111 # Step 12: Update task 1 with {"extra": "456"}COMMENT
LOW⚡label_studio/tests/data_manager/test_undefined.py119 # Step 13: Check project.summary.common_data_columns, there should be ["$undefined$", "extra"]COMMENT
LOW⚡label_studio/tests/data_manager/test_undefined.py127 # Step 14: Filter by "image" with "photo" should return task 1 and task 2COMMENT
LOW⚡label_studio/tests/data_manager/test_views_api.py717 # Step 4: Test that the PATCHed view filters tasks correctlySTRING
LOW⚡label_studio/tests/data_manager/test_views_api.py726 # Step 5: PATCH again to modify the child filterSTRING
LOWlabel_studio/tests/data_manager/test_views_api.py601 # Step 1: Create a view with a non-nested filterSTRING
LOWlabel_studio/tests/data_manager/test_views_api.py660 # Step 2: PATCH the view to add a child filterSTRING
LOWlabel_studio/tests/data_manager/test_views_api.py691 # Step 3: Verify the PATCHed view has the child filterSTRING
LOWlabel_studio/tests/data_manager/test_views_api.py757 # Step 6: Verify the child filter was updatedSTRING
LOW…bel_studio/fsm/tests/test_integration_django_models.py210 # Step 1: Create taskCOMMENT
LOW…bel_studio/fsm/tests/test_integration_django_models.py232 # Step 2: Assign and start taskCOMMENT
LOW…bel_studio/fsm/tests/test_integration_django_models.py258 # Step 3: Complete taskCOMMENT
LOW⚡label_studio/fsm/tests/test_api_example.py127 # Step 1: Create transition from API dataCOMMENT
LOW⚡label_studio/fsm/tests/test_api_example.py130 # Step 2: Execute transitionCOMMENT
LOWlabel_studio/fsm/tests/test_api_example.py145 # Step 3: Format API responseCOMMENT
LOWweb/libs/editor/src/regions/Result.js263 // We need to check if there is any node up in the tree with visibility restrictions so we can determineCOMMENT
LOWweb/libs/editor/src/tags/object/Paragraphs/model.js382 * so we need to check if we already reached the end of current regionCOMMENT
LOW⚡…libs/editor/src/components/KonvaVector/KonvaVector.tsx637 // Step 1: ScaleCOMMENT
LOW⚡…libs/editor/src/components/KonvaVector/KonvaVector.tsx641 // Step 2: RotateCOMMENT
LOW⚡…libs/editor/src/components/KonvaVector/KonvaVector.tsx645 // Step 3: Translate and clamp to image boundsCOMMENT
LOWweb/apps/playground/src/utils/query.ts19 // We need to check if the content is XML-like, but not XMLCOMMENT
Docstring Block Structure14 hits · 70 pts
SeverityFileLineSnippetContext
HIGHlabel_studio/io_storages/functions.py19 Preload and prepare a storage instance from request data. This function handles the common logic for loading eSTRING
HIGHlabel_studio/fsm/state_manager.py116 Get current state with basic caching. Args: entity: The entity to get current state for STRING
HIGHlabel_studio/fsm/state_manager.py194 Get current state object with full audit information. Args: entity: The entity to get currSTRING
HIGHlabel_studio/fsm/state_manager.py226 Perform state transition with audit trail. Uses INSERT-only approach for maximum performance: STRING
HIGHlabel_studio/fsm/state_manager.py520 Execute a registered transition by name. This is the main entry point for all state transitions using STRING
HIGHlabel_studio/fsm/transition_executor.py28 Execute a registered transition using StateManager methods passed as parameters. This function is called by StSTRING
HIGHlabel_studio/fsm/transitions.py194 Validate whether this specific transition instance can be performed. This method validates both the trSTRING
HIGHlabel_studio/fsm/transitions.py230 Execute the transition and return context data for the state record. This is the core method that implSTRING
HIGHlabel_studio/fsm/transitions.py282 Prepare and validate the transition, returning the transition data. This method handles the preparatioSTRING
HIGHlabel_studio/fsm/transitions.py418 Validate whether this transition should execute. Extends parent validation with should_execute() checkSTRING
HIGHlabel_studio/fsm/utils.py317 Get current state, or initialize it if it doesn't exist. This function handles "cold start" scenarios where prSTRING
HIGHlabel_studio/fsm/transition_utils.py108 Create a transition instance from a dictionary of data. This handles Pydantic validation and provides clear erSTRING
HIGHlabel_studio/fsm/state_inference.py11 Infer what the FSM state should be based on entity's current data. This is used for "cold start" scenarios wheSTRING
HIGHlabel_studio/users/views.py140 Handle user account view and profile updates. This view displays the user's profile information and allows theSTRING
Fake / Example Data56 hits · 60 pts
SeverityFileLineSnippetContext
LOWlabel_studio/tasks/api.py717 'email': 'user@example.com',CODE
LOW…io/tasks/tests/test_deleted_user_task_serialization.py62 assert 'John Doe' in active_data['created_username']CODE
LOWlabel_studio/core/static/js/vue.js6!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&defineCODE
LOWlabel_studio/tests/test_core.py98 (['label-studio', 'user', '--username', 'test@test.com', '--password', '12345678'], None),CODE
LOW…studio/tests/data_manager/actions/test_experimental.py257 'placeholder': 'Search or add a column',CODE
LOWlabel_studio/fsm/tests/test_storage_sync_workflows.py277 'value': {'start': 0, 'end': 8, 'text': 'John Doe', 'labels': ['Person']},CODE
LOWlabel_studio/fsm/tests/test_storage_sync_workflows.py289 'value': {'start': 0, 'end': 8, 'text': 'John Doe', 'labels': ['Person']},CODE
LOWlabel_studio/fsm/tests/test_storage_sync_workflows.py295 'value': {'start': 18, 'end': 27, 'text': 'Acme Corp', 'labels': ['Organization']},CODE
LOWlabel_studio/fsm/tests/test_transitions.py684 required_field='test', email_field='user@example.com', number_field=75CODE
LOWlabel_studio/data_manager/actions/basic.py203 'placeholder': 'All',CODE
LOWlabel_studio/data_manager/actions/data_columns.py355 'placeholder': 'Search or add a column',CODE
LOW…level-sentiment-analysis-of-x-twitter-posts/config.xml35 <Header name="username" value="John Doe" />CODE
LOW…level-sentiment-analysis-of-x-twitter-posts/config.yml42 <Header name="username" value="John Doe" />CODE
LOWweb/libs/ui/src/lib/code-editor/cm5-compat-shim.ts236 if (key === "placeholder") {CODE
LOW…/lib/ai-chat/ai-chat-prompt-bar/ai-chat-prompt-bar.tsx52 "value" | "defaultValue" | "onChange" | "disabled" | "placeholder"CODE
LOW…rc/lib/collapsible-panel/collapsible-panel.stories.tsx259 {["John Doe", "Jane Smith", "Bob Johnson", "Alice Brown", "Charlie Wilson"].map((name) => (CODE
LOWweb/libs/ui/src/lib/typography/typography.stories.tsx337 "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aCODE
LOWweb/libs/ui/src/lib/typography/typography.stories.tsx337 "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aCODE
LOWweb/libs/ui/src/lib/badge-group/badge-group.stories.tsx160 name: "John Doe",CODE
LOWweb/libs/ui/src/lib/select/types.ts146 Omit<React.SelectHTMLAttributes<HTMLSelectElement>, "value" | "placeholder">;CODE
LOWweb/libs/ui/src/lib/json-viewer/json-viewer.stories.tsx13 author: "John Doe",CODE
LOWweb/libs/ui/src/lib/json-viewer/json-viewer.stories.tsx65 name: "John Doe",CODE
LOWweb/libs/ui/src/lib/json-viewer/json-viewer.stories.tsx274 "This is a very long string that will be truncated. Lorem ipsum dolor sit amet, consectetur adipiscing elit. SedCODE
LOWweb/libs/ui/src/lib/json-viewer/json-viewer.stories.tsx274 "This is a very long string that will be truncated. Lorem ipsum dolor sit amet, consectetur adipiscing elit. SedCODE
LOWweb/libs/ui/src/lib/badge/badge.stories.tsx438 { name: "John Doe", email: "john@example.com", role: "Admin", status: "Annotating", verified: true },CODE
LOWweb/libs/ui/src/lib/data-table/data-table.stories.tsx37 name: "John Doe",CODE
LOWweb/libs/core/src/lib/utils/schema/tags.json2467 "placeholder": {CODE
LOWweb/libs/core/src/lib/utils/schema/tags.json2468 "name": "placeholder",CODE
LOWweb/libs/core/src/lib/utils/schema/tags.json3136 "placeholder": {CODE
LOWweb/libs/core/src/lib/utils/schema/tags.json3137 "name": "placeholder",CODE
LOW…sts/integration/e2e/labels/multiple-label-blocks.cy.ts238 Paragraphs.selectText("Lorem ipsum dolor sit amet");CODE
LOW…sts/integration/e2e/labels/multiple-label-blocks.cy.ts238 Paragraphs.selectText("Lorem ipsum dolor sit amet");CODE
LOW…tests/integration/data/labels/multiple-label-blocks.ts159 text: "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",CODE
LOW…tests/integration/data/labels/multiple-label-blocks.ts159 text: "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",CODE
LOWweb/libs/editor/src/stores/__tests__/UserStore.test.js28 expect(store.displayName).toBe("Jane Doe");CODE
LOWweb/libs/editor/src/stores/__tests__/UserStore.test.js53 expect(user.displayName).toBe("Jane Doe");CODE
LOW…/components/TaskSummary/__tests__/TaskSummary.test.tsx96 displayName: "John Doe",CODE
LOW…/components/TaskSummary/__tests__/TaskSummary.test.tsx113 createdBy: "John Doe",CODE
LOWdocs/source/guide/embed.md68 "user_email": "user@example.com",CODE
LOWdocs/source/guide/embed.md93 user_email: "user@example.com",CODE
LOW⚡docs/source/guide/agreement_metrics.md554| Annotator A | "John Smith" | "123 Main St" | "New York" |CODE
LOW⚡docs/source/guide/agreement_metrics.md555| Annotator B | "John Smith" | "123 Main Street" | "New York" |CODE
LOW⚡docs/source/guide/agreement_metrics.md558- Line 2: "123 Main St" vs "123 Main Street" → **~0.81**CODE
LOWdocs/source/plugins/llm_backend.md88 to_name: "placeholder",CODE
LOWdocs/source/plugins/llm_backend.md100 to_name: "placeholder",CODE
LOWdocs/source/plugins/llm_backend.md112 to_name: "placeholder",CODE
LOW⚡docs/source/plugins/llm_backend.md168 <View className="placeholder">CODE
LOW⚡docs/source/plugins/llm_backend.md169 <Text name="placeholder" value="placeholder" />CODE
LOW⚡docs/source/plugins/llm_backend.md175 toName="placeholder"CODE
LOWdocs/source/plugins/llm_backend.md189 toName="placeholder"CODE
LOWdocs/source/plugins/llm_backend.md201 <Choices name="category" toName="placeholder" choice="single" showInLine="true">CODE
LOWdocs/source/plugins/llm_backend.md211 toName="placeholder"CODE
LOWdocs/source/tags/reactcode.md709 { text: "John Doe", label: "PERSON", start: 0, end: 8 },CODE
LOWdocs/source/tags/reactcode.md727 "text": "John Doe",CODE
LOW…tes/two_level_sentiment_analysis_of_x_twitter_posts.md58 <Header name="username" value="John Doe" />CODE
LOW⚡docs/themes/v2/source/js/playground/jquery-ui.min.js6(function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)})(function(t){function e(t){for(var e=CODE
Over-Commented Block49 hits · 49 pts
SeverityFileLineSnippetContext
LOWlabel_studio/tasks/tests/test_serializers.py21 # returns that int (when every task already has a matching prediction),COMMENT
LOWlabel_studio/tasks/tests/test_serializers.py41 assert isinstance(predictions, list)COMMENT
LOWlabel_studio/core/job_deduplication.py1"""This file and its contents are licensed under the Apache License 2.0. Please see the included NOTICE for copyright inCOMMENT
LOWlabel_studio/core/job_deduplication.py21# * running_key — set atomically via SET NX when a job is enqueued. ReleasedCOMMENT
LOWlabel_studio/core/job_deduplication.py41#COMMENT
LOWlabel_studio/core/utils/db.py161 # The iterator position is maintained between calls to isliceCOMMENT
LOWlabel_studio/core/static/js/sw.js41 // For now just catch presign requests and cache themCOMMENT
LOWlabel_studio/io_storages/proxy_api.py101 # Not all storages support presigned URLsCOMMENT
LOWlabel_studio/projects/api.py441 instance.delete()COMMENT
LOWlabel_studio/tests/shared_stages.yml181# headers:COMMENT
LOWlabel_studio/tests/test_docs.py1# ---COMMENT
LOWlabel_studio/tests/test_annotations.py261# assert task.annotations.count() == len(annotations)COMMENT
LOWlabel_studio/tests/test_annotations.py281# assert r.status_code == 204COMMENT
LOWlabel_studio/tests/test_data/full_steps.yml61 - negCOMMENT
LOWlabel_studio/tests/test_data/full_steps.yml81#COMMENT
LOWlabel_studio/tests/test_data/full_steps.yml101# choices:COMMENT
LOWweb/netlify.toml1# Read by the Netlify sites whose base directory is `web`:COMMENT
LOWweb/libs/ui/src/lib/collection-uploader/media-card.tsx161 // Degrade gracefully on an unknown state (e.g. a legacy template snapshotCOMMENT
LOWweb/libs/core/src/lib/utils/analytics.ts41COMMENT
LOWweb/libs/core/src/lib/Tour/Tour.tsx21 console.error("Tour context not found");COMMENT
LOW…itor/tests/integration/e2e/sync/audio_paragraphs.cy.ts401 AudioView.isReady();COMMENT
LOWweb/libs/editor/src/serviceWorker.js1// This optional code is used to register a service worker.COMMENT
LOW…bs/editor/src/ml-interactive/InteractiveActionsBar.tsx121 [resolved?.control],COMMENT
LOW…itor/src/ml-interactive/primitives/useInputHandlers.ts221 target.removeEventListener("click", block, useCapture);COMMENT
LOW…ditor/src/ml-interactive/primitives/useTrackForward.ts321 typeof trackedRegion.setClosed === "function"COMMENT
LOWweb/libs/editor/src/regions/Result.js81COMMENT
LOWweb/libs/editor/src/tools/VideoVector.js361 // No bezier: mousemove is a no-opCOMMENT
LOWweb/libs/editor/src/stores/Annotation/Annotation.js1241COMMENT
LOWweb/libs/editor/src/stores/Annotation/HistoryItem.js1import { types } from "mobx-state-tree";COMMENT
LOWweb/libs/editor/src/stores/__tests__/TaskStore.test.js61// const initialState = {COMMENT
LOWweb/libs/editor/src/utils/magic-wand.js1/* eslint-disable prefer-const */COMMENT
LOWweb/libs/editor/src/tags/control/Choices.jsx161 },COMMENT
LOW…ibs/editor/src/components/KonvaVector/eventHandlers.ts1// This file has been refactored into smaller, more manageable chunks.COMMENT
LOWweb/apps/labelstudio/tsconfig.json1{COMMENT
LOWweb/apps/labelstudio/tsconfig.json21 // "noEmit": true, /* Do not emit outputs. */COMMENT
LOWweb/apps/labelstudio/tsconfig.json41 /* Module Resolution Options */COMMENT
LOWweb/apps/labelstudio-e2e/src/support/e2e.ts1// ***********************************************************COMMENT
LOWdocs/source/guide/install_enterprise_docker.md101# Optional: PostgreSQL SSL modeCOMMENT
LOWdocs/source/guide/install_enterprise_docker.md121# Optional: Redis socket timeoutCOMMENT
LOWdocs/source/templates/react_claims.md81 // - Hierarchical tree view of agent steps (thoughts, tool calls, sub-agents, outputs)COMMENT
LOWdocs/source/templates/interfaces-agent-eval.md181 // Emits up to five independent results, all with to_name: "run":COMMENT
LOWdocs/themes/v2/source/js/playground/codemirror.js1281 // One-char codes used for character types:COMMENT
LOWdocs/themes/v2/source/js/playground/codemirror.js3641 }COMMENT
LOWdocs/themes/v2/source/js/playground/codemirror.js7321 }COMMENT
LOW.devcontainer/docker-compose.yml1version: "3.3"COMMENT
LOW.devcontainer/docker-compose.yml21 # dockerfile: .devcontainer/DockerfileCOMMENT
LOW.devcontainer/devcontainer.json41 "ms-azuretools.vscode-docker",COMMENT
LOW.github/workflows/invite-check.yml21 uses: slackapi/slack-github-action@v4.0COMMENT
LOW.github/workflows/invite-check.yml41# with:COMMENT
Redundant / Tautological Comments32 hits · 48 pts
SeverityFileLineSnippetContext
LOWlabel_studio/tasks/api.py1170 # Check if task is being skipped and if it's allowedSTRING
LOWlabel_studio/core/label_config.py282 is_value_list = 'valueList' in p.attrib # Check if the attribute is 'valueList'CODE
LOWlabel_studio/core/label_config.py423 # Check if formatted string is monotonic (to handle cycling due to format truncation)COMMENT
LOWlabel_studio/core/middleware.py309 # Check if this request is too far from when the login happenedCOMMENT
LOWlabel_studio/core/management/commands/locked_migrate.py62 # Check if the maximum wait time has been reachedCOMMENT
LOWlabel_studio/core/utils/db.py228 # Check if we're in an async context and need to allow async-unsafe operationsCOMMENT
LOWlabel_studio/io_storages/proxy_api.py107 # Check if storage should use presigned URLs;COMMENT
LOWlabel_studio/io_storages/proxy_api.py209 # Check if we've exceeded our time limitCOMMENT
LOWlabel_studio/io_storages/base_models.py780 # Check if file should be processed as JSON based on extensionCOMMENT
LOW⚡label_studio/io_storages/api.py218 # Check if we've reached the file limitCOMMENT
LOW⚡label_studio/io_storages/api.py223 # Check if we've exceeded the timeoutCOMMENT
LOWlabel_studio/io_storages/utils.py249 # Check if we got any items - if not, it's an empty array which is validCOMMENT
LOWlabel_studio/io_storages/localfiles/views.py59 # Check if the client's cached representation matches the current fileCOMMENT
LOWlabel_studio/projects/models.py760 # Check if labels created in annotations, and their control tag has been removedCOMMENT
LOWlabel_studio/projects/functions/utils.py29 # Check if it's a list of IDs (integers)COMMENT
LOWlabel_studio/projects/functions/utils.py40 # Check if it's a set of IDs (integers)COMMENT
LOWlabel_studio/projects/functions/next_task.py94 # Check if user is in onboarding window - return early if notCOMMENT
LOWlabel_studio/ml_model_providers/models.py134 # Check if user is Admin or OwnerCOMMENT
LOWlabel_studio/fsm/state_manager.py568 # Check if enterprise has configured a custom state managerCOMMENT
LOWlabel_studio/fsm/models.py208 # Check if this transition should execute based on trigger metadataCOMMENT
LOWlabel_studio/fsm/models.py225 # Check if any trigger fields changedCOMMENT
LOWlabel_studio/fsm/models.py247 # Check if should_execute is overridden (not using the base implementation)COMMENT
LOWlabel_studio/fsm/models.py380 # Check if this is a creation vs updateCOMMENT
LOWlabel_studio/fsm/transition_executor.py140 # Check if this transition forces state record creation (for audit trails)COMMENT
LOWlabel_studio/fsm/serializer_fields.py115 # Check if the instance has a state annotationCOMMENT
LOWlabel_studio/users/serializers.py228 # Check if the action key follows the section:action formatCOMMENT
LOWlabel_studio/users/functions/last_activity.py70 # Increment counterCOMMENT
LOWlabel_studio/users/functions/last_activity.py125 # Set expiration to match other keysCOMMENT
LOWlabel_studio/webhooks/utils.py154 # Check if batching is neededCOMMENT
LOW…ocker-entrypoint.d/common/05-check-data-permissions.sh7# Check if data directory is writableCOMMENT
LOW…r-entrypoint.d/app-docker/05-check-data-permissions.sh7# Check if data directory is writableCOMMENT
LOWdocs/_config.yml92## Set per_page to 0 to disable paginationCOMMENT
Unused Imports40 hits · 40 pts
SeverityFileLineSnippetContext
LOWlabel_studio/tasks/result_utils.py10CODE
LOWlabel_studio/core/version.py1CODE
LOWlabel_studio/core/settings/label_studio.py5CODE
LOWlabel_studio/core/feature_flags/__init__.py1CODE
LOWlabel_studio/core/feature_flags/__init__.py1CODE
LOWlabel_studio/core/feature_flags/__init__.py1CODE
LOWlabel_studio/core/feature_flags/__init__.py1CODE
LOW…_studio/core/management/commands/check_schema_drift.py14CODE
LOWlabel_studio/core/utils/common.py3CODE
LOWlabel_studio/core/utils/common.py786CODE
LOWlabel_studio/io_storages/models.py5CODE
LOWlabel_studio/io_storages/models.py5CODE
LOWlabel_studio/io_storages/models.py5CODE
LOWlabel_studio/io_storages/models.py5CODE
LOWlabel_studio/io_storages/models.py11CODE
LOWlabel_studio/io_storages/models.py11CODE
LOWlabel_studio/io_storages/models.py11CODE
LOWlabel_studio/io_storages/models.py11CODE
LOWlabel_studio/io_storages/models.py17CODE
LOWlabel_studio/io_storages/models.py17CODE
LOWlabel_studio/io_storages/models.py17CODE
LOWlabel_studio/io_storages/models.py17CODE
LOWlabel_studio/io_storages/models.py23CODE
LOWlabel_studio/io_storages/models.py23CODE
LOWlabel_studio/io_storages/models.py23CODE
LOWlabel_studio/io_storages/models.py23CODE
LOW…o_storages/tests/test_storage_prediction_validation.py9CODE
LOWlabel_studio/projects/functions/utils.py11CODE
LOWlabel_studio/projects/functions/utils.py11CODE
LOWlabel_studio/tests/conftest.py35CODE
LOWlabel_studio/tests/conftest.py30CODE
LOWlabel_studio/fsm/registry.py15CODE
LOWlabel_studio/fsm/registry.py16CODE
LOWlabel_studio/fsm/apps.py30CODE
LOWlabel_studio/fsm/apps.py30CODE
LOWlabel_studio/fsm/apps.py38CODE
LOWlabel_studio/fsm/apps.py50CODE
LOWlabel_studio/fsm/apps.py50CODE
LOWlabel_studio/fsm/apps.py50CODE
LOWlabel_studio/users/functions/__init__.py1CODE
AI Response Leakage5 hits · 38 pts
SeverityFileLineSnippetContext
HIGHdocs/source/templates/chat_rlhf.md190* `value`: This is required, and should use a variable referencing your [input data](#Input-data). In this example, we uCOMMENT
HIGHdocs/source/templates/chat_llm_eval.md164* `value`: This is required, and should use a variable referencing your [input data](#Input-data). In this example, we uCOMMENT
HIGHdocs/source/templates/chatbot.md190* `value`: This is required, and should use a variable referencing your [input data](#Input-data). In this example, we uCOMMENT
HIGHdocs/source/templates/chat_red_team.md176* `value`: This is required, and should use a variable referencing your [input data](#Input-data). In this example, we uCOMMENT
HIGHdocs/source/templates/chat_eval.md82* `value`: This is required, and should use a variable referencing your [input data](#Input-data). In this example, we uCOMMENT
Cross-Language Confusion5 hits · 26 pts
SeverityFileLineSnippetContext
HIGHlabel_studio/core/argparser.py160 default_params = '{"annotations__completed_by": {"only_id": null}, "interpolate_key_frames": true}'CODE
HIGHlabel_studio/io_storages/base_models.py765 # pubsub.push(topic, key)COMMENT
HIGH⚡…bel_studio/io_storages/tests/test_storage_unique_id.py113 """Export JSON may include import_id: null; export id should still map."""STRING
HIGH…el_studio/tests/test_data/gen_tasks_and_annotations.py21tc_template = """{"id": %s,"review_result":null,"ground_truth":false,"result":[{"id":"MGK92Ogo4t","type":"choices","valuCODE
HIGH…bel_studio/tests/data_manager/test_ordering_filters.py47def test_views_ordering(ordering, element_index, undefined, business_client, project_id):CODE
AI Slop Vocabulary9 hits · 20 pts
SeverityFileLineSnippetContext
LOWlabel_studio/core/settings/base.py317# Typical secure configuration is simply set CORS_ALLOW_ALL_ORIGINS = False in the envCOMMENT
MEDIUMlabel_studio/io_storages/base_models.py908 # needed to facilitate debugging storage-related testcases, since otherwise no exception is loggedCOMMENT
MEDIUMlabel_studio/tests/test_prediction_validation.py46 # Create a project with a comprehensive label configurationCOMMENT
MEDIUMlabel_studio/tests/sdk/test_prediction_validation.py21 # Create a project with a comprehensive label configurationCOMMENT
MEDIUMlabel_studio/fsm/tests/test_api_example.py66 """Task assignment via API with comprehensive validation"""STRING
MEDIUMlabel_studio/data_manager/serializers.py243 # Allow underscores if the filter is based on the `task.data` JSONField, because these don't leverage foreigCOMMENT
LOWlabel_studio/jwt_auth/views.py149 # Would be ideal to just add a "blacklisted" attr to our own subclass ofCOMMENT
MEDIUMweb/libs/editor/examples/sentiment_analysis/tasks.json907 "reviewText": "This is good cable. Excellent 1/4&#34; plugs. The lugs and solder joints are covered with heaCODE
MEDIUM…libs/editor/src/examples/sentiment_analysis/tasks.json737 "reviewText": "This is good cable. Excellent 1/4&#34; plugs. The lugs and solder joints are covered with heat shriCODE
AI Structural Patterns8 hits · 8 pts
SeverityFileLineSnippetContext
LOWlabel_studio/organizations/middleware.py23CODE
LOWlabel_studio/tasks/functions.py27CODE
LOWlabel_studio/core/current_request.py150CODE
LOWlabel_studio/core/storage.py135CODE
LOWlabel_studio/projects/serializers.py401CODE
LOW…el_studio/tests/test_storage_create_list_edge_cases.py47CODE
LOWlabel_studio/users/functions/common.py93CODE
LOW…lpers/gh_changelog_generator/gh_changelog_generator.py353CODE
Slop Phrases3 hits · 7 pts
SeverityFileLineSnippetContext
MEDIUM…l_studio/users/product_tours/configs/create_prompt.yml10 content: '<div style="width: 100%;">We’ve gone ahead and generated a prompt for you based on your project’s labeling cCODE
MEDIUMweb/libs/core/src/lib/utils/schema/tags.json796 "description": "Video tag plays a simple video file. Use for video annotation tasks such as classification and transCODE
MEDIUM.devcontainer/docker-compose.yml5 # If you want add a non-root user to your Dockerfile, you can use the "remoteUser"COMMENT
Modern AI Meta-Vocabulary2 hits · 5 pts
SeverityFileLineSnippetContext
MEDIUM…/labelstudio/src/components/HeidiTips/liveContent.json244 "url": "https://humansignal.com/blog/introducing-human-in-the-loop-evaluation-for-agentic-ai-observability/",CODE
MEDIUMdocs/source/guide/enterprise_features.md248### Low-trust annotator guardrailsCOMMENT
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOWlabel_studio/tasks/models.py1225 # TODO: handle exceptions betterCOMMENT
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOWlabel_studio/data_manager/actions/__init__.py158def perform_action(action_id, project, queryset, user, **kwargs):CODE