Repository Analysis

HumanSignal/label-studio

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

5.7 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of HumanSignal/label-studio, a TypeScript project with 28,165 GitHub stars. SynthScan v2.0 examined 709,494 lines of code across 3958 source files, recording 2561 pattern matches distributed across 24 syntactic categories. The overall adjusted score of 5.7 places this repository in the Low 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).

5.7
Adjusted Score
5.7
Raw Score
100%
Time Factor
2026-08-28
Last Push
28.2K
Stars
TypeScript
Language
709.5K
Lines of Code
4.0K
Files
2.6K
Pattern Hits
2026-08-29
Scan Date
0.06
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 26HIGH 225MEDIUM 127LOW 2183

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

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

Hyper-Verbose Identifiers1476 hits · 1473 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.py190 def projects_sorted_by_created_at(self):CODE
LOWlabel_studio/organizations/models.py201 def per_project_invited_users(self):CODE
LOWlabel_studio/organizations/serializers.py58 def get_contributed_to_projects(self, user) -> list[ProjectInfo] | None:CODE
LOWlabel_studio/organizations/serializers.py83 def get_contributed_to_projects(self, member) -> list[ProjectInfo] | None:CODE
LOWlabel_studio/organizations/serializers.py100 def get_contributed_projects_count(self, member) -> int:CODE
LOWlabel_studio/organizations/serializers.py118 def get_contributed_to_projects(self, member) -> list[ProjectInfo] | None:CODE
LOWlabel_studio/organizations/api.py138 def _get_created_projects_map(self):STRING
LOWlabel_studio/organizations/api.py156 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
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
LOWlabel_studio/tasks/mixins.py14 def post_process_bulk_update_stats(cls, tasks) -> None:CODE
LOWlabel_studio/tasks/mixins.py24 def after_bulk_delete_actions(tasks_ids, project):CODE
LOWlabel_studio/tasks/models.py543 def increase_project_summary_counters(self):CODE
LOWlabel_studio/tasks/models.py548 def decrease_project_summary_counters(self):CODE
LOWlabel_studio/tasks/models.py553 def ensure_unique_groundtruth(self, annotation_id):CODE
LOWlabel_studio/tasks/models.py225 def get_predictions_for_prelabeling(self):CODE
LOWlabel_studio/tasks/models.py340 def overlap_with_agreement_threshold(self, num, num_locks):CODE
LOWlabel_studio/tasks/models.py571 def delete_tasks_without_signals(queryset):CODE
LOWlabel_studio/tasks/models.py594 def delete_tasks_without_signals_from_task_ids(task_ids):CODE
LOWlabel_studio/tasks/models.py807 def increase_project_summary_counters(self):CODE
LOWlabel_studio/tasks/models.py813 def decrease_project_summary_counters(self):CODE
LOWlabel_studio/tasks/models.py864 def _update_task_state_after_deletion(self, task, project):CODE
LOWlabel_studio/tasks/models.py870 def on_delete_update_counters(self):CODE
LOWlabel_studio/tasks/models.py1115 def prepare_prediction_result(cls, result, project):CODE
LOWlabel_studio/tasks/models.py1386def update_all_task_states_after_deleting_task(sender, instance, **kwargs):CODE
LOWlabel_studio/tasks/models.py1410def _task_data_is_not_updated(update_fields):CODE
LOWlabel_studio/tasks/models.py1416def delete_project_summary_data_columns_before_updating_task(sender, instance, update_fields, **kwargs):CODE
LOWlabel_studio/tasks/models.py1430def update_project_summary_data_columns(sender, instance, created, update_fields, **kwargs):CODE
LOWlabel_studio/tasks/models.py1439def delete_project_summary_annotations_before_updating_annotation(sender, instance, **kwargs):CODE
LOWlabel_studio/tasks/models.py1467def update_project_summary_annotations_and_is_labeled(sender, instance, created, **kwargs):CODE
LOWlabel_studio/tasks/models.py1483def update_task_counters_after_annotation_delete(sender, instance, **kwargs):CODE
LOWlabel_studio/tasks/models.py1522def remove_predictions_from_project(sender, instance, **kwargs):CODE
LOWlabel_studio/tasks/models.py1530def save_predictions_to_project(sender, instance, **kwargs):CODE
LOWlabel_studio/tasks/models.py1589def deprecated_bulk_update_stats_project_tasks(tasks, project=None):CODE
LOWlabel_studio/tasks/models.py1639def bulk_update_stats_project_tasks(tasks, project=None):CODE
LOWlabel_studio/tasks/serializers.py43def sanitize_prediction_import_payload(prediction):CODE
LOWlabel_studio/tasks/serializers.py208 def _resolve_project_for_validation(self, data):CODE
LOWlabel_studio/tasks/serializers.py563 def _insert_valid_completed_by(annotations, members_email_to_id, members_ids, default_user, ff_user=None):CODE
LOWlabel_studio/tasks/serializers.py622 def _insert_valid_user_reviews(dicts, members_email_to_id, default_user):CODE
LOWlabel_studio/tasks/serializers.py646 def _insert_valid_user_drafts(dicts, members_email_to_id, default_user):CODE
LOWlabel_studio/tasks/serializers.py1025 def post_process_custom_callback(project_id, user):CODE
LOWlabel_studio/tasks/api.py348 def get_retrieve_serializer_context(self, request):STRING
LOWlabel_studio/tasks/api.py374 def maybe_evaluate_predictions(self, project, request):STRING
LOWlabel_studio/tasks/api.py427 def get_excluded_fields_for_evaluation(self):STRING
LOWlabel_studio/tasks/api.py566 def merge_result_into_distributions(result):STRING
LOWlabel_studio/tasks/api.py757 def merge_result_into_distributions(result):CODE
LOWlabel_studio/tasks/api.py1417 def process_intermediate_state(self, annotation, draft):STRING
LOWlabel_studio/tasks/ordering.py25def parse_annotations_ordering_request(request):CODE
1416 more matches not shown…
Cross-File Repetition170 hits · 850 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
110 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
CRITICALdocs/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
CRITICALdocs/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 Wrapping181 hits · 191 pts
SeverityFileLineSnippetContext
LOWlabel_studio/server.py329 except Exception as e:CODE
LOWlabel_studio/tasks/models.py487 except Exception as exc:CODE
LOWlabel_studio/tasks/models.py509 except Exception as exc:CODE
LOWlabel_studio/tasks/models.py1232 except Exception as exc:CODE
LOWlabel_studio/tasks/models.py1366 except Exception as exc:CODE
LOWlabel_studio/tasks/models.py1397 except Exception as exc:CODE
LOWlabel_studio/tasks/serializers.py792 except Exception as e:CODE
LOWlabel_studio/tasks/serializers.py821 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.py49 except Exception:CODE
LOWlabel_studio/core/redis.py196 except Exception:CODE
LOWlabel_studio/core/redis.py202 except Exception:CODE
LOWlabel_studio/core/redis.py223 except Exception:CODE
LOWlabel_studio/core/redis.py285 except Exception as e:CODE
MEDIUMlabel_studio/core/redis.py21def _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
LOWlabel_studio/core/job_deduplication.py249 except Exception:CODE
LOWlabel_studio/core/job_deduplication.py258 except Exception:CODE
LOWlabel_studio/core/job_deduplication.py267 except Exception:CODE
LOWlabel_studio/core/job_deduplication.py325 except Exception:CODE
LOWlabel_studio/core/migration_helpers.py44 except Exception as rq_err:CODE
LOWlabel_studio/core/migration_helpers.py102 except Exception as e:CODE
LOWlabel_studio/core/migration_helpers.py118 except Exception as e:CODE
LOWlabel_studio/core/views.py164 except Exception:CODE
LOWlabel_studio/core/tests/test_redis.py60 except Exception as exc: # pragma: no cover - used for regression verificationCODE
MEDIUMlabel_studio/core/tests/test_redis.py57def runner():CODE
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.py40 except Exception as e:CODE
LOWlabel_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.py68 except Exception as exc:CODE
LOWlabel_studio/io_storages/proxy_api.py155 except Exception as exc:CODE
LOWlabel_studio/io_storages/proxy_api.py201 except Exception as e:CODE
LOWlabel_studio/io_storages/proxy_api.py207 except Exception as e:CODE
LOWlabel_studio/io_storages/proxy_api.py361 except Exception as e:CODE
LOWlabel_studio/io_storages/base_models.py237 except Exception:CODE
LOWlabel_studio/io_storages/base_models.py427 except Exception:CODE
LOWlabel_studio/io_storages/base_models.py475 except Exception:CODE
LOWlabel_studio/io_storages/base_models.py817 except Exception:CODE
LOWlabel_studio/io_storages/base_models.py969 except Exception:CODE
LOWlabel_studio/io_storages/base_models.py1029 except Exception:CODE
LOWlabel_studio/io_storages/base_models.py1111 except Exception as exc:CODE
LOWlabel_studio/io_storages/api.py106 except Exception as exc:CODE
LOWlabel_studio/io_storages/api.py229 except Exception as exc:CODE
LOWlabel_studio/io_storages/utils.py61 except Exception as exc:CODE
LOWlabel_studio/io_storages/utils.py94 except Exception as exc:CODE
121 more matches not shown…
Decorative Section Separators55 hits · 189 pts
SeverityFileLineSnippetContext
MEDIUMlabel_studio/organizations/serializers.py26# =========================================COMMENT
MEDIUMlabel_studio/organizations/serializers.py29# =========================================COMMENT
MEDIUMlabel_studio/organizations/serializers.py149# =========================================COMMENT
MEDIUMlabel_studio/tasks/tests/test_result_utils.py92# ---------------------------------------------------------------------------COMMENT
MEDIUMlabel_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.py964 # ============================================================================COMMENT
MEDIUMlabel_studio/projects/models.py966 # ============================================================================COMMENT
MEDIUMlabel_studio/tests/test_job_deduplication.py112# ---------------------------------------------------------------------------COMMENT
MEDIUMlabel_studio/tests/test_job_deduplication.py114# ---------------------------------------------------------------------------COMMENT
MEDIUMlabel_studio/tests/test_job_deduplication.py215# ---------------------------------------------------------------------------COMMENT
MEDIUMlabel_studio/tests/test_job_deduplication.py217# ---------------------------------------------------------------------------COMMENT
MEDIUMlabel_studio/tests/test_job_deduplication.py361# ---------------------------------------------------------------------------COMMENT
MEDIUMlabel_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
MEDIUMlabel_studio/tests/test_import_completed_by.py123# ---------------------------------------------------------------------------COMMENT
MEDIUMlabel_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
MEDIUMlabel_studio/fsm/models.py17# =============================================================================COMMENT
MEDIUMlabel_studio/fsm/models.py19# =============================================================================COMMENT
MEDIUMlabel_studio/fsm/utils.py25# =============================================================================COMMENT
MEDIUMlabel_studio/fsm/utils.py27# =============================================================================COMMENT
MEDIUMlabel_studio/fsm/utils.py206# =============================================================================COMMENT
MEDIUMlabel_studio/fsm/utils.py208# =============================================================================COMMENT
MEDIUMlabel_studio/fsm/state_models.py218# =============================================================================COMMENT
MEDIUMlabel_studio/fsm/state_models.py220# =============================================================================COMMENT
MEDIUMlabel_studio/fsm/tests/helpers.py27# ============================================================================COMMENT
MEDIUMlabel_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.jsx258// ── Option renderer ───────────────────────────────────────────────────────────COMMENT
MEDIUM…ibs/datamanager/src/components/Common/ColumnPicker.jsx298// ── 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
HIGHdocs/source/templates/video_object_detector.md273- Replace `YOUR_API_KEY` with your actual API key.CODE
HIGHdocs/source/templates/video_object_detector.md283label-studio export --host http://localhost:8080 --api-key YOUR_API_KEY PROJECT_ID JSON --interpolate-key-framesCODE
HIGHdocs/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
LOWlabel_studio/tests/test_fsm_lso_workflows.py431 # Step 1: Create projectCOMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py438 # Step 2: Create 2 tasksCOMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py448 # Step 3: Submit annotation on task1COMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py458 # Step 4: Submit annotation on task2COMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py468 # Step 5: Delete annotation from task1COMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py473 # Step 6: Re-submit annotation on task1COMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py526 # Step 1: Create task directly without FSM stateCOMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py533 # Step 2: Create annotation directlyCOMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py543 # Step 3: Delete annotation via SDK (this triggers FSM logic)COMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py546 # Step 4: Verify task state was initialized and updatedCOMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py571 # Step 1: Create task without FSM stateCOMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py581 # Step 2: Submit annotation via SDKCOMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py588 # Step 3: Verify states initializedCOMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py630 # Step 2: Submit annotation on first task only via SDKCOMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py637 # Step 3: Verify both tasks now have statesCOMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py650 # Step 4: Verify project state is correct (IN_PROGRESS - some tasks completed)COMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py681 # Step 1: Create 3 tasks without FSM statesCOMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py689 # Step 2: Submit annotations on all tasks via SDKCOMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py699 # Step 3: Verify all tasks have correct statesCOMMENT
LOWlabel_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
LOWlabel_studio/tests/data_manager/test_undefined.py83 # Step 4: Set labeling config <View> <Image value="$image" name="img"/> </View>COMMENT
LOWlabel_studio/tests/data_manager/test_undefined.py93 # Step 7: Add task 2: {"$undefined$": "photo2.jpg", "extra": "123"}COMMENT
LOWlabel_studio/tests/data_manager/test_undefined.py111 # Step 12: Update task 1 with {"extra": "456"}COMMENT
LOWlabel_studio/tests/data_manager/test_undefined.py119 # Step 13: Check project.summary.common_data_columns, there should be ["$undefined$", "extra"]COMMENT
LOWlabel_studio/tests/data_manager/test_undefined.py127 # Step 14: Filter by "image" with "photo" should return task 1 and task 2COMMENT
LOWlabel_studio/tests/data_manager/test_views_api.py717 # Step 4: Test that the PATCHed view filters tasks correctlySTRING
LOWlabel_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
LOWlabel_studio/fsm/tests/test_api_example.py127 # Step 1: Create transition from API dataCOMMENT
LOWlabel_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
LOWdocs/source/guide/troubleshooting.md438#### Step 1: Adjust Git ConfigurationCOMMENT
LOWdocs/source/guide/troubleshooting.md448#### Step 2: Clone the Repository AgainCOMMENT
LOWdocs/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.py638 # 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.py6 # 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
MEDIUMlabel_studio/io_storages/tests/test_proxy_api.py308 # Create a mock stream with iter_chunks methodCOMMENT
MEDIUMlabel_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
MEDIUMlabel_studio/tests/test_fsm_lso_workflows.py673 # Create a new project with FSMCOMMENT
MEDIUMlabel_studio/tests/conftest.py831 # 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.py24 # Create a project with a comprehensive label configurationCOMMENT
MEDIUMlabel_studio/tests/sdk/test_prediction_validation.py54 # Create a taskSTRING
MEDIUMlabel_studio/fsm/models.py238 # Create a temporary transition instance with full contextCOMMENT
MEDIUMlabel_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.py243# Define the schemas for filters and selectedItemsCOMMENT
MEDIUMlabel_studio/data_manager/prepare_params.py395# 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.py187 # 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
Modern Structural Boilerplate103 hits · 105 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
LOWlabel_studio/tasks/mixins.py10 def update_is_labeled(self, *args, **kwargs) -> None:CODE
LOWlabel_studio/tasks/models.py47logger = logging.getLogger(__name__)CODE
LOWlabel_studio/tasks/serializers.py40logger = logging.getLogger(__name__)CODE
LOWlabel_studio/tasks/apps.py7logger = logging.getLogger(__name__)CODE
LOWlabel_studio/tasks/api.py53logger = 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.py18logger = 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.py9logger = 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.py48logger = 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.py22logger = 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.py16logger = logging.getLogger(__name__)CODE
LOWlabel_studio/io_storages/redis/models.py21logger = logging.getLogger(__name__)CODE
LOWlabel_studio/io_storages/localfiles/models.py28logger = logging.getLogger(__name__)CODE
LOWlabel_studio/io_storages/localfiles/views.py22logger = 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/apps.py7logger = logging.getLogger(__name__)CODE
LOWlabel_studio/projects/api.py69logger = 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.py15logger = logging.getLogger(__name__)CODE
LOWlabel_studio/fsm/state_manager.py21logger = logging.getLogger(__name__)CODE
LOWlabel_studio/fsm/models.py14logger = logging.getLogger(__name__)CODE
43 more matches not shown…
Deep Nesting114 hits · 100 pts
SeverityFileLineSnippetContext
LOWlabel_studio/server.py276CODE
LOWlabel_studio/tasks/models.py225CODE
LOWlabel_studio/tasks/models.py1115CODE
LOWlabel_studio/tasks/serializers.py563CODE
LOWlabel_studio/tasks/serializers.py669CODE
LOWlabel_studio/tasks/serializers.py754CODE
LOWlabel_studio/tasks/serializers.py1175CODE
LOWlabel_studio/tasks/api.py547CODE
LOWlabel_studio/tasks/api.py725CODE
LOWlabel_studio/tasks/api.py566CODE
LOWlabel_studio/tasks/api.py757CODE
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/middleware.py273CODE
LOWlabel_studio/core/migration_helpers.py79CODE
LOWlabel_studio/core/utils/db.py40CODE
LOWlabel_studio/core/utils/io.py32CODE
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.py213CODE
LOWlabel_studio/io_storages/base_models.py168CODE
LOWlabel_studio/io_storages/base_models.py390CODE
LOWlabel_studio/io_storages/base_models.py492CODE
LOWlabel_studio/io_storages/base_models.py660CODE
LOWlabel_studio/io_storages/base_models.py928CODE
LOWlabel_studio/io_storages/utils.py182CODE
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.py1105CODE
LOWlabel_studio/projects/models.py1191CODE
LOWlabel_studio/projects/models.py1589CODE
LOWlabel_studio/projects/models.py1746CODE
LOWlabel_studio/projects/models.py1847CODE
LOWlabel_studio/projects/serializers.py165CODE
LOWlabel_studio/projects/functions/stream_history.py10CODE
LOWlabel_studio/projects/functions/utils.py56CODE
LOWlabel_studio/projects/functions/next_task.py407CODE
LOWlabel_studio/projects/functions/next_task.py437CODE
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.py74CODE
LOWlabel_studio/fsm/state_manager.py215CODE
LOWlabel_studio/fsm/models.py144CODE
54 more matches not shown…
Verbosity Indicators45 hits · 72 pts
SeverityFileLineSnippetContext
LOWlabel_studio/tests/test_fsm_lso_workflows.py431 # Step 1: Create projectCOMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py438 # Step 2: Create 2 tasksCOMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py448 # Step 3: Submit annotation on task1COMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py458 # Step 4: Submit annotation on task2COMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py468 # Step 5: Delete annotation from task1COMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py473 # Step 6: Re-submit annotation on task1COMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py526 # Step 1: Create task directly without FSM stateCOMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py533 # Step 2: Create annotation directlyCOMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py543 # Step 3: Delete annotation via SDK (this triggers FSM logic)COMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py546 # Step 4: Verify task state was initialized and updatedCOMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py571 # Step 1: Create task without FSM stateCOMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py581 # Step 2: Submit annotation via SDKCOMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py588 # Step 3: Verify states initializedCOMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py630 # Step 2: Submit annotation on first task only via SDKCOMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py637 # Step 3: Verify both tasks now have statesCOMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py650 # Step 4: Verify project state is correct (IN_PROGRESS - some tasks completed)COMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py681 # Step 1: Create 3 tasks without FSM statesCOMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py689 # Step 2: Submit annotations on all tasks via SDKCOMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py699 # Step 3: Verify all tasks have correct statesCOMMENT
LOWlabel_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
LOWlabel_studio/tests/data_manager/test_undefined.py83 # Step 4: Set labeling config <View> <Image value="$image" name="img"/> </View>COMMENT
LOWlabel_studio/tests/data_manager/test_undefined.py93 # Step 7: Add task 2: {"$undefined$": "photo2.jpg", "extra": "123"}COMMENT
LOWlabel_studio/tests/data_manager/test_undefined.py111 # Step 12: Update task 1 with {"extra": "456"}COMMENT
LOWlabel_studio/tests/data_manager/test_undefined.py119 # Step 13: Check project.summary.common_data_columns, there should be ["$undefined$", "extra"]COMMENT
LOWlabel_studio/tests/data_manager/test_undefined.py127 # Step 14: Filter by "image" with "photo" should return task 1 and task 2COMMENT
LOWlabel_studio/tests/data_manager/test_views_api.py717 # Step 4: Test that the PATCHed view filters tasks correctlySTRING
LOWlabel_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
LOWlabel_studio/fsm/tests/test_api_example.py127 # Step 1: Create transition from API dataCOMMENT
LOWlabel_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.py315 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.py688 '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.py94 (['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.py191 '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.ts134 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
LOWdocs/source/guide/agreement_metrics.md554| Annotator A | "John Smith" | "123 Main St" | "New York" |CODE
LOWdocs/source/guide/agreement_metrics.md555| Annotator B | "John Smith" | "123 Main Street" | "New York" |CODE
LOWdocs/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
LOWdocs/source/plugins/llm_backend.md168 <View className="placeholder">CODE
LOWdocs/source/plugins/llm_backend.md169 <Text name="placeholder" value="placeholder" />CODE
LOWdocs/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
LOWdocs/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 Block50 hits · 50 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.py81 # Not all storages support presigned URLsCOMMENT
LOWlabel_studio/projects/api.py441# name='get',COMMENT
LOWlabel_studio/tests/shared_stages.yml181# headers:COMMENT
LOWlabel_studio/tests/test_docs.py1# ---COMMENT
LOWlabel_studio/tests/test_annotations.py261# if apps.is_installed('businesses'):COMMENT
LOWlabel_studio/tests/test_annotations.py281# task = Task.objects.get(id=task_id)COMMENT
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/multi-tree-select/tree-context.tsx261 // ``selected=[]`` as the "All" semantic (no ``customPlaceholder``, no ``isRadio``).COMMENT
LOWweb/libs/core/src/lib/utils/analytics.ts41COMMENT
LOWweb/libs/core/src/lib/Tour/Tour.tsx21 console.error("Tour context not found");COMMENT
LOWweb/libs/datamanager/src/sdk/lsf-sdk.js1241 // nextAnnotation = the PREVIOUSLY selected annotation (before this selection).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.py1130 # 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.py304 # 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.py87 # Check if storage should use presigned URLs;COMMENT
LOWlabel_studio/io_storages/proxy_api.py189 # Check if we've exceeded our time limitCOMMENT
LOWlabel_studio/io_storages/base_models.py706 # Check if file should be processed as JSON based on extensionCOMMENT
LOWlabel_studio/io_storages/api.py218 # Check if we've reached the file limitCOMMENT
LOWlabel_studio/io_storages/api.py223 # Check if we've exceeded the timeoutCOMMENT
LOWlabel_studio/io_storages/utils.py231 # Check if we got any items - if not, it's an empty array which is validCOMMENT
LOWlabel_studio/io_storages/localfiles/views.py60 # 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.py72 # 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.py103 # Check if the instance has a state annotationCOMMENT
LOWlabel_studio/users/serializers.py229 # 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 Imports38 hits · 38 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/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.py691 # 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.py818 # 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.py24 # 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.py241 # 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.py369CODE
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.py1233 # 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