text stringlengths 2.5k 6.39M | kind stringclasses 3
values |
|---|---|
import React from 'react';
import { runInAction } from 'mobx';
import * as POOL from 'types/generated/trader_pb';
import { grpc } from '@improbable-eng/grpc-web';
import { fireEvent, waitFor } from '@testing-library/react';
import Big from 'big.js';
import { formatSats } from 'util/formatters';
import { b64, hex } from... | the_stack |
import { EventEmitter, NO_ERRORS_SCHEMA } from '@angular/core';
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { InteractionAttributesExtractorService } from 'interactions/interaction-attributes-extractor.service';
import { CurrentInteractionService } from 'pages/exploration-player-pag... | the_stack |
import { GlobalProps } from 'ojs/ojvcomponent';
import { ComponentChildren } from 'preact';
import { DataProvider } from '../ojdataprovider';
import Converter = require('../ojconverter');
import { dvtBaseComponent, dvtBaseComponentEventMap, dvtBaseComponentSettableProperties } from '../ojdvt-base';
import { JetElement,... | the_stack |
import React, { createContext, useContext, useEffect, useRef } from 'react';
import { useState } from 'react';
import { useMouseEvents, useWillUnmount } from 'beautiful-react-hooks';
import { useField, useFieldSchema } from '@formily/react';
import { useMount } from 'ahooks';
import constate from 'constate';
import { u... | the_stack |
import generate from './component-generator';
it('generates', () => {
// #region EXPECTED
const EXPECTED = `
import dxCLASS_NAME, {
Properties
} from "DX/WIDGET/PATH";
import { Component as BaseComponent, IHtmlOptions } from "BASE_COMPONENT_PATH";
interface ICLASS_NAMEOptions extends Properties, IHtmlOptions... | the_stack |
import { IRequestPaymentOptions } from './settings';
import { IPreparedTransaction } from './prepared-transaction';
import { providers, BigNumber } from 'ethers';
import { hasErc20Approval, prepareApproveErc20 } from './erc20';
import { ClientTypes, ExtensionTypes, RequestLogicTypes } from '@requestnetwork/types';
impo... | the_stack |
import { domSearch, domSearchAll, getNumber, searchIFrame, sleep, StringUtils, waitForRecognize } from '../../core/utils';
import { OCSWorker } from '../../core/worker';
import { defaultAnswerWrapperHandler } from '../../core/worker/answer.wrapper.handler';
import { logger } from '../../logger';
import { ScriptSett... | the_stack |
import React, { useState, useRef, useCallback } from 'react';
import { localPoint } from '@visx/event';
import { useGesture, UserHandlers } from '@use-gesture/react';
import {
composeMatrices,
inverseMatrix,
applyMatrixToPoint,
applyInverseMatrixToPoint,
translateMatrix,
identityMatrix,
scaleMatrix,
} fro... | the_stack |
import { DepartmentModel } from './../../models/department';
import { MessageModel } from '../../models/message';
import { Injectable, ElementRef } from '@angular/core';
import { Globals } from '../../app/utils/globals';
import { ConversationModel } from '../models/conversation';
import { LoggerInstance } from '../prov... | the_stack |
import { M2048Piece } from "./M2048Piece";
import { M2048Scene } from "./M2048Scene";
import { DIR } from "./M2048Constants";
const { ccclass, property, executeInEditMode } = cc._decorator;
@ccclass
@executeInEditMode
export class M2048Board extends cc.Component {
@property(cc.Integer)
private colsSum: number... | the_stack |
import { ComponentPublicInstance, ref, shallowRef } from 'vue'
import { mount, VueWrapper } from '@vue/test-utils'
import { ElInput, ElSwitch } from 'element-plus'
import ProForm from '../src/Form/Form'
import type { IFormColumns, IFormMenuColumns } from '../src/Form/index'
const columns: IFormColumns = [
{
labe... | the_stack |
/*
* Copyright (c) 2016 - now David Sehnal, licensed under Apache 2.0, See LICENSE file for more info.
*/
namespace LiteMol.Visualization {
export enum CameraType {
Perspective,
Orthographic
}
import LA = Core.Geometry.LinearAlgebra
export class SlabControls {
//private w... | the_stack |
import {
CmsEntry,
CmsEntryStorageOperations,
CmsEntryStorageOperationsCreateParams,
CmsEntryStorageOperationsCreateRevisionFromParams,
CmsEntryStorageOperationsDeleteParams,
CmsEntryStorageOperationsDeleteRevisionParams,
CmsEntryStorageOperationsGetByIdsParams,
CmsEntryStorageOperations... | the_stack |
import * as assert from "assert";
import * as Azure from "azure-storage";
import { configLogger } from "../../../src/common/Logger";
import TableServer from "../../../src/table/TableServer";
import {
HeaderConstants,
TABLE_API_VERSION
} from "../../../src/table/utils/constants";
import {
EMULATOR_ACCOUNT_NAME,
... | the_stack |
import { LokiEventEmitter } from "./event_emitter";
import { Collection } from "./collection";
import { Doc, StorageAdapter } from "../../common/types";
import { IComparatorMap } from "./comparators";
import { IRangedIndexFactoryMap } from "./ranged_indexes";
import { ILokiOperatorPackageMap } from "./operator_packages... | the_stack |
import { Mat3 } from "../math/Mat3";
import { Mat4 } from "../math/Mat4";
import { Vec2 } from "../math/Vec2";
import { Vec3 } from "../math/Vec3";
import { Vec4 } from "../math/Vec4";
import { TypedArray } from "./types";
var _vector = new Vec3();
export class BufferAttribute {
name: string;
array: TypedArr... | the_stack |
// TODO: expose walk as method for general purpose
import { Gex } from 'gex'
import {
Matcher,
MatchValue,
GexMatcher,
IntervalMatcher,
} from './lib/matchers'
module.exports = function (custom: any) {
return new (Patrun as any)(custom)
}
function Patrun(custom: any) {
custom = custom || {}
var self:... | the_stack |
import { BigNumber } from "bignumber.js";
import { Observable, from, defer, of, throwError, concat } from "rxjs";
import {
skip,
take,
reduce,
mergeMap,
map,
filter,
concatMap,
} from "rxjs/operators";
import type {
Account,
CryptoCurrency,
SyncConfig,
} from "@ledgerhq/live-common/lib/types";
impor... | the_stack |
import { ReadStream, WriteStream } from 'fs';
import {
Disposable,
FileSavedEvent,
HandleableErrorEvent,
HistoryTransactionOptions,
HistoryTraversalOptions,
TextEditOptions,
} from '../../../index';
import {
FindMarkerOptions,
Marker,
MarkerLayer,
Point,
PointCompatible,
... | the_stack |
declare module 'ui-neumorphism' {
export import Avatar = __UINeumorphism.Avatar
export import Alert = __UINeumorphism.Alert
export import Badge = __UINeumorphism.Badge
export import Fab = __UINeumorphism.Fab
export import Button = __UINeumorphism.Button
export import IconButton = __UINeumorphism.IconButton
... | the_stack |
import glob from "glob";
import { kebabCase, memoize, noop } from "lodash/fp";
import type { DiContainer } from "@ogre-tools/injectable";
import { createContainer } from "@ogre-tools/injectable";
import { Environments, setLegacyGlobalDiForExtensionApi } from "../extensions/as-legacy-globals-for-extension-api/legacy-glo... | the_stack |
import { Cordova, CordovaProperty, AwesomeCordovaNativePlugin, Plugin } from '@awesome-cordova-plugins/core';
import { Injectable } from '@angular/core';
export interface Licenses {
ios: string;
android: string;
}
export enum BarcodeType {
None = 1,
QRCode = 2,
DataMatrix = 3,
UPCE = 4,
UPCA = 5,
EAN8... | the_stack |
import {earcut} from '@math.gl/polygon';
import type {
BinaryAttribute,
BinaryFeatures,
FlatFeature,
FlatPoint,
FlatLineString,
FlatPolygon,
GeojsonGeometryInfo,
TypedArray
} from '@loaders.gl/schema';
import {PropArrayConstructor, Lines, Points, Polygons} from './flat-geojson-to-binary-types';
/**
* ... | the_stack |
import NeovimStore from './store';
import { compositionStart, compositionEnd, inputToNeovim, notifyFocusChanged } from './actions';
import log from '../log';
const OnDarwin = global.process.platform === 'darwin';
const IsAlpha = /^[a-zA-Z]$/;
export default class NeovimInput {
element: HTMLInputElement;
// fa... | the_stack |
import {FieldsSelection,Observable} from '@genql/runtime'
export type Scalars = {
Boolean: boolean,
Float: number,
ID: string,
Int: number,
String: string,
}
/** mutation root */
export interface mutation_root {
/** delete data from the table: "user" */
delete_user?: user_mutation_respons... | the_stack |
import fetch from "cross-fetch";
import * as fs from "fs";
import { toQueryString } from "../../utils";
import { SdkClient } from "../common/sdk-client";
import { DataLakeModels } from "./data-lake.models";
const HttpsProxyAgent = require("https-proxy-agent");
export class DataLakeClient extends SdkClient {
privat... | the_stack |
export namespace UsageTransparencyModels {
/**
*
* @export
* @class RequiredError
* @extends {Error}
*/
export class RequiredError extends Error {
name: "RequiredError" = "RequiredError";
constructor(public field: string, msg?: string) {
super(msg);
}... | the_stack |
import { HttpClient, HttpResponse } from '@angular/common/http';
import * as assert from 'assert';
import { findPrefix } from './utils';
import * as _ from 'lodash';
import uuid4 from 'uuid/v4';
import { from, Observable, throwError } from 'rxjs';
import { flatMap, map } from 'rxjs/operators';
import { Multipart } from... | the_stack |
import {ConvertedSyntaxKind} from '../../lib/json/converted_syntax_kinds';
import {expectTranslateJSON, prettyStringify} from './json_test_support';
describe('merging variables with types', () => {
describe('upgrading variables whose types contain construct signatures', () => {
it('supports type literals with c... | the_stack |
// NOTE: Chipmunk's partial copying of VSCode solution. Related modules/libs:
// https://github.com/microsoft/vscode/blob/main/src/vs/workbench/contrib/terminal/node/terminalProfiles.ts
// https://github.com/microsoft/vscode/blob/main/src/vs/workbench/contrib/terminal/node/terminalEnvironment.ts
// https://github.com/m... | the_stack |
import uuid from "uuid";
import App from "../app";
import Team from "./teams";
import DamageStep from "./generic/damageStep";
import DamageTask from "./generic/damageTask";
import {Station, Card} from "./stationSet";
import {noCase, camelCase} from "change-case";
import {Record, RecordSnippet} from "./records";
import ... | the_stack |
import {ColorMode, Destination, DestinationConnectionStatus, DestinationOrigin, DestinationState, DestinationType, Margins, MarginsType, NativeInitialSettings, NativeLayerImpl, PluginProxyImpl, PreviewTicket, PrintPreviewAppElement, PrintPreviewDestinationSettingsElement, Range, ScalingType} from 'chrome://print/print_... | the_stack |
import { AuthSdkError, OktaAuth, TokenResponse, Tokens } from '@okta/okta-auth-js';
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore
import getOktaSignIn from './getOktaSignIn';
import ConfigArea, { ConfigTemplate } from './configArea';
import {
getBaseUrl,
getConfigFromStorage
} from './c... | the_stack |
import {CurrentWallpaper, WallpaperLayout, WallpaperType} from 'chrome://personalization/trusted/personalization_app.mojom-webui.js';
import {DisplayableImage} from 'chrome://personalization/trusted/personalization_reducers.js';
import {WallpaperFullscreen} from 'chrome://personalization/trusted/wallpaper/wallpaper_ful... | the_stack |
module Kiwi.Animations {
/**
* An Animation contains information about a single animation that is held on a AnimationManager.
* The information that is held is unique to this individual animation and will initially be the same as a Sequence,
* but if you do ever modify the information held in this Animation the c... | the_stack |
import { expect } from 'chai';
import { describe, it } from 'mocha';
import { dedent } from '../../__testUtils__/dedent';
import { DirectiveLocation } from '../../language/directiveLocation';
import { printSchema } from '../../utilities/printSchema';
import { GraphQLSchema } from '../schema';
import { GraphQLDirect... | the_stack |
import type {ExtendedError} from '@layr/utilities';
import {Component} from '../component';
import {EmbeddedComponent} from '../embedded-component';
import {Attribute} from './attribute';
import {isNumberValueTypeInstance} from './value-types';
import {sanitizers} from '../sanitization';
import {validators} from '../v... | the_stack |
import {polyglot} from '../../src/i18n/polyglot';
import {DiffFilesResolver} from '../../src/app/common/diffFilesResolver';
// TODO: This should be done using require.context
const preloadedFiles = {
'app.component.ts': require(`!raw-loader!./app.component.ts`),
'app.module.ts': require('!raw-loader!./app.module.... | the_stack |
import { AddressZero, HashZero } from 'ethers/constants';
import { bigNumberify } from 'ethers/utils';
import {
TransactionsMessagesCount,
SubgraphOneTxSubscription,
SubgraphEventsThatAreActionsSubscription,
SubgraphEventsSubscription,
SubgraphMotionsSubscription,
} from '~data/index';
import {
Address,
... | the_stack |
import { stylePropsText, stylePropsTransform, validPseudoKeys, validStyles } from '@tamagui/helpers'
// @ts-ignore
import { useInsertionEffect } from 'react'
import { ViewStyle } from 'react-native'
import { getConfig } from '../conf'
import { isClient, isWeb, useIsomorphicLayoutEffect } from '../constants/platform'
i... | the_stack |
import {AttributePath} from "./AttributePath";
import {AttributeValue} from "./AttributeValue";
import {ExpressionAttributes} from "./ExpressionAttributes";
import {FunctionExpression} from "./FunctionExpression";
export type ComparisonOperand = AttributePath|AttributeValue|FunctionExpression|any;
export interface Bi... | the_stack |
export const enum CharCode {
Null = 0,
/**
* The `\b` character.
*/
Backspace = 8,
/**
* The `\t` character.
*/
Tab = 9,
/**
* The `\n` character.
*/
LineFeed = 10,
/**
* The `\r` character.
*/
CarriageReturn = 13,
Space = 32,
/**
* The `!` character.
*/
ExclamationMark = 33,
/**
* Th... | the_stack |
import { BaseConfiguration, BaseProxy, Configuration, DefaultConfiguration, DefaultSecurity, Security } from "../base";
import { Proxy, Service } from "../decorators";
import { Forbidden, InternalServerError, NotFound } from "../errors";
import { Logger } from "../logger";
import { BindingMetadata, ContainerMetadata, E... | the_stack |
import { ipcRenderer, remote, shell } from "electron";
import { join } from "path";
import { pathExists } from "fs-extra";
import { IPCRequests, IPCResponses } from "../../shared/ipc";
import { IStringDictionary, Nullable, Undefinable } from "../../shared/types";
import * as React from "react";
import * as Re... | the_stack |
import { HexBuffer } from '../HexBuffer';
import { W3Buffer } from '../W3Buffer';
import { WarResult, JsonResult } from '../CommonInterfaces'
interface Map {
name: string;
author: string;
description: string;
recommendedPlayers: string;
playableArea: PlayableMapArea;
flags: MapFlags;
mainTi... | the_stack |
import { ConcreteRequest } from "relay-runtime";
import { FragmentRefs } from "relay-runtime";
export type OrderHistoryTestsQueryVariables = {
count: number;
};
export type OrderHistoryTestsQueryResponse = {
readonly me: {
readonly " $fragmentRefs": FragmentRefs<"OrderHistory_me">;
} | null;
};
expo... | the_stack |
import { EventAggregator } from 'aurelia-event-aggregator';
import { UxModalTheme } from './ux-modal-theme';
import { UxModal } from './ux-modal';
import { UxModalPosition, UxModalKeybord, UxDefaultModalConfiguration } from './ux-modal-configuration';
import { inject, Controller, ViewResources } from 'aurelia-framework... | the_stack |
import * as FF from 'final-form'
import * as R from 'ramda'
import * as React from 'react'
import * as RF from 'react-final-form'
import * as urql from 'urql'
import * as M from '@material-ui/core'
import * as Intercom from 'components/Intercom'
import * as AWS from 'utils/AWS'
import * as Data from 'utils/Data'
impor... | the_stack |
import {
Button,
FormControl,
FormHelperText,
FormLabel,
Input,
Popover,
PopoverArrow,
PopoverBody,
PopoverContent,
PopoverTrigger,
Portal,
Tab,
TabList,
TabPanel,
TabPanels,
Tabs,
useDisclosure,
} from "@chakra-ui/react";
import { ItemTypes } from "@/lib/ItemTypes";
import { MINIMUM_W... | the_stack |
/**
* Attributes for dynamic constraints.
* We define one default attribute as style. Speech rule stores can add other
* attributes later.
*/
export enum Axis {
DOMAIN = 'domain',
STYLE = 'style',
LOCALE = 'locale',
TOPIC = 'topic',
MODALITY = 'modality'
}
export type AxisProperties = {[key: string]: str... | the_stack |
import { FastPath } from './fastPath';
import { Doc, concat, join, indent, hardline, softline, group, line } from './docBuilder';
import { willBreak, propagateBreaks } from './docUtils';
import { printComments, printDanglingComments, printDanglingStatementComments } from './comments';
import { locEnd, isNextLineEmpty,... | the_stack |
import * as assert from "assert";
import * as fs from "fs-extra";
import * as spectron from "spectron";
import {generateAuthCredentials, generatePlatformProject} from "../../util/generator";
import {mockSBGClient} from "../../util/sbg-client-proxy";
import {boot, proxerialize, shutdown} from "../../util/util";
describ... | the_stack |
import * as M from 'fp-ts/lib/Monoid'
import * as T from 'fp-ts/lib/Traced'
import { identity, Endomorphism, flow } from 'fp-ts/lib/function'
// -------------------------------------------------------------------------------------
// models
// ---------------------------------------------------------------------------... | the_stack |
import {
parse,
readZip,
ensureDir,
move,
walk,
semver,
} from "./deps.ts";
const baseExecutableFileName = "worker";
const bundleFileName = "worker.bundle.js";
const commonDenoOptions = ["--allow-env", "--allow-net", "--allow-read"];
const additionalDenoOptions:string[] = [];
const parsedArgs = parse(Deno.... | the_stack |
import { mainAction } from '../../main/actions';
import { chatAction } from '../actions';
import { roomAction } from '../../room/actions';
import { ChatStore } from '../stores/chat.store';
import { chatInit } from '../model';
import { contactAction } from '../../contact/actions';
import { global, authPayload } from '..... | the_stack |
import {
parsedView,
syncingProxy,
deepSyncingProxy,
transformingCache,
makeListenerProxy,
deepProxy,
} from './parse-tools'
const deepClone = object => JSON.parse(JSON.stringify(object))
describe('parsedView', () => {
const exampleString = 'from "abc" to "xyz".'
// Hard-code the parse... | the_stack |
import EventEmitter = NodeJS.EventEmitter;
interface NodeMpvOptions {
// Print debug lines
debug?: boolean;
// Print more lines
verbose?: boolean;
// Specify socket
socket?: string;
// Don't open video display
audio_only?: boolean;
// Auto-restart on a crash
auto_restart?: boolean;
// Time update for timepo... | the_stack |
import App from "../app";
import {pubsub} from "../helpers/subscriptionManager";
import * as Classes from "../classes";
import {capitalCase} from "change-case";
import uuid from "uuid";
// id always represents the ID of the sensor system
App.on("addSensorsArray", ({simulatorId, domain}) => {
const system = new Classe... | the_stack |
import UtilInternal = require("../util/UtilInternal");
import Typing = require("../util/Typing");
import ProviderRuntimeException = require("../exceptions/ProviderRuntimeException");
type ProviderAttributeConstructor<T = ProviderAttribute> = new (...args: any[]) => T;
// eslint-disable-next-line @typescript-eslint/ex... | the_stack |
import React, {
useState,
useRef,
useEffect,
useCallback,
useContext,
} from "react";
import ReactFlow, {
ReactFlowProvider,
addEdge,
removeElements,
Controls,
Background,
BackgroundVariant,
ConnectionLineType,
ConnectionMode,
Edge as ReactFlowEdge,
OnConnectStartParams,
} from "react-flow... | the_stack |
import { ApolloQueryResult, gql, InMemoryCache } from '@apollo/client/core';
// Currently do not test against all valid peer dependency versions of apollo
// Would be nice to have, but can't find an elegant way of doing it.
import { createMockClient, MockApolloClient } from './mockClient';
import { createMockSubscrip... | the_stack |
import { Automaton, State, Transition } from './automaton'
/**
* Interface of something that builds an automaton
* @author Arthur Trottier
* @author Charlotte Cogan
* @author Julien Aimonier-Davat
*/
interface AutomatonBuilder<T, P> {
build (): Automaton<T, P>
}
/**
* Perform the union of two set... | the_stack |
/// <reference path="../typings/tsd.d.ts" />
/// <reference path="./estree-x.d.ts" />
import fs = require("fs");
import path = require("path");
import assert = require("assert");
import util = require("util");
import child_process = require("child_process");
import acorn = require("../js/acorn/acorn_csp");
import St... | the_stack |
import * as coreClient from "@azure/core-client";
/** The List availabilityStatus operation response. */
export interface AvailabilityStatusListResult {
/** The list of availabilityStatuses. */
value: AvailabilityStatus[];
/** The URI to fetch the next page of availabilityStatuses. Call ListNext() with this URI ... | the_stack |
import React from "react";
import ReactReconciler from "react-reconciler";
import { unstable_now as now } from "scheduler";
import {
isFunction,
isNil,
isString,
isArray,
mapKeys,
startsWith,
upperFirst,
size,
keys,
forEach,
isPlainObject,
has,
lowerFirst,
pickBy,
flow,
} from "lodash/fp";... | the_stack |
import React from 'react';
import {
Typography,
Box,
Button,
CircularProgress,
} from 'lib-react-components';
import Link from 'next/link';
import clx from 'classnames';
import microFps from 'micro-fps';
import PropTypes from 'prop-types';
import * as gm from 'gammacv';
import LazyUpdate from '../../utils/lazy_... | the_stack |
import BitmapData from "openfl/display/BitmapData";
import Matrix from "openfl/geom/Matrix";
import Matrix3D from "openfl/geom/Matrix3D";
import Point from "openfl/geom/Point";
import Rectangle from "openfl/geom/Rectangle";
import Vector3D from "openfl/geom/Vector3D";
import FragmentFilter from "./../filters/FragmentFi... | the_stack |
import { Button, Dropdown, Popconfirm } from 'antd'
import { mount } from 'enzyme'
import { createBrowserHistory } from 'history'
import mockAxios from 'jest-mock-axios'
import _ from 'lodash'
import queryString from 'query-string'
import React from 'react'
import HtModalForm from '~/components/ModalForm'
import HtTabl... | the_stack |
import { Nes } from "./nes";
declare var toastr;
export class SaveState {
//CPU
A: number = 0; // Accumulator Register
X: number = 0; // X Register
Y: number = 0; // Y Register
STACK: number = 0; // Stack Pointer (points to location on bus)
PC: number = 0x8000; ... | the_stack |
import * as Modal from "boron/FadeModal";
import { autobind } from "core-decorators";
import * as React from "react";
// tslint:disable-next-line:max-line-length
import { Button, Divider, Dropdown, Form, Grid, Header, Icon, Image, Input, Message, Popup, Segment } from "semantic-ui-react";
import { IPodcast } from "../.... | the_stack |
import * as vscode from "vscode";
import BaseCommandHandler from "./shared/command-handler";
import * as diff from "./shared/diff";
const ignoreParser: any = require("gitignore-globs");
export default class CommandHandler extends BaseCommandHandler {
private activeEditor?: vscode.TextEditor;
private errorColor: st... | the_stack |
interface ZeptoStatic {
/**
* Core
**/
/**
* Create a Zepto collection object by performing a CSS selector, wrapping DOM nodes, or creating elements from an HTML string.
* @param selector
* @param context
* @return
**/
(selector: string, context?: any): ZeptoCollection;
/**
* @see ZeptoStatic();
* @pa... | the_stack |
import BigNumber from 'bignumber.js';
import _ from 'lodash';
import { INTEGERS } from '../src/lib/Constants';
import { BaseValue, Index, Price, TxResult, address } from '../src/lib/types';
import { mineAvgBlock } from './helpers/EVM';
import { expect, expectBN, expectBaseValueEqual } from './helpers/Expect';
import i... | the_stack |
import * as path from "path";
import * as fs from "fs-extra";
import { print } from "graphql";
import { mergeTypeDefs } from "@graphql-tools/merge";
import { loadFilesSync } from "@graphql-tools/load-files";
import * as cdk from "@aws-cdk/core";
import * as rds from "@aws-cdk/aws-rds";
import * as appsync from "@aws-c... | the_stack |
import {
EventEmitterLike,
ListenerCallbackData,
ListenerRemoveCallback,
NotificationCallback,
SourceReceiver,
SourceSender,
} from "../../models";
/**
* Manages IPC listeners.
*/
export class IpcListeners {
/**
* Stores all callback listeners.
*/
private static callbacks = ... | the_stack |
import Long from 'long';
import _m0 from 'protobufjs/minimal';
import { Resource } from '../../../../opentelemetry/proto/resource/v1/resource';
import { InstrumentationLibrary, KeyValue } from '../../../../opentelemetry/proto/common/v1/common';
export const protobufPackage = 'opentelemetry.proto.trace.v1';
/** A coll... | the_stack |
import EventHandling from './eventhandling';
import config from './config';
import log from './log';
import {
applyMixins,
deepClone,
equal,
isDocument,
isFolder,
pathsFromRoot
} from './util';
/**
* This module defines functions that are mixed into remoteStorage.local when
* it is instantiated (currentl... | the_stack |
import * as path from 'path';
import tmrm = require('azure-pipelines-task-lib/mock-run');
import { setEndpointData, setAgentsData, mockTaskArgument, nock, MOCK_SUBSCRIPTION_ID, mockAzureSpringCloudExists, mockCommonAzureAPIs } from './mock_utils';
import { ASC_RESOURCE_TYPE, MOCK_RESOURCE_GROUP_NAME } from './mock_util... | the_stack |
import { NetworkContext } from "@counterfactual/types";
import { Provider } from "ethers/providers";
import { BigNumber } from "ethers/utils";
import { fromExtendedKey } from "ethers/utils/hdnode";
import { UNASSIGNED_SEQ_NO } from "../constants";
import { SetStateCommitment } from "../ethereum";
import { AppInstance,... | the_stack |
import { Badge, Button, Dropdown, Empty, Typography } from "antd"
import React, { useCallback, useEffect, useRef } from "react"
import { observer } from "mobx-react-lite"
import LeaderLine from "leader-line-new"
// @Store
import { apiKeysStore } from "stores/apiKeys"
import { sourcesStore } from "stores/sources"
import... | the_stack |
namespace egret {
let PI = Math.PI;
let TwoPI = PI * 2;
let DEG_TO_RAD: number = PI / 180;
let matrixPool: Matrix[] = [];
/**
* The Matrix class represents a transformation matrix that determines how to map points from one coordinate space to
* another. You can perform various graphical ... | the_stack |
import cryptoRandomString from 'crypto-random-string';
import express from 'express';
import { GraphQLBoolean, GraphQLFloat, GraphQLList, GraphQLNonNull, GraphQLObjectType, GraphQLString } from 'graphql';
import { GraphQLJSON } from 'graphql-type-json';
import { cloneDeep, set } from 'lodash';
import plans from '../..... | the_stack |
import * as React from "react";
import { classNames, ClassValue } from "../util/ClassNames";
import {
CaretCoordinates,
getCaretCoordinates
} from "../util/TextAreaCaretPosition";
import { Suggestion } from "../types";
import { insertText } from "../util/InsertTextAtPosition";
import { mod } from "../util/Math";
im... | the_stack |
import "../assets/main.css";
function createEl<K extends keyof HTMLElementTagNameMap>(
tag: K,
t?: string | DomElementInfo,
e?: HTMLElement
): HTMLElementTagNameMap[K] {
const i = document.createElement(tag);
"string" == typeof t &&
(t = {
cls: t
});
const r = t || {... | the_stack |
import React, { FunctionComponent, useState } from "react";
import { observer } from "mobx-react-lite";
import { PageWithScrollView } from "../../components/page";
import { Platform, StyleSheet, Text, View, ViewStyle } from "react-native";
import { Card, CardBody, CardDivider } from "../../components/card";
import { us... | the_stack |
import * as utf8 from './utf8'
export const
MaxRune = 0x10FFFF // Maximum valid Unicode code point
, MaxASCII = 0x007F // maximum ASCII value
, MaxLatin1 = 0x00FF // maximum Latin-1 value
, ReplacementChar = 0xFFFD // Represents invalid code points
const fmt4 = '0000'
export functio... | the_stack |
import { LanguageKeys } from '#lib/i18n/languageKeys';
import type { PokedexEmbedDataReturn } from '#lib/i18n/languageKeys/keys/commands/Pokemon';
import { PaginatedMessageCommand, SkyraPaginatedMessage } from '#lib/structures';
import type { GuildMessage } from '#lib/types';
import {
fetchGraphQLPokemon,
getFuzzyPok... | the_stack |
* 网赚防刷相关参数
*/
export interface CrowdAntiRushInfo {
/**
* 助力场景建议填写:活动发起人微信OpenID。
*/
SponsorOpenId?: string
/**
* 助力场景建议填写:发起人设备号。
*/
SponsorDeviceNumber?: string
/**
* 助力场景建议填写:发起人手机号。
*/
SponsorPhone?: string
/**
* 助力场景建议填写:发起人IP。
*/
SponsorIp?: string
/**
* 助力场景建议填写:活... | the_stack |
import {assert} from '../platform/assert-web.js';
import {ArcInspector, ArcInspectorFactory} from './arc-inspector.js';
import {FakePecFactory} from './fake-pec-factory.js';
import {Id, IdGenerator} from './id.js';
import {Loader} from '../platform/loader.js';
import {CapabilitiesResolver} from './capabilities-resolver... | the_stack |
import * as mume from "@shd101wyy/mume";
import { MarkdownEngine } from "@shd101wyy/mume";
import { useExternalAddFileProtocolFunction } from "@shd101wyy/mume/out/src/utility";
import * as fs from "fs";
import { tmpdir } from "os";
import * as path from "path";
import * as vscode from "vscode";
import { TextEditor, Uri... | the_stack |
import { strict as assert } from "assert";
import { IFluidHandle } from "@fluidframework/core-interfaces";
import { IFluidDataStoreRuntime } from "@fluidframework/datastore-definitions";
import { ISharedMap, SharedMap } from "@fluidframework/map";
import {
ConsensusRegisterCollection,
IConsensusRegisterCollecti... | the_stack |
import { basename } from '@waiting/shared-core'
import * as assert from 'power-assert'
import {
settingsDefault,
_UNICODE_HOLDER,
_WIN64_HOLDER,
} from '../src/lib/config'
import {
DataTypes,
FnParam,
LoadSettings,
MacroDef,
MacroMap,
} from '../src/lib/ffi.model'
import * as H from '../src/lib/helper'... | the_stack |
import { createPool, Pool, PoolConfig, PoolConnection, UpsertResult } from 'mariadb';
import {
DefaultPlatform,
SqlBuilder,
SQLConnection,
SQLConnectionPool,
SQLDatabaseAdapter,
SQLDatabaseQuery,
SQLDatabaseQueryFactory,
SQLPersistence,
SQLQueryModel,
SQLQueryResolver,
SQLSta... | the_stack |
import { Rule, Project } from '../../../support/types';
// these tests are best read sequentially, as they share state
describe('projects API', () => {
const cypressPrefix = 'test-projects-api';
const projectWithOrgRule: Project = {
id: `${cypressPrefix}-project1-${Cypress.moment().format('MMDDYYhhmm')}`,
... | the_stack |
import { AfterViewInit, ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, EventEmitter, HostBinding, HostListener, Input, OnDestroy, OnInit, Output, QueryList, Renderer2, ViewChild, ViewChildren, ViewEncapsulation } from '@angular/core';
import { animate, AnimationBuilder, AnimationPlayer, style } from... | the_stack |
import {BaseGlShaderAssembler} from '../_Base';
// import {GlobalsTextureHandler} from '../../Assembler/Globals/Texture';
import TemplateDefault from '../../templates/particles/Default.glsl';
// import TemplatePosition from './Template/Particle/Position.glsl'
// import TemplateVelocity from './Template/Particle/Veloci... | the_stack |
import * as searchString from 'search-string';
import { searchableItems } from 'src/__data__/searchableItems';
import * as RefinedSearch from './refinedSearch';
import { QueryJSON } from './refinedSearch';
import { SearchableItem } from './search.interfaces';
const {
areAllTrue,
areAnyTrue,
doesSearchTermMatchIt... | the_stack |
const cleanOption: Fig.Option = {
name: "--clean",
description: "Forces rebuilding the native application",
};
const timeoutOption: Fig.Option = {
name: "--timeout",
description:
"Sets the number of seconds that the NativeScript CLI will wait for the debugger to boot. If not set, the default timeout is 90 ... | the_stack |
import path from 'path';
import glob from 'glob';
import webpack from 'webpack';
import fs from 'fs';
import osenv from 'osenv';
import HtmlWebpackPlugin from 'html-webpack-plugin';
import MiniCssExtractPlugin from 'mini-css-extract-plugin';
import HtmlWebpackExternalsPlugin from 'html-webpack-externals-plugin';
import... | the_stack |
import {getDefaultSlicingSpec} from './shape-utils';
import {Shape, TensorViewSlicingSpec} from './types';
export type OnSlicingSpecChangeCallback = (
slicingSpec: TensorViewSlicingSpec
) => void;
/**
* UI control for
* - selecting which dimensions to slicing down to 1 and which to view
* as a 2D data table.
... | the_stack |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.