sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
37a1a6ed88f8d8c52a65d2d7d2e7b09af0a6cb988693b4859b45020da3301e1a | TypeScript | 19,219 | 627 | import { describe, expect, it } from "vitest";
import type {
ImageAnnotationCircle,
ImageAnnotationPoints,
ImageAnnotationText,
ImageAnnotationsVisualization,
} from "../../../ir";
import { VISUALIZATION_KIND } from "../../../visualization";
import type { DecodedFrame } from "../../../ir";
import { lowerBoundB... |
07210fd152aa80d2620b6ad17df31fb51868708b96eff3eb8a2e52bcae78beea | TypeScript | 19,342 | 687 | import { createPointCloudChannelArray } from "../../../runtime/point-cloud-channel-encoding";
import { buildPointCloudRenderPayload } from "../../../runtime/point-cloud-render-payload";
import type {
EpisodeRecordingFacts,
PointCloudRenderPayload,
CameraVisualization,
PointCloudVisualization,
} from "../../../i... |
210d2455c789f353f80bcd89f3b69679e01b6a3e156edb182e99b15babb765de | TypeScript | 19,439 | 523 | import type {
ByteRange,
ByteSourceDescriptor,
DecodedFrame,
EpisodeManifest,
NumericSeriesResult,
NumericStreamFields,
PointCloudRenderChannelPayload,
EpisodeTimeline,
LaneTransportSnapshot,
RawRecordPruneBudgets,
RawRecordCursor,
RawRecordIndexWindow,
RawRecordIndexWindowRequest,
RawRecord... |
29603de882e49a066fa40a589b9425b4d6b1de3571ed0c8ab0a3a37eb1600fa0 | TypeScript | 19,820 | 629 | import type { McapTypes } from "@mcap/core";
import {
materializeIndexedEntries,
type McapIndexedReaderLike,
type McapReadContinuation,
} from "../../reader/index";
import {
consumeMcapBoundedGrant,
MCAP_BOUNDED_GRANT_YIELD_INTERVAL,
} from "../../reader/consume-bounded-grant";
import {
genericRecordDecoder... |
bb7b82f8acee8e7b66c47e34bb5d5e076d8791f0abf26ae35880d25ee32aa5ca | TypeScript | 19,820 | 662 | import {
BYTE_SOURCE_READ_PROFILE,
STREAM_KIND,
type EpisodeManifest,
type EpisodeRecordingFacts,
type EpisodeTimeline,
type StreamCalibration,
type StreamDescriptor,
type TimeDomain,
type TimeWindow,
type TransformTopology,
} from "../ir";
import {
SOURCE_FACTS_SCHEMA_VERSION,
type SourceFactsI... |
b7902612af884b66007882238200aa24bdb40ee68cef1e9417f49d141c39fc13 | TypeScript | 19,917 | 734 | import { DetectionLabel } from "@fiftyone/looker";
import { PolylineLabel } from "@fiftyone/looker/src/overlays/polyline";
import { ColorscaleInput } from "@fiftyone/looker/src/state";
import * as fos from "@fiftyone/state";
import { groupId, nullableModalSampleId } from "@fiftyone/state";
import { getBrowserStorageEff... |
b920c1b8d62695996118131c13d5ffc395e6f73c642e2bfdf0377edd02c49c57 | TypeScript | 20,252 | 721 | /**
* Custom hooks for SchemaManager
*/
import {
activeField,
datasetSampleCount,
groupMediaTypesMap,
isGroup,
mediaType,
queryPerformanceMaxSearch,
useNotification,
usePreferredGroupAnnotationSlice,
} from "@fiftyone/state";
import {
useSchemaManager,
type UpdateSchemaRequest,
} from "../useSche... |
b0327a3194daa2c21bb58feacb5252a6f0da6868537da6a2044fb14848d1d689 | TypeScript | 20,272 | 706 | import {
SCENE_SOURCE_METADATA,
SCENE_SOURCE_TYPE,
STREAM_KIND,
VISUALIZATION_KIND,
type DecodedFrame,
type DecodedOutput,
type EpisodeManifest,
type EpisodePosterFrame,
type EpisodePreviewReadResult,
type SceneSourceType,
type StreamDescriptor,
type StreamKind,
type TransformSample,
} from ".... |
3a32fa8d630e716fa95a8e7ead4c0e99b5c65f0493163f23441bdb2bc5121a3e | TypeScript | 20,504 | 710 | import type { McapTypes } from "@mcap/core";
import { Enum, Type } from "protobufjs";
import {
isRosMessageEncoding,
rosMessageDefinitionsForChannel,
rootRosMessageDefinition,
type RosMessageDefinition,
} from "../message-decoders/ros/wire";
import { protobufFromBinaryDescriptor } from "../compatibility/mcap-su... |
d28bbf88b7b60c39e8cc58ea155d15bebc1069b53be1a982611a2bf10909b86d | TypeScript | 20,520 | 697 | /**
* Pure geometry engine for interpolating decoded image annotations between two
* cached annotation messages at a sub-message playhead position. Intentionally
* free of React, cache, and timeline concerns so it can be unit-tested in
* isolation; the React/cache wiring lives in `use-interpolated-image-annotations... |
9c9194c45670ae756155dc4694476ee07e0c35dafae9649ba7c10fb1a8396ce3 | TypeScript | 20,640 | 554 | import {
useCallback,
useEffect,
useMemo,
useReducer,
useRef,
useState,
} from "react";
import type {
CameraCalibrationVisualization,
GridVisualization,
PointCloudVisualization,
PoseVisualization,
SceneUpdateVisualization,
} from "../../../../ir/index";
import type { Scene3dViewStateStore } from "... |
7983e81bf6638693706f8da42ed90cd105e55bd6f4b2fcfb8411c47f85b27c29 | TypeScript | 20,720 | 644 | import { describe, expect, it, vi } from "vitest";
import {
createUndoNavigator,
makeDet,
makeEngine,
makeStore,
ref,
} from "../testing/fixtures";
import { AnnotationEngine } from "./engine";
import { FrameStore } from "../store/frameStore";
import { isWholeSampleReset } from "../store/types";
import type {... |
30f6fd46e584f17bc072dab643212e396da9c788670fa59a81442f9ab0ecb6aa | TypeScript | 20,947 | 530 | import type { SelectionType } from "@fiftyone/state";
import {
useCallback,
useEffect,
useLayoutEffect,
useMemo,
useRef,
useState,
type RefObject,
} from "react";
import type { SetterOrUpdater } from "recoil";
import type {
LassoStageInput,
PublishSelection,
SelectionDecorator,
} from "./extensions"... |
b3a817cc55b1d4aacbb9c75014b3a7082acf04a838cfa6623edb8e794039e074 | TypeScript | 20,990 | 845 | import { describe, expect, it } from "vitest";
import type { Vector3Tuple } from "three";
import type { PolylineSegmentTransform, SelectedPoint } from "../types";
import {
applyDeltaToAllPoints,
applyTransformsToPolyline,
findClickedSegment,
getVertexPosition,
insertVertexInSegment,
shouldClosePolylineLoop,... |
40627f27cf068ad5b6306e6ad52fc8b0a684d7a672bd951b30b373b3342e133c | TypeScript | 21,090 | 640 | import { LRUCache } from "lru-cache";
import { decodedOutputSizeBytes } from "../query/cache-utils";
import type { DecodedFrame } from "../ir";
import { EpisodeCadenceTracker } from "./temporal-policy";
import {
clampTickRanges,
intersectTickRanges,
subtractTickRanges,
type TickIndexRange,
} from "./tick-ranges... |
087e932924c145f6ed0a1eba18026ce15f8668f052743cc2f3fb7f85feadd973 | TypeScript | 21,102 | 663 | import {
getLoopEnd,
getLoopStart,
getPlayhead,
type PlaybackStore,
} from "@fiftyone/playback";
import type { DecodedFrame } from "../../../ir";
import {
intersectAllTickRanges,
intersectTickRanges,
normalizeTickRanges,
subtractTickRanges,
unionAllTickRanges,
type EpisodeStreamCache,
type Episod... |
99bb47723c4e05e08b2a1664e46a7b41fffc183ecb716be0446c5b69d0cf184f | TypeScript | 21,397 | 691 | import type { TimeWindow } from "../ir";
import type {
BudgetedReadJob,
BudgetedReadResult,
EpisodeSession,
FrameBatch,
ReadContinuation,
ReadPriority,
ReadWorkBudget,
SourceReadBudgetAccount,
} from "../ports";
import { isEpisodeReadCancelledError } from "../ports";
import { addCoveredRange } from "./n... |
7c85235c20c83e98918b9ae59cb74869262a5e268d8e360f9a7f21689c255922 | TypeScript | 21,441 | 680 | import type { BaseOverlay, OverlayFactory, Scene2D } from "@fiftyone/lighter";
import { decodeMaskPath } from "@fiftyone/lighter";
import { beforeEach, describe, expect, it, vi } from "vitest";
import {
detectionAdapter,
keypointAdapter,
makeKeypointAdapter,
polylineAdapter,
} from "./adapters";
import { light... |
37d3f084137a6bfdcb83759e59f29c063cfac0cf4634e90caacda689284b0b42 | TypeScript | 21,471 | 777 | import { loadedMcapDecompressHandler } from "../../compatibility/mcap-support";
const CLOUDINI_MAGIC = "CLOUDINI_V";
const CLOUDINI_POINTS_PER_CHUNK = 32 * 1024;
const MAX_CLOUDINI_DECODED_BYTES = 512 * 1024 * 1024;
const TEXT_DECODER = new TextDecoder();
const CLOUDINI_FIELD_SIZES = {
FLOAT32: 4,
FLOAT64: 8,
I... |
528b6f8dc60d8469e1567e863eb7944b24081977c50e13579394f74a6c0d879d | TypeScript | 21,485 | 697 | import type { PlaybackStore, PlaybackStream } from "@fiftyone/playback";
import { createStore } from "jotai";
import { beforeEach, describe, expect, it, vi } from "vitest";
import type { ByteTimelinePoint } from "../../../ir";
import { createTimelineIndex, EpisodeStreamCache } from "../../../runtime";
import {
DataS... |
224993eae3beccdd91f751fb273f0e0865921fa47c49043206941239a9a63317 | TypeScript | 21,519 | 630 | import { atom, useAtom, useAtomValue, type PrimitiveAtom } from "jotai";
import { atomFamily } from "jotai/utils";
import { capitalize } from "lodash";
import { LabelSchemaMeta } from "./useSchemaManager";
import { useCallback, useMemo } from "react";
import { PRIMITIVE_FIELD_TYPES } from "./SchemaManager/constants";
i... |
8a7cae8acab2f57c929519494ab75c102c93def7f1551348909cc40466e5e1b1 | TypeScript | 21,537 | 671 | import type {
EpisodeTransformTopologyEdgeObservation,
EpisodeTransformTopologyFrameUse,
} from "../ir";
import { compareFrameIds, normalizeFrameId } from "./frame-transform-graph";
type TransformTopologyEdgeKind = "mixed" | "static" | "temporal";
/** One transform topic that contributed relationships to an edge ... |
9faa9bd6586256f6a23f9b9d2642d58c6627a7351e6c6d3b87c2997ff3859070 | TypeScript | 21,868 | 702 | /**
* Copyright 2017-2026, Voxel51, Inc.
*/
import { CommandContextManager, type Undoable } from "@fiftyone/commands";
import { ClickEventModifiers, getClickModifiers } from "@fiftyone/utilities";
import { AddPolylinePointCommand } from "../commands/AddPolylinePointCommand";
import { MoveKeypointPointCommand } from ... |
6bb89995552c427be941e2cbce4662e84b972abcd25a3624e9aea4d666ccd22f | TypeScript | 22,294 | 661 | import type { LabelData } from "@fiftyone/utilities";
import { LabelType } from "@fiftyone/utilities";
import { describe, expect, it, vi } from "vitest";
import { Sample } from "@fiftyone/utilities";
import { createSurfaceController } from "./surfaceController";
import type { LabelKindAdapter, SurfaceBridge } from ".... |
5467552809d9b0f54803a52157d1625d55dd9bbe3c01f92a8641c51914adfb55 | TypeScript | 22,423 | 827 | /**
* Camera math for the 3D annotation side panels (top/front/right/…). It derives
* each cardinal view's orthographic camera "frame" (position, target, up, view
* direction) and keeps those panels in sync with the perspective main panel.
*
* Rather than coupling the cameras directly, main↔side sync uses a small
... |
f5381e62cd003e45307c23094baf75b936f0eb1288da0c82d77a117c7062931e | TypeScript | 22,698 | 816 | import chroma from "chroma-js";
import {
Box3,
type BufferAttribute,
type Camera,
Euler,
type EulerOrder,
type InterleavedBufferAttribute,
type Object3D,
Plane,
Quaternion,
type Raycaster,
type Vector2,
type Scene,
Vector3,
type Vector3Tuple,
type Vector4Tuple,
} from "three";
import { COL... |
a15a75c14494867da449f28e2d7bad4c40dd2395c292531a3ff1e049fb2d9354 | TypeScript | 22,796 | 698 | import {
BYTE_SOURCE_READ_PROFILE,
DEFAULT_LOCAL_BYTE_CACHE_BLOCK_SIZE_BYTES,
DEFAULT_REMOTE_BYTE_CACHE_BLOCK_SIZE_BYTES,
} from "./constants";
import { safeNumber } from "./bigint-utils";
import { serializeCacheKey } from "../cache-utils";
import { byteSourceAccessKey } from "./cache";
import {
acquireByteFill... |
ddb354874848dc33480a15ce0f81f5a915438c5149de4344a5daefddd9996783 | TypeScript | 22,837 | 725 | import type { McapTypes } from "@mcap/core";
import {
materializeIndexedEntries,
type McapIndexedMessageTime,
type McapIndexedReaderLike,
} from "../../reader/index";
import type { McapTimelineStrategy } from "../timeline";
import type {
McapRawMessageRecordResult,
McapReadRawMessageAtCursorRequest,
McapRea... |
c872ad36590eff9154a85cd849ff2ea85c6bb36681c0139efae69046d445bded | TypeScript | 23,278 | 720 | import { beforeEach, describe, expect, test, vi } from "vitest";
import { EventDispatcher, tapAllEvents } from "./dispatcher";
type TestEventGroup = {
"test:eventA": { id: string; name: string };
"test:eventB": { value: number };
"test:eventC": undefined;
"test:eventD": null;
"e2e:signal": { id: string };
};... |
b41565af2910b626bd9e76c9f47b7137409775fefbf62c49cd06517a188c35e5 | TypeScript | 23,573 | 743 | import type { NsRange } from "../ir";
import { numericSeriesBucketIndex } from "../utils/numeric-series-buckets";
/** One immutable, fully addressable numeric-series tile. */
export interface NumericSeriesTile {
/** Resolution represented by one aggregate bucket. Smaller is finer. */
readonly bucketDurationNs: big... |
bd8a7769a2bd85946c272a5a15c2ce74bdedbf0ed776e386f1b0400798f88a00 | TypeScript | 23,657 | 793 | import { autoLayout, type TilingLayoutMetrics } from "@fiftyone/tiling";
import type { MosaicNode } from "react-mosaic-component";
import {
BYTE_SOURCE_READ_PROFILE,
type ByteSourceReadProfile,
} from "../../../ir";
import type { SceneSource } from "../../../scene-inventory";
import { SCENE_SOURCE_TYPE } from "../.... |
aefda120e809e12c3084151335a10788c218857d7986e8412e45284608d05209 | TypeScript | 23,782 | 817 | import { describe, expect, it, vi } from "vitest";
import type { Decoder } from "../../../../decoders/index";
import type { DecodedOutput, PayloadDescriptor } from "../../../../ir/index";
import type { StreamInventory } from "../../../../schemas/v1/index";
import { VISUALIZATION_KIND } from "../../../../ir/index";
impo... |
07df63da05a7d993ac936d357030003ce754d0c557aade66c4bdb88f1f75b28d | TypeScript | 23,831 | 820 | import type {
FetchFunctionConfig,
FetchFunctionResult,
} from "@fiftyone/utilities";
import { describe, expect, it, vi } from "vitest";
import {
byteSourceCacheKey,
createMemoryByteRangeCache,
createCachedByteClient,
createHttpByteClient,
DEFAULT_LOCAL_BYTE_CACHE_BLOCK_SIZE_BYTES,
DEFAULT_REMOTE_BYTE_C... |
28432169150c6079685324bc290ed8091ca31d9a0db8217cbb0e1a9d71337262 | TypeScript | 23,876 | 814 | /**
* Utility functions for SchemaManager
*/
import { is3d } from "@fiftyone/utilities";
import type { ListItemProps as BaseListItemProps } from "@voxel51/voodo";
import type { ReactNode } from "react";
import {
type ClassesComponent,
CLASSES_COMPONENT_THRESHOLD,
componentNeedsRange,
componentNeedsValues,
... |
15c35595e545b61bc9774fd059d74dee906f4d8f9ab990275d177987ac165351 | TypeScript | 23,936 | 807 | import type { JSONDeltas, LabelData } from "@fiftyone/utilities";
import { LabelType, objectId } from "@fiftyone/utilities";
import { isEqual } from "lodash";
import type { LabelRef, ScopedRef } from "../identity/ref";
import { refKey, toLabelRef } from "../identity/ref";
import type {
ChangeListener,
DisplayListe... |
003a8aa323c6d33f675d90fd5ce43aff74fa59f75264aba3513222d31f93cdea | TypeScript | 24,174 | 715 | import { LRUCache } from "lru-cache";
import {
byteSourceAccessKey,
type ByteClient,
} from "../../../query/bytes/index";
import {
type DecodeClient,
createDecodeClient,
} from "../../../query/decoding/index";
import { createMultimodalQueryClient } from "../../../query/index";
import { createMcapDecoderRegistry... |
7e540299efc4564491f0fab9a09dcf40918cebf7dec357342c6bdf8ed3cdf58c | TypeScript | 24,205 | 691 | import { getEventBus } from "@fiftyone/events";
import {
BufferAttribute,
BufferGeometry,
CustomBlending,
DynamicDrawUsage,
Matrix4,
NormalBlending,
OneFactor,
Points,
RawShaderMaterial,
Scene,
Sphere,
Vector3,
WebGLRenderer,
} from "three";
import { PlanarCamera } from "./cameras/PlanarCamera... |
13003585100bd781993659e2efd1a5ff6e42194188e6ed2002eb294ed38646ce | TypeScript | 25,686 | 848 | import { describe, expect, it, vi } from "vitest";
import type {
EncodedImageVisualization,
EncodedVideoVisualization,
PointCloudVisualization,
} from "../../../ir/index";
import type { ByteSourceDescriptor } from "../../../query/bytes/index";
import type { StreamInventory } from "../../../schemas/v1/index";
impo... |
ac6a94d8c1b53c0f8ade6138781a97b710fdb77bc8bbfa6fc694d119fc6d95aa | TypeScript | 25,713 | 830 | import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import {
isValidMosaicLayout,
tileTypeFromId,
readCameraPreferences,
readModalLayout,
sanitizeExtensionSettings,
sanitizeLogSettings,
sanitizeMapSettings,
sanitizePlotSeries,
sanitizeRawStreams,
sanitizeScene3dSettings,
sani... |
a1bf22c87bae91ef1789844277ff10825a27c626382865dbf30f479c2554b43d | TypeScript | 26,311 | 791 | import type { MosaicNode } from "react-mosaic-component";
import { sanitizeBoundedStringList } from "../../../utils/bounded-string-list";
import { createTimestampLruScopedStore } from "../../../utils/scoped-store";
import { isEpisodeTileExtensionId } from "../../../extensions/tiles/registry";
import {
normalizeScene3... |
661c03e4da78c1819ac71acdc70d1865a74b9ffed91f529bdea0bea9913f476f | TypeScript | 26,517 | 754 | import {
getStreamValue,
setIsBuffering,
type PlaybackStore,
} from "@fiftyone/playback";
import { playheadAtom } from "@fiftyone/playback/runtime";
import { createStore } from "jotai";
import { describe, expect, it, vi } from "vitest";
import type {
DecodedFrame,
StreamSyncPolicies,
SynchronizedFrameWindo... |
ea604ec46e2a172c2f75943bda3201828ebdb1ce999cbfd8a4fd9f396af9a751 | TypeScript | 26,790 | 885 | /**
* The frame-indexed {@link LabelStore}: committed truth for a video sample's
* per-frame labels, addressed by the full ref tuple `(path, instanceId, frame)`.
* The sample-level sibling is `SampleLabelStore`; stores never know about each
* other.
*
* Identity: `instanceId` is the TRACK's `instance._id`, not th... |
a94808eb4d238ab97c922400c7e9df7fe135b32d105f9bc1c151ae024a2d3e2f | TypeScript | 27,270 | 805 | import { concatAnnexB } from "../codecs/annexb";
import { h264AccessUnitWithParameterSets } from "../codecs/h264-annexb";
import { toError } from "../utils/errors";
import type { EncodedVideoVisualization } from "../ir";
import { compareUnitDecodeTime } from "./gop-index";
import type { EncodedVideoAccessUnit, VideoDec... |
8f1f314bcc9f0cf8eec8287f29dc859403f343b855017e72a14275a8a55be928 | TypeScript | 27,348 | 831 | import { VISUALIZATION_KIND } from "./visualization-kinds";
/**
* Scalar/object metadata emitted by decoders for inspection, filtering, and
* lightweight renderer labels. Large binary payloads belong in `visualization`.
*/
export type DecodedAttributeValue =
| string
| number
| boolean
| bigint
| null
|... |
9ee54218ebbcbd2d7e70b05abefef59c0886e9dd906bf782fa653ad3cbc16323 | TypeScript | 27,626 | 849 | import { getFetchFunction, setFetchFunction } from "@fiftyone/utilities";
import * as ort from "onnxruntime-web";
import type {
DownloadProgress,
InferenceResult,
ProviderError,
ProviderStatus,
PromptPoint,
WorkerInbound,
WorkerMessageType,
WorkerNotifications,
WorkerResponse,
} from "./types";
import... |
eb1cefb1cd4b5f824d594baff17a24477e9b0b807aa8858aafb5cc1029527a77 | TypeScript | 27,687 | 871 | import { byteSourceAccessKey } from "../../../query/bytes";
import { hydrateMcapFrameTransformSet } from "../transforms/wire";
import { mcapPlaybackWorkerOperation } from "../worker/playback-worker-rpc";
import { McapPlaybackWorkerTransport } from "../worker/playback-worker-transport";
import {
DecodedRecordStore,
... |
9b7eb3b397319db23b6fd49d1bb99013ce91f1d15fab7a3736a1694e06c8eb87 | TypeScript | 28,355 | 937 | import { Quaternion, Vector3 } from "three";
import { describe, expect, it } from "vitest";
import type {
CameraCalibrationVisualization,
GridVisualization,
PointCloudVisualization,
SceneUpdateVisualization,
} from "../../../../ir/index";
import { VISUALIZATION_KIND } from "../../../../visualization/index";
imp... |
08966682e0f1707d03cf5673d942d8dc69df19e4c296fbf09b450d0456de47c7 | TypeScript | 28,663 | 869 | import { afterEach, describe, expect, it, vi } from "vitest";
import type {
EncodedAv1VideoVisualization,
EncodedH264VideoVisualization,
} from "../ir";
import { VISUALIZATION_KIND } from "../ir";
import { withPreroll } from "./preroll.test-fixtures";
import type { EncodedVideoAccessUnit, H264AccessUnit } from "./... |
296f4b82a26febb5dd3a90aab84195f17d2dbec79fc3d0e1a3c1b3dbe8c0cedc | TypeScript | 28,681 | 884 | import { useSetTileTitle, useTileId } from "@fiftyone/tiling";
import { useCallback, useEffect, useMemo, useState } from "react";
import type { PointCloudVisualization } from "../../../../ir/index";
import {
SCENE_SOURCE_METADATA,
SCENE_SOURCE_TYPE,
type SceneSource,
} from "../../../../ir/index";
import { useSce... |
449fffa8be66e804d11ca0a6d23a08809c7e9b31d6039ac2e81809255d376449 | TypeScript | 29,217 | 899 | import { open, stat } from "node:fs/promises";
import { join } from "node:path";
import { parquetReadObjects, type AsyncBuffer } from "hyparquet";
import { describe, expect, it, vi } from "vitest";
import type { ByteSourceDescriptor } from "../../ir";
import type { AssetDescriptor, ByteResources } from "../../ports";... |
e9ef84cd7fdd74bfc9f93ca11f80b318fdcde1a3f3223799bce50bc78c9e9092 | TypeScript | 29,267 | 854 | import { diagnosticMessage } from "../utils/errors";
import { VideoSeekAdmissionScheduler } from "./admission-scheduler";
import {
compareUnitDecodeTime,
EncodedAccessUnitCache,
uniqueSortedAccessUnits,
VideoGopIndex,
} from "./gop-index";
import type {
EncodedVideoAccessUnit,
OwnedVideoPresentation,
Vide... |
bcc0d4841fde20debaa6ae761de23ff695e476a1bf12a20dc778a5f48d06cca2 | TypeScript | 30,024 | 1,048 | import { Quaternion, Vector3 } from "three";
import { describe, expect, it, vi } from "vitest";
import {
dehydrateEpisodeFrameTransformSet,
hydrateEpisodeFrameTransformSet,
EpisodeFrameTransformStore,
} from "./frame-transforms";
import type { EpisodeFrameTransformSample } from "./frame-transform-types";
describ... |
01a97f20b67d20676804e1aba6b53e54ab5b1f9b070c6d82041d1868b53df6a5 | TypeScript | 30,521 | 897 | import {
useCallback,
useEffect,
useRef,
useState,
useSyncExternalStore,
} from "react";
import {
type ByteSourceDescriptor,
type EpisodePosterFrame,
type EpisodePreviewNativeVideo,
type EpisodePreviewReadResult,
type TimeWindow,
} from "../../../ir";
import type { EpisodePreviewSession } from "../.... |
c0963b725f56359b031cc5990c78953da840a56a4e919381f0c0db437b56781f | TypeScript | 30,971 | 975 | import type { McapTypes } from "@mcap/core";
import { describe, expect, it, vi } from "vitest";
import { PlaybackSyncMode } from "../../../schemas/v1/index";
import type { McapIndexedReaderLike } from "../reader/index";
import { createInlineMcapResourceClient } from "./inline-client";
import {
createChannel,
create... |
4d7f1b98d505655fbe138b41a8ff8aee36da97e8d8bbd51357c2c38568f7dd1e | TypeScript | 31,025 | 988 | /**
* Copyright 2017-2026, Voxel51, Inc.
*/
import {
EDGE_THRESHOLD,
LABEL_ARCHETYPE_PRIORITY,
PREVIEW_LINE_OPACITY,
} from "../constants";
import { CONTAINS } from "../core/Scene2D";
import type { Renderer2D } from "../renderer/Renderer2D";
import type { DrawStyle, Point, RawLookerLabel, Rect } from "../types... |
247f140fa82c380531b4cae06aee5ed7013822fab212ccfb22f8752b56643513 | TypeScript | 31,109 | 1,127 | import { getEventBus, LocalEventTarget } from "@fiftyone/events";
import { Lookers } from "@fiftyone/state";
import {
jotaiStore,
removeAllHoveredInstances,
updateHoveredInstances,
} from "@fiftyone/state/src/jotai";
import {
AppError,
DATE_FIELD,
DATE_TIME_FIELD,
LABELS,
LABELS_PATH,
LABEL_LISTS,
L... |
bb6d612142937fff2201c7ae7badc70c751bee8e6da56860d23bceb849062fca | TypeScript | 31,383 | 1,057 | import { parse as parseRosMessageDefinition } from "@foxglove/rosmsg";
import { MessageWriter as Ros1MessageWriter } from "@foxglove/rosmsg-serialization";
import { MessageWriter as Ros2MessageWriter } from "@foxglove/rosmsg2-serialization";
import type { McapTypes } from "@mcap/core";
import { Root } from "protobufjs"... |
a63851df3d0dfc325bbe29614be68867933921ea375010101b0b975ef9080c44 | TypeScript | 31,829 | 1,008 | import {
McapRecordBuilder,
McapStreamReader,
type McapTypes,
} from "@mcap/core";
import type { ByteRange } from "../../../ir";
import type { ReadWorkBudget, ReadWorkUsage } from "../../../ports";
import { monotonicNowMs } from "../../../utils/monotonic-time";
import { throwIfAborted } from "../../../utils/cance... |
8a19685af84429c0d370e6742a7548fd3f0c5762f311dec0cc7c7739b0447132 | TypeScript | 32,060 | 1,085 | import type {
DecodeContext,
Decoder,
PointCloudChannelProjectionRequest,
} from "../../../../decoders/index";
import type {
DecodedAttributeValue,
DecodedOutput,
PointCloudChannelEncoding,
PointCloudField,
PointCloudRenderPayload,
PointCloudRenderChannelPayload,
PointCloudRenderRgbChannel,
PointC... |
3828529b59ec2ed1fc1e1ae6d4dd5f66d4c42ab7497bf507a15e24758f662a34 | TypeScript | 32,067 | 1,094 | import type { McapTypes } from "@mcap/core";
import { describe, expect, it, vi } from "vitest";
import type { ByteClient } from "../../query/bytes";
import {
createMcapReaderStore,
createCachedMcapDecompressHandlers,
parseMcapMessageIndexRecord,
readIndexedMessageTimesForReader,
type McapIndexedReaderLike,
} ... |
675536d44f4db5758dc912380a9b245a527d353a6570fe146748d4f342409ca9 | TypeScript | 32,536 | 1,120 | import type { CameraCalibrationVisualization } from "../../../../ir";
const MATRIX_3_LENGTH = 9;
const MATRIX_3X4_LENGTH = 12;
const DOMAIN_SCAN_STEPS = 4096;
const INVERSE_ITERATIONS = 24;
const GRID_COLUMNS = 9;
const GRID_ROWS = 7;
const NUMERIC_EPSILON = 1e-9;
const CAMERA_MODEL_CACHE_LIMIT = 64;
const IMAGE_TRANS... |
c34b92325b02a78d18e4e9311911f61367ee19700bf109e2dd9db126696d376b | TypeScript | 33,518 | 1,126 | import { Quaternion, Vector3 } from "three";
import { maxBigIntPair } from "../utils/bigint";
import {
compareFrameGraphEdges,
compareFrameIds,
dynamicChildFrameIdsForPlacement,
normalizeFrameId,
summarizeEpisodeFrameGraph,
} from "./frame-transform-graph";
import type {
EpisodeFrameGraphEdge,
EpisodeFra... |
3a1ab4d29c037678ed99c765f4da6f52f9e00e5ba7c3e00d89022299c5d8eec5 | TypeScript | 34,008 | 1,104 | import { describe, expect, it } from "vitest";
import {
applyConditionalOwnerChange,
evaluateWhen,
isWhenFulfillable,
resolveVisibleAttribute,
} from "./evaluateWhen";
import type { AttributeConfig } from "../SchemaManager/utils";
// ---------------------------------------------------------------------------
/... |
c34f52efe43920020110e32b280c0b851975cbdc6c9d979d50b2b759fe5a48b6 | TypeScript | 34,155 | 1,048 | /**
* The frame-indexed LabelStore: identity (track = `instance._id`, distinct from
* the per-frame doc `_id`), mutation, transaction rollback/undo through the
* engine, the id-aligned `/frames/<n>/<field>` persistence (including
* shift-safety), `setData` re-baseline + GC, and an end-to-end run with the
* FrameTe... |
fa0c13a29e4d6a000c86df08c08c59521787e759c39a5818cbfc0af34a55638c | TypeScript | 34,486 | 919 | /**
* The run-level composition for one visualization run: the plot shell's
* single plot (and any extension-rendered layout over it) share ONE set of
* per-run state: geometry stream, color column, visibility masks, the
* selection bridge, the legend, and the partial/Update bookkeeping.
*
* The invariant that ma... |
f16eb28ad81ad9bdfb5670ae856c9319d417e37af248b8630ab40ab70757e26c | TypeScript | 34,698 | 1,013 | // @generated by protoc-gen-es v2.11.0 with parameter "target=ts"
// @generated from file playback.proto (package fiftyone.multimodal.schemas.v1, syntax proto3)
/* eslint-disable */
import type {
GenEnum,
GenFile,
GenMessage,
} from "@bufbuild/protobuf/codegenv2";
import { enumDesc, fileDesc, messageDesc } from ... |
23233e610d3a8016433a28e57efec65f7ad09a7ce4021d0cdbceffd4c1ff0c78 | TypeScript | 34,870 | 1,268 | /**
* Copyright 2017-2026, Voxel51, Inc.
*/
import { playbackRate, volume as volumeIcon, volumeMuted } from "../icons";
import lockIcon from "../icons/lock.svg";
import lockOpenIcon from "../icons/lockOpen.svg";
import type { DispatchEvent, VideoState } from "../state";
import type { Events } from "./base";
import {... |
5e40882c3470e5b005f62458e3858d745c648e90daf259818978849300b716da | TypeScript | 35,252 | 1,065 | import {
getCurrentTime,
getIsPlayPending,
getIsPlaying,
getLoopEnd,
getLoopStart,
getPlayhead,
subscribeCurrentTime,
subscribeIsPlayPending,
type PlaybackStore,
type PlaybackStream,
} from "@fiftyone/playback";
import type { ByteTimelinePoint, StreamSyncPolicies } from "../../../ir";
import type {... |
3f2b6a528c982354136100e93cc30e2fec22801166a630a29bfb6f011c2df037 | TypeScript | 35,592 | 1,296 | import type { McapTypes } from "@mcap/core";
import { Root, type INamespace } from "protobufjs";
import descriptor from "protobufjs/ext/descriptor";
import { describe, expect, it, vi } from "vitest";
import {
enumerateMcapNumericFields,
numericFieldsFromSamples,
} from "./numeric-fields";
const ROS_TELEMETRY_SCHEM... |
c254e8b1610f052eccc219805ebf893693c2a9570d80589c27c6c1c0bd2a2aaf | TypeScript | 35,946 | 1,233 | import type { McapTypes } from "@mcap/core";
import { describe, expect, it, vi } from "vitest";
import type { McapIndexedReaderLike } from "../reader/index";
import { createInlineMcapResourceClient } from "./inline-client";
import {
CUSTOM_TRANSFORM_BUNDLE_MESSAGE,
CUSTOM_TRANSFORM_BUNDLE_SCHEMA_DATA,
FRAME_TRANS... |
28392be6f4eafe6323159063d9901b7f8515ee1fed6ceedb9a28149d1b2f44c0 | TypeScript | 36,424 | 1,243 | import type {
ByteSourceDescriptor,
LaneTransportSnapshot,
} from "../../../query/bytes/index";
import type {
BudgetedReadStopReason,
ReadContinuation,
ReadWorkBudget,
ReadWorkUsage,
} from "../../../ports";
import type { EpisodeRecordingFacts, TimeWindow } from "../../../ir";
import type { DecodeResult } f... |
bbfdd56cbd20608344ca7cccb0afda51e06929264afe2e33e489aeb653e8f8cb | TypeScript | 36,667 | 1,157 | import type { McapTypes } from "@mcap/core";
import {
EpisodeReadCancelledError,
isEpisodeReadCancelledError,
} from "../../../../ports/index";
import {
materializeIndexedEntries,
type McapBoundedMessageReadResult,
type McapIndexedMessageTime,
type McapIndexedReaderLike,
type McapReadContinuation,
} from ... |
dea9306530b324cc44c8797e355bc70425e3d281ae7590dd41db29fec647f81e | TypeScript | 36,922 | 1,257 | import type { McapTypes } from "@mcap/core";
import { describe, expect, it, vi } from "vitest";
import { isEpisodeReadCancelledError } from "../../../ports/index";
import type {
McapIndexedMessageTime,
McapIndexedReaderLike,
} from "../reader/index";
import { createInlineMcapResourceClient } from "./inline-client";... |
a83124acab3c01efffe04f78246d4ffd78e515d2a64d787054e7d1f6445c9c71 | TypeScript | 37,285 | 1,117 | /**
* Copyright 2017-2026, Voxel51, Inc.
*/
import {
SegmentationToolMode,
SegmentationToolShape,
type SegmentationToolState,
} from "@fiftyone/core/src/components/Modal/Sidebar/Annotate/Edit/useSegmentationMode";
import type { OverlayMask } from "@fiftyone/looker/src/numpy";
import type { SerializedMask } fro... |
6706a7678819630c809d55a6c4b16e17fd842b372a60e5f948f9d96102df3cb0 | TypeScript | 38,780 | 1,220 | import {
BufferAttribute,
Object3D,
PerspectiveCamera,
Plane,
Quaternion,
Raycaster,
Scene,
Vector3,
type Vector3Tuple,
} from "three";
import { describe, expect, it, vi } from "vitest";
import { COLOR_POOL } from "./constants";
import type { FiftyoneSceneRawJson } from "./utils";
import {
areVector... |
467466dbee2c42b186683c5c99ea7b67f88b79494217e79f091a2a5feed850a5 | TypeScript | 39,091 | 1,255 | import type { LocationVisualization } from "../../../../ir";
import { lowerBoundBigInt } from "../../../../utils/bigint";
import { voxel51PrimaryColor } from "../rendering/puck";
import {
bearingDegrees,
haversineDistanceMeters,
normalizeLongitudeIntervalEast,
unwrapLongitude,
} from "../wgs84";
// Brand orang... |
dc5a4a2a56643d5bfb07ab7f5004edc32318bf6f486c243efaa17b6e417ac7aa | TypeScript | 39,182 | 1,312 | import { parse as parseRosMessageDefinition } from "@foxglove/rosmsg";
import { parseRos2idl } from "@foxglove/ros2idl-parser";
import { MessageWriter as Ros1MessageWriter } from "@foxglove/rosmsg-serialization";
import { MessageWriter as Ros2MessageWriter } from "@foxglove/rosmsg2-serialization";
import type { McapTyp... |
adc34e779924e0249ee56449e1bc52a43062b0792f0cb5cbe1395a7e656430a4 | TypeScript | 40,367 | 1,311 | import type { McapTypes } from "@mcap/core";
import type { DecodeClient } from "../../../../query/decoding/index";
import { compareBigInt } from "../../../../ir/index";
import { EpisodeReadCancelledError } from "../../../../ports/index";
import {
createCandidateSelector,
createWindowBounds,
isUnboundedLatestPolic... |
718a643dac444a4a92ea5b968fd273095d0963be12c68f9ee3d9a1eb366398f5 | TypeScript | 41,073 | 1,154 | import {
FRAMES_PREFIX,
type LabelRef,
useActiveAnnotationSampleId,
useAnnotationEngine,
useEngineSelector,
} from "@fiftyone/annotation";
import {
GuidedKeypointHandler,
InteractiveCreationHandler,
InteractiveKeypointHandler,
KeypointOverlay,
KeypointPointHitAction,
type KeypointPointHitContext,
... |
a57e9ee47b0e668c9e957a2f6d4bb7aa8d0cd640074acede65748bae4c9ee596 | TypeScript | 42,538 | 1,312 | import { describe, expect, it } from "vitest";
import { createCachedByteClient } from "./cached-byte-client";
import { createMemoryByteRangeCache } from "./cache";
import { BYTE_SOURCE_READ_PROFILE } from "./constants";
import { byteFillLockName, byteFillSlotName } from "./fill-lock";
import type {
ByteClient,
Byte... |
be89dde73f361b29b8c6f3dab6ccc012de1bfe13eaa7b59254275770ce2a6284 | TypeScript | 43,856 | 1,389 | import { McapRecordBuilder, type McapTypes } from "@mcap/core";
import { describe, expect, it } from "vitest";
import type { BudgetedReadStopReason, ReadWorkBudget } from "../../../ports";
import {
createCachedByteClient,
createMemoryByteRangeCache,
type ByteClient,
type ByteRangeReadRequest,
type ByteSourceD... |
33cda737556ef14515be91569505e1d5e8d920bee7332d87b16866708ab3af69 | TypeScript | 44,411 | 1,298 | import {
useCallback,
useEffect,
useLayoutEffect,
useMemo,
useRef,
useState,
} from "react";
import { Vector3 } from "three";
import type { PointCloudVisualization } from "../../../../ir/index";
import type {
PointCloudCameraPose,
PointCloudFrameTransform,
PointCloudSceneBoundsSummary,
} from "../../.... |
90d8793ceaab40197571e4ee9b6e88e8a0598df8fdab65177154d2642319aaf5 | TypeScript | 44,828 | 1,381 | // @vitest-environment jsdom
import { act, renderHook, waitFor } from "@testing-library/react";
import { beforeEach, describe, expect, it, vi } from "vitest";
import type { SelectionType } from "@fiftyone/state";
import type { LassoStageInput } from "./extensions";
import {
fetchIds,
fetchLassoStage,
fetchMasks,
... |
d824320c57ab88fdd750d1e5d97baaddec17bf4edb10f1b583c31e903cc516ef | TypeScript | 45,780 | 1,331 | import { describe, expect, it, vi } from "vitest";
import type { EncodedH264VideoVisualization } from "../ir";
import { VISUALIZATION_KIND } from "../ir";
import { VideoPlaybackManager } from "./playback-manager";
import { withPreroll } from "./preroll.test-fixtures";
import { SharedVideoPresentation } from "./present... |
08694ae15e7052e4c4b8d250896d206a8f6e315c46869943907dbb024e35ba35 | TypeScript | 45,803 | 1,606 | /**
* Copyright 2017-2026, Voxel51, Inc.
*/
import { EventDispatcher, getEventBus } from "@fiftyone/events";
import { Viewport } from "pixi-viewport";
import * as PIXI from "pixi.js";
import {
DEFAULT_TEXT_PADDING,
FONT_FAMILY,
FONT_SIZE,
FONT_WEIGHT,
HANDLE_ALPHA,
HANDLE_COLOR,
HANDLE_FACTOR,
HANDLE... |
a73bbb28e14e33ebd54b39dc91452086d2cfe12ee44481cba4554ffe9ff39b4b | TypeScript | 47,703 | 1,610 | import { create } from "@bufbuild/protobuf";
import { Quaternion, Vector3 } from "three";
import { describe, expect, it, vi } from "vitest";
import { StreamInventorySchema } from "../../../schemas/v1";
import {
MCAP_PLAYBACK_WORKER_PRIORITY,
type McapPlaybackWorkerRequest,
type McapPlaybackWorkerResponse,
type ... |
284efc71e850aeffa59fb8a9288c7a86a9a7626e88c2d607727f5ce0dac12e0e | TypeScript | 49,194 | 1,330 | import {
getBufferedRanges,
getIsPlaying,
getIsPlayPending,
getPlayhead,
setBufferedRanges,
setSeekFetchDebounceMs,
setStreamValue,
useIsPlaying,
usePlayback,
usePlaybackStore,
} from "@fiftyone/playback";
import { seekEventAtom } from "@fiftyone/playback/runtime";
import {
type MutableRefObject,
... |
ded7593e703885478aee33c62cf86d9ac79fd4afffc07304837bd6bd6120e885 | TypeScript | 49,830 | 1,622 | /**
* Copyright 2017-2026, Voxel51, Inc.
*/
import { CommandContextManager } from "@fiftyone/commands";
import { MoveKeypointPointCommand } from "../commands/MoveKeypointPointCommand";
import {
EDGE_THRESHOLD,
HOVERED_DASH_LENGTH,
KEYPOINT_HALO_OPACITY,
KEYPOINT_HALO_WIDTH,
KEYPOINT_HIT_RADIUS,
KEYPOINT_... |
4002fc791efff4dbbdd063fcfee1f4160c2dc15fb052417c45963bfb923ed183 | TypeScript | 50,393 | 1,746 | /**
* @generated SignedSource<<979357fb23cf03d67d1f5e20c4cb54a6>>
* @lightSyntaxTransform
* @nogrep
*/
/* tslint:disable */
/* eslint-disable */
// @ts-nocheck
import { ConcreteRequest, Query } from 'relay-runtime';
import { FragmentRefs } from "relay-runtime";
export type ColorBy = "field" | "instance" | "value"... |
fb0290cad45a0cb1f6360d9658da21762838e197848bedf37c9cb75bac0bf2ea | TypeScript | 52,809 | 1,874 | /**
* Copyright 2017-2026, Voxel51, Inc.
*/
import {
EDGE_THRESHOLD,
HANDLE_OFFSET_X,
HANDLE_OFFSET_Y,
HOVERED_DASH_LENGTH,
LABEL_ARCHETYPE_PRIORITY,
ROTATE_HANDLE_OFFSET,
ROTATE_HANDLE_RADIUS,
ROTATION_SNAP,
SELECTED_DASH_LENGTH,
STROKE_WIDTH,
} from "../constants";
import { CONTAINS } from "../... |
aab34d520e24815053cd35df1e03888223253e84073a3df0ed1c959f427d6ba3 | TypeScript | 54,905 | 1,813 | import { create } from "@bufbuild/protobuf";
import { Quaternion, Vector3 } from "three";
import { describe, expect, it, vi } from "vitest";
import {
PlaybackSyncMode,
StreamInventorySchema,
type StreamInventory,
} from "../../schemas/v1";
import {
BYTE_SOURCE_READ_PROFILE,
SCENE_SOURCE_METADATA,
STREAM_MET... |
fbabaca825a97e679d63209d5b39cc729faf9ca794aca9eaee185a4b73dd1c01 | TypeScript | 56,242 | 1,685 | import { open, stat } from "node:fs/promises";
import { join } from "node:path";
import { describe, expect, it, vi } from "vitest";
import type { ByteSourceDescriptor } from "../../ir";
import type {
AssetDescriptor,
ByteResources,
EpisodeSession,
EpisodeSource,
} from "../../ports";
import { isEpisodeReadCan... |
854585fc5873f8cdc2e475a0f937ba9647fb8d6f845756cc6ddb1d1eabcf205d | TypeScript | 60,090 | 1,835 | import {
SCENE_SOURCE_METADATA,
STREAM_METADATA,
STREAM_SYNC_MODE,
STREAM_KIND,
recordingSupportFactsFromStreams,
type ByteSourceDescriptor,
type DecodedFrame,
type EpisodeManifest,
type EpisodePreviewReadResult,
type StreamDescriptor,
type StreamKind,
type ResolvedStreamSyncPolicy,
type RawRe... |
8926be4de06eb5a60bbbed1985ea48d8bbf52d726073e17a8c312f086528faf1 | TypeScript | 63,296 | 2,005 | /**
* Copyright 2017-2026, Voxel51, Inc.
*/
import { Action, CommandContextManager } from "@fiftyone/commands";
import {
EventDispatcher,
EventHandler,
clearChannel,
getEventBus,
} from "@fiftyone/events";
import { AddOverlayCommand } from "../commands/AddOverlayCommand";
import { MoveOverlayCommand } from "... |
def14d4ec416a30d794e6e13895fea1e87f67edf86d75a827b993c4988a7ff67 | TypeScript | 70,414 | 1,989 | /**
* Copyright 2017-2026, Voxel51, Inc.
*/
import { detectionModeBridge } from "@fiftyone/core/src/components/Modal/Sidebar/Annotate/Edit/bridgeDetectionMode";
import { segmentationModeBridge } from "@fiftyone/core/src/components/Modal/Sidebar/Annotate/Edit/bridgeSegmentationMode";
import { EventDispatcher, getEven... |
172894fd7c3a6de959149d7e3d87b8980b8a5784b24555a0a38f2771c43f3a7b | TypeScript | 123,436 | 3,864 | import { parquetReadObjects, type AsyncBuffer } from "hyparquet";
import { compressors } from "hyparquet-compressors";
import {
createFile,
MP4BoxBuffer,
type ISOFile,
type Sample,
type Track,
} from "mp4box";
import {
SCENE_SOURCE_METADATA,
SCENE_SOURCE_TYPE,
STREAM_CATEGORY,
STREAM_COUNT_NOUN,
ST... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.