Repository Analysis

HumanSignal/label-studio

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

5.3 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of HumanSignal/label-studio, a TypeScript project with 27,834 GitHub stars. SynthScan v2.0 examined 624,485 lines of code across 3573 source files, recording 1890 pattern matches distributed across 24 syntactic categories. The overall adjusted score of 5.3 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.3
Adjusted Score
5.3
Raw Score
100%
Time Factor
2026-07-14
Last Push
27.8K
Stars
TypeScript
Language
624.5K
Lines of Code
3.6K
Files
1.9K
Pattern Hits
2026-07-14
Scan Date
0.07
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 25HIGH 220MEDIUM 95LOW 1550

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 1890 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 Identifiers900 hits · 896 pts
SeverityFileLineSnippetContext
LOWlabel_studio/conftest.py15def clear_current_context_after_test():CODE
LOWlabel_studio/server.py58def _apply_database_migrations():CODE
LOWlabel_studio/organizations/models.py165 def projects_sorted_by_created_at(self):CODE
LOWlabel_studio/organizations/models.py176 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_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.py49def redis_job_for_calculation(org_id, from_scratch, migration_name='0018_manual_migrate_counters'):CODE
LOWlabel_studio/tasks/functions.py137def _fill_annotations_project(project_id):CODE
LOWlabel_studio/tasks/functions.py151def _fill_predictions_project(migration_name='0043_auto_20230825'):CODE
LOWlabel_studio/tasks/functions.py238def 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.py573 def increase_project_summary_counters(self):CODE
LOWlabel_studio/tasks/models.py578 def decrease_project_summary_counters(self):CODE
LOWlabel_studio/tasks/models.py583 def ensure_unique_groundtruth(self, annotation_id):CODE
LOWlabel_studio/tasks/models.py224 def get_predictions_for_prelabeling(self):CODE
LOWlabel_studio/tasks/models.py331 def overlap_with_agreement_threshold(self, num, num_locks):CODE
LOWlabel_studio/tasks/models.py601 def delete_tasks_without_signals(queryset):CODE
LOWlabel_studio/tasks/models.py614 def delete_tasks_without_signals_from_task_ids(task_ids):CODE
LOWlabel_studio/tasks/models.py818 def increase_project_summary_counters(self):CODE
LOWlabel_studio/tasks/models.py824 def decrease_project_summary_counters(self):CODE
LOWlabel_studio/tasks/models.py867 def _update_task_state_after_deletion(self, task, project):CODE
LOWlabel_studio/tasks/models.py873 def on_delete_update_counters(self):CODE
LOWlabel_studio/tasks/models.py1106 def prepare_prediction_result(cls, result, project):CODE
LOWlabel_studio/tasks/models.py1377def update_all_task_states_after_deleting_task(sender, instance, **kwargs):CODE
LOWlabel_studio/tasks/models.py1401def _task_data_is_not_updated(update_fields):CODE
LOWlabel_studio/tasks/models.py1407def delete_project_summary_data_columns_before_updating_task(sender, instance, update_fields, **kwargs):CODE
LOWlabel_studio/tasks/models.py1421def update_project_summary_data_columns(sender, instance, created, update_fields, **kwargs):CODE
LOWlabel_studio/tasks/models.py1430def delete_project_summary_annotations_before_updating_annotation(sender, instance, **kwargs):CODE
LOWlabel_studio/tasks/models.py1458def update_project_summary_annotations_and_is_labeled(sender, instance, created, **kwargs):CODE
LOWlabel_studio/tasks/models.py1474def remove_predictions_from_project(sender, instance, **kwargs):CODE
LOWlabel_studio/tasks/models.py1482def save_predictions_to_project(sender, instance, **kwargs):CODE
LOWlabel_studio/tasks/models.py1541def deprecated_bulk_update_stats_project_tasks(tasks, project=None):CODE
LOWlabel_studio/tasks/models.py1591def bulk_update_stats_project_tasks(tasks, project=None):CODE
LOWlabel_studio/tasks/serializers.py36def sanitize_prediction_import_payload(prediction):CODE
LOWlabel_studio/tasks/serializers.py406 def _insert_valid_completed_by(annotations, members_email_to_id, members_ids, default_user):CODE
LOWlabel_studio/tasks/serializers.py443 def _insert_valid_user_reviews(dicts, members_email_to_id, default_user):CODE
LOWlabel_studio/tasks/serializers.py467 def _insert_valid_user_drafts(dicts, members_email_to_id, default_user):CODE
LOWlabel_studio/tasks/serializers.py820 def post_process_custom_callback(project_id, user):CODE
LOWlabel_studio/tasks/api.py306 def get_retrieve_serializer_context(self, request):STRING
LOWlabel_studio/tasks/api.py351 def get_excluded_fields_for_evaluation(self):STRING
LOWlabel_studio/tasks/api.py484 def merge_result_into_distributions(result):STRING
LOWlabel_studio/tasks/api.py1078 def process_intermediate_state(self, annotation, draft):STRING
LOWlabel_studio/tasks/tests/test_lazy_load_annotations.py41 def test_stub_serializer_excludes_result(self):CODE
LOWlabel_studio/tasks/tests/test_lazy_load_annotations.py49 def test_stub_serializer_includes_is_stub_flag(self):CODE
LOWlabel_studio/tasks/tests/test_lazy_load_annotations.py57 def test_stub_serializer_includes_metadata(self):CODE
LOWlabel_studio/tasks/tests/test_lazy_load_annotations.py83 def test_full_serializer_includes_result(self):CODE
LOWlabel_studio/tasks/tests/test_lazy_load_annotations.py93 def test_full_serializer_does_not_have_is_stub(self):CODE
LOWlabel_studio/tasks/tests/test_lazy_load_annotations.py125 def test_task_api_with_annotations_stub_enabled(self):CODE
LOWlabel_studio/tasks/tests/test_lazy_load_annotations.py142 def test_task_api_without_annotations_stub(self):CODE
LOWlabel_studio/tasks/tests/test_lazy_load_annotations.py159 def test_task_api_with_feature_flag_disabled(self):CODE
LOWlabel_studio/tasks/tests/test_lazy_load_annotations.py199 def test_get_single_annotation(self):CODE
840 more matches not shown…
Cross-File Repetition168 hits · 840 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/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
HIGHlabel_studio/io_storages/tests/test_localfiles_view.py0this file and its contents are licensed under the apache license 2.0. please see the included notice for copyright inforSTRING
108 more matches not shown…
Hallucination Indicators25 hits · 265 pts
SeverityFileLineSnippetContext
CRITICALlabel_studio/core/utils/common.py28from django.core.exceptions import ValidationErrorCODE
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…itor/tests/integration/e2e/control_tags/textarea.cy.ts427 const model = win.Htx.annotationStore.selected.names.get("desc");CODE
CRITICAL…itor/tests/integration/e2e/control_tags/textarea.cy.ts440 const model = win.Htx.annotationStore.selected.names.get("desc");CODE
CRITICAL…itor/tests/integration/e2e/control_tags/textarea.cy.ts453 const model = win.Htx.annotationStore.selected.names.get("desc");CODE
CRITICAL…itor/tests/integration/e2e/control_tags/textarea.cy.ts470 const model = win.Htx.annotationStore.selected.names.get("desc");CODE
CRITICAL…itor/tests/integration/e2e/control_tags/textarea.cy.ts488 const model = win.Htx.annotationStore.selected.names.get("desc");CODE
CRITICAL…itor/tests/integration/e2e/control_tags/textarea.cy.ts511 const model = win.Htx.annotationStore.selected.names.get("desc");CODE
CRITICALweb/libs/editor/src/tags/object/Video/Video.js158 return self.annotation.regionStore.selection.list.filter((reg) => reg.type === "timelineregion");CODE
CRITICAL…/src/components/ImageView/__tests__/ImageView.test.jsx691 const onMouseEnter = item.stageRef.on.mock.calls.find((c) => c[0] === "mouseenter")?.[1];CODE
CRITICAL…/src/components/ImageView/__tests__/ImageView.test.jsx692 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 Wrapping163 hits · 172 pts
SeverityFileLineSnippetContext
LOWlabel_studio/server.py329 except Exception as e:CODE
LOWlabel_studio/tasks/models.py485 except Exception as exc:CODE
LOWlabel_studio/tasks/models.py527 except Exception as exc:CODE
LOWlabel_studio/tasks/models.py539 except Exception as exc:CODE
LOWlabel_studio/tasks/models.py1223 except Exception as exc:CODE
LOWlabel_studio/tasks/models.py1357 except Exception as exc:CODE
LOWlabel_studio/tasks/models.py1388 except Exception as exc:CODE
LOWlabel_studio/tasks/serializers.py604 except Exception as e:CODE
LOWlabel_studio/tasks/serializers.py633 except Exception as e:CODE
LOWlabel_studio/core/label_config.py233 except Exception: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/migration_helpers.py35 except Exception as e:CODE
LOWlabel_studio/core/migration_helpers.py51 except Exception as e:CODE
LOWlabel_studio/core/views.py167 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.py141 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.py380 except Exception:CODE
LOWlabel_studio/core/utils/common.py484 except Exception:CODE
LOWlabel_studio/core/utils/common.py492 except Exception:CODE
MEDIUMlabel_studio/core/utils/common.py226def 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.py210 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.py60 except Exception as exc:CODE
LOWlabel_studio/io_storages/proxy_api.py36 except Exception as exc:CODE
LOWlabel_studio/io_storages/proxy_api.py70 except Exception as exc:CODE
LOWlabel_studio/io_storages/proxy_api.py116 except Exception as e:CODE
LOWlabel_studio/io_storages/proxy_api.py122 except Exception as e:CODE
LOWlabel_studio/io_storages/proxy_api.py276 except Exception as e:CODE
LOWlabel_studio/io_storages/base_models.py412 except Exception:CODE
LOWlabel_studio/io_storages/base_models.py460 except Exception:CODE
LOWlabel_studio/io_storages/base_models.py720 except Exception:CODE
LOWlabel_studio/io_storages/base_models.py905 except Exception:CODE
LOWlabel_studio/io_storages/api.py91 except Exception as exc:CODE
LOWlabel_studio/io_storages/api.py209 except Exception as exc:CODE
LOWlabel_studio/io_storages/utils.py48 except Exception as exc:CODE
LOWlabel_studio/io_storages/utils.py81 except Exception as exc:CODE
LOWlabel_studio/io_storages/utils.py222 except Exception as e:CODE
LOWlabel_studio/io_storages/utils.py247 except Exception as e:CODE
LOWlabel_studio/io_storages/all_api.py139 except Exception:CODE
LOWlabel_studio/io_storages/all_api.py176 except Exception:CODE
MEDIUMlabel_studio/io_storages/all_api.py131def _get_response(self, api, request, *args, **kwargs):CODE
MEDIUMlabel_studio/io_storages/all_api.py168def _get_response(self, api, request, *args, **kwargs):CODE
LOWlabel_studio/io_storages/s3/models.py171 except Exception as e:CODE
LOWlabel_studio/io_storages/s3/utils.py168 except Exception as e:CODE
MEDIUMlabel_studio/io_storages/s3/utils.py165def wrapper(self, *args, **kwargs):CODE
LOWlabel_studio/io_storages/tests/test_multitask_import.py53 except Exception as e:CODE
103 more matches not shown…
Magic Placeholder Names29 hits · 152 pts
SeverityFileLineSnippetContext
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.py422 # Step 1: Create projectCOMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py429 # Step 2: Create 2 tasksCOMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py439 # Step 3: Submit annotation on task1COMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py449 # Step 4: Submit annotation on task2COMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py459 # Step 5: Delete annotation from task1COMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py464 # Step 6: Re-submit annotation on task1COMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py517 # Step 1: Create task directly without FSM stateCOMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py524 # Step 2: Create annotation directlyCOMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py534 # Step 3: Delete annotation via SDK (this triggers FSM logic)COMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py537 # Step 4: Verify task state was initialized and updatedCOMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py562 # Step 1: Create task without FSM stateCOMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py572 # Step 2: Submit annotation via SDKCOMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py579 # Step 3: Verify states initializedCOMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py621 # Step 2: Submit annotation on first task only via SDKCOMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py628 # Step 3: Verify both tasks now have statesCOMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py641 # Step 4: Verify project state is correct (IN_PROGRESS - some tasks completed)COMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py672 # Step 1: Create 3 tasks without FSM statesCOMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py680 # Step 2: Submit annotations on all tasks via SDKCOMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py690 # Step 3: Verify all tasks have correct statesCOMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py695 # Step 4: Verify project is COMPLETED (all tasks completed)COMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py610 # 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.py442 # Step 1: Create a view with a non-nested filterSTRING
LOWlabel_studio/tests/data_manager/test_views_api.py501 # Step 2: PATCH the view to add a child filterSTRING
LOWlabel_studio/tests/data_manager/test_views_api.py532 # Step 3: Verify the PATCHed view has the child filterSTRING
LOWlabel_studio/tests/data_manager/test_views_api.py557 # Step 4: Test that the PATCHed view filters tasks correctlySTRING
LOWlabel_studio/tests/data_manager/test_views_api.py566 # Step 5: PATCH again to modify the child filterSTRING
LOWlabel_studio/tests/data_manager/test_views_api.py597 # 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.tsx612 // Step 1: ScaleCOMMENT
LOW…libs/editor/src/components/KonvaVector/KonvaVector.tsx616 // Step 2: RotateCOMMENT
LOW…libs/editor/src/components/KonvaVector/KonvaVector.tsx620 // 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 Comments44 hits · 122 pts
SeverityFileLineSnippetContext
MEDIUMlabel_studio/tasks/models.py649 # Create a dynamic class that mixes FSM support into the querysetCOMMENT
MEDIUMlabel_studio/tasks/tests/test_lazy_load_annotations.py408 # Create a normal annotationCOMMENT
MEDIUMlabel_studio/tasks/tests/test_lazy_load_annotations.py421 # 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.py93 # Create a database cursor that yields primary keys without loading all into memoryCOMMENT
MEDIUMlabel_studio/core/utils/iterators.py28 # 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.py509 # Create an instance of the concrete classCOMMENT
MEDIUMlabel_studio/io_storages/tests/test_get_bytes_stream.py555 # Create a proper AuthorizedSession patcher that returns our mock sessionCOMMENT
MEDIUMlabel_studio/io_storages/tests/test_proxy_api.py307 # Create a mock stream with iter_chunks methodCOMMENT
MEDIUMlabel_studio/io_storages/tests/test_proxy_api.py330 # Create a mock stream with iter_chunks methodCOMMENT
MEDIUMlabel_studio/io_storages/tests/test_proxy_api.py353 # Create a mock stream with iter_chunks method that raises an exceptionCOMMENT
MEDIUMlabel_studio/io_storages/tests/test_proxy_api.py501 # Create the necessary objects for testing without databaseCOMMENT
MEDIUMlabel_studio/io_storages/tests/test_proxy_api.py558 # Create the necessary objects for testing without databaseCOMMENT
MEDIUMlabel_studio/tests/test_fsm_lso_workflows.py664 # Create a new project with FSMCOMMENT
MEDIUMlabel_studio/tests/conftest.py844 # 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.py1025 # 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.py201 # Create a project with specific label config for testingCOMMENT
MEDIUMlabel_studio/tests/data_manager/test_views_api.py255 # Create a view with nested filtersSTRING
MEDIUMlabel_studio/tests/data_manager/test_views_api.py388 # 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.py200# Define the schemas for filters and selectedItemsCOMMENT
MEDIUMlabel_studio/data_manager/prepare_params.py336# Define the main schema for the data payloadCOMMENT
MEDIUMlabel_studio/data_manager/tests/test_managers.py157 # 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.py17 # Create a test userCOMMENT
MEDIUMlabel_studio/jwt_auth/views.py256 # Create a new token for the userCOMMENT
Modern Structural Boilerplate100 hits · 102 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.py21logger = logging.getLogger(__name__)CODE
LOWlabel_studio/tasks/mixins.py10 def update_is_labeled(self, *args, **kwargs) -> None:CODE
LOWlabel_studio/tasks/models.py46logger = logging.getLogger(__name__)CODE
LOWlabel_studio/tasks/serializers.py33logger = logging.getLogger(__name__)CODE
LOWlabel_studio/tasks/apps.py7logger = logging.getLogger(__name__)CODE
LOWlabel_studio/tasks/api.py51logger = logging.getLogger(__name__)CODE
LOWlabel_studio/tasks/validation.py42logger = 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/middleware.py21logger = 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.py13logger = logging.getLogger(__name__)CODE
LOWlabel_studio/io_storages/proxy_api.py22logger = logging.getLogger(__name__)CODE
LOWlabel_studio/io_storages/base_models.py43logger = logging.getLogger(__name__)CODE
LOWlabel_studio/io_storages/filesystem.py12logger = logging.getLogger(__name__)CODE
LOWlabel_studio/io_storages/api.py19logger = logging.getLogger(__name__)CODE
LOWlabel_studio/io_storages/utils.py14logger = logging.getLogger(__name__)CODE
LOWlabel_studio/io_storages/all_api.py18logger = logging.getLogger(__name__)CODE
LOWlabel_studio/io_storages/s3/models.py34logger = logging.getLogger(__name__)CODE
LOWlabel_studio/io_storages/s3/serializers.py13logger = 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.py68logger = 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
LOWlabel_studio/fsm/registry.py18logger = logging.getLogger(__name__)CODE
LOWlabel_studio/fsm/transition_executor.py17logger = logging.getLogger(__name__)CODE
LOWlabel_studio/fsm/apps.py7logger = logging.getLogger(__name__)CODE
40 more matches not shown…
Deep Nesting101 hits · 93 pts
SeverityFileLineSnippetContext
LOWlabel_studio/server.py276CODE
LOWlabel_studio/tasks/models.py443CODE
LOWlabel_studio/tasks/models.py492CODE
LOWlabel_studio/tasks/models.py1106CODE
LOWlabel_studio/tasks/serializers.py406CODE
LOWlabel_studio/tasks/serializers.py490CODE
LOWlabel_studio/tasks/serializers.py566CODE
LOWlabel_studio/tasks/serializers.py948CODE
LOWlabel_studio/tasks/api.py461CODE
LOWlabel_studio/tasks/api.py484CODE
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.py200CODE
LOWlabel_studio/core/migration_helpers.py12CODE
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.py616CODE
LOWlabel_studio/core/utils/contextlog.py205CODE
LOWlabel_studio/core/utils/filterset_to_openapi_params.py109CODE
LOWlabel_studio/core/utils/filterset_to_openapi_params.py174CODE
LOWlabel_studio/io_storages/proxy_api.py128CODE
LOWlabel_studio/io_storages/base_models.py163CODE
LOWlabel_studio/io_storages/base_models.py375CODE
LOWlabel_studio/io_storages/base_models.py563CODE
LOWlabel_studio/io_storages/utils.py169CODE
LOWlabel_studio/io_storages/azure_blob/models.py163CODE
LOWlabel_studio/io_storages/gcs/utils.py52CODE
LOWlabel_studio/projects/models.py498CODE
LOWlabel_studio/projects/models.py646CODE
LOWlabel_studio/projects/models.py856CODE
LOWlabel_studio/projects/models.py1077CODE
LOWlabel_studio/projects/models.py1163CODE
LOWlabel_studio/projects/models.py1467CODE
LOWlabel_studio/projects/models.py1556CODE
LOWlabel_studio/projects/models.py1619CODE
LOWlabel_studio/projects/serializers.py165CODE
LOWlabel_studio/projects/functions/stream_history.py10CODE
LOWlabel_studio/projects/functions/utils.py56CODE
LOWlabel_studio/projects/functions/next_task.py381CODE
LOWlabel_studio/projects/functions/next_task.py411CODE
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
LOWlabel_studio/fsm/models.py356CODE
LOWlabel_studio/fsm/project_transitions.py137CODE
LOWlabel_studio/fsm/utils.py422CODE
41 more matches not shown…
Decorative Section Separators26 hits · 87 pts
SeverityFileLineSnippetContext
MEDIUMlabel_studio/organizations/serializers.py26# =========================================COMMENT
MEDIUMlabel_studio/organizations/serializers.py29# =========================================COMMENT
MEDIUMlabel_studio/organizations/serializers.py149# =========================================COMMENT
MEDIUMlabel_studio/core/utils/db.py126# =====================COMMENT
MEDIUMlabel_studio/core/utils/db.py128# =====================COMMENT
MEDIUMlabel_studio/projects/models.py936 # ============================================================================COMMENT
MEDIUMlabel_studio/projects/models.py938 # ============================================================================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
MEDIUM…amanager/src/components/Filters/filter-helpers.test.ts3// ─── filterFieldSearchHandler ─────────────────────────────────────────────────COMMENT
MEDIUM…amanager/src/components/Filters/filter-helpers.test.ts54// ─── findSelectedOption ───────────────────────────────────────────────────────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.jsx296// ── Unified component ─────────────────────────────────────────────────────────COMMENT
Verbosity Indicators45 hits · 72 pts
SeverityFileLineSnippetContext
LOWlabel_studio/tests/test_fsm_lso_workflows.py422 # Step 1: Create projectCOMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py429 # Step 2: Create 2 tasksCOMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py439 # Step 3: Submit annotation on task1COMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py449 # Step 4: Submit annotation on task2COMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py459 # Step 5: Delete annotation from task1COMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py464 # Step 6: Re-submit annotation on task1COMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py517 # Step 1: Create task directly without FSM stateCOMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py524 # Step 2: Create annotation directlyCOMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py534 # Step 3: Delete annotation via SDK (this triggers FSM logic)COMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py537 # Step 4: Verify task state was initialized and updatedCOMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py562 # Step 1: Create task without FSM stateCOMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py572 # Step 2: Submit annotation via SDKCOMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py579 # Step 3: Verify states initializedCOMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py621 # Step 2: Submit annotation on first task only via SDKCOMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py628 # Step 3: Verify both tasks now have statesCOMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py641 # Step 4: Verify project state is correct (IN_PROGRESS - some tasks completed)COMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py672 # Step 1: Create 3 tasks without FSM statesCOMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py680 # Step 2: Submit annotations on all tasks via SDKCOMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py690 # Step 3: Verify all tasks have correct statesCOMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py695 # Step 4: Verify project is COMPLETED (all tasks completed)COMMENT
LOWlabel_studio/tests/test_fsm_lso_workflows.py610 # 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.py442 # Step 1: Create a view with a non-nested filterSTRING
LOWlabel_studio/tests/data_manager/test_views_api.py501 # Step 2: PATCH the view to add a child filterSTRING
LOWlabel_studio/tests/data_manager/test_views_api.py532 # Step 3: Verify the PATCHed view has the child filterSTRING
LOWlabel_studio/tests/data_manager/test_views_api.py557 # Step 4: Test that the PATCHed view filters tasks correctlySTRING
LOWlabel_studio/tests/data_manager/test_views_api.py566 # Step 5: PATCH again to modify the child filterSTRING
LOWlabel_studio/tests/data_manager/test_views_api.py597 # 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.tsx612 // Step 1: ScaleCOMMENT
LOW…libs/editor/src/components/KonvaVector/KonvaVector.tsx616 // Step 2: RotateCOMMENT
LOW…libs/editor/src/components/KonvaVector/KonvaVector.tsx620 // 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.py17 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.py146 Handle user account view and profile updates. This view displays the user's profile information and allows theSTRING
Fake / Example Data50 hits · 54 pts
SeverityFileLineSnippetContext
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.py93 (['label-studio', 'user', '--username', 'test@test.com', '--password', '12345678'], None),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.py139 'placeholder': 'All',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
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.ts110 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.tsx381 { 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.json2460 "placeholder": {CODE
LOWweb/libs/core/src/lib/utils/schema/tags.json2461 "name": "placeholder",CODE
LOWweb/libs/core/src/lib/utils/schema/tags.json3129 "placeholder": {CODE
LOWweb/libs/core/src/lib/utils/schema/tags.json3130 "name": "placeholder",CODE
LOW…sts/integration/e2e/labels/multiple-label-blocks.cy.ts239 Paragraphs.selectText("Lorem ipsum dolor sit amet");CODE
LOW…sts/integration/e2e/labels/multiple-label-blocks.cy.ts239 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
Redundant / Tautological Comments32 hits · 48 pts
SeverityFileLineSnippetContext
LOWlabel_studio/tasks/api.py791 # 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.py231 # 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.py161 # Check if we're in an async context and need to allow async-unsafe operationsCOMMENT
LOWlabel_studio/io_storages/proxy_api.py55 # Check if storage should use presigned URLs;COMMENT
LOWlabel_studio/io_storages/proxy_api.py104 # Check if we've exceeded our time limitCOMMENT
LOWlabel_studio/io_storages/base_models.py609 # Check if file should be processed as JSON based on extensionCOMMENT
LOWlabel_studio/io_storages/api.py198 # Check if we've reached the file limitCOMMENT
LOWlabel_studio/io_storages/api.py203 # Check if we've exceeded the timeoutCOMMENT
LOWlabel_studio/io_storages/utils.py218 # 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.py728 # 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.py100 # Check if the instance has a state annotationCOMMENT
LOWlabel_studio/users/serializers.py163 # 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.py120 # 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
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
Unused Imports37 hits · 37 pts
SeverityFileLineSnippetContext
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.py765CODE
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
Over-Commented Block34 hits · 34 pts
SeverityFileLineSnippetContext
LOWlabel_studio/core/static/js/sw.js41 // For now just catch presign requests and cache themCOMMENT
LOWlabel_studio/projects/api.py421 return super(ProjectAPI, self).put(request, *args, **kwargs)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/libs/core/src/lib/utils/analytics.ts41COMMENT
LOWweb/libs/datamanager/src/sdk/lsf-sdk.js1161 _debouncedFirstOldSelection = undefined;COMMENT
LOWweb/libs/editor/src/serviceWorker.js1// This optional code is used to register a service worker.COMMENT
LOWweb/libs/editor/src/regions/Result.js81COMMENT
LOWweb/libs/editor/src/stores/Annotation/HistoryItem.js1import { types } from "mobx-state-tree";COMMENT
LOWweb/libs/editor/src/stores/__tests__/TaskStore.test.js21// };COMMENT
LOWweb/libs/editor/src/utils/magic-wand.js1/* eslint-disable prefer-const */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/stale.yml1# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time.COMMENT
LOW.github/workflows/invite-check.yml21 uses: slackapi/slack-github-action@v3.0COMMENT
LOW.github/workflows/invite-check.yml41# with:COMMENT
Cross-Language Confusion4 hits · 22 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.py594 # pubsub.push(topic, key)COMMENT
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.py291# Typical secure configuration is simply set CORS_ALLOW_ALL_ORIGINS = False in the envCOMMENT
MEDIUMlabel_studio/io_storages/base_models.py721 # 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.py88 # Allow underscores if the filter is based on the `task.data` JSONField, because these don't leverage foreigCOMMENT
LOWlabel_studio/jwt_auth/views.py148 # 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
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.json789 "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
AI Structural Patterns7 hits · 6 pts
SeverityFileLineSnippetContext
LOWlabel_studio/organizations/middleware.py23CODE
LOWlabel_studio/tasks/models.py622CODE
LOWlabel_studio/core/current_request.py150CODE
LOWlabel_studio/core/storage.py135CODE
LOWlabel_studio/projects/serializers.py371CODE
LOWlabel_studio/users/functions/common.py93CODE
LOW…lpers/gh_changelog_generator/gh_changelog_generator.py353CODE
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.py1224 # TODO: handle exceptions betterCOMMENT
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOWlabel_studio/data_manager/actions/__init__.py133def perform_action(action_id, project, queryset, user, **kwargs):CODE