text stringlengths 2.5k 6.39M | kind stringclasses 3
values |
|---|---|
import { format } from 'date-fns';
import { createSlice, PayloadAction } from '@reduxjs/toolkit'
import { ReqRes, Collection } from '../../../types';
// ********************************
// * The Redux store is setup in modern Redux Toolkit style
// * https://redux-toolkit.js.org/
// * TODO: should State be in type fil... | the_stack |
import { BaseApi } from './Base';
import { ExtType, Metadata } from './types';
export interface BufferSetLines {
start?: number;
end?: number;
strictIndexing?: boolean;
}
export interface BufferHighlight {
hlGroup?: string;
line?: number;
colStart?: number;
colEnd?: number;
srcId?: number;
}
export in... | the_stack |
import { expect } from 'chai'
import { DiffParser } from '../../src/lib/diff-parser'
import { DiffLineType } from '../../src/models/diff'
// Atom doesn't like lines with just one space and tries to
// de-indent so when copying- and pasting diff contents the
// space signalling that the line is a context line gets los... | the_stack |
describe('Headers', () => {
it('constructor copies headers', function() {
let original = new Headers();
original.append('Accept', 'application/json');
original.append('Accept', 'text/plain');
original.append('Content-Type', 'text/html');
let headers = new Headers(original);
expect(headers.get... | the_stack |
import * as React from "react";
import { useRef, useCallback, useEffect, useImperativeHandle, forwardRef, useState, useMemo, useContext, useLayoutEffect } from "react";
import { ISpace, IBoard, getConnections, getCurrentBoard, forEachEventParameter, IEventInstance } from "./boards";
import { BoardType, Space, SpaceSubt... | the_stack |
import { ADMIN } from '@/role'
import { chainSummary, clone } from '@/util'
import { setup as userSetup } from '@/util/testing'
import { append, merge } from 'crdx'
import { createTeam } from './createTeam'
import { redactUser } from './redactUser'
import { TeamAction, TeamSignatureChain } from './types'
describe('cha... | the_stack |
import type { Linter } from 'eslint'
import { rules as reactPluginRules } from 'eslint-plugin-react'
import { rules as reactHooksPluginRules } from 'eslint-plugin-react-hooks'
import { rules as jsxA11yPluginRules } from 'eslint-plugin-jsx-a11y'
import eslintImportRuleFirst from 'eslint-plugin-import/lib/rules/first'
im... | the_stack |
import {
Mutable,
Class,
Proto,
Arrays,
HashCode,
Comparator,
FromAny,
Creatable,
InitType,
Initable,
ObserverType,
Observable,
ObserverMethods,
ObserverParameters,
ConsumerType,
Consumable,
Consumer,
} from "@swim/util";
import {FastenerContext, Fastener, Property, Provider} from "@sw... | the_stack |
import { CoreConstants } from '@/core/constants';
import { Component, Input, ViewChild, ElementRef, OnInit, OnDestroy, Optional } from '@angular/core';
import { CoreTabsComponent } from '@components/tabs/tabs';
import { CoreCourseModuleMainActivityComponent } from '@features/course/classes/main-activity-component';
im... | the_stack |
import type { Color } from "../util/Color";
import type { Pattern } from "../render/patterns/Pattern";
import type { Gradient } from "../render/gradients/Gradient";
import { ISpriteSettings, ISpritePrivate, ISpriteEvents, Sprite } from "./Sprite";
import { IGraphics, BlendMode } from "./backend/Renderer";
import * as... | the_stack |
import { expect } from "chai";
import { OAuth2Client } from "google-auth-library";
import * as _ from "lodash";
import * as simple from "simple-mock";
import {
DialogflowEvent,
FacebookEvent,
FacebookPlatform,
GoogleAssistantEvent,
GoogleAssistantPlatform,
VoxaApp,
} from "../../src/";
import { variables }... | the_stack |
import { ChildProcess, SpawnOptions, spawn } from 'child_process';
import { writeFileSync } from 'fs';
import { CompletionItem, CompletionItemKind, Definition, Disposable, ExtensionContext, Hover, Location, MarkedString, ParameterInformation, Position, Range, SignatureHelp, SignatureInformation, TextDocument, Uri, comm... | the_stack |
import { bold, green, red, resetColor, yellow } from "../../deps.ts";
import Command from "../Command.ts";
import Option from "../Option.ts";
import { AppDetails, CommandArgument } from "../types/types.ts";
/** Prints success message */
export function success_log(text: string, classicMode: boolean = false): void {
... | the_stack |
import {
print,
TypeMessage,
printSeparator,
} from "../../adapters/messages/console-log";
import * as fs from "fs";
import * as path from "path";
import * as ejs from "ejs";
import { BigNumber } from "bignumber.js";
import antlr4 = require("antlr4/index");
import { ANTLRInputStream, CommonTokenStream } from "... | the_stack |
import { fsToProject } from './fsToProject'
import { projectToFs } from './projectToFs'
import * as path from 'path'
import { readDefinition } from './yaml'
import chalk from 'chalk'
import { Args, GraphcoolModule, ProjectDefinition } from '../types/common'
import fs from '../fs'
import { Output } from '../Output/index... | the_stack |
import {
EventEmitter,
programIds,
useConnection,
decodeMetadata,
decodeNameSymbolTuple,
AuctionParser,
decodeEdition,
decodeMasterEdition,
Metadata,
getMultipleAccounts,
cache,
MintParser,
ParsedAccount,
actions,
Edition,
MasterEdition,
NameSymbolTuple,
AuctionData,
SafetyDepositB... | the_stack |
import HostType from '../types/HostType'
import HAPService2NodeType from '../types/HAPService2NodeType'
import {
Accessory,
Characteristic,
CharacteristicChange,
CharacteristicEventTypes,
CharacteristicGetCallback,
CharacteristicSetCallback,
CharacteristicValue,
Service,
} from 'hap-node... | the_stack |
import {
TOP_BLUR,
TOP_COMPOSITION_START,
TOP_COMPOSITION_END,
TOP_COMPOSITION_UPDATE,
TOP_KEY_DOWN,
TOP_KEY_PRESS,
TOP_KEY_UP,
TOP_MOUSE_DOWN,
TOP_TEXT_INPUT,
TOP_PASTE
} from './DOMTopLevelEventTypes';
import {
getData as FallbackCompositionStateGetData,
initialize as F... | the_stack |
import { Match, Template } from '@aws-cdk/assertions';
import * as cb from '@aws-cdk/aws-codebuild';
import * as secretsmanager from '@aws-cdk/aws-secretsmanager';
import { Stack } from '@aws-cdk/core';
import { Construct } from 'constructs';
import * as cdkp from '../../lib';
import { CodeBuildStep } from '../../lib';... | the_stack |
import { Action, isObservable, observable, observe, Static } from '../src/index';
// /**
// * observable
// */
test('should return a new observable when no argument is provided', () => {
const dynamicObj = observable();
expect(isObservable(dynamicObj)).toBe(true);
});
test('should return an observable wrapping... | the_stack |
import * as fileSystem from 'fs';
import * as os from 'os';
import * as path from 'path';
import * as vscode from 'vscode';
import { WasmTaskProvider } from './taskProvider';
import { TargetConfigPanel } from './view/TargetConfigPanel';
import { NewProjectPanel } from './view/NewProjectPanel';
import {
WriteIntoFi... | the_stack |
import * as moment from "moment";
/**
* Response base.
*/
export interface ResponseBase {
/**
* Polymorphic Discriminator
*/
_type: string;
}
/**
* Defines the identity of a resource.
*/
export interface Identifiable extends ResponseBase {
/**
* A String identifier.
*/
readonly id?: string;
}
... | the_stack |
import { getValidDate, getTime } from '../dates';
import { getTypeOf } from '../deps';
import { isSimpleObject } from '../objects';
import { ensureBuffer, isBuffer } from '../buffers';
import { parseJSON } from '../json';
import * as i from './interfaces';
import * as utils from './utils';
import { locked } from '../de... | the_stack |
import * as angular from 'angular';
describe('uif-persona', () => {
beforeEach(() => {
angular.mock.module('officeuifabric.core');
angular.mock.module('officeuifabric.components.persona');
});
describe('<uif-persona-text /> directives', () => {
describe('HTML rendering', () => {
let liteEleme... | the_stack |
// --------------------------------------------------------------------------
// Shared Type Definitions and Interfaces
// --------------------------------------------------------------------------
/**
* BaseType serves as an alias for the 'minimal' data type which can be selected
* without 'd3-selection' trying to ... | the_stack |
import { Gex } from 'gex'
/* $lab:coverage:on$ */
// NOTE: naming convention:
// key : pattern element key name string
// fix : pattern element match value
// val : potential match value
export interface Matcher {
make(key: string, fix: any): MatchValue | undefined
scan(mvs: MatchValue[], opts?: any): ScanRes... | the_stack |
class DetailsMenuElement extends HTMLElement {
get preload(): boolean {
return this.hasAttribute('preload')
}
set preload(value: boolean) {
if (value) {
this.setAttribute('preload', '')
} else {
this.removeAttribute('preload')
}
}
get src(): string {
return this.getAttribute(... | the_stack |
import {expectRevert} from '@statechannels/devtools';
import {Contract, constants, BigNumber} from 'ethers';
import {Allocation, AllocationType} from '@statechannels/exit-format';
import {
getTestProvider,
randomChannelId,
randomExternalDestination,
replaceAddressesAndBigNumberify,
setupContract,
AssetOutc... | the_stack |
import "jest";
import { createLocalVue } from "@vue/test-utils";
import { inMemory } from "@hickory/in-memory";
import { createRouter, prepareRoutes } from "@curi/router";
import { CuriPlugin } from "@curi/vue";
describe("<curi-async-link>", () => {
let Vue, node, router, wrapper;
let routes = prepareRoutes([
... | the_stack |
import { inject, injectable, } from 'inversify';
import { ServiceIdentifiers } from '../../container/ServiceIdentifiers';
import * as ESTree from 'estree';
import { TInitialData } from '../../types/TInitialData';
import { TNodeWithLexicalScopeStatements } from '../../types/node/TNodeWithLexicalScopeStatements';
impor... | the_stack |
import ClientBase from '../client-base';
import * as chat1 from '../types/chat1';
/** A function to call when a message is received. */
export declare type OnMessage = (message: chat1.MsgSummary) => void | Promise<void>;
/** A function to call when an error occurs. */
export declare type OnError = (error: Error) => voi... | the_stack |
import test from 'tape-promise/tape';
import {fixture} from 'test/setup';
import GL from '@luma.gl/constants';
import {isWebGL2} from '@luma.gl/gltools';
import {Buffer, Texture2D, getKey, readPixelsToArray} from '@luma.gl/gltools';
type WebGLTextureInfo = {
dataFormat: number;
types: number[];
gl2?: boolean;
... | the_stack |
import { ParseTree } from "antlr4ts/tree/ParseTree";
export class DuplicateSymbolError extends Error { }
export enum MemberVisibility {
Invalid = -1,
Public = 0,
Protected,
Private,
Library,
}
export enum TypeKind {
Integer,
Float,
String,
Boolean,
Date,
Class,
Array,... | the_stack |
export var inspect: any;
/** object */
export var HEAP8: any;
/** object */
export var HEAP16: any;
/** object */
export var HEAP32: any;
/** object */
export var HEAPU8: any;
/** object */
export var HEAPU16: any;
/** object */
export var HEAPU32: any;
/** object */
export var HEAPF32: any;
/** object */
expor... | the_stack |
import { expect } from "chai";
import { Timeline } from "./Timeline";
interface StateTimelineEvent {
state: string;
time: number;
}
interface TimelineNameEvent {
name: string;
time: number;
}
interface TimelineValueEvent {
time: number;
value: any;
}
describe("Timeline", () => {
it("can be created and dispo... | the_stack |
interface Layui {
$: JQueryStatic;
carousel: Layui.Carousel;
colorpicker: Layui.ColorPicker;
dropdown: Layui.DropDown;
element: Layui.Element;
flow: Layui.Flow;
form: Layui.Form;
global: {};
jquery: JQueryStatic;
lay: Layui.Lay;
laydate: Layui.Laydate;
layedit... | the_stack |
import {
Address,
Amount,
BlockHeightTimeout,
ChainId,
Fee,
Hash,
isBlockHeightTimeout,
PubkeyBundle,
SwapId,
SwapIdBytes,
SwapTimeout,
UnsignedTransaction,
} from "@iov/bcp";
import { fromHex, toHex } from "@iov/encoding";
import { isJsonRpcErrorResponse, makeJsonRpcId } from "@iov/jsonrpc";
im... | the_stack |
import { autobind } from 'core-decorators';
import FocusTrap from 'focus-trap-react';
import { List, Set } from 'immutable';
import keyboardJS from 'keyboardjs';
import React from 'react';
import { RouteComponentProps } from 'react-router';
import {
CircularProgress,
} from '@material-ui/core';
import {
ITagModel... | the_stack |
import {
base8BitColors,
bgColors,
colorIncrements216,
COMMAND,
commandToType,
END_GROUP,
ERROR,
fgColors,
getType,
GROUP,
ICON,
maxCommandLength,
NOTICE,
Resets,
SECTION,
specials,
supportedCommands,
WARNING,
} from './action-log-pipeline-commands'
import {
commandEnd,
commandSt... | the_stack |
import { ForumState, forumEmptyState, forumActionCreators, forumReducer } from '../../src/test-cases';
describe('integration/attach', () => {
/*
attach entities of a one-to-one relationship
attach entities of a one-to-many relationship
attach entities of a many-to-many relationship
attach entities of a many-... | the_stack |
import type { Sprite } from "../../../core/render/Sprite";
import { Graphics, IGraphicsSettings, IGraphicsPrivate } from "../../../core/render/Graphics";
import type { Axis, IAxisDataItem } from "./Axis";
import { Template } from "../../../core/util/Template";
import { ListTemplate } from "../../../core/util/List";
imp... | the_stack |
import gLong from './gLong';
import {wrapFloat, float2int, descriptor2typestr} from './util';
import {ClassReference, FieldReference, MethodReference, InterfaceMethodReference, IConstantPoolItem, InvokeDynamic, ConstDouble, ConstLong} from './ConstantPool';
import {ClassData, ArrayClassData} from './ClassData';
import ... | the_stack |
// eslint-disable-next-line import/no-extraneous-dependencies
import { randomBytes } from 'crypto';
import * as AWS from 'aws-sdk';
import { mock, restore, setSDKInstance } from 'aws-sdk-mock';
import { fake } from 'sinon';
import { sanitizeSecretName, Secret } from '../secret';
// Enable/disable debugging statements... | the_stack |
namespace eui {
let UIComponentClass = "eui.UIComponent";
/**
* The HorizontalLayout class arranges the layout elements in a horizontal sequence,
* left to right, with optional gaps between the elements and optional padding
* around the elements.
*
* @version Egret 2.4
* @version... | the_stack |
import { VertexGeometry } from "./VertexGeometry";
import { GeometryTagError } from "../error/GeometryTagError";
import { Transform } from "../../../geo/Transform";
import { isSpherical } from "../../../geo/Geo";
/**
* @class PolygonGeometry
*
* @classdesc Represents a polygon geometry in the 2D basic image coordin... | the_stack |
import * as Tp from 'thingpedia';
import * as events from 'events';
import SpeechRecognizer from './speech_recognizer';
import SpeechSynthesizer from './speech_synthesizer';
import { MessageType } from '../dialogue-agent/protocol';
import type Conversation from '../dialogue-agent/conversation';
import type AudioContro... | the_stack |
/* tslint:disable */
// import * as import0 from '@angular/core/src/linker/ng_module_factory';
// import * as import1 from '../../app';
// import * as import2 from '@angular/common/src/common_module';
// import * as import3 from '@angular/core/src/application_module';
// import * as import4 from '@angular/platform-bro... | the_stack |
import 'mocha'
import assert = require('assert')
import {
prefix as testPrefix,
strXF,
numToBuf,
bufToNum,
withEachDb,
} from './util'
import {MutationType, tuple, TupleItem, encoders, Watch, keySelector} from '../lib'
process.on('unhandledRejection', err => { throw err })
// Unfortunately assert.rejects do... | the_stack |
'use strict';
import Assert = require('vs/base/common/assert');
import { onUnexpectedError } from 'vs/base/common/errors';
import { IDisposable, combinedDisposable } from 'vs/base/common/lifecycle';
import arrays = require('vs/base/common/arrays');
import { INavigator } from 'vs/base/common/iterator';
import Events = ... | the_stack |
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, OnDestroy, OnInit } from '@angular/core';
import { forkJoin, of, Subscription } from 'rxjs';
import { ActivatedRoute } from '@angular/router';
import dayjs from 'dayjs/esm';
import { sum } from 'lodash-es';
import { StudentParticipation } from 'app/entitie... | the_stack |
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { CustomLocations } from "../operationsInterfaces";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
import { CustomLocationsManagementClientContext ... | the_stack |
import { Injectable } from '@angular/core';
import { arrayModelType } from './expression-language/array.model.type';
import { dateModelType } from './expression-language/date.model.type';
import { eventSchema } from './expression-language/event-schema';
import { jsonModelType } from './expression-language/json.model.ty... | the_stack |
* @packageDocumentation
* @module IMessage
*/
import type { AnyJson } from '@polkadot/types/types'
import type { DidSignature, IDidDetails, IDidKeyDetails } from './DidDetails'
import type { CompressedAttestation, IAttestation } from './Attestation'
import type { CompressedCredential, ICredential } from './Credentia... | the_stack |
import { expect } from "chai";
import { WmtsCapabilities } from "../../../tile/map/WmtsCapabilities";
describe("WmtsCapabilities", () => {
const SMALL_DEGREES_DIFFERENCE = 1.0e-8;
const SMALL_DECIMAL_DIFFERENCE = 1.0e-6;
it("should parse USGS WMTS capabilities", async () => {
const capabilities = await Wmts... | the_stack |
import {
expect as expectCDK,
haveResource,
haveResourceLike,
} from '@aws-cdk/assert';
import {
AmazonLinuxGeneration,
Instance,
InstanceType,
IVpc,
MachineImage,
SecurityGroup,
Vpc,
WindowsVersion,
} from '@aws-cdk/aws-ec2';
import {
ContainerImage,
} from '@aws-cdk/aws-ecs';
import {
ILogGr... | the_stack |
import axios from 'axios';
import { Injectable, Inject } from '@nestjs/common';
import { map, reduce } from 'p-iteration';
import { WINSTON_MODULE_PROVIDER } from 'nest-winston';
import { Logger } from 'winston';
import { orderBy } from 'lodash';
import { ParameterKey } from 'src/app.dto';
import { recursiveCamelCase ... | the_stack |
import {Window, TextObj} from "../../Window";
import {kill_all_sprites} from "../../utils";
import {item_types} from "../../Item";
import {effect_operators, effect_types} from "../../Effect";
import {GoldenSun} from "../../GoldenSun";
import {MainChar} from "../../MainChar";
import {effect_type_stat, main_stats} from "... | the_stack |
import {Model} from "../../model"
import {indexOf} from "core/util/arrayable"
import {contains, uniq} from "core/util/array"
import {HitTestResult} from "core/hittest"
import {Geometry} from "core/geometry"
import {SelectionMode} from "core/enums"
import * as p from "core/properties"
import {Selection} from "../selecti... | the_stack |
import { Id, NullableId, Params, ServiceMethods } from '@feathersjs/feathers'
import { Application } from '../../../declarations'
import { BadRequest } from '@feathersjs/errors'
import _ from 'lodash'
import Sequelize, { Op } from 'sequelize'
import getLocalServerIp from '../../util/get-local-server-ip'
import logger f... | the_stack |
* ------------------------------------------------------------------------------
* Requirements
* ------------------------------------------------------------------------------
*/
import * as url from 'url';
/*
* This require is to tell webpack to include the code necessary to
* pollyfill the setImmediate and cl... | the_stack |
declare namespace dojox {
/**
* Permalink: http://dojotoolkit.org/api/1.9/dojox/dtl.html
*
* Deprecated. Should require dojox/dtl modules directly rather than trying to access them through
* this module.
*
*/
interface dtl {
}
namespace dtl {
/**
* Permal... | the_stack |
import React, { useEffect } from 'react';
import {
Alert,
AppRegistry,
Button,
SafeAreaView,
ScrollView,
StyleSheet,
Text,
View,
} from 'react-native';
import firebase from '@react-native-firebase/app';
import '@react-native-firebase/messaging';
import Notifee, {
AndroidChannel,
AndroidImportance,... | the_stack |
import JoynrRuntime from "./JoynrRuntime";
import { ShutdownSettings, UdsLibJoynrProvisioning } from "./interface/Provisioning";
import UdsClient from "../messaging/uds/UdsClient";
import JoynrMessage from "../messaging/JoynrMessage";
import InProcessMessagingSkeleton from "../messaging/inprocess/InProcessMessagingSkel... | the_stack |
import * as _ from "underscore";
import {TableSchema} from "../table-schema";
import {TableFieldPartition} from "../TableFieldPartition";
import {TableFieldPolicy} from "../TableFieldPolicy";
import {DefaultTableSchema} from "../default-table-schema.model";
import {TableColumnDefinition} from "../TableColumnDefinition"... | the_stack |
import * as React from 'react';
import { Environment, EnvironmentType } from '@microsoft/sp-core-library';
import { IWebPartContext } from '@microsoft/sp-webpart-base';
import { SPHttpClient, SPHttpClientResponse } from '@microsoft/sp-http';
import { IPropertyFieldSPFolderPickerPropsInternal } from './PropertyFieldSPFo... | the_stack |
import { Globals } from './../../../utils/globals';
import { ChangeDetectorRef, Component, ElementRef, EventEmitter, Input, OnInit, Output, ViewChild, SimpleChanges } from '@angular/core';
import { MessageModel } from '../../../../chat21-core/models/message';
import { isPopupUrl, popupUrl, stripTags } from '../../../..... | the_stack |
import { Emitter, CompositeDisposable } from 'atom'
import { WebContents, remote } from 'electron'
import { handlePromise, shellOpen, packagePath } from '../util'
import {
RequestReplyMap,
ChannelMap,
ReplyMap,
TDiffMethod,
} from '../../src-client/ipc'
import { ClientStyle, getPreviewStyles } from './util'
imp... | the_stack |
declare const OK: 0;
declare const ERR_NOT_OWNER: -1;
declare const ERR_NO_PATH: -2;
declare const ERR_NAME_EXISTS: -3;
declare const ERR_BUSY: -4;
declare const ERR_NOT_FOUND: -5;
declare const ERR_NOT_ENOUGH_RESOURCES: -6;
declare const ERR_NOT_ENOUGH_ENERGY: -6;
declare const ERR_INVALID_TARGET: -7;
declare const ER... | the_stack |
'use strict';
import * as vscode from 'vscode';
import { UserInputUtil, IBlockchainQuickPickItem } from './UserInputUtil';
import { VSCodeBlockchainOutputAdapter } from '../logging/VSCodeBlockchainOutputAdapter';
import * as fs from 'fs-extra';
import * as https from 'https';
import * as path from 'path';
import { Fabr... | the_stack |
require('module-alias/register');
import * as ABIDecoder from 'abi-decoder';
import * as chai from 'chai';
import { BigNumber } from 'bignumber.js';
import * as setProtocolUtils from 'set-protocol-utils';
import { Address } from 'set-protocol-utils';
import ChaiSetup from '@utils/chaiSetup';
import { BigNumberSetup }... | 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 Route53Rec... | the_stack |
import * as fs from "fs";
import * as path from "path";
import * as chalk from "chalk";
import { Config, ConfigAppTest, ConfigBuild, ConfigFuzz, ConfigRun, ConfigTest, Package, parsePackage, parseURIPath, parseURIPathGlob, URIPath, URIPathGlob } from "./package_load";
import { cleanCommentsStringsFromFileContents } f... | the_stack |
import * as _ from 'lodash';
import { Type2DMatrix } from '../types';
import { ValidationError, ValidationInconsistentShape } from './Errors';
import { inferShape } from './tensors';
/**
* Return the number of elements along a given axis.
* @param {any} X: Array like input data
* @param {any} axis
* @ignore
*/
co... | the_stack |
import { connect } from 'react-redux'
import { push } from 'connected-react-router'
import { withRouter } from 'react-router-dom'
import { withStyles } from '@material-ui/core/styles'
import Button from '@material-ui/core/Button'
import Card from '@material-ui/core/Card'
import CardContent from '@material-ui/core/CardC... | the_stack |
import {
ChevronLeftIcon,
ChevronRightIcon,
HamburgerMenuIcon,
} from '@modulz/radix-icons';
import cn from 'classnames';
import clsx from 'clsx';
import fs from 'fs';
import glob from 'glob';
import matter from 'gray-matter';
import Head from 'next/head';
import Link from 'next/link';
import { useRouter } from '... | the_stack |
import type { ScaleIdentity } from 'd3-scale';
import type { Axis } from 'd3-axis';
import type { Selection } from 'd3-selection';
// To be eventually replaced by type from @d3fc/d3fc-axis
interface AxisD3fc<Domain> extends Axis<Domain> {
tickCenterLabel(): boolean;
tickCenterLabel(tickCenterLabel: boolean): t... | the_stack |
import * as path from "path";
import * as fs from "fs";
import {toHex, isWordReg, isByteReg, Flag} from "z80-base";
/**
* Params that qualify as "byte-sized".
*/
const BYTE_PARAMS = new Set(["a", "b", "c", "d", "e", "h", "l", "nn", "ixh", "ixl", "iyh", "iyl"]);
/**
* Params that qualify as "word-sized".
*/
const ... | the_stack |
import { Scene, Mesh, Vector3, Color3, TransformNode, SceneLoader, ParticleSystem, Color4, Texture, PBRMetallicRoughnessMaterial, VertexBuffer, AnimationGroup, Sound, ExecuteCodeAction, ActionManager, Tags } from "@babylonjs/core";
import { Lantern } from "./lantern";
import { Player } from "./characterController";
ex... | the_stack |
import BN from "bn.js";
import { EventData, PastEventOptions } from "web3-eth-contract";
export interface NFTTContract extends Truffle.Contract<NFTTInstance> {
"new"(meta?: Truffle.TransactionDetails): Promise<NFTTInstance>;
}
export interface Approval {
name: "Approval";
args: {
owner: string;
approved... | the_stack |
import {Schema2Base, EntityGenerator} from './schema2base.js';
import {SchemaNode} from './schema2graph.js';
import {ParticleSpec} from '../runtime/arcs-types/particle-spec.js';
import {Type} from '../types/lib-types.js';
import {Dictionary} from '../utils/lib-utils.js';
// TODO(cypher1): Generate refinements and pred... | the_stack |
import * as pulumi from "@pulumi/pulumi";
import { input as inputs, output as outputs, enums } from "../types";
import * as utilities from "../utilities";
/**
* Provides a Route53 record resource.
*
* ## Example Usage
* ### Simple routing policy
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* i... | the_stack |
import { ObjectId } from "bson";
import chalk from "chalk";
import * as path from "path";
import { TSBuffer } from 'tsbuffer';
import { Counter, Flow, getCustomObjectIdTypes, MsgHandlerManager, MsgService, ParsedServerInput, ServiceMap, ServiceMapUtil, TransportDataUtil } from 'tsrpc-base-client';
import { ApiReturn, A... | the_stack |
import * as babel from '@babel/types';
import * as dom5 from 'dom5/lib/index-next';
import * as parse5 from 'parse5';
import {ParsedHtmlDocument} from '../html/html-document';
import * as astValue from '../javascript/ast-value';
import {JavaScriptDocument} from '../javascript/javascript-document';
import {parseJs} fro... | the_stack |
import type { NestingInfo } from "../../utils/selectors"
import {
isNestingAtRule,
findNestingSelectors,
findNestingSelector,
hasNodesSelector,
isSelectorCombinator,
} from "../../utils/selectors"
import type {
VCSSStyleRule,
VCSSAtRule,
VCSS,
VCSSSelectorNode,
} from "../../ast"
imp... | the_stack |
import * as Clutter from 'clutter';
import * as GLib from 'glib';
import * as GObject from 'gobject';
import { App, AppSystem } from 'shell';
import { HorizontalPanel } from 'src/layout/msWorkspace/horizontalPanel/horizontalPanel';
import { MsWindow, MsWindowState } from 'src/layout/msWorkspace/msWindow';
import { MsWo... | the_stack |
declare namespace API {
/**
*
* @export
* @interface Action
*/
export interface Action {
/**
*
* @type {number}
* @memberof Action
*/
id?: number;
/**
* 项目ID
* @type {number}
* @memberof Action
*/
projectId?: number;
/**
* 名字
* @ty... | the_stack |
* @module Zone
*/
import { PointProps } from "@itwin/appui-abstract";
import { Point, Rectangle, RectangleProps } from "@itwin/core-react";
import { NestedStagePanelKey, NestedStagePanelsManagerProps } from "../stage-panels/manager/NestedStagePanels";
import { StagePanelsManager } from "../stage-panels/manager/StageP... | the_stack |
import React, { useState, useMemo, useRef } from 'react'
import { Button, Icon, Tree, Tooltip, message, Checkbox } from 'antd'
import { AntTreeNodeSelectedEvent } from 'antd/lib/tree'
import { AntTreeNodeDropEvent, AntTreeNodeMouseEvent } from 'antd/lib/tree/Tree'
import styled from 'styled-components'
import { Formatt... | the_stack |
import React, { createRef } from 'react';
import PropTypes from 'prop-types';
import Component from '../../react-class';
import moment from 'moment';
import { Flex, Item } from '../../Flex';
import assign from '../../../common/assign';
import join from '../../../common/join';
import times from './utils/times';
import ... | the_stack |
import * as admin from "firebase-admin";
import { IServiceContext } from "../service";
import { getDocMetaData } from "../../utils/converter";
import { v4 as uuidv4 } from 'uuid';
import { deserializeDocumentSnapshotArray, DocumentSnapshot, serializeDocumentSnapshot, serializeQuerySnapshot } from "firestore-serializers... | the_stack |
import Web3 from "web3";
import { Account } from "web3-core";
import { v4 as uuidV4 } from "uuid";
import "jest-extended";
import {
LogLevelDesc,
IListenOptions,
Servers,
} from "@hyperledger/cactus-common";
import { PluginKeychainMemory } from "@hyperledger/cactus-plugin-keychain-memory";
import HelloWorldCont... | the_stack |
import {
AfterContentInit,
Directive,
ElementRef,
EventEmitter,
forwardRef,
Inject,
Input,
OnDestroy,
Optional,
Output,
} from '@angular/core';
import {
AbstractControl,
ControlValueAccessor,
NG_VALIDATORS,
NG_VALUE_ACCESSOR,
ValidationErrors,
Validator,
ValidatorFn,
Validators,
} fr... | the_stack |
* This is a collection object that contains items of an certain entity.
* This collection "lives" in the sense that its items are automatically
* updated, added and removed. When such a change happens, an event is triggered* you can listen on.
*/
import { ClassType, getClassName, isArray } from '@deepkit/core';
impo... | the_stack |
import { Patcher } from "../patch";
import { WebGLRenderer } from "../renderer/webgl/WebGLRenderer";
import { C2dRenderer } from "../renderer/c2d/C2dRenderer";
import { Element } from "./Element";
import { ColorUtils } from "./ColorUtils";
import { TextureManager } from "./TextureManager";
import { CoreContext } from "... | the_stack |
import { neverCheck } from '../../helper/neverCheck'
interface Uniform {
type:
| '1i'
| '2i'
| '3i'
| '4i'
| '1ui'
| '2ui'
| '3ui'
| '4ui'
| '1f'
| '2f'
| '3f'
| '4f'
| '1iv'
| '2iv'
| '3iv'
| '4iv'
| '1fv'
| '2fv'
| '3fv'
| '4fv'
| ... | the_stack |
import { componentScope, Fragment, h, ListView } from "harmaja"
import * as L from "lonna"
import prettyMs from "pretty-ms"
import { boardReducer } from "../../../common/src/board-reducer"
import {
Board,
BoardHistoryEntry,
EventUserInfo,
findItem,
getItem,
getItemIds,
getItemText,
Id,
... | the_stack |
import * as assert from 'assert'
import * as fc from 'fast-check'
import { isDeepStrictEqual } from 'util'
import * as B from '../src/boolean'
import * as E from '../src/Either'
import * as Eq from '../src/Eq'
import { identity, pipe, tuple } from '../src/function'
import * as M from '../src/Monoid'
import * as N from ... | the_stack |
import { CodeFileInfo, SourceInfo } from "../ast/parser";
import { MIRBody, MIRResolvedTypeKey, MIRFieldKey, MIRInvokeKey, MIRVirtualMethodKey, MIRGlobalKey } from "./mir_ops";
import { BSQRegex } from "../ast/bsqregex";
import * as assert from "assert";
enum APIEmitTypeTag
{
NoneTag = 0x0,
NothingTag,
Bo... | the_stack |
module android.graphics{
/**
* The Paint class holds the style and color information about how to draw
* geometries, text and bitmaps.
*/
export class Paint{
private static FontMetrics_Size_Ascent = -0.9277344;
private static FontMetrics_Size_Bottom = 0.2709961;
private s... | the_stack |
///<reference path='typings/node/node.d.ts'/>
import ts = require("typescript");
import harness = require("./harness");
import path = require("path");
function resolvePath(rpath) {
return switchToForwardSlashes(path.resolve(rpath));
}
function switchToForwardSlashes(path: string) {
return path.replace(/\\/g, "... | the_stack |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.