sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
823e91f76abb0402df70ac4809f01ee10963bf5ab1bcdb73c0b8531e118d9728 | TypeScript | 5,656 | 154 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue } from "@tests/vitest/helpers";
import { mount, type Wrapper } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { setActivePinia } from "pinia";
import { describe, expect, it, vi } from "vitest";
import { nextTick } from... |
6beed02371056e574a9ca96e252640b58ed766909a4a1d14e696eaabab0489f9 | TypeScript | 5,680 | 184 | /**
* Upload item type definitions for the upload queue.
* These types represent items in various stages of the upload lifecycle.
*/
import type { HistoryContentSource } from "@/api/datasets";
import type { FetchDatasetHash } from "@/api/tools";
import type { UploadMethod } from "@/components/Panels/Upload/types";
... |
3a77f0a0acb82a4323a13ad418ca26812030d15a3c276c6ab3ed29bf0f39a335 | TypeScript | 5,699 | 177 | import { getLocalVue } from "@tests/vitest/helpers";
import { mount, type Wrapper } from "@vue/test-utils";
import { beforeEach, describe, expect, it } from "vitest";
import type Vue from "vue";
import type { HDCASummary } from "@/api";
import CollectionDescription from "./CollectionDescription.vue";
const localVue ... |
1ddd77bc34b6d22635ce4d1b42dc59eca92fe241afecf04df11f06a5491738f5 | TypeScript | 5,705 | 158 | import ELK, { type ElkExtendedEdge, type ElkNode } from "elkjs/lib/elk.bundled";
import { type Ref, ref, watch } from "vue";
import type { EdgeStyle, GraphEdge, GraphLayout, GraphNode } from "@/components/Graph/types";
import { computeControlPoints } from "@/utils/connectionPath";
import { type HistoryGraphResponse, ... |
0b3a28e4c2216f258bf45d512da1ae4e01b838a32b6d294a46b77d5f2f442197 | TypeScript | 5,748 | 189 | import axios from "axios";
import {
type components,
type DatasetTextContentDetails,
GalaxyApi,
type GalaxyApiPaths,
type HDADetailed,
type HDASummary,
} from "@/api";
import { withPrefix } from "@/utils/redirect";
import { rethrowSimple, rethrowSimpleWithStatus } from "@/utils/simple-error";
... |
908c0e9e5387e0d934bc5dfc35b67821d8c1cd54c06242ff9c8eb2977cfb2295 | TypeScript | 5,770 | 167 | import * as tus from "tus-js-client";
/**
* Represents a file stream for upload.
* Used when uploading content from ReadableStream sources (e.g., ZIP file entries).
*/
export interface FileStream {
name: string;
size: number;
type?: string;
lastModified: number;
stream: ReadableStream<Uint8Array... |
3fbbe9220bdcd8526d4546790db7038ca38bab33a064762c98919f83b14167de | TypeScript | 5,771 | 161 | import { readonly, ref, watch } from "vue";
import type { StoreExportPayload } from "@/api";
import { GalaxyApi } from "@/api";
import type { ExportParams } from "@/components/Common/models/exportRecordModel";
import { withPrefix } from "@/utils/redirect";
import { rethrowSimple } from "@/utils/simple-error";
import ... |
c4c05c465651f8cf2eeb3d161c9cb04c9452f13fcd08eb4e709a68bd965d09a7 | TypeScript | 5,774 | 151 | import type { Middleware } from "openapi-fetch";
import { parseRetryAfterMs, retryBackoffMs } from "@/utils/simple-error";
interface RateLimitConfig {
/** Maximum requests per window */
maxRequests?: number;
/** Time the requestwindow lasts in milliseconds */
windowMs?: number;
/** Base delay befo... |
bb72054c0cbc9a4e5a5329380342a4b5578b1d5e24fc0abd0395cf30e260531e | TypeScript | 5,818 | 164 | import { getLocalVue } from "@tests/vitest/helpers";
import { mount, type Wrapper } from "@vue/test-utils";
import { createPinia } from "pinia";
import { describe, expect, test, vi } from "vitest";
import { ref } from "vue";
import type { Tool, ToolSection as ToolSectionType, ToolSectionLabel } from "@/stores/toolStor... |
07e658f07a1c9889743cf04ff9b91d828844806a13d93d3f7c28791e81742422 | TypeScript | 5,887 | 175 | import type { UseElementBoundingReturn } from "@vueuse/core";
import { computed, reactive, ref, set, type UnwrapRef } from "vue";
import type { OutputTerminals } from "@/components/Workflow/Editor/modules/terminals";
import reportDefault from "@/components/Workflow/Editor/reportDefault";
import type { Rectangle } from... |
2d6b777520df4ff4043546656e71b06077086bd30b8bbb748ea8886fcf28fd43 | TypeScript | 5,892 | 147 | import { type components, GalaxyApi } from "@/api";
import { ERROR_STATES, type ShowFullJobResponse } from "@/api/jobs";
import type { Tool, ToolPanelItem, ToolSection, ToolSectionLabel } from "@/stores/toolStore";
import { errorMessageAsString } from "@/utils/simple-error";
export type HdcaUploadTarget = components["... |
52abaf2d63e8ad47317330d3fb9ed8f30ca5992896248fc2be01ca8a85f70099 | TypeScript | 5,898 | 140 | import type { Config } from "dompurify";
import { beforeEach, describe, expect, test, vi } from "vitest";
import { PROFILE_CONFIGS, sanitizeHtml } from "@/directives/sanitizeHtml";
// The global test setup replaces this module with a pass-through spy; these
// tests exercise the real profiles against a DOMPurify stan... |
aa19ce4a0c6c2862385b2fc29619cf01ae528b8a3cbc5ea0c9fb089d4b0cfd59 | TypeScript | 5,979 | 168 | import { createTestingPinia } from "@pinia/testing";
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 { computed, ref } from "vue";
imp... |
3648e45cec1c7419b70e9fe673f559ca3a4195f8746dcfdd3b5325576d3c930f | TypeScript | 6,011 | 182 | // Copyright (C) 2020-2022 Intel Corporation
// Copyright (C) CVAT.ai Corporation
//
// SPDX-License-Identifier: MIT
import CVATCore from 'cvat-core/src';
import _cvat from 'cvat-core/src/api';
import config from 'config';
import ObjectState, { SerializedData } from 'cvat-core/src/object-state';
import { AudioInterva... |
1ba67164dd48ee599333481137d3ebec9ea9f8494605f8f284eae84ec452c59e | TypeScript | 6,043 | 145 | import { getLocalVue } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import { describe, expect, it } from "vitest";
import Multiselect from "vue-multiselect";
import SingleItemSelector from "./SingleItemSelector.vue";
const localVue = getLocalVue();
const ITEMS = [
{ id: "a", text: "Alph... |
bf12380a5721ba0e74573d29964dc6418940cc632e56959f15813593f329b553 | TypeScript | 6,066 | 143 | import { createTestingPinia } from "@pinia/testing";
import { mount, shallowMount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { describe, expect, it, vi } from "vitest";
import type { JobBaseModel } from "@/api/jobs";
import { statePlaceholders } from "@/composables/useInvocationGraph"... |
21bf81e34ae40260415c74f8d827368fce808f99127f3f1941acf8a4e66fa8e9 | TypeScript | 6,101 | 158 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { http as mswHttp } from "msw";
import { setActivePinia } from "pinia";
import { afterEach, beforeEach, describe, expect, ... |
f4d36cc26c4b716aaaaa4c9b6a4674c1ca9c5cd257ce2da4dd57e18b3b19f7e6 | TypeScript | 6,128 | 147 | import { getLocalVue } from "@tests/vitest/helpers";
import { shallowMount } from "@vue/test-utils";
import { BFormCheckbox } from "bootstrap-vue";
import flushPromises from "flush-promises";
import { describe, expect, it } from "vitest";
import type { HistorySummary, ObjectExportTaskResponse } from "@/api";
import { ... |
4e177257145eb40200f310bfe1af3a77109ab991e3315ed1573dcd8f12c5710e | TypeScript | 6,139 | 187 | import MarkdownIt from "markdown-it";
import type Token from "markdown-it/lib/token";
import { readonly } from "vue";
/**
* Adds a rule to open all links in a new page.
* https://github.com/markdown-it/markdown-it/blob/master/docs/architecture.md#renderer
*/
function addRuleOpenLinksInNewPage(engine: MarkdownIt) {
... |
837dfa7e42b9944bba95cfe43107fd027efbffccbbe53b2e9d1b4275e107f988 | TypeScript | 6,173 | 168 | import { defineStore } from "pinia";
import { computed, ref, set } from "vue";
import { GalaxyApi } from "@/api";
import type {
InvocationJobsSummary,
InvocationStep,
StepJobSummary,
WorkflowInvocation,
WorkflowInvocationRequest,
} from "@/api/invocations";
import { type FetchParams, useKeyedCache ... |
fca6758c4f89dd618e74b7aba2c5eb92b604cb13bd0cd9da7e248ae45c1b07d0 | TypeScript | 6,217 | 206 | type BoundingBox = {
bottom: number;
height: number;
left: number;
right: number;
top: number;
width: number;
x: number;
y: number;
};
const getBoundingBox = (elem?: HTMLElement) => {
const template: BoundingBox = {
bottom: 0,
height: 0,
left: 0,
right: 0,
top: 0,
width: 0,
... |
579a9a41636ffceda1fcb29cbb31fa6b6e0ba0575167db75eed3bbbc5e64393d | TypeScript | 6,265 | 196 | import { faEdit, faKey, faPlus, faTrash, faTrashRestore } from "@fortawesome/free-solid-svg-icons";
import { useEventBus } from "@vueuse/core";
import axios from "axios";
import { GalaxyApi } from "@/api";
import Filtering, { contains, equals, toBool, type ValidFilter } from "@/utils/filtering";
import _l from "@/util... |
896627e5b87a940ce31330f07461ba89eb23c82102bb7caf6b7e25dfed0696ca | TypeScript | 6,292 | 173 | import axios from "axios";
import isEqual from "lodash.isequal";
import { defineStore } from "pinia";
import { computed, ref, watch } from "vue";
import { useResourceWatcher } from "@/composables/resourceWatcher";
import { useSSE } from "@/composables/useNotificationSSE";
import { getAppRoot } from "@/onload/loadConfi... |
f2a9e5765b7ccf9c0337b04609bf8cd7f2a0e0d94a62031478becadf78c23d1a | TypeScript | 6,319 | 207 | import { type MutableRefObject, useContext, useEffect, useMemo, useRef, useState } from "react";
import { TimelineContext } from "../../../components/Timeline/Context";
import { isTimeRelativelySimilar } from "../Common/Utils";
import type { Layer } from "../Visual/Layer";
import { Waveform, type WaveformFrameState, t... |
514f0ce3b84950f8c6ae57d5a6c57bfe6d0bfb6fbf868020df14f921fb1fc204 | TypeScript | 6,336 | 163 | import { computed, del, ref, set } from "vue";
import { useWorkflowStepStore } from "@/stores/workflowStepStore";
import { pushOrSet } from "@/utils/pushOrSet";
import { defineScopedStore } from "./scopedStore";
import type {
BaseTerminal,
Connection,
ConnectionId,
InputTerminal,
InvalidConnection... |
2c3f7b5d7df63211605232619a0d0f59732549b4c3704bef91457354fe6346f8 | TypeScript | 6,346 | 162 | import { createTestingPinia } from "@pinia/testing";
import { getFakeRegisteredUser } from "@tests/test-data";
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 { AnyHi... |
a31bf65f7280de00206126da9f29fa56b35098fe76d159c91d4bf014ba2e2836 | TypeScript | 6,355 | 162 | import { createTestingPinia } from "@pinia/testing";
import { setActivePinia } from "pinia";
import { beforeEach, describe, expect, it, vi } from "vitest";
import { ref } from "vue";
import type { StepJobSummary, WorkflowInvocationElementView } from "@/api/invocations";
import { useInvocationGraph } from "./useInvoca... |
65416c8c32f1da5db148d29e43e4dc9a59648ed2de0828c71a3c0d9ed641c8b8 | TypeScript | 6,415 | 178 | import Filtering, { contains, equals, expandNameTag, toBool } from "@/utils/filtering";
export function helpHtml(activeList = "my", isAnonymous = false) {
let extra = "";
if (activeList === "my") {
extra = `<dt><code>is:published</code></dt>
<dd>
Shows published workflows.
<... |
1e2f9e21f39a89d8cf73167aab3f2eb253cbcbb028a40e7dd99e3398f0f4d8b2 | TypeScript | 6,465 | 233 | import type { IconDefinition } from "@fortawesome/fontawesome-svg-core";
import {
faCheck,
faClock,
faCloud,
faExclamationTriangle,
faLayerGroup,
faSpinner,
faTimes,
} from "@fortawesome/free-solid-svg-icons";
import type { UploadItem } from "@/composables/upload/uploadItemTypes";
import t... |
e591e5d21324200c8a866e18e75cfcf54526bba52e9db9231b78affa21297716 | TypeScript | 6,514 | 195 | import { type Instance, types } from "mobx-state-tree";
import { ff } from "@humansignal/core";
import { FF_DEV_3391 } from "../utils/feature-flags";
/**
* Supress all additional events during this window in ms.
* 100ms is too short to notice, but covers enough frames (~6) for back and forth events.
*/
export const... |
676a095ba3d53dd8b33e4454a2fe7334067cf50351242938539093265930b7f8 | TypeScript | 6,526 | 242 | import { patchPlayPauseMethods } from "../../../utils/patchPlayPauseMethods";
import { Events } from "../Common/Events";
import { audioDecoderPool } from "./AudioDecoderPool";
import { type BaseAudioDecoder, DEFAULT_FREQUENCY_HZ } from "./BaseAudioDecoder";
export interface WaveformAudioOptions {
src?: string;
spl... |
0d7be8d089bda1cfa0932f280063a0470f5b4d2234e218b274843d61ef294f71 | TypeScript | 6,559 | 207 | import { faEdit, faKey, faPlus, faTrash, faTrashRestore } from "@fortawesome/free-solid-svg-icons";
import { useEventBus } from "@vueuse/core";
import axios from "axios";
import { GalaxyApi } from "@/api";
import Filtering, { contains, equals, toBool, type ValidFilter } from "@/utils/filtering";
import _l from "@/util... |
0365df723611d26ade41a60bf7156f004f93ad33e67051a50593d1d2ebec616c | TypeScript | 6,655 | 161 | import { getLocalVue } from "@tests/vitest/helpers";
import { shallowMount, type Wrapper } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { createPinia } from "pinia";
import { afterEach, describe, expect, it, vi } from "vitest";
import type Vue from "vue";
import { HttpResponse, useServerM... |
12b81b3f9f3febd272d1927eeece0fc380d894666939f6f28420cea340daad6a | TypeScript | 6,706 | 201 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue } from "@tests/vitest/helpers";
import { shallowMount } from "@vue/test-utils";
import { faUnlockAlt } from "font-awesome-6";
import { beforeEach, describe, expect, it, vi } from "vitest";
import { computed } from "vue";
import VueRouter from "vu... |
85f57aab6ed45d540332fcf91e18c5c725f72b3568c0c83630dcb6a15c6940a9 | TypeScript | 6,768 | 178 | import type { FC, ReactNode } from "react";
export type SelectOptionData<T = any> = {
value: T;
label?: ReactNode;
hidden?: boolean;
disabled?: boolean;
children?: SelectOptionData<T>[];
/** Optional badge shown next to the option label. */
badge?: string;
/** Optional explanation shown in an info tool... |
6400e24a3cd4ed6039d0c07b5566cfaa81611b7741c47e3cbe51e8c68e57efca | TypeScript | 6,870 | 201 | import { useLayoutEffect, useRef, useState } from "react";
interface UseAvatarOverflowProps {
enabled: boolean;
containerRef: React.RefObject<HTMLDivElement>;
itemCount: number;
recalcTrigger?: number;
}
/**
* Custom hook to calculate avatar overflow and determine how many avatars should be visible.
* Retur... |
8173248d880da30605873922f3f74f7eba13f8cc500f4f2395f4e8aaf52a357e | TypeScript | 6,875 | 196 | import { storeToRefs } from "pinia";
import type { Ref } from "vue";
import { computed, ref, watch } from "vue";
import type { Creator } from "@/api/workflows";
import type { DatatypesMapperModel } from "@/components/Datatypes/model";
import { useWorkflowStores } from "@/composables/workflowStores";
import type { Step... |
deed952323b2222937fa1999a18054e17c2c480907eed9b4692bb50982fd3e06 | TypeScript | 6,935 | 210 | import { AudioView, LabelStudio } from "@humansignal/frontend-test/helpers/LSF";
const config = `
<View>
<Video name="video" value="$url" sync="v1" framerate="29.970628" />
<Audio name="audio" value="$url" hotkey="space" sync="v1" />
<Header value="Sentiment"/>
<ParagraphLabels name="label" toName="text">
... |
fed1faee363daa8a5d011954a68bc9847e385bb525c19fb6c89d7ff1a0749cf2 | TypeScript | 6,969 | 194 | import "@/composables/__mocks__/filter";
import { createTestingPinia } from "@pinia/testing";
import { getLocalVue } from "@tests/vitest/helpers";
import { mount, type Wrapper } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { setActivePinia } from "pinia";
import { describe, expect, it, vi... |
1b6144a157bdcaf2971effa0a21ab7b4472488cbc9c662390bc30e9346cecf08 | TypeScript | 6,989 | 185 | import flushPromises from "flush-promises";
import { createPinia, setActivePinia } from "pinia";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import { useServerMock } from "@/api/client/__mocks__";
import type { UserNotification } from "@/api/notifications";
import { emitSse, sseMockFacto... |
60f5a72392f8de37600665561f6ef28e230a2bda275704331bf9dc14806d1af8 | TypeScript | 7,048 | 252 | import { LazyUndoRedoAction, UndoRedoAction } from "@/stores/undoRedoStore";
import type {
BaseWorkflowComment,
WorkflowComment,
WorkflowCommentColor,
WorkflowCommentStore,
WorkflowCommentType,
} from "@/stores/workflowEditorCommentStore";
function getCommentName(comment: { color: WorkflowCommentCo... |
551cbf4b0f4c81f589f2ede7ba8818a0e5a56dc9ff6ead28dc01cde2fc98a76f | TypeScript | 7,068 | 191 | import { getLocalVue } from "@tests/vitest/helpers";
import { mount, type Wrapper } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { beforeEach, describe, expect, it } from "vitest";
import { useServerMock } from "@/api/client/__mocks__";
import type { BrowsableFilesSourcePlugin, CreatedEnt... |
0e6e3961454dc43f3c97e71441ff4c47fafb4c3ef52256d5f22ca25c6babd6ce | TypeScript | 7,123 | 181 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { setActivePinia } from "pinia";
import { describe, expect, it, vi } from "vitest";
import { sanitizeHtml } from "@/direc... |
2f205b0f70c51c9f9139bc9b8f1824951d4abfff5499728ed0d842b58c8df752 | TypeScript | 7,217 | 180 | import { mount } from "@vue/test-utils";
import { describe, expect, it } from "vitest";
import SidebarList from "./SidebarList.vue";
interface TestItem {
id: number;
label: string;
}
const ITEMS: TestItem[] = [
{ id: 1, label: "Alpha" },
{ id: 2, label: "Beta" },
{ id: 3, label: "Gamma" },
];
fu... |
e47f222c8ba1f030034ecad46540b5aaf755812fabe873cf261204e31e3e1e78 | TypeScript | 7,398 | 233 | import { faCog, faDatabase, faEdit, faPlus, faTrash, faTrashRestore, faUsers } from "@fortawesome/free-solid-svg-icons";
import { useEventBus } from "@vueuse/core";
import axios from "axios";
import { GalaxyApi } from "@/api";
import Filtering, { contains, equals, toBool, type ValidFilter } from "@/utils/filtering";
i... |
103caeb5dd947d7069da2fc3c5921d5ca74b5a0321ae5ee5bfe1be667472bdd3 | TypeScript | 7,410 | 262 | import type { BrowsableFilesSourcePlugin } from "@/api/remoteFiles";
export const ftpId = "_ftp";
export const rootId = "pdb-gzip";
export const directoryId = "gxfiles://pdb-gzip/directory1";
export const subDirectoryId = "gxfiles://pdb-gzip/directory1/subdirectory1";
export const subSubDirectoryId = "gxfiles://pdb-gz... |
4e429ac7db9bf5e200037ef0091051f12ff55c547321bbbbbebfbc98e5ffa0aa | TypeScript | 7,412 | 225 | import { computed, readonly, type Ref, ref } from "vue";
import { errorMessageAsString } from "@/utils/simple-error";
const DEFAULT_POLL_DELAY = 10000;
/**
* Represents the data that can be stored and restored to monitor the status of a task.
*/
export interface StoredTaskStatus {
/**
* The status of the ... |
41631b159170d757e8801e25c5064f45791539c2335492ca24deb39a1463c820 | TypeScript | 7,425 | 246 | /**
* Highly improved version of CodeMirror's XML hint addon
* https://codemirror.net/5/addon/hint/xml-hint.js
*/
import CM from "codemirror";
const Pos = CM.Pos;
const topTags = ["View"];
function matches(hint: string, typed: string, matchInMiddle?: boolean) {
if (matchInMiddle) return hint.includes(typed);
r... |
8e815793f41dc70942705d83f4e95f819535b951f91372de2f146d40947a61f6 | TypeScript | 7,445 | 240 | /**
* Stores the Activity Bar state
*/
import { useDebounceFn, watchImmediate } from "@vueuse/core";
import { computed, type Ref, ref, set } from "vue";
import { useHashedUserId } from "@/composables/hashedUserIdFromUserStore";
import { useUserLocalStorage } from "@/composables/userLocalStorage";
import { ensureDefi... |
e4500116a71a92907d58900b0f2aa06acb5d135c1ac45b5fcc38e21476670d6c | TypeScript | 7,562 | 272 | /**
* List of built-in activities
*/
import {
faChartBar,
faColumns,
faComments,
faDatabase,
faDownload,
faFile,
faFileContract,
faFolder,
faHdd,
faLaptop,
faList,
faPlay,
faSitemap,
faTable,
faUpload,
faWrench,
} from "@fortawesome/free-solid-svg-icons"... |
b9d8b2f2cd8c4acb7b349743079581f6586b232bc5476e2918c046875a574682 | TypeScript | 7,575 | 231 | import { computed, type ComputedRef, type Ref, ref } from "vue";
import { findExtension } from "@/components/Upload/utils";
import type { ExtensionDetails } from "@/composables/uploadConfigurations";
/**
* Base interface for upload items that support bulk operations.
* Upload items must have these properties to wor... |
f55e358502795a7266707f51933ae8ee547348a409b4a6f67ca1d0e95a7a6aa4 | TypeScript | 7,609 | 208 | import { getLocalVue } from "@tests/vitest/helpers";
import { mount, type Wrapper } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { createPinia, setActivePinia } from "pinia";
import { beforeEach, describe, expect, it, vi } from "vitest";
import { ref } from "vue";
import { useChatStore } ... |
7854b0d1a966c3dbd1d667dee4f53fd2d82f5edc482263239b82b75f1361fc7c | TypeScript | 7,758 | 202 | import { getLocalVue } from "@tests/vitest/helpers";
import { shallowMount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { createPinia, setActivePinia } from "pinia";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import type { RegisteredUser } from "@/api";
im... |
e940f863949baaeae4156c4c3df800d520994f358b29d77e8de9d92b9736d0f4 | TypeScript | 7,779 | 216 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue } from "@tests/vitest/helpers";
import { shallowMount, type Wrapper } from "@vue/test-utils";
import type { Pinia } from "pinia";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import type Vue from "vue";
import { useE... |
8ecb4c7a833642c6e52afc3d9e0e43cf9f7c7b64ae0b7f1a43f6702f5d95cd0e | TypeScript | 7,797 | 206 | import Constants from "../../core/Constants";
import type { MSTControlTag } from "../../stores/types";
import { contrastColor, convertToRGBA } from "../../utils/colors";
import type { ControlTag, LabelColors, LabelCounts, ObjectTagEntry, ObjectTypes } from "./types";
const defaultLabelColor = Constants.LABEL_BACKGROUN... |
d9482afc1ee4e6c0611d87a6f541b64bcfd673cb2465e45a331ff5b090ddec83 | TypeScript | 7,882 | 217 | // Copyright (C) CVAT.ai Corporation
//
// SPDX-License-Identifier: MIT
import { QualityRequirement } from 'cvat-core-wrapper';
import {
QUALITY_REQUIREMENT_METRICS,
parseQualityTargetMetric,
} from 'cvat-core/src/quality/quality-requirement-utils';
import {
QualityMetric, QualityMetricAggregation, Quality... |
466ffb93b934e069faf2fded3f223b180a0a1bafaf64c973f59ea681c599ee82 | TypeScript | 7,917 | 260 | import {
faEdit,
faExternalLinkAlt,
faEye,
faPen,
faPlus,
faShareAlt,
faTrash,
faTrashRestore,
} from "@fortawesome/free-solid-svg-icons";
import { useEventBus } from "@vueuse/core";
import { GalaxyApi } from "@/api";
import { getGalaxyInstance } from "@/app";
import { GRID_LABELS } fro... |
d45dd373dde590364a24da756c7ca2ea052f16939875447f2127eadd6bdc5e6a | TypeScript | 7,973 | 248 | import { faCopy, faEdit, faEye, faPlus, faShareAlt, faTrash, faTrashRestore } from "@fortawesome/free-solid-svg-icons";
import { useEventBus } from "@vueuse/core";
import axios from "axios";
import { GalaxyApi } from "@/api";
import { updateTags } from "@/api/tags";
import Filtering, { contains, equals, expandNameTag,... |
0db0772ee5f9b650ae192dd65be009068579ad80fdcf16c378df70e296bb2c35 | TypeScript | 7,983 | 227 | import { createTestingPinia } from "@pinia/testing";
import { suppressErrorForCustomIcons } from "@tests/vitest/helpers";
import { mount, shallowMount } from "@vue/test-utils";
import { setActivePinia } from "pinia";
import { beforeEach, describe, expect, it, vi } from "vitest";
import { nextTick, reactive, ref } from ... |
584da587eacaa04b09dfcce7ec6c77a6c2b107c12930d629b60fd6da5087380e | TypeScript | 8,014 | 191 | import { createTestingPinia } from "@pinia/testing";
import { mount, type Wrapper } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { describe, expect, it, vi } from "vitest";
import { HttpResponse, useServerMock } from "@/api/client/__mocks__";
import type { WorkflowInvocationElementView } ... |
399d59458e3b10557668d4363a03229a7df7ce822035f13961302b3f6cf17bca | TypeScript | 8,039 | 232 | import { shallowMount } from "@vue/test-utils";
import { beforeEach, describe, expect, it, vi } from "vitest";
import { type PropType, ref } from "vue";
import type { TaskMonitor } from "@/composables/genericTaskMonitor";
import {
type MonitoringData,
type MonitoringRequest,
usePersistentProgressTaskMonito... |
f3e7b386a053b4071cbdccabad3c98ffb70edcd3078d4e7f9333850f45289a67 | TypeScript | 8,039 | 202 | import { getLocalVue, injectTestRouter } 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 { HttpResponse, useServerMock } from "@/api/client/__mocks__";
impo... |
239ef14d5531daa828295ca75ce828f82b4632f28d29359c892b3d857e912a19 | TypeScript | 8,044 | 224 | /**
* Unit tests for InteractivePromptMixin (mixins/InteractivePromptMixin.ts).
*
* We test the concrete `InteractivePromptMixinImpl` / `InteractivePromptMixinNoop`
* models directly rather than going through the flag-gated `InteractivePromptMixin`
* alias — Bun's module cache isn't reliably bustable per-test, and... |
3e3cb5bbb3b10c5bb38a987ab7d58ee9f03c247ce92a7b88d273928b2574ee4c | TypeScript | 8,056 | 216 | import { faFile, faLayerGroup, faWrench } from "@fortawesome/free-solid-svg-icons";
import type { components } from "@/api/schema";
import type { GraphEdge, GraphNode, GraphNodePort } from "@/components/Graph/types";
import { type StateRepresentation, STATES } from "@/components/History/Content/model/states";
type Ap... |
781578b607efd858ddc1508b418369a90a6ab4595d99e5e01e1149a42c541577 | TypeScript | 8,109 | 215 | import { getLocalVue } 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 { refactor, type RefactorResponse } from "@/api/workflows";
import RefactorConfirmationModal fro... |
8861f5aa3ae7cd092baeb0123d1067dfd54303e0dd878fe51ebc01aaf5165804 | TypeScript | 8,138 | 207 | import { getLocalVue } from "@tests/vitest/helpers";
import { mount, type Wrapper } from "@vue/test-utils";
import { beforeEach, describe, expect, it } from "vitest";
import type { PageRevisionSummary } from "@/api/pages";
import PageRevisionList from "./PageRevisionList.vue";
const localVue = getLocalVue();
functi... |
768abe94cdb9b17de395b8f278ad5675d2e7d46d551a9704b2eb59b23e11af10 | TypeScript | 8,148 | 204 | /**
* Shared TopBar contract types.
*
* These types are the only thing the shared TopBar layer in `@humansignal/core/lib/topbar`
* accepts. They MUST stay independent of MobX/MST and Jotai. Each editor implements a thin
* wrapper that maps its own state graph onto these props.
*/
/**
* Plain user shape consumed... |
5b204dd47049beed20648513005cb3f714c01c38e71dde0639d882b05041da81 | TypeScript | 8,220 | 213 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue } 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 { useEntryPointSto... |
493242369f93c293919c45a32589e14bf2d0ad12c5b296ef4f6c68f72e01fae3 | TypeScript | 8,301 | 292 | import { useCallback } from "react";
import { useMutation } from "@tanstack/react-query";
import { isDefined, useAPI } from "@humansignal/core";
import { getProviderConfig } from "../providers";
import { omitHiddenProviderFields } from "../types/provider";
import { emitAppCommonEvent } from "../../../utils/appCommonTel... |
ad5402c730961c30d4bf9d6e72818ce7449e2c66324a03a24346d735e9ce977e | TypeScript | 8,321 | 290 | import { computed, ref, watch } from "vue";
import { useClamp, useStep } from "@/composables/math";
import { useUserLocalStorage } from "@/composables/userLocalStorage";
import { defineScopedStore } from "@/stores/scopedStore";
import { type LazyUndoRedoAction, UndoRedoAction } from "./undoRedoAction";
export { Lazy... |
f9b9b68264446e52f97d6ad16c0a080ad246b881b853e96d3da568d8f6527a8b | TypeScript | 8,388 | 222 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import { setActivePinia } from "pinia";
import { describe, expect, it, vi } from "vitest";
import { sanitizeHtml } from "@/directives/sanitizeHtml";
import { useToolStore }... |
252448b0cb53aa619def62c0708c6cd7c54de8041917e70a538b059b7d6039ea | TypeScript | 8,403 | 193 | import { storeToRefs } from "pinia";
import { computed, reactive } from "vue";
import type { ToolIdentifier } from "@/api/tools";
import { getToolKey } from "@/api/tools";
import type {
SelectCurrentGroupPayload,
ServiceCredentialsIdentifier,
SourceCredentialsDefinition,
UserServiceCredentialsResponse,... |
19f98150be2535031398891da9a8c664bf6c3d9a4abe09dd06314e63d5f029b3 | TypeScript | 8,430 | 246 | import {
faClock,
faCloud,
faExclamationTriangle,
faLock,
faPause,
faSpinner,
type IconDefinition,
} from "@fortawesome/free-solid-svg-icons";
import type { DCESummary, HDADetailed, HDCADetailed } from "@/api";
import { ERROR_DATASET_STATES, NON_TERMINAL_DATASET_STATES } from "@/api/dataset... |
1468426644945e2563563bf01a27c8a07dbdb1a354087073ad35c93cc6eea5e4 | TypeScript | 8,446 | 204 | import { beforeEach, describe, expect, it, vi } from "vitest";
import { HttpResponse, useServerMock } from "@/api/client/__mocks__";
import { retryBackoffMs } from "@/utils/simple-error";
import { deleteJob, stopJobs } from "./jobs";
vi.mock("@/utils/simple-error", async (importOriginal) => ({
...(await importOr... |
7dcf8a124e24c0c29874321e5b1ab148d7ab8a53bf7849700ad984a2d8720dea | TypeScript | 8,483 | 251 | /**
* Tests for the unified pages API client.
*/
import { describe, expect, it } from "vitest";
import { useServerMock } from "@/api/client/__mocks__";
import type {
CreateHistoryPagePayload,
HistoryPageDetails,
HistoryPageSummary,
UpdateHistoryPagePayload,
} from "./pages";
import {
createHisto... |
54e35ffb3f5a8c36441c8eedfe8d578c8f70becd3fdc13afeb16d3cd3fd7243e | TypeScript | 8,495 | 209 | import { faCog, faCopy, faFilter, faFolder } from "@fortawesome/free-solid-svg-icons";
import { createTestingPinia } from "@pinia/testing";
import { getLocalVue } from "@tests/vitest/helpers";
import { setupMockConfig } from "@tests/vitest/mockConfig";
import { mount } from "@vue/test-utils";
import flushPromises from ... |
9bfc4f5b8a5094e6c8cebf17ec8869a4469e6aec825d0ba7502019bbfedf7367 | TypeScript | 8,536 | 218 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue } 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 { ref } from "vue";... |
f95a7002188d5361d7cbd62b94db949d9f2fb2186a59cfa774cc5d4e72d0f032 | TypeScript | 8,642 | 218 | import { createPinia, setActivePinia } from "pinia";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import { useWorkflowStateStore } from "@/stores/workflowEditorStateStore";
import { useWorkflowStepStore } from "@/stores/workflowStepStore";
import { createMockStepPosition, createTestStep }... |
e6d206fc871c62d1c9e822a68b7054d0547b0c764d759c875b7f32c0b376d4f2 | TypeScript | 8,663 | 225 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue } from "@tests/vitest/helpers";
import { mount, 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";
impo... |
1bbe4261703c800dbd0e00c6067fd81ce80a9b946cef740d020d13eac402336c | TypeScript | 8,665 | 297 | // Copyright (C) 2020-2022 Intel Corporation
// Copyright (C) CVAT.ai Corporation
//
// SPDX-License-Identifier: MIT
import { PluginsActionTypes, PluginActions } from 'actions/plugins-actions';
import { PluginComponent, PluginsState } from '.';
const defaultState: PluginsState = {
fetching: false,
initialized... |
540fe2b959ec49c142d317e7ee716094c31beea840f84031213859c53d80a370 | TypeScript | 8,780 | 245 | import { getLocalVue } from "@tests/vitest/helpers";
import { mount, type Wrapper } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { createPinia, defineStore, setActivePinia } from "pinia";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import { ref } from "vue";
... |
07a7280167711bb4d27a4424505658501b60f0936ac3b04226335d49ea68fff5 | TypeScript | 8,924 | 320 | import { LabelStudio, ImageView, Rating, ToolBar, Modals, Sidebar } from "@humansignal/frontend-test/helpers/LSF";
import {
simpleImageRatingConfig,
simpleImageData,
perTagRatingResult,
perTagMIGRatingConfig,
simpleMIGData,
requiredPerTagMIGRatingConfig,
RATING_REQUIRED_WARNING,
perRegionMIGRatingConfig... |
ed46a3513ac51fcb18921250e16cb9c81eb4d0ed29be0b7836311ed86d36fa8b | TypeScript | 8,960 | 320 | import { LabelStudio, ImageView, ToolBar, Number, Modals, Sidebar } from "@humansignal/frontend-test/helpers/LSF";
import {
simpleImageNumberConfig,
simpleImageData,
perTagNumberResult,
perTagMIGNumberConfig,
simpleMIGData,
requiredPerTagMIGNumberConfig,
NUMBER_REQUIRED_WARNING,
perRegionMIGNumberConfig... |
f6fbc15db0de4943ec1080790709e7dba35045e00215d5e00e1b6b6bc3404a94 | TypeScript | 9,110 | 241 | const FUNCTION_ARGUMENT_VALUE_REGEX = `\\s*(?:[\\w_\\-]+|\\"[^\\"]+\\"|\\'[^\\']+\\')\\s*`;
const FUNCTION_ARGUMENT_VALUE_TO_VALUE_REGEX = `\\s*(?:\\"(?<unquoted>[^\\"]+)\\"|\\'(?<squoted>[^\\']+)\\'|(?<dquoted>[\\w_\\-]+))\\s*`;
const FUNCTION_ARGUMENT_REGEX = `\\s*[\\w\\|]+\\s*=` + FUNCTION_ARGUMENT_VALUE_REGEX;
cons... |
1861efda3b11559f9a3fd1ac2beaa6468618419312272e9fdb2cb48151b241f5 | TypeScript | 9,144 | 248 | import { createTestingPinia } from "@pinia/testing";
import { getFakeRegisteredUser } from "@tests/test-data";
import { getLocalVue } from "@tests/vitest/helpers";
import { mount, type Wrapper } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { beforeEach, describe, expect, it, vi } from "vit... |
2d265ea1e53e0ceb78d95e1b9421d9a3691980194a1a6870354f89cbeb087eb6 | TypeScript | 9,149 | 219 | import { createTestingPinia } from "@pinia/testing";
import { getFakeRegisteredUser } from "@tests/test-data";
import { getLocalVue } from "@tests/vitest/helpers";
import { shallowMount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { describe, expect, it, vi } from "vitest";
import type ... |
ab773ea7fb2b697bb387d3e397a92c9c69df221e65d739aa97a4b01699d6420a | TypeScript | 9,157 | 220 | import { getFakeRegisteredUser } from "@tests/test-data";
import { getLocalVue } from "@tests/vitest/helpers";
import { shallowMount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { createPinia } from "pinia";
import { beforeEach, describe, expect, it, vi } from "vitest";
import type { An... |
04a10f1c1c7095f30e314f1a91404419f4c3d7c4d0e439123068dbb72a7dcf9e | TypeScript | 9,188 | 240 | import fs from "node:fs";
import os from "node:os";
import path from "node:path";
import { afterAll, beforeAll, describe, expect, test } from "bun:test";
const lsoWebRoot = path.resolve(import.meta.dir, "../../..");
const repoRoot = path.resolve(lsoWebRoot, "../../..");
const lseWebRoot = path.join(repoRoot, "services... |
1d1ba1f991a04f5a5a4c9eef84e63ad4aec4429ece97dc13a597bf4cacc4c583 | TypeScript | 9,245 | 394 | import { Destructable } from "../Common/Destructable";
import type { WaveformAudio } from "../Media/WaveformAudio";
import { clamp } from "../Common/Utils";
import type { Waveform } from "../Waveform";
export abstract class Player extends Destructable {
protected audio?: WaveformAudio;
protected wf: Waveform;
pr... |
996a6889a380be0fbd701820ea2113719ea31c43bf8ba016e9b5aa597a66f7e6 | TypeScript | 9,245 | 299 | import { LabelStudio, Sidebar, VideoView } from "@humansignal/frontend-test/helpers/LSF";
import {
timelineVideoConfig,
timelineVideoData,
singleTimelineRegionResult,
multipleTimelineRegionsResult,
overlappingTimelineRegionsResult,
multipleTimelineRegionsLongResult,
} from "../../data/video_segmentation/tim... |
e79eda0299af4c834b2c50f5994cbb7b3dc098561ff799a18d961e915a9b8661 | TypeScript | 9,317 | 223 | import { faCheckCircle, faExclamationCircle, faSpinner, type IconDefinition } from "@fortawesome/free-solid-svg-icons";
import { computed, type Ref, ref } from "vue";
import { type DataUri, isDataUri, isDataUriCollection } from "@/components/Form/Elements/FormData/types";
import { isWorkflowInput } from "@/components/... |
f174ae919e03453dd38fd9af8b5a6f4de2428249c7e0c347943168d3a184ca3b | TypeScript | 9,344 | 248 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue } 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 "@/api/client/__mocks... |
5bae8b2ab52950a89fad4088ff2d72ed1dad3dea78edccd906712442acac0e21 | TypeScript | 9,345 | 277 | import { getLocalVue } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import { describe, expect, it } from "vitest";
import { nextTick } from "vue";
import HeadlessMultiselect from "./HeadlessMultiselect.vue";
describe("HeadlessMultiselect", () => {
const localVue = getLocalVue();
typ... |
2c0e78de8328cc0f2f1dce4b15c3d39ee7e21601c9df5e8e8cd4a806b80931a4 | TypeScript | 9,351 | 252 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue } from "@tests/vitest/helpers";
import { shallowMount, type Wrapper } from "@vue/test-utils";
import { PiniaVuePlugin } from "pinia";
import { afterEach, describe, expect, it, vi } from "vitest";
import type Vue from "vue";
import type { Step } ... |
356c0d414dbd4ca9b9adce195026d3b2cc5697e0ad28332a3a5f18ba37d31d50 | TypeScript | 9,365 | 222 | import { copyDataset } from "@/api/datasets";
import type { PreparedUpload } from "@/components/Panels/Upload/types";
import { useUploadState } from "@/components/Panels/Upload/uploadState";
import { useConfig } from "@/composables/config";
import type { LibraryDatasetUploadItem, UploadedDataset } from "@/composables/u... |
2cd1f9a41462ca32637a9cb0206255c953bd4c2df0753d1eee8c89e67ca7e72d | TypeScript | 9,379 | 273 | import { z } from "zod";
import type { FieldDefinition, MessageDefinition, ProviderConfig, VisibleWhen } from "./common";
// Re-export ProviderConfig for convenience
export type { ProviderConfig };
/**
* Check if a visibleWhen / requiredWhen condition matches the current form data.
*/
export function matchesWhen(wh... |
776a01ff69ff4066aca04e2784b52b1149cc2831697821df5667922a7fe46b1d | TypeScript | 9,383 | 264 | import type {
CreateInstancePayload,
Instance,
PluginStatus,
SecretData,
TemplateSecret,
TemplateSummary,
TemplateVariable,
TemplateVariableValidator,
VariableData,
VariableValueType,
} from "@/api/configTemplates";
import { markup } from "@/components/ObjectStore/configurationMa... |
6ccd984efe04e5dcc5213ad2d26cb8d404516f0543ac8f3fe560e7fc973811bb | TypeScript | 9,394 | 222 | import flushPromises from "flush-promises";
import { createPinia, setActivePinia } from "pinia";
import { beforeEach, describe, expect, it, vi } from "vitest";
import { HttpResponse, useServerMock } from "@/api/client/__mocks__";
import { getWorkflowFull } from "@/components/Workflow/workflows.services";
import { useW... |
31706d476527753a3401fba307044a0bde19ebef30c11e832024d31fb15b5415 | TypeScript | 9,399 | 291 | import type { Mock } from "bun:test";
import * as sentryBrowserModule from "@sentry/browser";
import * as sentryReactModule from "@sentry/react";
const mockAppSettings = {
debug: false,
sentry_dsn: "test-dsn",
sentry_environment: "test",
sentry_rate: "0.25",
user: { email: "test@example.com", username: "test... |
68433d01b046247ce0f3165a5f0806e11675e83d32366a24abd01ff0c9fa79f2 | TypeScript | 9,491 | 240 | import type { DatatypesMapperModel } from "@/components/Datatypes/model";
import type { UntypedParameters } from "@/components/Workflow/Editor/modules/parameters";
import type { useWorkflowStores } from "@/composables/workflowStores";
import type { Steps } from "@/stores/workflowStepStore";
import { assertDefined } fro... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.