sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
647da529628633b677fefd98c05fad93625464078e1a7d39da451b260bddb7de | TypeScript | 9,534 | 226 | import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
import { mount } from "@vue/test-utils";
import { describe, expect, it, vi } from "vitest";
import GButton from "../BaseComponents/GButton.vue";
import ChatInput from "./ChatInput.vue";
vi.mock("@/stores/historyStore", () => ({
useHistoryStore: () =>... |
ade2c89f1cec836ea6671557fbcba0ec83b7337bc06ff4a231fab9ee53b13a37 | TypeScript | 9,555 | 309 | import { getLocalVue } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { describe, expect, it } from "vitest";
import { useServerMock } from "@/api/client/__mocks__";
import { OK_PLUGIN_STATUS } from "@/components/ConfigTemplates/test_fixtures";... |
310bd1bdcb32774111f43b48de9b626d6707ed804bc54ef7173b5dfed9c5616d | TypeScript | 9,597 | 334 | import { LabelStudio, ImageView, DateTime, Modals, Sidebar, ToolBar } from "@humansignal/frontend-test/helpers/LSF";
import {
DATETIME_REQUIRED_WARNING,
perItemDateTimeResult,
perItemMIGDateTimeConfig,
perRegionDateTimeResult,
perRegionMIGDateTimeConfig,
perRegionRegionsResult,
perTagDateTimeResult,
per... |
498e457181c27e73678385f6931043e9642f302e41efb1eb4929b5b1851c4a95 | TypeScript | 9,621 | 295 | /**
* Composable for handling AI agent action suggestions in the UI
*/
import axios from "axios";
import { ref } from "vue";
import { useRouter } from "vue-router/composables";
import { parse } from "yaml";
import { type DynamicUnprivilegedToolCreatePayload, GalaxyApi } from "@/api";
import { useConfig } from "@/co... |
2d3eed1ef05313151b2262f260487ca09faaa2a1a7dc4af31db41a197e978091 | TypeScript | 9,639 | 205 | import { getLocalVue } from "@tests/vitest/helpers";
import { shallowMount } from "@vue/test-utils";
import { describe, expect, it } from "vitest";
import type { PageRevisionDetails } from "@/api/pages";
import PageRevisionView from "./PageRevisionView.vue";
const localVue = getLocalVue();
const REVISION: PageRevis... |
a776d5e4a5e2812ce329db506226b4f7d0d87b0ae6eecba0b9741666a2b604d3 | TypeScript | 9,702 | 283 | import { faSave as farSave } from "@fortawesome/free-regular-svg-icons";
import {
faDownload,
faEdit,
faHistory,
faMagic,
faPencilAlt,
faPlay,
faPlus,
faRecycle,
faSave,
faSignOutAlt,
faSitemap,
faWrench,
} from "@fortawesome/free-solid-svg-icons";
import { watchImmediate... |
2bc2459120e6859e84e3f5137d8ee7c3f607c0dbd1466749815919fec2b51ab5 | TypeScript | 9,773 | 224 | import { getLocalVue } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { beforeEach, describe, expect, it, vi } from "vitest";
import { HttpResponse, useServerMock } from "@/api/client/__mocks__";
import { stopJobs } from "@/api/jobs";
import { ... |
57a321449233f6e5c0cac0bfcc103a1f655f9e55e0caa94ad0cd2977d77079f5 | TypeScript | 9,870 | 326 | // Copyright (C) CVAT.ai Corporation
//
// SPDX-License-Identifier: MIT
import { ObjectType } from '../enums';
import type { SerializedUser } from '../server-response-types';
export enum QualityRequirementAnnotationType {
TAG = 'tag',
RECTANGLE = 'rectangle',
SKELETON = 'skeleton',
SKELETON_KEYPOINT =... |
1cda28c75c36fcf9c683727d06aa3aade1d3cbba1abf3358e5ee684fe4e7a59f | TypeScript | 9,894 | 259 | import type { ComputedRef, Ref } from "vue";
import { computed, ref, set } from "vue";
import type { FormParameterValue } from "../parameterTypes";
import { matchInputs, validateInputs, visitAllInputs, visitInputs } from "../utilities";
/** A single input node in the nested form tree (leaf, conditional, repeat, or se... |
71debd7af2ea511f826366fbde3d79f2413bae047d6513cd19ac03c67fe8433d | TypeScript | 9,911 | 291 | // Copyright (C) CVAT.ai Corporation
//
// SPDX-License-Identifier: MIT
import PluginRegistry from '../plugins';
import serverProxy from '../server-proxy';
import { fieldsToCamelCase, fieldsToSnakeCase } from '../common';
import { CamelizedV2 } from '../type-utils';
import { normalizeThresholdPolicy } from './threshol... |
ad7b394cc402fb0729da261039550648a9340ff1c803f4a76bda26316850eb2e | TypeScript | 9,915 | 264 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { describe, expect, it, vi } from "vitest";
import type { DataValuePoint } from ".";
import BarChart from "./BarChart.vu... |
c38a85bcb7721c094d1a6eca664ee0e3fe88a7fc10f617ae41f4c4b166e37dff | TypeScript | 9,976 | 204 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import { describe, expect, it, vi } from "vitest";
import AuthoringHelpPanel from "./AuthoringHelpPanel.vue";
const localVue = getLocalVue();
function mountAuthoringHelpP... |
1d2fb0352e7a0aee2f63aee16138cacab9dc54fe24d0e3a301236601f2d5ad32 | TypeScript | 10,087 | 256 | import { createHistoryDatasetCollectionInstanceFull } from "@/api/datasetCollections";
import { useUploadState } from "@/components/Panels/Upload/uploadState";
import { buildCollectionElements } from "@/composables/upload/collectionElements";
import type { NewUploadItem, UploadItem } from "@/composables/upload/uploadIt... |
f48bbd7ca99788858f666411797e2dc8c20cd027ddc5909d0a452a8f3cba8b17 | TypeScript | 10,117 | 262 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue, injectTestRouter } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { beforeEach, describe, expect, it, vi } from "vitest";
import { HttpResponse, useServerMock } from "@/... |
62fffad012540d6f6ecb7ab9338f6710e9878448e7fe4cc4c5804b0413465176 | TypeScript | 10,198 | 281 | import { getLocalVue } from "@tests/vitest/helpers";
import { mount, type Wrapper } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import type Vue from "vue";
import { nextTick } from "vue";
import SaveChangesModal from "./S... |
1cea96bd9f36a0bd83ad2c51c7c1cfc549e4844a19359f74fee01da39697b028 | TypeScript | 10,251 | 240 | import { describe, expect, it } from "vitest";
import type { TemplateSecret, TemplateVariable } from "@/api/configTemplates";
import {
createTemplateForm,
formDataTypedGet,
templateSecretFormEntry,
templateVariableFormEntry,
upgradeForm,
} from "./formUtil";
import {
GENERIC_FTP_FILE_SOURCE_TE... |
bee760087caeea903eb1c419004513c23c6b80ccc6f033fdda670e57ce94d2f5 | TypeScript | 10,345 | 228 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue } from "@tests/vitest/helpers";
import { mount, type Wrapper } from "@vue/test-utils";
import { setActivePinia } from "pinia";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import { useChatStore } from "@/stores/chatS... |
3ad7fb2120c9d2d8f67f06bef8bea6d003cfd9e0c48f2481b62a78f5dc7dfad7 | TypeScript | 10,406 | 320 | import {
faCopy,
faDownload,
faEdit,
faExternalLinkAlt,
faFileExport,
faLink,
faPlay,
faPlusSquare,
faShareAlt,
faTrash,
faTrashRestore,
faUpload,
} from "@fortawesome/free-solid-svg-icons";
import { storeToRefs } from "pinia";
import { computed, type Ref } from "vue";
i... |
d78b1b9e7f9d820cd2b4c43df0acaca1e3ab7f44d56eca00566fac9a0e2c04b6 | TypeScript | 10,470 | 271 | import { getLocalVue } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import { afterEach, describe, expect, it, vi } from "vitest";
import { ref } from "vue";
import type { TaskMonitor } from "@/composables/genericTaskMonitor";
import type { MonitoringData, PersistentProgressTaskMonitorResult }... |
803ddeb8bacbef6a2a9d55f328ff202cfc3528ff4bde6932e4d9ebc7c86b6a6b | TypeScript | 10,532 | 378 | import {
LabelStudio,
ImageView,
Choices,
Textarea,
ToolBar,
Modals,
Sidebar,
} from "@humansignal/frontend-test/helpers/LSF";
import {
simpleImageTextareaConfig,
simpleImageData,
perTagTextareaResult,
perTagMIGTextareaConfig,
simpleMIGData,
requiredPerTagMIGTextareaConfig,
TEXTAREA_REQUIRED... |
b5655dab44e8500bbbdaca336eacea7fa91d33def00b66117c70a07342fc579f | TypeScript | 10,669 | 294 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { describe, expect, it, vi } from "vitest";
import type { HistorySummaryExtended } from "@/api";
import { useServerMock }... |
718a0193d9815eb2571b0189ed25c7e72dda007c20689e8963a093c87bed80de | TypeScript | 10,813 | 385 | import { javascript } from "@codemirror/lang-javascript";
import { json } from "@codemirror/lang-json";
import { python } from "@codemirror/lang-python";
import { xml } from "@codemirror/lang-xml";
import { indentUnit } from "@codemirror/language";
import { searchKeymap } from "@codemirror/search";
import { history, hi... |
c2c58ddd78e11aed875545cb46db98d1db7300e97642e45b3960c4b3b301dcf9 | TypeScript | 10,897 | 240 | import type { Ref } from "vue";
import { ref, watch } from "vue";
import { isWorkflowInvocationElementView } from "@/api/invocations";
import { useInvocationStore } from "@/stores/invocationStore";
import { useWorkflowStore } from "@/stores/workflowStore";
import { errorMessageAsString } from "@/utils/simple-error";
... |
305ec8c678fbb1fffa417a1b081999d21b1269686430772a0025ef57747e6b73 | TypeScript | 11,012 | 309 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue } from "@tests/vitest/helpers";
import { shallowMount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { http as mswHttp } from "msw";
import { setActivePinia } from "pinia";
import { afterEach, beforeEach, describe, e... |
c94694ec789bd9f93c4da78d768cd09dee7ca6fba94982c4a90e8814fc70adf0 | TypeScript | 11,170 | 277 | import { defineStore } from "pinia";
import { computed, del, ref, set } from "vue";
import {
type CollectionEntry,
type DCESummary,
type HDCADetailed,
type HDCASummary,
type HistoryContentItemBase,
isHDCA,
} from "@/api";
import { fetchCollectionDetails, fetchElementsFromCollection } from "@/ap... |
65e50bf50ed3614575ccfd5cc5a4a3168c83a7636965ee496caa31d1dbd2fb1a | TypeScript | 11,249 | 357 | import { computed, del, ref, set } from "vue";
import type { Color } from "@/components/Workflow/Editor/Comments/colors";
import { assertDefined } from "@/utils/assertions";
import {
AxisAlignedBoundingBox,
type Rectangle,
vecAdd,
vecMax,
vecMin,
vecReduceFigures,
vecSubtract,
type Vect... |
e4e031c658d3271465ce2a553ae41f19107dbefece489deda1eb1673a0094b25 | TypeScript | 11,354 | 285 | import { faFile, faMagic, faSitemap, faWrench } from "@fortawesome/free-solid-svg-icons";
import { describe, expect, it, vi } from "vitest";
import { type Ref, ref } from "vue";
import { PAGE_LABELS } from "@/components/Page/constants";
import type { ActiveContext } from "./useActiveContext";
// Mock route as a reac... |
36c29977ace171a13db2def9e8f43bd3910479439a4d15a00b9075929950e26c | TypeScript | 11,587 | 260 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue } from "@tests/vitest/helpers";
import { mount, type Wrapper } from "@vue/test-utils";
import { setActivePinia } from "pinia";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import { nextTick } from "vue";
import { use... |
f804748442841715aa50f3f882158fe1bebcd84803957ea048afa67ae1903b56 | TypeScript | 11,711 | 362 | import { emitEvent } from "@humansignal/core/telemetry";
type LabelingStore = {
project?: { id?: number | string | null };
task?: { id?: number | string | null };
reviewMode?: boolean;
hasInterface?: (name: string) => boolean;
};
type LabelingEntity = {
pk?: number | string | null;
id?: number | string | ... |
1201434c060a56a2779fcb1629ad9ead333c91e622aa8654d170dd5021264235 | TypeScript | 11,811 | 257 | import {
faClipboard,
faCloud,
faCloudDownloadAlt,
faDatabase,
faDesktop,
faFileArchive,
faHdd,
faLayerGroup,
faLink,
faSitemap,
faTable,
} from "@fortawesome/free-solid-svg-icons";
import { storeToRefs } from "pinia";
import { computed, type ComputedRef, defineAsyncComponent... |
a3c173298d41c79d8be1e929845e3f70ee9e41e90230673b091b5b2ce7e0b028 | TypeScript | 11,864 | 300 | import {
faBurn,
faCopy,
faExchangeAlt,
faEye,
faTrash,
faTrashRestore,
faUndo,
faUsersCog,
} from "@fortawesome/free-solid-svg-icons";
import type { ComputedRef, Ref } from "vue";
import { computed } from "vue";
import { GalaxyApi } from "@/api";
import type { AnyHistoryEntry } from "@... |
2a8ae002eb25fff9f9f3d0db3f27f4beff3af95593306e1997a8961b00eead45 | TypeScript | 11,970 | 369 | import { createPinia, setActivePinia } from "pinia";
import { beforeEach, describe, expect, it, vi } from "vitest";
import { LazyUndoRedoAction, type UndoRedoAction, useUndoRedoStore } from "@/stores/undoRedoStore";
import { useConnectionStore } from "@/stores/workflowConnectionStore";
import { useWorkflowCommentStore... |
bf6b2a0475b0b353a4d7f0837626b4b7538297dcfee0f9efc8fc7944c6012c9e | TypeScript | 12,121 | 304 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue } from "@tests/vitest/helpers";
import { shallowMount, type Wrapper } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { PiniaVuePlugin, setActivePinia } from "pinia";
import { beforeEach, describe, expect, it, vi } from... |
223dd1cd069d35d0a0e8748f2b512522fe6986d69adf0b8f0f1d37fc1bc05657 | TypeScript | 12,216 | 308 | import { mount } from "@vue/test-utils";
import { describe, expect, it, vi } from "vitest";
import type { ActionSuggestion } from "@/composables/agentActions";
import { ActionType } from "@/composables/agentActions";
import { sanitizeHtml } from "@/directives/sanitizeHtml";
import type { ChatMessage } from "./chatTyp... |
656e9e881989d20d1da7f017055cf6499670b216ce6355b6d1d0c5cbcd38cc1c | TypeScript | 12,331 | 359 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue, injectTestRouter } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { setActivePinia } from "pinia";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest... |
413c6a78db087a0c3af7441833810a981b1fc13dc63351646ae983ba7ef15ac8 | TypeScript | 12,359 | 325 | import { Upload } from "tus-js-client";
import { beforeEach, describe, expect, it, vi } from "vitest";
import { buildUploadFingerprint, createTusUpload, type FileStream, type NamedBlob } from "./tusUpload";
// Mock tus-js-client
vi.mock("tus-js-client", () => ({
Upload: vi.fn(),
}));
const mockUploadConstructor ... |
3b37537574e2c331d9062cd4b6f8f2b819fbc20ba32d8d3da65fda07868be28b | TypeScript | 12,389 | 433 | /**
* Galaxy utilities comprises small functions, which at this point
* do not require their own classes/files
*/
import axios, { type AxiosError, type AxiosResponse } from "axios";
import { NON_TERMINAL_STATES } from "@/api/jobs";
import _l from "@/utils/localization";
export function stateIsTerminal(result: Rec... |
dc82106f355c27c3fd9d969f47c3c66d68f2a45c47467537051ea76d178d876d | TypeScript | 12,605 | 393 | /**
* State Registry System for Label Studio
*
* This module provides an extensible state management system that allows
* Label Studio Enterprise to extend state definitions without modifying base code.
*
* Instead of mapping states directly to colors (CREATED → "grey"), we use semantic
* types that represent me... |
dd17cb4a8b42e06c085de6b83869f279ad117c56fbef732292d97af8ccd28697 | TypeScript | 12,828 | 374 | import {
faBolt,
faCalculator,
faEnvelope,
faKey,
faMask,
faPlus,
faTrash,
faTrashRestore,
faUnlock,
faUser,
faUsers,
} from "@fortawesome/free-solid-svg-icons";
import { useEventBus } from "@vueuse/core";
import axios from "axios";
import { GalaxyApi } from "@/api";
import ... |
715d4344091cb9759f934c8e7e6c1f1f4a29dcdafabcc5b0298ed1b075c73667 | TypeScript | 12,877 | 350 | import "./worker/__mocks__/selectMany";
import { createTestingPinia } from "@pinia/testing";
import { getLocalVue } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import { describe, expect, it, vi } from "vitest";
import type { PropType } from "vue";
import type { SelectOption } from "./worker... |
9e4ca06b4efd28fa2bbb47eb032820f1f0b86697532bb6896331d718c0e69a97 | TypeScript | 12,927 | 397 | import { computed } from "vue";
import type { SupportedCollectionType } from "@/composables/upload/collectionTypes";
import type { NewUploadItem, UploadItem, UploadStatus } from "@/composables/upload/uploadItemTypes";
import { useUserLocalStorage } from "@/composables/userLocalStorage";
const LOCAL_STORAGE_KEY = "upl... |
f7354bd76291530d8517f1bbc8ec7ead755792dece8237747f0a250367995d9f | TypeScript | 12,936 | 333 | import { afterEach, beforeEach, describe, expect, it, mock } from "bun:test";
import { APIProxy } from "../index";
import { REQUESTED_WITH_HEADER, REQUESTED_WITH_VALUE } from "../same-origin-fetch";
// biome-ignore lint/suspicious/noExplicitAny: the DM proxy is plain JS with no shipped types
import { APIProxy as DMAPIP... |
f1d0a41faf33bef43055de62b589bbd1d282d9b5998033b7790c549baadcf6cb | TypeScript | 12,944 | 322 | import { getLocalVue } from "@tests/vitest/helpers";
import { mount, type Wrapper } from "@vue/test-utils";
import { beforeEach, describe, expect, it, vi } from "vitest";
import { nextTick } from "vue";
import ScrollList from "./ScrollList.vue";
interface TestItem {
id: string;
name: string;
}
const TOTAL_IT... |
9211f056d88db347f2c4760156238084c0ce995b6bced957e8f8814d8a6a1e7f | TypeScript | 12,982 | 356 | /** Contains type alias and definitions related to Galaxy API models. */
import { GalaxyApi } from "@/api/client";
import type { components, GalaxyApiPaths } from "@/api/schema";
export { type components, GalaxyApi, type GalaxyApiPaths };
/**
* Contains a dataset's text content and details
*/
export type DatasetTe... |
32c5f30ff4bb3f1e64ba20978e12f7780d2309c980ac720b51acb8b96ec09642 | TypeScript | 13,012 | 432 | /**
* Custom tooltip directive to replace bootstrap-vue's v-b-tooltip.
* Uses @floating-ui/dom for positioning (same library as GTooltip component).
*
* Supports the same modifier API as v-b-tooltip:
* Placement: .top (default), .bottom, .left, .right, .topright
* Trigger: .hover (default), .focus
* Cont... |
02465b9375ed56867b4664639ecfd16fdaf963518b556d3715bd4c468fbf181d | TypeScript | 13,056 | 378 | import { computed, onMounted, ref, watch } from "vue";
import type { FilterFileSourcesOptions, RemoteEntry } from "@/api/remoteFiles";
import { browseRemoteFiles, fetchFileSources } from "@/api/remoteFiles";
import type { BreadcrumbItem } from "@/components/Common";
import { Model } from "@/components/FilesDialog/mode... |
a8e1ef084988c71bf661695abaa296e01c08e22842e881b2b97c232f135205aa | TypeScript | 13,160 | 305 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue } from "@tests/vitest/helpers";
import { mount, type Wrapper } from "@vue/test-utils";
import { beforeEach, describe, expect, it, vi } from "vitest";
import { useServerMock } from "@/api/client/__mocks__";
import { HistoryFilters } from "@/compo... |
aa89453c7961144b069f95a58a1af076f93ee1c3bc166839ef92808f5a74667f | TypeScript | 13,260 | 393 | import { computed, type Ref, ref } from "vue";
import { GalaxyApi } from "@/api";
import type { Instance, PluginStatus, TemplateSummary } from "@/api/configTemplates";
import type { buildInstanceRoutingComposable } from "@/components/ConfigTemplates/routing";
import { errorMessageAsString } from "@/utils/simple-error"... |
11cec7f024e2755d6cc7344b2f5dab41a2d4a86b59ca26d7858104f9b326c6ba | TypeScript | 13,261 | 395 | import { defineStore } from "pinia";
import { computed, ref } from "vue";
import { type AnyUser, isAdminUser, isAnonymousUser, isRegisteredUser, type RegisteredUser } from "@/api";
import { useHashedUserId } from "@/composables/hashedUserId";
import { useUserLocalStorageFromHashId } from "@/composables/userLocalStorag... |
586851f13b9ef4888cd3e8ee46b51530da38f056037b646fcf7eedb29fb8c508 | TypeScript | 13,494 | 323 | import { suppressExpectedErrorMessages } from "@tests/vitest/helpers";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import type { UploadCollectionConfig } from "@/composables/upload/collectionTypes";
import type { NewUploadItem } from "@/composables/upload/uploadItemTypes";
import { useUp... |
8e450f17adddf21086af8df911a20d41e8ae74a0bc0862cee9d4d0a0b1bc662b | TypeScript | 13,757 | 425 | import type { GenericPair } from "@/components/Collections/common/buildCollectionModal";
export const COMMON_FILTERS = {
illumina: ["_1", "_2"] as [string, string],
Rs: ["_R1", "_R2"] as [string, string],
Fs: ["_F", "_R"] as [string, string],
dot12s: [".1.fastq", ".2.fastq"] as [string, string],
};
exp... |
92f2577295c405bbbc5195b7bd120f65b38b22edd646c94b51fd110e73142829 | TypeScript | 13,953 | 452 | import { LazyUndoRedoAction, UndoRedoAction, type UndoRedoStore } from "@/stores/undoRedoStore";
import { useConnectionStore } from "@/stores/workflowConnectionStore";
import {
useWorkflowCommentStore,
type WorkflowComment,
type WorkflowCommentStore,
} from "@/stores/workflowEditorCommentStore";
import { us... |
4d8aba0dfada4cab53f6e01c2037ddef6056945c5844443c6e5ecf3fabdac363 | TypeScript | 13,989 | 405 | import type { AnyHistory, components, HistorySortByLiteral, HistorySummary } from "@/api";
import { GalaxyApi } from "@/api";
import type { ArchivedHistorySummary } from "@/api/histories.archived";
import { useUserStore } from "@/stores/userStore";
import { rethrowSimple } from "@/utils/simple-error";
type HistoryDeta... |
958c7221c03e95ac82e510e712e07961cbd51d54da1d65684cd816ce8a9c6630 | TypeScript | 14,008 | 349 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue, mockUnprivilegedToolsRequest } from "@tests/vitest/helpers";
import { shallowMount, type Wrapper } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { PiniaVuePlugin, setActivePinia } from "pinia";
import { beforeEach, d... |
b99be579251a561e6034c42f92ea4c76bb3d354d92cab75daadb61ea742451de | TypeScript | 14,029 | 321 | /**
* Canonical registry for all frontend feature flag constants (FF_*).
* Add new flags here only — do not define new constants in editor, datamanager,
* LSE, or app-level feature-flags files. Use via `import { ff } from "@humansignal/core"`.
* See `.agents/skills/feature-flags/SKILL.md`.
*/
//// LEGACY FLAGS //... |
44f76385507bae0f15f0adc011cd22c09ad91f8fc1c6109155e61c7a40fcac13 | TypeScript | 14,244 | 438 | import { StorageSerializers, useLocalStorage } from "@vueuse/core";
import { computed, readonly, type Ref, watch } from "vue";
import type { StoredTaskStatus, TaskMonitor } from "./genericTaskMonitor";
type TaskType = "task" | "short_term_storage";
/**
* Represents an object that is being processed in the backgroun... |
1fbffc97f58126381c59731605d69bb5af105a60087ce4e6e4a830b7419fc6ed | TypeScript | 14,422 | 436 | /**
* Requests tools, and various panel views
*/
import axios, { type AxiosResponse } from "axios";
import { defineStore } from "pinia";
import Vue, { computed, type Ref, ref, shallowRef } from "vue";
import {
MY_PANEL_VIEW_DESCRIPTION,
MY_PANEL_VIEW_ID,
MY_PANEL_VIEW_NAME,
MY_PANEL_VIEW_TYPE,
} fro... |
e8c497d48869aae7227cefed08fb5bab8d9a58890d79b4e7b535ff1fd7f6ee21 | TypeScript | 14,528 | 348 | import { getLocalVue } from "@tests/vitest/helpers";
import { shallowMount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { beforeEach, describe, expect, it, vi } from "vitest";
import {
extractWorkflowByIds,
extractWorkflowFromHistory,
type WorkflowExtractionJob,
type Wor... |
5c87682b3833c043eec034b203df9b56646b62ba422fb670e97637aab273b66a | TypeScript | 15,032 | 458 | /**
* Hook: resolves the interactive ML backend for the current project and
* provides a `predict` callback that calls `/api/ml/:pk/interactive-annotating`.
*
* This is the ML-backend counterpart to `useWorkerLifecycle` — same mask
* contract (`item.setMask`), different inference transport.
*/
import { useCallba... |
dcc4f04080838df4f676cce2e0100c9dc1ebb5a8b148441da89b521fb6f9d954 | TypeScript | 15,181 | 399 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue } from "@tests/vitest/helpers";
import { shallowMount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import type { Pinia } from "pinia";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import { us... |
dba963499d7727d3db31b149f3bbf97d45f44f6a49f640c9f2b6aadc072929a3 | TypeScript | 15,205 | 375 | import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import type { MessageException } from "@/api";
import { GalaxyApi } from "@/api/client";
import { HttpResponse, useServerMock } from "@/api/client/__mocks__";
import { createRateLimiterMiddleware, DEFAULT_CONFIG, RETRY_ON_429_HEADER } from "./r... |
c9ed75f0ae9d2f446c81f3e62ee8865ba9cd1c6af3936b99ba63c9234ef269cc | TypeScript | 15,741 | 385 | import { getLocalVue, suppressExpectedErrorMessages } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { http, HttpResponse } from "msw";
import { createPinia, setActivePinia } from "pinia";
import { afterEach, beforeEach, describe, expect, it, vi... |
be1ede9f624ad9bab729ee25081b872a52811c91369ac4553aa9811732064349 | TypeScript | 15,831 | 388 | import flushPromises from "flush-promises";
import { createPinia, setActivePinia } from "pinia";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import type { DCESummary, HDCASummary } from "@/api";
import { useServerMock } from "@/api/client/__mocks__";
import { type DCEEntry, useCollectionE... |
f9a1ed8b325bbda8dd7c8fc1ba5b72e09fabb4b37e35f0e5f7ebd49537597e91 | TypeScript | 15,895 | 377 | import { getFakeRegisteredUser } from "@tests/test-data";
import { getLocalVue, injectTestRouter } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { createPinia } from "pinia";
import { beforeEach, describe, expect, it, vi } from "vitest";
import... |
e84329eb1607e01aecb2944a7e02761c8b893d64937a9a2041118c84f7bc455c | TypeScript | 15,906 | 549 | import { formDataToJPO } from "../utils/helpers";
import { REQUESTED_WITH_HEADER, REQUESTED_WITH_VALUE, isSameOrigin, isUnsafeMethod } from "./same-origin-fetch";
import statusCodes from "./status-codes.json";
import type {
APIProxyOptions,
ApiResponse,
EndpointConfig,
RequestMethod,
RequestMode,
ResponseEr... |
b457e78fd8ee5bd19db880195713fe88eb0f155c3e4be01eb5c1790d89c47903 | TypeScript | 15,931 | 506 | // Copyright (C) 2020-2022 Intel Corporation
// Copyright (C) CVAT.ai Corporation
//
// SPDX-License-Identifier: MIT
import { AnyAction } from 'redux';
import { AuthActionTypes } from 'actions/auth-actions';
import { SettingsActionTypes } from 'actions/settings-actions';
import { AnnotationActionTypes } from 'actions... |
426aa577318a1a493f3cfed4fe38bb002767f3532469d778e5357772368d6006 | TypeScript | 16,007 | 495 | import { computed, del, ref, set } from "vue";
import type { FieldDict, SampleSheetColumnDefinitions } from "@/api";
import { isWorkflowInput } from "@/components/Workflow/constants";
import type { CollectionTypeDescriptor } from "@/components/Workflow/Editor/modules/collectionTypeDescription";
import { getConnectionI... |
7a33ff83cd8f5c2962ed184abf9e706f7c69d49d213b3b103c61e76f55990109 | TypeScript | 16,062 | 533 | // Copyright (C) 2020-2022 Intel Corporation
// Copyright (C) CVAT.ai Corporation
//
// SPDX-License-Identifier: MIT
import _ from 'lodash';
import { AnyAction } from 'redux';
import { ThunkAction } from 'utils/redux';
import {
GridColor, ColorBy, SettingsState,
CombinedState,
} from 'reducers';
import { Orien... |
299152f8c8acc3fe715ef83d16c1c01c956425ef828ad0d91bd01b8600d3cea2 | TypeScript | 16,493 | 506 | import { useEventBus } from "@vueuse/core";
import axios from "axios";
import {
AbstractZipExplorer,
type AnyZipEntry,
isFileEntry,
isRemoteZip,
type IZipExplorer,
ROCrateZipExplorer,
type ZipEntryMetadata,
ZipExplorer,
type ZipFileEntry,
} from "ro-crate-zip-explorer";
import { comp... |
e095dfb6384a033d9a9cb9acd59d38d331ce80ce66d112a2f7384c519e86c50e | TypeScript | 16,497 | 417 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue } from "@tests/vitest/helpers";
import { shallowMount, type Wrapper } from "@vue/test-utils";
import flushPromises from "flush-promises";
import type { Pinia } from "pinia";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"... |
871f1f433f5cf4d6fbeae0c03cb15fda53ddac95f058825909e1631b18d0da2e | TypeScript | 16,752 | 400 | import flushPromises from "flush-promises";
import { http as mswHttp } from "msw";
import { createPinia, setActivePinia } from "pinia";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import { HttpResponse, useServerMock } from "@/api/client/__mocks__";
import { ApiError, MAX_RETRIES } from "... |
4eae074e9f9cbd5f88ab7ebd383a86be41f4973b0b086b626a4e04a03b169cdf | TypeScript | 16,912 | 456 | /**
* React Query hook for fetching and deriving agreement dashboard data.
*
* Fetches from GET /api/tasks/{taskId}/summary/ and transforms the
* response into structures ready for each dashboard panel.
*
* All read-only data (task metadata, annotation info, agreement scores)
* comes exclusively from the API — n... |
ef3fddf93f5ab772f662fb4ab735abc4c59482232ccbe713cefb824af1bef3b7 | TypeScript | 17,087 | 473 | import { defineStore } from "pinia";
import { computed, ref } from "vue";
import { fetchInvocationReport } from "@/api/invocations";
import {
createHistoryPage,
type CreateHistoryPagePayload,
deleteHistoryPage,
fetchHistoryPage,
fetchHistoryPages,
fetchPageRevision,
fetchPageRevisions,
... |
d3e7fa4d5454ebb186bdcfa2bd3c42eabfcf8c1f8e55beadcb58564d30850ba6 | TypeScript | 17,098 | 469 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue, injectTestRouter } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { setActivePinia } from "pinia";
import { beforeEach, describe, expect, it, vi } from "vitest";
import ... |
f1f901467d5f98cec42e505c95b85e182f74cf0cb4320ee52f7d5e813ddbe3e6 | TypeScript | 17,292 | 397 | import type { IconDefinition } from "@fortawesome/fontawesome-svg-core";
import {
faCheckCircle,
faClock,
faCloud,
faExclamationTriangle,
faForward,
faPause,
faQuestionCircle,
faSpinner,
faStopCircle,
faTrash,
} from "@fortawesome/free-solid-svg-icons";
import { computed, type Re... |
785fe11a1959a395d195efeb2eb1a82dfdad157e013199c795b19ea5bffe6b8e | TypeScript | 17,341 | 445 | import flushPromises from "flush-promises";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import type { RegisteredUser } from "@/api";
import { useServerMock } from "@/api/client/__mocks__";
import type {
ServiceCredentialGroupResponse,
ServiceCredentialsDefinition,
ServiceCrede... |
6ea127718dc81a60d528dd44c2b0a58273be9d99c9f18afdef02714c7dded892 | TypeScript | 18,153 | 539 | import { LabelStudio, ImageView, Choices, ToolBar, Modals, Sidebar } from "@humansignal/frontend-test/helpers/LSF";
import {
simpleImageChoicesConfig,
simpleImageData,
perTagChoicesResult,
perTagMIGChoicesConfig,
simpleMIGData,
requiredPerTagMIGChoicesConfig,
CHOICES_REQUIRED_WARNING,
perRegionMIGChoice... |
66c1913f4101f7a695aa177e730ab4d71a58346d792637549302cfa81c0a45e5 | TypeScript | 18,651 | 466 | import { computed, ref, watch } from "vue";
import { useEventStore } from "@/stores/eventStore";
import { useActiveElement } from "../useActiveElement";
import type { ComponentInstanceExtends, ComponentInstanceRef, SelectedItemsProps } from "./types";
/** A composable that allows for the selection of items in a list... |
96e498bbcc9d738d18a16aca6bf36c7c6357950569e2fad63d6135c55ec85fc3 | TypeScript | 18,904 | 857 | export const simpleImageData = {
image: "https://data.heartex.net/open-images/train_0/mini/0030019819f25b28.jpg",
};
export const simpleMIGData = {
images: [
"https://data.heartex.net/open-images/train_0/mini/0030019819f25b28.jpg",
"https://data.heartex.net/open-images/train_0/mini/00155094b7acc33b.jpg",
... |
c7b9578b5781a19bb2f00faee36608bf7addf82dc982807cc9454cd90b4c186f | TypeScript | 19,209 | 541 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue, suppressDebugConsole } from "@tests/vitest/helpers";
import { mount, type Wrapper } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { beforeEach, describe, expect, it, vi } from "vitest";
import { useServerMock } from... |
463330c84cede1dc5a1702ea9f580f0730dffe8c4b8b80cfa695416fb538ee85 | TypeScript | 20,140 | 519 | import type { MockedFunction } from "@vitest/spy";
import flushPromises from "flush-promises";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import { useResourceWatcher, type WatchOptions, type WatchResourceHandler } from "./resourceWatcher";
// Mock the global document object
const mockAd... |
8e481a76df3a337469e0c15e352f87a491f4603850da62d150efb029af0d2d90 | TypeScript | 20,179 | 701 | import { replaceLabel } from "@/components/Markdown/parse";
import { autoLayout } from "@/components/Workflow/Editor/modules/layout";
import { useToast } from "@/composables/toast";
import { useRefreshFromStore } from "@/stores/refreshFromStore";
import { LazyUndoRedoAction, UndoRedoAction, type UndoRedoStore, useUndoR... |
d06c53b29cafff245bed34c0223f76454e87d8dba673a663da962f48f302e1ac | TypeScript | 20,411 | 548 | import { AudioView, LabelStudio } from "@humansignal/frontend-test/helpers/LSF";
const config = `
<View>
<Audio name="audio" value="$url" hotkey="space" sync="text" />
<Header value="Sentiment"/>
<ParagraphLabels name="label" toName="text">
<Label value="General: Positive" background="#00ff00"/>
<Label v... |
a6360866befbc917b0521f7e46d2c6e7ccbe7ee1c3b063009437c0328bfe48a7 | TypeScript | 21,782 | 314 | export * from "./icons";
export { ReactComponent as IconAIAssistant } from "./ai-assistant.svg";
export { ReactComponent as IconAllProjects } from "./all-projects.svg";
export { ReactComponent as IconAnalytics } from "./analytics.svg";
export { ReactComponent as IconAnnotation } from "./annotation.svg";
export { React... |
607b50a07e4d49229c57e69139eed7d2eeb29870f77fb8e61ff9430a7b23e5eb | TypeScript | 24,739 | 712 | import { types } from "mobx-state-tree";
import { isFF } from "../../../../utils/feature-flags";
import type { Mock } from "bun:test";
const createMockStoreType = (paragraphsModel: any, typesApi = types) => {
const makeAnnotationStore = () => {
const store: Record<string, unknown> = { addErrors: mock() };
Ob... |
3b842878592f71a938817113ea496728613b2054d7cb9e993e04ac761426486c | TypeScript | 25,331 | 635 | import { defineStore, storeToRefs } from "pinia";
import { computed, readonly, ref, set } from "vue";
import { GalaxyApi, isRegisteredUser } from "@/api";
import type {
CreateSourceCredentialsPayload,
SelectCurrentGroupPayload,
ServiceCredentialGroupPayload,
ServiceCredentialGroupResponse,
ServiceC... |
f45fce34c072d7c3e56540bae9b8ae41d89bf6ed2af205545d2b7a70baf53750 | TypeScript | 25,685 | 636 | // Copyright (C) 2019-2022 Intel Corporation
// Copyright (C) CVAT.ai Corporation
//
// SPDX-License-Identifier: MIT
import { omit } from 'lodash';
import config from './config';
import PluginRegistry from './plugins';
import { observe } from './capabilities';
import serverProxy from './server-proxy';
import lambdaMa... |
d18b954602e1cd82a54b7bb4392f8dc2cd6879c1cb9e54c386b2141d907bc632 | TypeScript | 25,856 | 685 | import { defineStore } from "pinia";
import { computed, del, ref, set, watch } from "vue";
import {
type AnyHistory,
GalaxyApi,
type HistoryContentsStats,
type HistoryDetailed,
type HistoryDevDetailed,
type HistorySummary,
type HistorySummaryExtended,
} from "@/api";
import type { UpdateHis... |
9bf14c608eddaa2a4ff05c6d4465487d3a6dec90107e4fbe9c69731e1d7723ab | TypeScript | 26,014 | 592 | import { getLocalVue, injectTestRouter } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { createPinia, setActivePinia } from "pinia";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import toolsListUntyped from "@/comp... |
a10f2a3edfe266d8dd9ba48244abdbefe1d1595efb551a1be4c7d7c25ab5568a | TypeScript | 26,140 | 693 | /**
* Unit tests for Player (lib/AudioUltra/Controls/Player.ts).
* Player is abstract; we test it via Html5Player with mocks.
*/
import type { Mock } from "bun:test";
const { Html5Player } = require("../Html5Player") as any;
function createMockWaveform(overrides: Record<string, unknown> = {}) {
return {
invok... |
f690e29cf9c03a00b97d6d1c837cf861f81ceb48d6c9bbc2c52442525f2d1fd0 | TypeScript | 26,849 | 595 | // eslint-disable-next-line simple-import-sort/imports
import toolsListUntyped from "@/components/ToolsView/testData/toolsList.json";
import toolsListInPanelUntyped from "@/components/ToolsView/testData/toolsListInPanel.json";
import { describe, expect, it } from "vitest";
import {
countUniqueToolsInList,
crea... |
f644d7eb680f8c19dcbb15a4b2040b2d4a4afdd23d35c7582a3a5c832fb24f7a | TypeScript | 27,236 | 791 | import type { FC, MutableRefObject, ReactNode } from "react";
import { clamp } from "../../../utils/utilities";
import {
DEFAULT_PANEL_HEIGHT,
DEFAULT_PANEL_MAX_HEIGHT,
DEFAULT_PANEL_MAX_WIDTH,
DEFAULT_PANEL_MIN_HEIGHT,
DEFAULT_PANEL_WIDTH,
PANEL_HEADER_HEIGHT,
} from "../constants";
import { Comments, Cust... |
ead832940f8a8959b666027408ee401668d49ddae1850d163af99db70955fd71 | TypeScript | 28,219 | 790 | import { type Component, ROOT_COMPONENT as raw_root_component, type SelectorTemplate } from "./index";
interface Root_messages extends Component {
all: SelectorTemplate;
error: SelectorTemplate;
warning: SelectorTemplate;
done: SelectorTemplate;
info: SelectorTemplate;
donelarge: SelectorTempla... |
aee06c908326bfbcb1a92115c6a5fe0920b2416b1e877a3d897a1ec0e2f19d65 | TypeScript | 28,781 | 696 | import { describe, expect, it } from "bun:test";
import { existsSync, readFileSync, readdirSync, statSync } from "node:fs";
import { join, relative } from "node:path";
import { REQUESTED_WITH_HEADER } from "../same-origin-fetch";
/**
* FIT-2967 guard test.
*
* The CSRF fix landing in FIT-2968 requires every session... |
bd4a497a304fc14cf2bf9aff82226640b57f57d293bd052d03b7891de085756f | TypeScript | 29,970 | 745 | /**
* This utility function is used to parse and convert the user inputted filter text in `QUERY:VALUE` format to a query
* object that can be sent to the server.
* User input text is split by space and each filter can be in the following format:
* `QUERY[:, < or >]VALUE`
* QUERY may only contain alphanumeric char... |
79a98e77f32eaa1f622422cef32e3a12abf0a055f69936504f274bc9e19c9136 | TypeScript | 32,099 | 828 | /**
* Utilities file for Panel Searches (panel/client search + advanced/backend search)
* Note: Any mention of "DL" in this file refers to the Demerau-Levenshtein distance algorithm
*/
import {
faFilter,
faGraduationCap,
faNewspaper,
faProjectDiagram,
faSitemap,
faStar,
faUndo,
type I... |
165d8bdda86d67cbd6e596119848c709eaf2b86b9e3599aea22dda36db59ee06 | TypeScript | 32,119 | 793 | import "@tests/vitest/mockHelpPopovers";
import "@/composables/__mocks__/filter";
import { createTestingPinia } from "@pinia/testing";
import { dispatchEvent, getLocalVue } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import { PiniaVuePlugin } from "pinia";
import { describe, expect, it, vi }... |
8105c879dc96c31fb6dde2773cee625a3c24894d975389bb4a0ebbe02c9c0cf0 | TypeScript | 34,453 | 1,300 | // Copyright (C) 2020-2022 Intel Corporation
// Copyright (C) CVAT.ai Corporation
//
// SPDX-License-Identifier: MIT
import { Canvas3d } from 'cvat-canvas3d/src/typescript/canvas3d';
import {
Canvas, RectDrawingMethod, CuboidDrawingMethod, RenderData, CanvasHistorySource,
} from 'cvat-canvas-wrapper';
import { Ori... |
983e39c7af8b76d18d7bfb490802c869f54c8335cef6adb1ac325a1e186e2eb9 | TypeScript | 35,621 | 932 | // Copyright (C) CVAT.ai Corporation
//
// SPDX-License-Identifier: MIT
import {
Label, QualityRequirement, QualityRequirementSaveFields, QualitySettings,
} from 'cvat-core-wrapper';
import {
QualityRequirementAnnotationType, QualityRequirementAttributeComparator,
QualityMetricAggregation, QualityRequireme... |
0525bdb331182aa76142451df1435e95b6e5026b235b986a170b8f022aad7b6a | TypeScript | 42,105 | 1,127 | import { createPinia, setActivePinia } from "pinia";
import { beforeEach, describe, expect, it } from "vitest";
import { useServerMock } from "@/api/client/__mocks__";
import type { HistoryPageDetails, HistoryPageSummary } from "@/api/pages";
import { usePageEditorStore } from "./pageEditorStore";
const TEST_HISTORY... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.