text stringlengths 2.5k 6.39M | kind stringclasses 3
values |
|---|---|
import * as utils from "./utilities/utils";
describe("ecjson properties to ts", () => {
describe("primitive property", () => {
const testCases: utils.PropertyTestCase[] = [
// Test Case: Class with binary property
{
testName: `Class with binary property`,
referenceXmls: [],
sc... | the_stack |
import type { Heap } from "../structsGenerator/consts";
/** --- struct number start --- **/
export function number_type_get(heap: Heap, structPointer: number) {
return heap.f64[(structPointer + 0) / 8];
}
export function number_type_set(
heap: Heap,
structPointer: number,
value: number
) {
return (heap.f64... | the_stack |
import {ITranslationMessagesFileFactory} from '../api/i-translation-messages-file-factory';
import {ITranslationMessagesFile} from '../api/i-translation-messages-file';
import {ITransUnit} from '../api/i-trans-unit';
import {FORMAT_XTB, FILETYPE_XTB, FORMAT_XMB} from '../api/constants';
import {format} from 'util';
imp... | the_stack |
import { Metadata } from '../../decorator/metadata/metadata'
import {
alterCollectionPropertyMetadataForSingleItem,
PropertyMetadata,
} from '../../decorator/metadata/property-metadata.model'
import { curry } from '../../helper/curry.function'
import { isPlainObject } from '../../helper/is-plain-object.function'
im... | the_stack |
import { GoslingTrackModel } from '../gosling-track-model';
import { Channel } from '../gosling.schema';
import { group } from 'd3-array';
import { getValueUsingChannel, IsStackedMark } from '../gosling.schema.guards';
import { cartesianToPolar } from '../utils/polar';
// Merge with the one in the `utils/text-style.ts... | the_stack |
import assert from 'assert';
import Node, {
SourceRange,
NLAnnotationMap,
AnnotationMap,
AnnotationSpec,
implAnnotationsToSource,
nlAnnotationsToSource,
} from './base';
import { cleanKind } from '../utils';
import { DeviceSelector, InputParam } from './invocation';
import { Statement } from '.... | the_stack |
import ConduitGrpcSdk, {
ConduitModelOptions,
ConduitModelOptionsPermModifyType,
ConduitSchema,
ConduitSchemaExtension,
GrpcError,
ParsedRouterRequest,
TYPE,
UnparsedRouterResponse,
} from '@conduitplatform/grpc-sdk';
import { status } from '@grpc/grpc-js';
import { isNil, merge, isEmpty } from 'lodash'... | the_stack |
import * as yup from "yup";
import * as t from "io-ts";
import { CredentialBody } from "google-auth-library";
export const gcpConfigSchema = yup.object({
projectId: yup.string(),
certManagerServiceAccount: yup.string(),
externalDNSServiceAccount: yup.string(),
cortexServiceAccount: yup.string(),
lokiServiceA... | the_stack |
import { sum } from "lodash-es"
import { Polyhedron, Face, Edge, VertexArg, Cap } from "math/polyhedra"
import Classical, { Operation as OpName } from "data/specs/Classical"
import Composite from "data/specs/Composite"
import { makeOpPair, combineOps, Pose } from "./operationPairs"
import Operation, { SolidArgs, OpArgs... | the_stack |
import { rApply } from "ranges-apply";
import { Ranges } from "ranges-push";
import { right } from "string-left-right";
import { version as v } from "../package.json";
const version: string = v;
import { Range, Ranges as RangesType } from "../../../scripts/common";
interface Extras {
whiteSpaceStartsAt: null | numbe... | the_stack |
import { createLocalVue, shallowMount, Wrapper } from '@vue/test-utils';
import Vue from 'vue';
import Vuex from 'vuex';
import DataViewer from '../../src/components/DataViewer.vue';
import { buildStateWithOnePipeline, setupMockStore } from './utils';
const localVue = createLocalVue();
localVue.use(Vuex);
describe('... | the_stack |
import { hasValue, isNotEmpty, isNotUndefined, isNull } from '../../shared/empty.util';
import {
FlushPatchOperationsAction,
PatchOperationsActions,
JsonPatchOperationsActionTypes,
NewPatchAddOperationAction,
NewPatchCopyOperationAction,
NewPatchMoveOperationAction,
NewPatchRemoveOperationAction,
NewPa... | the_stack |
import { Contracts } from "@arkecosystem/platform-sdk";
import { BIP39 } from "@arkecosystem/platform-sdk-crypto";
import { Contracts as ProfilesContracts } from "@arkecosystem/platform-sdk-profiles";
import { within } from "@testing-library/react";
import { renderHook } from "@testing-library/react-hooks";
import { Fo... | the_stack |
import dotenv from "dotenv";
dotenv.config();
import ArbitrageSchema, { Arbitrage, ArbitrageState } from "./schemas/arbitrage.schema";
import { Logger } from "tslog";
import isAfter from "date-fns/isAfter";
import sub from "date-fns/sub";
import { LeanDocument } from "mongoose";
import { binance } from "ccxt.pro";
imp... | the_stack |
import type {
SFCBlock,
SFCDescriptor,
SFCScriptBlock,
SFCStyleBlock,
SFCTemplateBlock,
} from '@vuedx/compiler-sfc'
import { CompilerError, parse } from '@vuedx/compiler-sfc'
import { getComponentName, isNotNull } from '@vuedx/shared'
import { isPlainElementNode, RootNode } from '@vuedx/template-ast-types'
i... | the_stack |
'use-strict';
import yaml = require('js-yaml');
import { existsSync, readFileSync } from 'fs';
import { sync } from 'glob';
import { platform } from 'os';
import { extname, join, parse, sep, resolve } from 'path';
import {
DocumentLink,
Extension,
extensions,
Position,
Range,
Selection,
TextDocument,
TextEdito... | the_stack |
import { VssueAPI } from 'vssue';
import axios, { AxiosInstance, AxiosRequestConfig } from 'axios';
import { buildURL, concatURL, getCleanURL, parseQuery } from '@vssue/utils';
import {
normalizeUser,
normalizeIssue,
normalizeComment,
normalizeReactions,
mapReactionName,
} from './utils';
import {
Respo... | the_stack |
import * as lsp from 'vscode-languageserver';
import { TextDocument } from 'vscode-languageserver-textdocument';
import { isInteresting, parallel, StopWatch } from '../common';
import { DocumentStore } from '../documentStore';
import { Trees } from '../trees';
import { Trie } from '../util/trie';
import { getDocumentSy... | the_stack |
import EventDispatcher from "./../../starling/events/EventDispatcher";
import Vector from "openfl/Vector";
import ArrayUtil from "./../../starling/utils/ArrayUtil";
import URLRequest from "openfl/net/URLRequest";
import ArgumentError from "openfl/errors/ArgumentError";
import Starling from "./../../starling/core/Starli... | the_stack |
declare module com {
export module google {
export module android {
export module gms {
export module internal {
export module firebase_ml_naturallanguage_translate {
export class zza {
public static class: java.lang.Class<com.google.android.gms.internal.firebase_ml_naturallanguage_translate... | the_stack |
import { compareDates } from "./Util";
import fs = require("fs");
import { window, commands } from "vscode";
import path = require("path");
import { Summary } from "../models/Summary";
import { updateSummaryMilestones, incrementSummaryShare, updateSummaryLanguages } from "./SummaryUtil";
import { getLanguages } from ".... | the_stack |
import { BasicClient } from "../BasicClient";
import { ClientOptions } from "../ClientOptions";
import { Level3Point } from "../Level3Point";
import { Level3Snapshot } from "../Level3Snapshot";
import * as https from "../Https";
import { Trade } from "../Trade";
import { Level3Update } from "../Level3Update";
import { ... | the_stack |
import {
AppendCommand,
BitCountCommand,
BitOpCommand,
BitPosCommand,
DBSizeCommand,
DecrByCommand,
DecrCommand,
DelCommand,
EchoCommand,
EvalCommand,
EvalshaCommand,
ExistsCommand,
ExpireAtCommand,
ExpireCommand,
FlushAllCommand,
FlushDBCommand,
GetBitCommand,
GetCommand,
GetRange... | the_stack |
import type * as dfd from 'danfojs-node';
import { sendMessage } from '../comms';
import { v4 as uuid } from 'uuid';
function generatePlot(data, config, eleId: string) {
const parentId = uuid().replace(/-/g, '');
const html = `
<script src="https://cdn.plot.ly/plotly-2.3.0.min.js"></script>
<div id="${... | the_stack |
import * as ui from "../../ui";
import * as React from "react";
import * as ReactDOM from "react-dom";
import * as tab from "./tab";
import * as tabRegistry from "./tabRegistry";
import * as commands from "../../commands/commands";
import * as utils from "../../../common/utils";
import * as csx from '../../base/csx';
... | the_stack |
// You should call obj_light_table_init whenever the tilemap
// changes (such as through elevation change, or map load.)
//
// obj_rebuild_all_light should be called whenever an object
// moves or the tilemap changes.
module Lightmap {
function light_reset(): void {
for(var i = 0; i < tile_intensity.length... | the_stack |
import BoxClient from '../box-client';
import urlPath from '../util/url-path';
// -----------------------------------------------------------------------------
// Typedefs
// -----------------------------------------------------------------------------
/**
* Enum of valid policy assignment types, which specify what ... | the_stack |
import { Map, Set } from "immutable";
import {
WorkerSubmittedHitState,
QualificationComparator
} from "./worker-mturk-api";
export interface RootState {
readonly account: MaybeAccount;
readonly tab: number;
readonly queue: QueueMap;
readonly watchers: WatcherMap;
readonly search: SearchResult... | the_stack |
import { expect } from 'chai'
import { ulid } from 'ulid'
import { Query } from '../middleware/mongo'
import { NewDexie } from '../utils'
import { shouldHaveThrown } from '../utils/spec.utils'
import { Collection } from './collection'
// import { ChangeTableName } from "../middleware/changes";
const databaseName = 'co... | the_stack |
import Vue from 'vue'
// Utils
import mixins, { ExtractVue } from '@/utils/mixins'
import { isDef } from '@/utils'
import { raf } from '@/utils/raf'
import { off, on } from '@/utils/event'
import { getElementTop, getScrollEventTarget, getScrollTop, setScrollTop } from '@/utils/scroll'
// Mixins
import Touchable from ... | the_stack |
import { member } from "babyioc";
import { Maps as EightBittrMaps } from "eightbittr";
import {
Area as MapsCreatrArea,
AreaRaw as MapsCreatrAreaRaw,
Location as MapsCreatrLocation,
LocationRaw as MapsCreatrLocationRaw,
Map as MapsCreatrMap,
MapRaw as MapsCreatrMapRaw,
PreActorLike as MapsCr... | the_stack |
import * as coreHttp from "@azure/core-http";
import * as Parameters from "./models/parameters";
import * as Mappers from "./models/mappers";
import { GeneratedClientContext } from "./generatedClientContext";
import {
GeneratedClientOptionalParams,
GeneratedClientGetKeysOptionalParams,
GeneratedClientGetKeysRespo... | the_stack |
import {
IConnector,
IJsonRpcRequest,
IRequestOptions,
} from "@walletconnect/types";
import {
ChainInfo,
Keplr,
KeplrIntereactionOptions,
KeplrMode,
KeplrSignOptions,
Key,
} from "@keplr-wallet/types";
import { DirectSignResponse, OfflineDirectSigner } from "@cosmjs/proto-signing";
import {
AminoSi... | the_stack |
import {
async,
fakeAsync,
tick,
ComponentFixture,
TestBed
} from '@angular/core/testing';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { By } from '@angular/platform-browser';
import { FormsModule } from '@angular/forms';
import { BsDropdownConfig, BsDropdownModule ... | the_stack |
/*
* Copyright(c) 2017 Microsoft Corporation. All rights reserved.
*
* This code is licensed under the MIT License (MIT).
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software withou... | the_stack |
import { assert, expect } from "chai";
import { SchemaContext } from "../../Context";
import { PrimitiveType } from "../../ECObjects";
import { ECClass, MutableClass } from "../../Metadata/Class";
import { MutableSchema, Schema } from "../../Metadata/Schema";
/* eslint-disable @typescript-eslint/naming-convention */
... | the_stack |
import { Scene } from "../scene/scene";
import { Group } from "../scene/group";
import { Series, SeriesNodeDatum } from "./series/series";
import { Padding } from "../util/padding";
import { Shape } from "../scene/shape/shape";
import { Node } from "../scene/node";
import { Rect } from "../scene/shape/rect";
import { L... | the_stack |
import React, { useMemo, useEffect, useCallback, useContext } from "react";
import { TableContext } from "context/table";
import PropTypes from "prop-types";
import classnames from "classnames";
import {
useTable,
useSortBy,
useRowSelect,
Row,
usePagination,
useFilters,
} from "react-table";
import { isStri... | the_stack |
/* eslint-disable @typescript-eslint/class-name-casing */
/* eslint-disable @typescript-eslint/no-unused-vars */
/* eslint-disable @typescript-eslint/no-empty-interface */
/* eslint-disable @typescript-eslint/no-namespace */
/* eslint-disable no-irregular-whitespace */
import {
OAuth2Client,
JWT,
Compute,
User... | the_stack |
import './gr-related-change';
import '../../plugins/gr-endpoint-decorator/gr-endpoint-decorator';
import '../../plugins/gr-endpoint-param/gr-endpoint-param';
import '../../plugins/gr-endpoint-slot/gr-endpoint-slot';
import {classMap} from 'lit/directives/class-map';
import {LitElement, css, html, nothing, TemplateResul... | the_stack |
import { Scene, Vector3, Ray, TransformNode, Mesh, Color3, Color4, UniversalCamera, Quaternion, AnimationGroup, ExecuteCodeAction, ActionManager, ParticleSystem, Texture, SphereParticleEmitter, Sound, Observable, ShadowGenerator } from "@babylonjs/core";
import { PlayerInput } from "./inputController";
export class Pl... | the_stack |
import {Request} from '../lib/request';
import {Response} from '../lib/response';
import {AWSError} from '../lib/error';
import {Service} from '../lib/service';
import {ServiceConfigurationOptions} from '../lib/service';
import {ConfigBase as Config} from '../lib/config-base';
interface Blob {}
declare class IVS extend... | the_stack |
import { NotFound } from '@curveball/http-errors';
import * as crypto from 'crypto';
import db from '../database';
import { getSetting } from '../server-settings';
import * as principalService from '../principal/service';
import { User, App } from '../principal/types';
import { InvalidGrant, InvalidRequest, Unauthorize... | the_stack |
import * as crypto from 'crypto';
import { URL } from 'url';
import { HintContext, ReportOptions } from 'hint/dist/src/lib/hint-context';
import { IHint, FetchEnd, ElementFound, NetworkData, Request, Response } from 'hint/dist/src/lib/types';
import { debug as d } from '@hint/utils-debug';
import { normalizeString } f... | the_stack |
import _ = require("../index");
declare module "../index" {
// castArray
interface LoDashStatic {
/**
* Casts value as an array if it’s not one.
*
* @param value The value to inspect.
* @return Returns the cast array.
*/
castArray<T>(value?: Many<T>)... | the_stack |
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { Namespaces } from "../operationsInterfaces";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
import { NotificationHubsManagementClient } from "../... | the_stack |
import {getTopicName} from '@/data-quality/utils';
import {
ComputedParameter,
ConstantParameter,
Parameter,
ParameterJoint,
TopicFactorParameter,
VariablePredefineFunctions
} from '../tuples/factor-calculator-types';
import {Factor, FactorId} from '../tuples/factor-types';
import {
isComputedParameter,
isConst... | the_stack |
import * as assert from 'assert';
import * as cp from 'child_process';
import { File } from 'decompress';
import * as fse from 'fs-extra';
import * as glob from 'glob';
import * as gulp from 'gulp';
import * as os from 'os';
import * as path from 'path';
import * as process from 'process';
import * as recursiveReadDir ... | the_stack |
import * as DOM from 'vs/base/browser/dom';
import * as nls from 'vs/nls';
import { Disposable, DisposableStore } from 'vs/base/common/lifecycle';
import { IOpenerService } from 'vs/platform/opener/common/opener';
import { DiffElementViewModelBase, SideBySideDiffElementViewModel } from 'vs/workbench/contrib/notebook/br... | the_stack |
import type { Location } from "history";
import { parsePath } from "history";
import type { AssetsManifest } from "./entry";
import type { ClientRoute } from "./routes";
import type { RouteMatch } from "./routeMatching";
// import { matchClientRoutes } from "./routeMatching";
import type { RouteModules, RouteModule } ... | the_stack |
import type {BrowserObject} from 'webdriverio'
import {createStore, createEvent, combine, sample} from 'effector'
import {using, h, spec, text, list, rec, remap} from 'forest'
import {Leaf} from '../index.h'
// let addGlobals: Function
declare const act: (cb?: () => any) => Promise<void>
declare const initBrowser: () ... | the_stack |
import expect from 'expect';
import {
getTestState,
setupTestBrowserHooks,
setupTestPageAndContextHooks,
describeChromeOnly,
} from './mocha-utils'; // eslint-disable-line import/extensions
import { ElementHandle } from '../lib/cjs/puppeteer/common/JSHandle.js';
import utils from './utils.js';
describeChromeO... | the_stack |
import React, { useEffect, useRef } from "react";
import { connect } from "react-redux";
import { reduxForm, InjectedFormProps } from "redux-form";
import styled from "styled-components";
import { AppState } from "reducers";
import { API_HOME_SCREEN_FORM } from "constants/forms";
import { Colors } from "constants/Color... | the_stack |
import * as sr from 'staffrender';
import {INoteSequence, NoteSequence} from '../protobuf/index';
import {MAX_MIDI_PITCH, MIN_MIDI_PITCH} from './constants';
import * as logging from './logging';
import * as sequences from './sequences';
const MIN_NOTE_LENGTH = 1;
/**
* An interface for providing configurable prop... | the_stack |
import React, { PropsWithChildren, useEffect } from "react";
import { CardProps, getCardProps, CardFooter } from "@codestream/webview/src/components/Card";
import {
DidChangeObservabilityDataNotificationType,
GetNewRelicAssigneesRequestType,
ResolveStackTraceResponse
} from "@codestream/protocols/agent";
import {
M... | the_stack |
import { EOL } from 'os';
import { AsyncCreatable, lowerFirst, mapKeys, omit, parseJsonMap, upperFirst } from '@salesforce/kit';
import {
asJsonArray,
asNumber,
ensure,
ensureJsonMap,
ensureString,
getString,
isJsonMap,
Many,
} from '@salesforce/ts-types';
import { QueryResult, RequestInfo } from 'jsfor... | the_stack |
import * as types from "babel-types";
import * as isFunction from "lodash.isfunction";
import {
ErrInvalidIterable,
ErrNoSuper,
ErrNotDefined,
ErrIsNotFunction
} from "../error";
import { Path } from "../path";
import {
_classCallCheck,
_createClass,
_inherits,
_possibleConstructorReturn,
_taggedTempl... | the_stack |
* This is an autogenerated file created by the Stencil compiler.
* It contains typing information for all components that exist in this project.
*/
import { HTMLStencilElement, JSXBase } from '@stencil/core/internal';
import {
OgCalendarDate,
OgCalendarSelectionType,
OgDateDecorator,
} from './components/og-i... | the_stack |
import { Component } from 'vue-property-decorator';
import { histogram, Bin } from 'd3-array';
import { scaleLinear, ScaleBand } from 'd3-scale';
import { select } from 'd3-selection';
import _ from 'lodash';
import $ from 'jquery';
import {
injectVisualizationTemplate,
Visualization,
drawBrushBox,
getBrushBox... | the_stack |
import { PdfGridColumnCollection } from './pdf-grid-column';
import { PdfGridRow } from './pdf-grid-row';
import { PdfGridCell } from './pdf-grid-cell';
import { PdfGridRowCollection, PdfGridHeaderCollection } from './pdf-grid-row';
import { RectangleF, SizeF, PointF } from './../../drawing/pdf-drawing';
import { PdfPa... | the_stack |
'use strict';
import * as path from 'path';
import {
commands,
ExtensionContext,
OutputChannel,
TextDocument,
Uri,
window,
workspace,
WorkspaceFolder,
} from 'vscode';
import {
ExecutableOptions,
LanguageClient,
LanguageClientOptions,
Logger,
RevealOutputChannelOn,
ServerOptions,
Transport... | the_stack |
import {
Action, Box, Col,
Icon,
Image, Row,
StatelessTextInput as Input, Text
} from '@tlon/indigo-react';
import { Contact, Contacts } from '@urbit/api/contacts';
import { addTag, removeMembers, changePolicy, Group, removeTag, RoleTags } from '@urbit/api/groups';
import { Association } from '@urbit/... | the_stack |
import { KeyMod, KeyCode } from 'vs/base/common/keyCodes';
import { ServicesAccessor } from 'vs/platform/instantiation/common/instantiation';
import { KeybindingsRegistry, KeybindingWeight } from 'vs/platform/keybinding/common/keybindingsRegistry';
import { List } from 'vs/base/browser/ui/list/listWidget';
import { Wor... | the_stack |
import * as builder from 'botbuilder';
import * as teams from './';
import * as sprintf from 'sprintf-js';
export class O365ConnectorCard implements builder.IIsAttachment {
protected data = {
contentType: 'application/vnd.microsoft.teams.card.o365connector',
content: <teams.IO365ConnectorCard> {}
... | the_stack |
import { FocusKeyManager } from '@angular/cdk/a11y';
import { Direction, Directionality } from '@angular/cdk/bidi';
import { coerceNumberProperty } from '@angular/cdk/coercion';
import { DOWN_ARROW, ENTER, hasModifierKey, LEFT_ARROW, RIGHT_ARROW, SPACE, UP_ARROW } from '@angular/cdk/keycodes';
import { ViewportRuler } ... | the_stack |
import uuid from "uuid/v4";
import QueueStorageContext from "../context/QueueStorageContext";
import StorageErrorFactory from "../errors/StorageErrorFactory";
import * as Models from "../generated/artifacts/models";
import Context from "../generated/Context";
import IMessagesHandler from "../generated/handlers/IMessag... | the_stack |
import { Argument } from '../Argument';
import { Expression } from '../Expression';
import { mXparserConstants } from '../mXparserConstants';
import { mXparser } from '../mXparser';
import { javaemul } from 'j4ts/j4ts';
import { NumberTheory } from './NumberTheory';
import { MathFunctions } from './MathFunctions';
/**... | the_stack |
import { join } from 'path';
// @ts-ignore
import reduceCalc from 'reduce-css-calc';
import classnames from './config/classnames';
import defaultScreens from './config/screens';
import defaultTokens from './config/tokens';
import {
IClasses,
IClassesByType,
IConfig,
IEvaluatedClassnames,
IEvaluatedConfig,
... | the_stack |
import { IEventDispatcher } from "../../events/api/IEventDispatcher";
import { ILifecycle } from "../api/ILifecycle";
import { LifecycleError } from "../api/LifecycleError";
import { LifecycleEvent } from "../api/LifecycleEvent";
import { LifecycleState } from "../api/LifecycleState";
import { LifecycleTransition } f... | the_stack |
import * as _ from 'lodash';
import { escapeRegExp } from 'lodash';
import {} from 'vscode';
import { Position, Range, Selection } from 'vscode';
import { sorted } from '../../common/motion/position';
import { configuration } from '../../configuration/configuration';
import { VimError, ErrorCode } from '../../error';
i... | the_stack |
import { DebugElement } from '@angular/core';
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { By } from '@angular/platform-browser';
import { SearchResult } from 'app/search/interfaces';
import { SearchResultsComponent } from './search-results.component';
describe('SearchResultsComponent', ... | the_stack |
import { getScope } from "@core/lib/blob";
import { getFetchActionBackgroundLogTargetIdsFn } from "./../models/logs";
import produce from "immer";
import { v4 as uuid } from "uuid";
import { apiAction } from "../handler";
import { Api, Blob, Model, Auth, Client, Rbac } from "@core/types";
import * as R from "ramda";
im... | the_stack |
import * as coreClient from "@azure/core-client";
/** Result of the request to list operations. */
export interface ResourceProviderOperationList {
/** List of operations supported by this resource provider. */
value?: ResourceProviderOperation[];
/**
* Link to the next page of results.
* NOTE: This proper... | the_stack |
module labelling_tool {
/*
Polygonal label model
*/
interface PolygonalLabelModel extends AbstractLabelModel {
vertices: Vector2[];
}
function new_PolygonalLabelModel(): PolygonalLabelModel {
return {label_type: 'polygon', label_class: null, vertices: []};
}
/*
P... | the_stack |
import { PendingPlugins, Plugin, PluginCollection } from "@scm-manager/ui-types";
import createInfiniteCachingClient from "./tests/createInfiniteCachingClient";
import { setIndexLink } from "./tests/indexLinks";
import fetchMock from "fetch-mock-jest";
import { renderHook } from "@testing-library/react-hooks";
import c... | the_stack |
import React from 'react';
import * as settings from 'electron-settings';
import TitleBar from 'frameless-titlebar';
import './style.scss';
import { visualizations } from '../../../../visualizations/visualizations.js';
import { MACOS, DEFAULT_SETTINGS, MAX_BAR_THICKNESS, LINUX } from '../../../../constants';
import { ... | the_stack |
import React, { useLayoutEffect, MouseEvent } from 'react'
import ButtonBase from '@mui/material/ButtonBase'
import List, { ListProps } from '@mui/material/List'
import ListItem, { ListItemProps } from '@mui/material/ListItem'
import ListItemIcon from '@mui/material/ListItemIcon'
import ListItemSecondaryAction from '@m... | the_stack |
import { expect } from 'chai';
import toArray from 'lodash/toArray';
import React from 'react';
import ReactDOM from 'react-dom';
import { Subject } from 'rxjs/Subject';
import sinon from 'sinon';
import { createApp } from 'frint';
import { renderToString } from 'frint-react-server';
import render from '../render';
i... | the_stack |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { Inject } from '@angular/core';
import { Observable, throwError } from 'rxjs';
import { Router, ActivatedRoute, Params } from '@angular/router';
import { HttpClient, HttpResponse } from '@angular/common/http';
import {
SensorParserConfi... | the_stack |
import { expect } from "chai";
import * as sinon from "sinon";
import { Point } from "@itwin/core-react";
import {
AccuDrawKeyboardShortcuts, CommandItemDef, ConfigurableUiManager, KeyboardShortcut, KeyboardShortcutContainer, KeyboardShortcutManager, KeyboardShortcutProps,
} from "../../appui-react";
import { CursorI... | the_stack |
import { V, Variable } from "./v";
import { assert, assume } from "../utils";
import { ParsedMaki, Command, Method } from "./parser";
import { getClass, getMethod } from "./objects";
import { classResolver } from "../skin/resolver";
function validateMaki(program: ParsedMaki) {
/*
for (const v of program.variables)... | the_stack |
/// <reference types="node" />
export {};
/**
* A set of commonly understood string names for types to help with completions.
*/
export type NamedType = "string" | "pointer" | keyof TypesDefaultRegistry | `${keyof TypesDefaultRegistry}${"*" | " *" | "**" | " **"}`;
/**
* Base constraint for a type understood by t... | the_stack |
import { PHASE } from "../../common";
import { idb } from "../db";
import g from "./g";
import type { TeamFiltered } from "../../common/types";
import { getPlayers, getTopPlayers } from "../core/season/awards";
import {
dpoyScore,
makeTeams,
mvpScore,
} from "../core/season/doAwards.football";
import advStatsSave fr... | the_stack |
import { createCheckoutService, CheckoutSelectors, CheckoutService, CustomError, PaymentMethod, RequestError } from '@bigcommerce/checkout-sdk';
import { mount, ReactWrapper } from 'enzyme';
import { EventEmitter } from 'events';
import { find, merge, noop } from 'lodash';
import React, { FunctionComponent } from 'reac... | the_stack |
declare module "babylonjs-procedural-textures/brick/brickProceduralTexture.fragment" {
/** @hidden */
export var brickProceduralTexturePixelShader: {
name: string;
shader: string;
};
}
declare module "babylonjs-procedural-textures/brick/brickProceduralTexture" {
import { Color3 }... | the_stack |
* @module ContentView
*/
import * as React from "react";
import classnames from "classnames";
import { Pane } from "./Pane";
import { Resizer } from "./Resizer";
/**
* Props for [[SplitPane]] component
* @public
*/
export interface SplitPaneProps {
/** Pass false to disable resizing */
allowResize?: boolean;
... | the_stack |
import { BlockchainLifecycle, web3Factory } from '@0x/dev-utils';
import { RPCSubprovider, Web3ProviderEngine } from '@0x/subproviders';
import { providerUtils } from '@0x/utils';
import { TxData, Web3Wrapper } from '@0x/web3-wrapper';
import * as _ from 'lodash';
import * as mocha from 'mocha';
import * as process fro... | the_stack |
import { assert } from 'chai'
import { XrplNetwork } from 'xpring-common-js'
import IssuedCurrencyClient from '../../src/XRP/issued-currency-client'
import XRPTestUtils from './helpers/xrp-test-utils'
import {
TransactionResult,
TransactionStatus,
XrpError,
XrpUtils,
} from '../../src/XRP/shared'
import Issued... | the_stack |
import * as tf from '@tensorflow/tfjs';
// tslint:disable-next-line:max-line-length
import {LayerVariable, ModelCompileConfig, Tensor, Variable} from '@tensorflow/tfjs';
export type VarList = Array<Tensor|Variable|LayerVariable>;
export type SerializedVariable = {
dtype: tf.DataType,
shape: number[],
data: Arra... | the_stack |
import * as coreClient from "@azure/core-client";
export const TelemetryItem: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "TelemetryItem",
modelProperties: {
version: {
defaultValue: 1,
serializedName: "ver",
type: {
name: "Number"
... | the_stack |
import {FakeTransportBuilder, frameRequest, TriggerableTransport} from "./index";
import {PingRequest, PingResponse} from "../../../integration_test/ts/_proto/improbable/grpcweb/test/test_pb";
import {TestService} from "../../../integration_test/ts/_proto/improbable/grpcweb/test/test_pb_service";
import {grpc} from "@i... | the_stack |
* First 10 predefined colors used for plotting by Mathematica.
*
* Also known as _indexed color scheme #97_.
*/
const MATHEMATICA_COLORS: Record<string, string> = {
m0: '#3F3D99', // Strong blue
m1: '#993D71', // Strong cerise
m2: '#998B3D', // Strong gold
m3: '#3D9956', // Malachite green
m4: '#3D5A99', /... | the_stack |
import {
ApplicationLogJSON,
assertTriggerTypeJSON,
BinaryWriter,
BlockJSON,
CallReceiptJSON,
common,
ConfirmedTransactionJSON,
ContractJSON,
crypto,
FailedTransactionJSON,
HeaderJSON,
JSONHelper,
NativeContractJSON,
Nep17BalancesJSON,
Nep17TransfersJSON,
Nep17TransferSource,
NetworkSe... | the_stack |
import {
Address,
Algorithm,
Amount,
ChainId,
Nonce,
PubkeyBundle,
PubkeyBytes,
Token,
TokenTicker,
} from "@iov/bcp";
import { fromHex } from "@iov/encoding";
import { Erc20Options, Erc20TokensMap } from "./erc20";
import { EthereumConnectionOptions } from "./ethereumconnection";
import { SmartContr... | the_stack |
import * as React from 'react';
import Toolbar from 'react-md/lib/Toolbars';
import Button from 'react-md/lib/Buttons/Button';
import CircularProgress from 'react-md/lib/Progress/CircularProgress';
import { Card, CardTitle, CardActions, CardText } from 'react-md/lib/Cards';
import Media, { MediaOverlay } from 'react-md... | the_stack |
import { getParentBg, getParentFg, isContrasty, isTransparent, setContrastRatio, toRGB } from './lib/color';
import { INPUT_NODES, INPUT_PERMS, isDontRecurseNode, isInputNode, isInVisibleNode, isSubDocNode } from './lib/checks';
import { clearOverrides } from './lib/contrast';
declare function requestIdleCallback(call... | the_stack |
import React, { useState } from 'react';
import { mount } from 'enzyme';
import ModalCurtain from './index';
const ESC_KEY = 27;
const ENTER_KEY = 13;
const BACKSPACE_KEY = 8;
const SPACE_KEY = 32;
const LOWERCASE_A_KEY = 65;
describe('ModalCurtain', () => {
test('renders a basic curtain', () => {
const w... | the_stack |
import { Component, SimpleChange, ViewChild } from '@angular/core';
import { ComponentFixture, fakeAsync, TestBed } from '@angular/core/testing';
import { By } from '@angular/platform-browser';
import {
AppConfigService,
DataRowEvent,
ObjectDataRow,
setupTestBed
} from '@alfresco/adf-core';
import { Pro... | the_stack |
namespace App {
function decodeWord(s: string): number {
return parseInt(s, 36);
}
function encodeWord(num: number): string {
let s = num.toString(36);
if (s.length == 2) {
return s;
}
if (s.length == 1) {
return "0" + s;
}
con... | the_stack |
import { HttpClient, HttpResponse, HttpEvent } from '@angular/common/http';
import { Inject, Injectable, Optional } from '@angular/core';
import { APIClientInterface } from './api-client.interface';
import { Observable } from 'rxjs';
import { tap } from 'rxjs/operators';
import { USE_DOMAIN, USE_HTTP_OPTIONS, APIClient... | the_stack |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.