text
stringlengths
2.5k
6.39M
kind
stringclasses
3 values
import '//resources/js/util.m.js'; import '//resources/cr_elements/cr_button/cr_button.m.js'; import '//resources/cr_elements/cr_dialog/cr_dialog.m.js'; import '//resources/cr_elements/cr_input/cr_input.m.js'; import '//resources/cr_elements/cr_link_row/cr_link_row.js'; import '//resources/cr_elements/icons.m.js'; impo...
the_stack
module DS { // Data structures export interface INamed { name: string; } // Simply a stack export class Stack<T> { tail: Stack<T> = null; top: T; static empty() { return null; } static push<T>(element: T, stack: Stack<T>): Stack<T> { ...
the_stack
import { assert } from "chai"; import { TabInfo } from "../src/background/tabInfo"; import { createSpy, doneHandler } from "./testHelpers"; import { browserMock } from "./browserMock"; describe("TabInfo", () => { const checkDomainLeaveSpy = createSpy(); beforeEach(() => checkDomainLeaveSpy.reset()); after...
the_stack
'use strict'; // tslint:disable no-var-requires import * as vscode from 'vscode'; import * as chai from 'chai'; import * as sinon from 'sinon'; import * as path from 'path'; import * as sinonChai from 'sinon-chai'; import { BlockchainWalletExplorerProvider } from '../../extension/explorer/walletExplorer'; import { Test...
the_stack
import { AppRunner, IAM } from 'aws-sdk' import { createCommonButtons, QuickInputButton, QuickInputToggleButton } from '../../shared/ui/buttons' import { toArrayAsync } from '../../shared/utilities/collectionUtils' import { EcrClient, EcrRepository } from '../../shared/clients/ecrClient' import * as input from '../../s...
the_stack
import envCi = require('env-ci'); const res = envCi(); envCi({ env: { foo: 'bar' } }); envCi({ cwd: '.' }); if (!res.isCi) { res.name; // $ExpectError res.service; // $ExpectError res.commit; // $ExpectType string | undefined res.tag; // $ExpectError res.build; // $ExpectError res.buildUrl; //...
the_stack
module android.view { import PixelFormat = android.graphics.PixelFormat; import Drawable = android.graphics.drawable.Drawable; import Integer = java.lang.Integer; import Gravity = android.view.Gravity; import KeyEvent = android.view.KeyEvent; import LayoutInflater = android.view.LayoutInflater; import MotionEvent = and...
the_stack
import { Agile, Observer, StateIngestConfigInterface } from '@agile-ts/core'; import { defineConfig } from '@agile-ts/utils'; import { Validator } from '../validator'; import { Item, ItemKey } from '../item'; import { StatusInterface, StatusType } from '../status'; import { DeepFieldPaths, DeepFieldPathValues, Cr...
the_stack
import { expect } from "chai"; import { Gradient, ImageSource, ImageSourceFormat, RenderTexture, RgbColorProps, TextureMapping, TextureTransparency, } from "@itwin/core-common"; import { Capabilities, WebGLContext } from "@itwin/webgl-compatibility"; import { IModelApp } from "../../../IModelApp"; import { CreateRend...
the_stack
import { Applications } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ServiceFabricManagementClient } from "../serviceFabricManagementClient"; import { PollerLike, PollOperation...
the_stack
import { inBrowser, remove, _, throttle, supportWebp, getDPR, scrollParent, getBestSelectionFromSrcset, assign, isObject, hasIntersectionObserver, modeType, ImageCache } from './util' import LazyContainerMananger from './lazy-container' import { VueReactiveListener, VueLazyloadOptions } from '...
the_stack
import { Graph, Model, Client } from "../../types"; import * as R from "ramda"; import memoize from "../../lib/utils/memoize"; import { getGroupMembershipsByObjectId, getAppBlockGroupsByComposite, getAppGroupBlocksByComposite, getAppGroupBlockGroupsByComposite, getAppBlocksByComposite, getEnvironmentsByEnvP...
the_stack
//@ts-check ///<reference path="devkit.d.ts" /> declare namespace DevKit { namespace FormUII_hostedapplication_Information { interface tab__1BECAF09_0B9B_49F1_80DE_C827F0ACF7BF_Sections { _10AEA57C_4CBD_4F9D_98FE_1445527E4A45: DevKit.Controls.Section; } interface tab__9C1ADB13_C3D8_DE11_A899_00155D289C61_Sec...
the_stack
import { TestP, TestRoot } from '../test'; import { itIntegrates } from '../testIntegrationUtils'; describe('threads', () => { itIntegrates('paused', async ({ r }) => { const p = await r.launchUrlAndLoad('index.html'); p.cdp.Runtime.evaluate({ expression: 'debugger;' }); await p.dap.once('stopped'); ...
the_stack
export interface ModelConfig { type: string; name: string; model: string; // physics?: string | { type: string; physics_hair: { label: string; comment: string; setup: { length: number; regist: number; ...
the_stack
import React, { CSSProperties, useEffect, useState } from 'react'; import styled from 'styled-components'; import { FoxpageComponentType } from '@foxpage/foxpage-js-sdk'; import { ComponentAddParams, ComponentSourceMapType, ComponentStructure, Drop, FoxpageI18n, } from '@/types/component'; import DropCont...
the_stack
'use strict'; import * as minimatch from 'minimatch'; import * as server from 'vscode-languageserver'; import { ConfigurationRequest } from 'vscode-languageserver-protocol/lib/protocol.configuration.proposed'; import * as fs from 'fs'; import * as path from 'path'; import * as semver from 'semver'; import Uri ...
the_stack
import { ArrayType1D } from "../shared/types"; import Utils from "../shared/utils" import Series from "./series"; const utils = new Utils(); /** * Exposes numerous String methods. All methods are applied Element-wise */ export default class Str { private series: Series private values: ArrayType1D constr...
the_stack
export const BASE_URI = '/taier'; export default { GET_RETAINDB_LIST: `${BASE_URI}/batchComponent/getAllDatabases`, // 获取可以对接项目的数据库表 CONVERT_TO_HIVE_COLUMNS: `${BASE_URI}/batch/batchDataSource/convertToHiveColumns`, // 转换成hive类型的数据类型 LOGIN: `${BASE_URI}/user/login`, // 登陆 GET_TENANT_LIST: `${BASE_URI}/tenant/listT...
the_stack
import * as coreClient from "@azure/core-client"; /** The response of the List Namespace operation. */ export interface SBNamespaceListResult { /** Result of the List Namespace operation. */ value?: SBNamespace[]; /** Link to the next set of results. Not empty if Value contains incomplete list of Namespaces. */ ...
the_stack
'use strict'; import { onUnexpectedError } from 'vs/base/common/errors'; import { IDisposable } from 'vs/base/common/lifecycle'; import * as browser from 'vs/base/browser/browser'; import * as dom from 'vs/base/browser/dom'; import { FastDomNode, createFastDomNode } from 'vs/base/browser/fastDomNode'; import { IComman...
the_stack
import { Directive, ElementRef, EmbeddedViewRef, Inject, Input, NgZone, OnDestroy, Renderer2, TemplateRef } from '@angular/core'; import { generateQuickGuid } from '@angular-ru/cdk/string'; import { Any, Nullable } from '@angular-ru/cdk/typings'; import { checkValueIsEmpty, isFalsy, ...
the_stack
import * as WebSocket from 'isomorphic-ws'; import * as https from 'https'; import HttpProxyAgent = require('http-proxy-agent'); import HttpsProxyAgent = require('https-proxy-agent'); import { getLocal, generateCACertificate, MockedEndpoint } from '../..'; import { expect, nodeOnly, browserOnly, startD...
the_stack
import Obniz from '../../../dist/src/obniz/index'; const OBNIZ_ID = '1234-5678'; /** * https://obniz.io/ja/sdk/parts/MQ2/README.md */ class MQ2Test { public startHeating() { const obniz = new Obniz(OBNIZ_ID); obniz.onconnect = async () => { const mq2 = obniz.wired('MQ2', { vcc: 3, gnd: 2, do: 1, ao:...
the_stack
* @packageDocumentation * @hidden */ import { EDITOR } from 'internal:constants'; import { TouchInputSource, MouseInputSource, KeyboardInputSource, AccelerometerInputSource } from 'pal/input'; import { touchManager } from '../../pal/input/touch-manager'; import { sys } from '../core/platform/sys'; import { EventTarg...
the_stack
import {CheckContext} from "../../compiler/analyzer/type-checker"; import {StringBuilder, StringBuilder_appendQuoted, StringBuilder_new} from "../../utils/stringbuilder"; import {Symbol, SymbolKind} from "../../compiler/core/symbol"; import {Node, NodeKind, isCompactNodeKind, isUnaryPostfix, invertedBinaryKind} from "....
the_stack
import { Trans } from "@lingui/macro"; import { i18nMark } from "@lingui/react"; import { MountService } from "foundation-ui"; import * as React from "react"; import { Route } from "react-router"; import ErrorsAlert from "#SRC/js/components/ErrorsAlert"; import FormUtil from "#SRC/js/utils/FormUtil"; import Util fro...
the_stack
import { IDisposable } from '@lumino/disposable'; import { LabIcon, Switch } from '@jupyterlab/ui-components'; import { NotebookPanel, NotebookActions, Notebook } from '@jupyterlab/notebook'; import { IChangedArgs } from '@jupyterlab/coreutils'; import { CodeCell, ICodeCellModel, Cell, ICellModel } from '@jupyterlab/ce...
the_stack
import { derived, DerivedStore, Store, SubscribableStore, writable, get, readable } from './index'; import { from } from 'rxjs'; import { Component } from '@angular/core'; import { TestBed } from '@angular/core/testing'; describe('stores', () => { describe('base', () => { it('should accept initial value and expo...
the_stack
import nock from 'nock' import { MiddlewareTestHarness, session } from '../../../../../tests/utils' import { authenticate, fetchAuthDetails } from './oauth1' import { TAuthenticateRequest, EAuthType, TIntegrationConfig, OAuth1SignatureMethod } from '../types' import { // getSetupDetails, // getAuth, TOAuth1Payloa...
the_stack
import { newSpecPage, SpecPage } from '@stencil/core/testing'; import { ParallelPlot } from './parallel-plot'; import { ParallelPlotDefaultValues } from './parallel-plot-default-values'; import { scaleOrdinal, scaleLinear } from 'd3-scale'; // we need to bring in our nested components as well, was required to bring in ...
the_stack
import React, { useState, useEffect, MouseEvent, ChangeEvent } from 'react'; import { Container, Grid, Paper, List, ListItemText, ListItem, ListItemIcon, FormControl, InputLabel, Select, MenuItem, ThemeProvider, } from '@material-ui/core'; import { Chart } from '../../com...
the_stack
/// <reference types="jquery" /> interface JQuery { typeahead(options: RunningCoder.Typeahead.Options): JQuery; } interface JQueryStatic { typeahead(options: RunningCoder.Typeahead.Options): JQuery; } declare namespace RunningCoder.Typeahead { interface Options { /** * The jQuery input s...
the_stack
import RasterSource from 'ol/source/Raster'; // skipOnValue is the value which the image do not require any processing (e.i. the natural/default value) export const IMG_PROCESS_ORDER = [ { ArgumentName: 'Histogram', skipOnValue: 0 }, { ArgumentName: 'Gamma', skipOnValue: 100 }, { ArgumentName: 'Contrast', skipOnVal...
the_stack
import { Injectable } from '@angular/core'; import { BehaviorSubject} from 'rxjs'; import { BucketBrowserService, TodoItemNode } from '../../core/services/bucket-browser.service'; // const array = [{'bucket': 'ofuks-1304-prj1-local-bucket', 'object': 'folder11/', 'size': '18', 'lastModifiedDate': '1600846214842'}, //...
the_stack
import { ComponentsManager } from 'componentsjs'; import type { App } from '../../../src/init/App'; import { AppRunner } from '../../../src/init/AppRunner'; import { joinFilePath } from '../../../src/util/PathUtil'; const app: jest.Mocked<App> = { start: jest.fn(), } as any; const manager: jest.Mocked<ComponentsMan...
the_stack
import { AccessLevelList } from "../shared/access-level"; import { PolicyStatement } from "../shared"; /** * Statement provider for service [auditmanager](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsauditmanager.html). * * @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGu...
the_stack
import { computed } from '@vue/reactivity'; import { ComputedRef } from '@vue/reactivity'; import { customRef } from '@vue/reactivity'; import { DebuggerEvent } from '@vue/reactivity'; import { DebuggerOptions } from '@vue/reactivity'; import { DeepReadonly } from '@vue/reactivity'; import { effect } from '@vue/r...
the_stack
import * as types from "../types" declare global { interface NexusGen extends NexusGenTypes {} } export interface NexusGenInputs { PasswordMetaCreateInput: { // input type id?: string | null; // ID resetToken: string; // String! } PasswordMetaCreateOneInput: { // input type connect?: NexusGenInpu...
the_stack
import { ChangeDetectorRef, Component, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; import { FormGroup, FormsModule, ReactiveFormsModule } from '@angular/forms'; import { ComponentFixture, inject, TestBed, waitForAsync, } from '@angular/core/testing'; import { By } from '@angular/platform-browser'; import { NgbModul...
the_stack
import * as jv from "jsverify" import * as inst from "./instances" import * as assert from "./asserts" import { Option, Some, None, Left, Right, OptionModule } from "../../src/" import { NoSuchElementError } from "../../src/" import { is, hashCode } from "../../src/" import { HK } from "funland" import { Equiv } from ...
the_stack
// FIXME /* eslint-disable import/no-cycle */ import objectValues from '../polyfills/objectValues.js'; import inspect from '../jsutils/inspect.js'; import invariant from '../jsutils/invariant.js'; import { print } from '../language/printer.js'; import { DirectiveLocation } from '../language/directiveLocation.js'; impo...
the_stack
import { PdfDocument, PdfGraphics, PdfPage, PdfTextWebLink, PdfColor, SizeF, PdfLayoutFormat, PdfSection } from './../../src/index'; import { PdfStringFormat } from './../../src/index'; import { PdfGrid, PdfGridCellStyle } from './../../src/index'; import { PdfGridRow, PdfPen, PdfDocumentLinkAnnotation, PdfSolidBrush,...
the_stack
import { Inject, Service } from "../decorators"; import { BadRequest, Forbidden, Unauthorized } from "../errors"; import { Logger } from "../logger"; import { PermissionMetadata } from "../metadata"; import { AuthInfo, Context, EventRequest, HttpRequest, IssueRequest, RemoteRequest, WebToken } from "../types"; import {...
the_stack
import { Observable } from '../Observable'; import { tryCatch } from '../util/tryCatch'; import { isFunction } from '../util/isFunction'; import { errorObject } from '../util/errorObject'; import { Subscription } from '../Subscription'; import { Subscriber } from '../Subscriber'; const toString: Function = Object.prot...
the_stack
import { DefaultHttpClient } from "./DefaultHttpClient"; import { HttpClient } from "./HttpClient"; import { IConnection } from "./IConnection"; import { IHttpConnectionOptions } from "./IHttpConnectionOptions"; import { ILogger, LogLevel } from "./ILogger"; import { HttpTransportType, ITransport, TransferFormat } from...
the_stack
namespace ts.projectSystem { describe("unittests:: tsserver:: cancellationToken", () => { // Disable sourcemap support for the duration of the test, as sourcemapping the errors generated during this test is slow and not something we care to test let oldPrepare: AnyFunction; before(() => ...
the_stack
module BABYLON { export class Prim2DClassInfo { } export class Prim2DPropInfo { static PROPKIND_MODEL: number = 1; static PROPKIND_INSTANCE: number = 2; static PROPKIND_DYNAMIC: number = 3; id: number; flagId: number; kind: number; name: string; ...
the_stack
// Type definitions for Chrome packaged application development // Project: http://developer.chrome.com/apps/ // Definitions by: Adam Lay <https://github.com/AdamLay>, MIZUNE Pine <https://github.com/pine613>, MIZUSHIMA Junki <https://github.com/mzsm> // Definitions: https://github.com/borisyankov/DefinitelyTyped ///...
the_stack
import severity from 'vs/base/common/severity'; import * as dom from 'vs/base/browser/dom'; import { IListAccessibilityProvider } from 'vs/base/browser/ui/list/listWidget'; import { Variable } from 'vs/workbench/contrib/debug/common/debugModel'; import { SimpleReplElement, RawObjectReplElement, ReplEvaluationInput, Rep...
the_stack
import _ from 'lodash'; import moment from 'moment'; import { requireJson, sleep } from '../../utils'; import { IReportsContext } from './task'; import { Team } from '../../business/team'; import { TeamMember } from '../../business/teamMember'; import { ErrorHelper } from '../../transitional'; interface IReportsTeams...
the_stack
import { create } from '../../../src'; import { RockPaperScissorsDesign } from '../../rps'; import chai from 'chai'; import chaiAsPromised from 'chai-as-promised'; import chaiSubset from 'chai-subset'; import sinonChai from 'sinon-chai'; import 'mocha'; import { Logger, Tournament } from '../../../src'; import { create...
the_stack
'use strict'; import * as fs from 'fs'; import * as path from 'path'; import * as request from 'request'; import * as component from '../../../common/component'; import { EventEmitter } from 'events'; import { Deferred } from 'ts-deferred'; import { String } from 'typescript-string-operations'; import { getExperiment...
the_stack
import chai, { expect } from 'chai'; import * as path from 'path'; import Helper from '../../src/e2e-helper/e2e-helper'; import { COMPONENT_DIST_PATH_TEMPLATE } from '../../src/constants'; import ComponentsPendingImport from '../../src/consumer/component-ops/exceptions/components-pending-import'; const assertArrays = ...
the_stack
import { program } from 'commander'; import * as anchor from '@project-serum/anchor'; import idl from "./idl/candy_machine.json"; import {Idl, Program, ProgramAccount} from "@project-serum/anchor"; import fs from "fs"; import {MintLayout, Token, TOKEN_PROGRAM_ID, ASSOCIATED_TOKEN_PROGRAM_ID, AccountInfo} from '@solana/...
the_stack
import * as crypto from "crypto"; import * as yaml from "js-yaml"; import * as _ from "lodash"; import * as mysql from "promise-mysql"; import { Service } from "@tsed/common"; import Ajv, {KeywordCxt} from "ajv"; import * as semver from "semver"; import { MysqlWrapper } from "../util/services/mysql"; import { instrumen...
the_stack
import { Badge, Card, Divider, IconFile, Space, Typography } from '@supabase/ui' import matter from 'gray-matter' import authors from 'lib/authors.json' import hydrate from 'next-mdx-remote/hydrate' import renderToString from 'next-mdx-remote/render-to-string' import { NextSeo } from 'next-seo' import Link from 'next/l...
the_stack
import * as fse from 'fs-extra'; import escapeRegExp = require('lodash/escapeRegExp'); import noop = require('lodash/noop'); import startCase = require('lodash/startCase'); import { assert, driver, error, Key, WebElement, WebElementPromise } from 'mocha-webdriver'; import { stackWrapFunc, stackWrapOwnMethods } from 'mo...
the_stack
import * as msRest from "@azure/ms-rest-js"; import * as Models from "../models"; import * as Mappers from "../models/faceMappers"; import * as Parameters from "../models/parameters"; import { FaceClientContext } from "../faceClientContext"; /** Class representing a Face. */ export class Face { private readonly clie...
the_stack
import { HttpTransportType, IHttpConnectionOptions, TransferFormat } from "@microsoft/signalr"; import { DEFAULT_TIMEOUT_INTERVAL, eachHttpClient, eachTransport, ECHOENDPOINT_URL, ENDPOINT_BASE_URL, HTTPS_ECHOENDPOINT_URL, shouldRunHttpsTests } from "./Common"; import { TestLogger } from "./TestLogger"; // We want to ...
the_stack
export function gql(strings: TemplateStringsArray, ...args: string[]): string { let str = '' strings.forEach((string, i) => { str += string + (args[i] || '') }) return str } export type Maybe<T> = T | null export type InputMaybe<T> = Maybe<T> export type Exact<T extends { [key: string]: unknown }> = { [K ...
the_stack
import { isLeft } from 'fp-ts/lib/Either' import * as tsm from 'ts-morph' import { normalizePathsInData } from '../../lib/utils' import { extractContextTypes } from './extractor' import { DEFAULT_CONTEXT_TYPES } from './typegen' describe('syntax cases', () => { it('will extract from import name of nexus default expo...
the_stack
import { step } from 'mocha-steps'; import * as assert from "assert"; import { GetAddressUnspentOutputsResponse, GetBlockchainInfoResponse, SlpAction, SlpTransactionInfo } from "grpc-bchrpc-node"; import { PrivateKey, Networks, Transaction, Script, Address } from "bitcore-lib-cash"; import * as bchaddrjs from "bchaddrj...
the_stack
import { CommonModule } from '@angular/common'; import { Component, ElementRef, EventEmitter, HostBinding, HostListener, Input, NgModule, OnDestroy, Output, ContentChildren, QueryList, IterableDiffer, IterableDiffers, AfterContentInit, IterableChangeRecord, ...
the_stack
import update from 'immutability-helper' import React from 'react' import { PROBABLY_ELECTRON, requireElectron } from '../common/env-vars' import { isAspectRatioLockedNew } from '../components/aspect-ratio' import CanvasActions from '../components/canvas/canvas-actions' import { CanvasComponentEntry } from '../componen...
the_stack
'use strict'; import * as vscode from 'vscode'; import * as path from 'path'; import * as fs from 'fs'; const DIDACT = 'didact'; const COMMAND_ID = 'commandId'; export const didactProtocol = `${DIDACT}://?`; export const DIDACT_COMMAND_PREFIX = `${didactProtocol}${COMMAND_ID}=`; export class DidactUriCompletionItem...
the_stack
import * as assert from "assert" import * as types from "vscode-languageserver-types" import * as Completion from "./../../../src/Services/Completion" import * as SyntaxHighlighting from "./../../../src/Services/SyntaxHighlighting" import * as Mocks from "./../../Mocks" import * as TestHelpers from "./../../TestHelpe...
the_stack
import nodes = require("ast-types/gen/nodes"); import recast = require("recast"); import Collection = require("./Collection"); import template = require("./template"); import VariableDeclarator = require("./collections/VariableDeclarator"); import JSXElement = require("./collections/JSXElement"); declare namespace cor...
the_stack
import React, { FunctionComponent, useEffect, useMemo, useState } from "react"; import { Button } from "reactstrap"; import { HeaderLayout } from "../../layouts"; import style from "./style.module.scss"; import { useStore } from "../../stores"; import classnames from "classnames"; import { DataTab } from "./data-ta...
the_stack
import "mocha"; import * as expect from "expect"; import { CambridgeZ88Core } from "../../../src/renderer/machines/cambridge-z88/CambridgeZ88Core"; import { DefaultCambridgeZ88StateManager, loadWaModule, SilentAudioRenderer, } from "../helpers"; import { setEngineDependencies } from "../../../src/renderer/machine...
the_stack
import { loadTheme, setFocusVisibility } from '@fluentui/react'; import Ajv from 'ajv'; import { AssessmentDefaultMessageGenerator } from 'assessments/assessment-default-message-generator'; import { Assessments } from 'assessments/assessments'; import { assessmentsProviderWithFeaturesEnabled } from 'assessments/assessm...
the_stack
import { Chapter, ChapterDetails, HomeSection, LanguageCode, Manga, MangaStatus, MangaTile, PagedResults } from "paperback-extensions-common"; import { PagedSearchResults } from "./WebtoonHelperStructures"; const WEBTOON_DOMAIN = 'https://www.webtoons.com' export const parseMangaDetailsChallenge = async ($: CheerioSta...
the_stack
import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { VirtualNetworkGatewayConnection, VirtualNetworkGatewayConnectionsListOptionalParams, VirtualNetworkGatewayConnectionsCreateOrUpdateOptionalParams, VirtualNetworkGatewayConn...
the_stack
import express from "express"; import session from "express-session"; import pg from "pg"; import passport from "passport"; import urijs from "urijs"; import { CookieOptions, deleteCookie, DEFAULT_SESSION_COOKIE_NAME, DEFAULT_SESSION_COOKIE_OPTIONS } from "magda-typescript-common/src/session/cookieUtils...
the_stack
import { Component, Input, Output, ElementRef, HostListener, EventEmitter, OnChanges, SimpleChanges, } from '@angular/core'; import { ISprkDropdownChoice } from './sprk-dropdown.interfaces'; // TODO: #3800 Remove `title` input, now replaced with `heading` // TODO: #3800 Remove `additionalIconClasses` i...
the_stack
import * as React from "react"; import { round, cloneDeep } from "lodash"; import { Canvas, Value, toHex } from "@penrose/core"; interface IProps { inputProps: IInputProps; eAttr: string; eValue: Value.Value<any>; // is this the best typing? modAttr(attrname: string, attrval: Value.Value<any>): void; canvas:...
the_stack
import _clone from "lodash/clone"; import _merge from "lodash/merge"; import _omit from "lodash/omit"; import _mapValues from "lodash/mapValues"; import { createMuiTheme, Theme, ThemeOptions, fade, } from "@material-ui/core/styles"; import ClearIcon from "@material-ui/icons/Clear"; import antlerPalette from "...
the_stack
import 'vs/css!./outlinePane'; import * as dom from 'vs/base/browser/dom'; import { ProgressBar } from 'vs/base/browser/ui/progressbar/progressbar'; import { TimeoutTimer } from 'vs/base/common/async'; import { IDisposable, toDisposable, DisposableStore, MutableDisposable } from 'vs/base/common/lifecycle'; import { LRU...
the_stack
import { debug as d } from '@hint/utils-debug'; import { normalizeString } from '@hint/utils-string'; import { isHTTPS, isRegularProtocol } from '@hint/utils-network'; import { FetchEnd, IHint } from 'hint/dist/src/lib/types'; import { HintContext, CodeLanguage } from 'hint/dist/src/lib/hint-context'; import { Severity...
the_stack
import { AbstractToken } from "acorn"; import * as acorn from "acorn/dist/acorn"; import * as walk from "acorn/dist/walk"; import { assert, assertEqual } from "../src/util"; function noop() {} function walkRecursiveWithAncestors(node, state, visitors) { const ancestors = []; const wrappedVisitors = {}; for (co...
the_stack
import Scroller from './Scroller'; import { isTouch, TOUCH_START_EVENT, TOUCH_MOVE_EVENT, TOUCH_END_EVENT, TOUCH_CANCEL_EVENT, MOUSE_DOWN_EVENT, MOUSE_MOVE_EVENT, MOUSE_UP_EVENT, preventDefault, setTransform, iOSWebViewFix, addEventListener, deltaX, deltaY, } from './utils'; interface IView...
the_stack
module Kiwi.Sound { /** * The Audio Object contains the functionality for playing a singular sound in a Kiwi Game. * The Audio can contain Audio Sprites which is a nice way to play audio on mobile devices. * Audio Objects do not 'die' when game states are switched or changed. * * @class Audio * @constructor ...
the_stack
import { Code } from './code'; /** * AWS Glue version determines the versions of Apache Spark and Python that are available to the job. * * @see https://docs.aws.amazon.com/glue/latest/dg/add-job.html. * * If you need to use a GlueVersion that doesn't exist as a static member, you * can instantiate a `GlueVersio...
the_stack
(function () { try { class Danmaku { static root: any; static protoSeg: any; static protoView: any constructor() { new Function(GM.getResourceText("protobuf.min.js"))(); // protobufjs引擎 Danmaku.root = (<any>window).protobuf.Root...
the_stack
import { readFileSync } from 'fs' import { basename, join, normalize } from 'path' import { CompilerOptions, DiagnosticCategory, EmitOutput, TranspileOutput } from 'typescript' import { createConfigSet, makeCompiler } from '../__helpers__/fakers' import type { DepGraphInfo } from '../types' import { Errors, interpola...
the_stack
import { Bean, PreDestroy, Autowired, PostConstruct } from "../context/context"; import { LoggerFactory, Logger } from "../logger"; import { DragStartedEvent, DragStoppedEvent, Events } from "../events"; import { ColumnApi } from "../columns/columnApi"; import { GridApi } from "../gridApi"; import { BeanStub } from ".....
the_stack
import * as sw from "../../utils/simpleWorker"; import * as contract from "./fileListingContract"; import * as fs from "fs"; import * as fsu from "../../utils/fsu"; import * as utils from "../../../common/utils"; import * as glob from "glob"; import chokidar = require('chokidar'); import { throttle } from "../../../co...
the_stack
import { IFluidHandle, IFluidLoadable, IFluidObject } from "@fluidframework/core-interfaces"; import { BaseSegment, createGroupOp, IJSONSegment, ISegment, LocalReferenceCollection, PropertySet, } from "@fluidframework/merge-tree"; import { IChannelAttributes, IFluidDataStoreRuntime, ...
the_stack
import { KubeConfig } from "@kubernetes/client-node"; import { DockerImages } from "@opstrace/controller-config"; import { CustomResourceDefinition, ResourceCollection, Namespace, cortices, ServiceAccount, Role, ClusterRole, RoleBinding, ClusterRoleBinding, ConfigMap, Service, Deployment, V1Ce...
the_stack
import * as tf from '../index'; import {ALL_ENVS, describeWithFlags} from '../jasmine_util'; import {expectArraysClose} from '../test_util'; describeWithFlags('dilation2d', ALL_ENVS, () => { it('valid padding.', async () => { const inputShape: [number, number, number, number] = [1, 2, 2, 1]; const filterShap...
the_stack
import * as Doppio from '../doppiojvm'; import JVMThread = Doppio.VM.Threading.JVMThread; import ReferenceClassData = Doppio.VM.ClassFile.ReferenceClassData; import logging = Doppio.Debug.Logging; import util = Doppio.VM.Util; import ArrayClassData = Doppio.VM.ClassFile.ArrayClassData; import ThreadStatus = Doppio.VM.E...
the_stack
import Ajv from "ajv"; import { createSchema as S, JsonValue } from "./json-schema"; import { TSJSON, TsjsonParser, Validated } from "./tsjson-parser"; const SAMPLE_STRING_1 = "Baseball is ninety percent mental and the other half is physical."; // Sanity-check to make sure the type compatible with what we expect. ...
the_stack
import * as fs from "fs-extra"; import * as path from "path"; import * as os from "os"; import { ConfigFolderName, Result, ok, err } from "@microsoft/teamsfx-api"; import { defaultHelpLink } from "../constant/helpLink"; import { runWithProgressIndicator } from "../util/progressIndicator"; import { DepsCheckerError, Li...
the_stack
import columnResize from './index'; describe('columnResize shareSpaceOnResize=true', () => { it('should make a col smaller when we have maxAvailableWidthForColumns', () => { const result = columnResize({ columns: [ { id: 'x', computedWidth: 100 }, { id: 'name', computedWidth: 200, computedF...
the_stack
import { AdapterBase } from "./AdapterBase"; import { IBoard, ISpace, addEventToSpaceInternal } from "../boards"; import { animationfs } from "../fs/animationfs"; import { CostumeType, Space } from "../types"; import { createEventInstance } from "../events/events"; import { strings } from "../fs/strings"; import { arra...
the_stack
import { strict as assert } from "assert"; import net from "net"; import { NeovimClient, attach } from "neovim"; import { TextEditor, window, TextEditorCursorStyle, commands, Range, EndOfLine, Selection } from "vscode"; /** Modes mapping * n - normal * v - visual * i - insert * r - replace * c - cmdline_normal ...
the_stack
import type {Proto, ObserverType} from "@swim/util"; import {FastenerOwner, FastenerInit, FastenerClass, Fastener} from "../fastener/Fastener"; import {AnyComponent, ComponentFactory, Component} from "./Component"; /** @internal */ export type ComponentRelationType<F extends ComponentRelation<any, any>> = F extends ...
the_stack
import {Component, EventEmitter, Input, OnInit, Output, SimpleChanges} from '@angular/core'; import {BaseComponent} from "../../shared/components/base.component"; import {AuthenticationGuard} from "../../shared/guards/authentication.guard"; import {NotificationsService, NotificationType} from 'angular2-notifications'; ...
the_stack
module txt { export class CharacterText extends createjs.Container{ text:string = ""; lineHeight:number = null; width:number = 100; height:number = 20; align:number = txt.Align.TOP_LEFT; characterCase:number = txt.Case.NORMAL; size:number = 12; minSi...
the_stack
import { useState } from 'react'; import type { RcFile } from 'antd/lib/upload'; import { Select, message, Cascader, notification, Tooltip, Form } from 'antd'; import { DownloadOutlined, EditOutlined, QuestionCircleOutlined } from '@ant-design/icons'; import req from '@/api/request'; import Api from '@/api'; import Upl...
the_stack