text stringlengths 2.5k 6.39M | kind stringclasses 3
values |
|---|---|
namespace ts { // eslint-disable-line one-namespace-per-file
// should be used as tracing?.___
export let tracing: typeof tracingEnabled | undefined;
// enable the above using startTracing()
// `tracingEnabled` should never be used directly, only through the above
namespace tracingEnabled { /... | the_stack |
* @packageDocumentation
* @module csvviewer-extension
*/
import {
ILayoutRestorer,
JupyterFrontEnd,
JupyterFrontEndPlugin
} from '@jupyterlab/application';
import {
createToolbarFactory,
InputDialog,
IThemeManager,
IToolbarWidgetRegistry,
WidgetTracker
} from '@jupyterlab/apputils';
import {
CSVDel... | the_stack |
import { Component, OnInit, Inject } from '@angular/core';
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
import { ViewModel, TechniqueVM } from "../viewmodels.service";
import { ConfigService } from "../config.service";
import { Technique, DataService, Tactic, Matrix } from '../data.service'... | the_stack |
import {
GraphQLSchema,
isSpecifiedDirective,
isIntrospectionType,
isSpecifiedScalarType,
GraphQLNamedType,
GraphQLDirective,
isScalarType,
isObjectType,
isInterfaceType,
isUnionType,
isEnumType,
isInputObjectType,
GraphQLScalarType,
GraphQLObjectType,
GraphQLInterfaceType,
GraphQLUnionT... | the_stack |
import {
clone,
copy,
equal,
flatMerge,
generateId,
includesArray,
isAsyncFunction,
isFunction,
isJsonString,
isValidObject,
normalizeArray,
notEqual,
createArrayFromObject,
defineConfig,
} from '../../src';
import { LogMock } from '../../../core/tests/helper/logMock';
describe('Utils Tests... | the_stack |
import * as React from "react";
import {
IBasePickerStyles,
ITag,
} from "office-ui-fabric-react/lib/Pickers";
import {
Stack,
} from "office-ui-fabric-react/lib/Stack";
import {
Text,
} from "office-ui-fabric-react/lib/Text";
import {
TextField
} from "office-ui-fabric-react/lib/TextField";
import {
Defaul... | the_stack |
import chai, { expect } from 'chai';
import fs from 'fs-extra';
import * as path from 'path';
import Helper from '../../src/e2e-helper/e2e-helper';
import * as fixtures from '../../src/fixtures/fixtures';
import NpmCiRegistry, { supportNpmCiRegistryTesting } from '../npm-ci-registry';
chai.use(require('chai-fs'));
de... | the_stack |
import ArtistForAlbumContract from '@DataContracts/ArtistForAlbumContract';
import ReleaseEventContract from '@DataContracts/ReleaseEvents/ReleaseEventContract';
import SongContract from '@DataContracts/Song/SongContract';
import SongForEditContract from '@DataContracts/Song/SongForEditContract';
import TranslatedE... | the_stack |
import { CaretRightOutlined } from '@ant-design/icons'
import { t, Trans } from '@lingui/macro'
import { BigNumber } from '@ethersproject/bignumber'
import { Space } from 'antd'
import Modal from 'antd/lib/modal/Modal'
import CurrencySymbol from 'components/shared/CurrencySymbol'
import Loading from 'components/shared... | the_stack |
import * as pulumi from "@pulumi/pulumi";
import * as utilities from "../utilities";
/**
* Creates a job on Dataflow, which is an implementation of Apache Beam running on Google Compute Engine. For more information see
* the official documentation for
* [Beam](https://beam.apache.org) and [Dataflow](https://cloud.g... | the_stack |
import { AddressZero } from "@ethersproject/constants";
import { SignerWithAddress } from "@nomiclabs/hardhat-ethers/signers";
import { assert, expect } from "chai";
import { BigNumber, ethers } from "ethers";
import { MerkleTree } from "merkletreejs";
import { expectError, sdk, signers, storage } from "./before-setup"... | the_stack |
import '@aws-cdk/assert-internal/jest';
import { ABSENT } from '@aws-cdk/assert-internal';
import * as acm from '@aws-cdk/aws-certificatemanager';
import * as iam from '@aws-cdk/aws-iam';
import * as cdk from '@aws-cdk/core';
import * as appmesh from '../lib';
describe('virtual gateway', () => {
describe('When creat... | the_stack |
import { DataProvider } from '../ojdataprovider';
import { dvtBaseComponent, dvtBaseComponentEventMap, dvtBaseComponentSettableProperties } from '../ojdvt-base';
import { JetElement, JetSettableProperties, JetElementCustomEvent, JetSetPropertyType } from '..';
export interface ojTagCloud<K, D> extends dvtBaseComponent<... | the_stack |
import * as GObject from "@gi-types/gobject";
import * as GLib from "@gi-types/glib";
export const BINARY_AGE: number;
export const INTERFACE_AGE: number;
export const MAJOR_VERSION: number;
export const MICRO_VERSION: number;
export const MINOR_VERSION: number;
export const VERSION_MIN_REQUIRED: number;
export functi... | the_stack |
import {Utils as _, NumberSequence} from "../../utils";
import {RowNode} from "../../entities/rowNode";
import {Context, Autowired, PostConstruct, Qualifier} from "../../context/context";
import {EventService} from "../../eventService";
import {Events} from "../../events";
import {LoggerFactory, Logger} from "../../log... | the_stack |
import { cnst, flip, ident } from "../../../Data/Function"
import { fmap, fmapF } from "../../../Data/Functor"
import { over, set } from "../../../Data/Lens"
import { appendStr, countWith, filter, foldl, ifoldr, isList, List, map, notElem, notNull, subscript, subscriptF, sum } from "../../../Data/List"
import { any, bi... | the_stack |
import React, { useLayoutEffect, useState, useEffect } from 'react';
import { Image, Video, Placeholder } from 'cloudinary-react';
import { Route, Switch, BrowserRouter } from 'react-router-dom';
import {
Wrapper as ExtensionWrapper,
useUiExtensionDialog,
useUiExtension,
FieldExtensionType,
FieldExtensionFeat... | the_stack |
declare namespace WebAssembly {
interface Module { }
}
declare namespace Emscripten {
interface FileSystemType {
}
type EnvironmentType = "WEB" | "NODE" | "SHELL" | "WORKER";
type JSType = "number" | "string" | "array" | "boolean";
type TypeCompatibleWithC = number | string | any[] | boolean;
... | the_stack |
import { Test } from '@nestjs/testing';
import { Version, VersionManagerService } from './version-manager.service';
import { HttpService } from '@nestjs/common';
import { of } from 'rxjs';
import { mocked } from 'ts-jest/utils';
import { LOGGER } from '../constants';
import * as chalk from 'chalk';
import { ConfigServi... | the_stack |
import { act } from "react-dom/test-utils";
import { renderHook } from "@testing-library/react-hooks";
import { MockJSONServer, TestWrapper } from "@test";
import { useTable } from ".";
import { CrudFilters } from "src/interfaces";
const defaultPagination = {
pageSize: 10,
current: 1,
};
const customPaginat... | the_stack |
import { parse as parseQS, stringify as stringifyQS } from 'qs'
import { isError, isLoginPage } from '@/helper/judger'
import { notifyError, notifyWarning, RequireOnlyOne } from '@/helper/util'
import Vue, { VNode, VNodeData, VueConstructor } from 'vue'
import { emitDataAnalysisEvent } from '@/plugins/data-analysis'
im... | the_stack |
import aceEvent, { AceEvent } from "@wowts/ace_event-3.0";
import {
LuaArray,
LuaObj,
ipairs,
kpairs,
lualength,
pairs,
tonumber,
type,
wipe,
} from "@wowts/lua";
import { huge as INFINITY } from "@wowts/math";
import { find, len, lower, match, sub } from "@wowts/string";
import { co... | the_stack |
import { computed } from "@ember/object";
import { ComputedPropertyMarker } from "./-private/types";
/**
* A computed property transforms an objects function into a property.
* By default the function backing the computed property will only be called once and the result
* will be cached. You can specify various pro... | the_stack |
import { ChangeDetectorRef, Component, EventEmitter, Input, OnInit, Output, ViewChild } from '@angular/core';
import { FormBuilder } from '@angular/forms';
import { ActivatedRoute, Router } from '@angular/router';
import {
SFComponent,
SFRadioWidgetSchema,
SFDateWidgetSchema,
SFSliderWidgetSchema,
SFSelectWid... | the_stack |
import {
DebugSession, InitializedEvent, Thread, Scope, Source, OutputEvent,
TerminatedEvent, StoppedEvent, Breakpoint, BreakpointEvent, StackFrame,
} from "vscode-debugadapter";
import { DebugProtocol } from "vscode-debugprotocol/lib/debugProtocol";
import { window, Uri, WorkspaceFolder } from "vscode";
impor... | the_stack |
import tape from 'tape'
import { Account, Address, BN, MAX_INTEGER } from 'ethereumjs-util'
import { Block } from '@ethereumjs/block'
import Common, { Chain, Hardfork } from '@ethereumjs/common'
import { Transaction, TransactionFactory, FeeMarketEIP1559Transaction } from '@ethereumjs/tx'
import VM from '../../src'
impo... | the_stack |
import type { ReactiveController, ReactiveControllerHost } from 'lit';
import type {
ComponentDocument,
Data,
FetchMoreParams,
MaybeTDN,
MaybeVariables,
Variables,
} from '@apollo-elements/core/types';
import type {
ApolloError,
ApolloQueryResult,
DocumentNode,
ObservableQuery,
QueryOptions,
S... | the_stack |
export declare function jitsuClient(opts: JitsuOptions): JitsuClient
export type JitsuClient = {
/**
* Sends a third-party event (event intercepted from third-party system, such as analytics.js or GA). Should
* not be called directly
* @param typeName event name of event
* @param _3pData third-party payl... | the_stack |
import * as Models from "./Models"
export interface AccountChangePasswordResponse {
/**
* New token
*/
token: string,
/**
* New secret
*/
secret: string
}
export interface AccountGetActiveOffersResponse {
/**
* Total number
*/
count: number,
/**
*
*/... | the_stack |
import INTERNAL_PROPS from '../../processing/dom/internal-properties';
import * as sharedUrlUtils from '../../utils/url';
import * as destLocation from './destination-location';
import urlResolver from './url-resolver';
import settings from '../settings';
import { ResourceType } from '../../typings/url';
import globalC... | the_stack |
export namespace Numbers {
// Default Application
export interface Application {}
// Class
/**
* This file was automatically generated by json-schema-to-typescript.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and run json-schema-to-typescript to regenerate this file.
*/
... | the_stack |
import utils = require('../lib/utils');
import { Compiler } from '../actions/Compiler';
import FileUtil = require('../lib/FileUtil');
import path = require('path');
import ts = require("../lib/typescript-plus/lib/typescript");
const ANY = 'any';
declare var global: any;
class CompileEgretEngine implements egret.Comma... | the_stack |
import {
TSError,
isString,
isEmpty,
matchWildcard,
} from '@terascope/utils';
import * as p from 'xlucene-parser';
import * as i from '@terascope/types';
import { UtilsTranslateQueryOptions } from './interfaces';
type WildCardQueryResults =
i.WildcardQuery
| i.MultiMatchQuery
| i.QueryStri... | the_stack |
//@ts-check
///<reference path="devkit.d.ts" />
declare namespace LuckyStar {
namespace FormUser {
interface tab_SUMMARY_TAB_Sections {
onpremise_account_information: DevKit.Controls.Section;
online_account_information: DevKit.Controls.Section;
user_information: DevKit.Controls.Section;
SOCIAL_PANE_TAB:... | the_stack |
import * as ts from 'typescript'
import {resolve, relative} from 'path'
import {
existsSync,
readFileSync,
readdirSync,
writeFileSync,
watchFile,
} from 'fs'
import {JsonOutput} from './types'
import {jsonOutputToAnnotatedFile} from './generateFile'
const WATCH_CHANGES = true
const WATCH_GENERATED = true
co... | the_stack |
// ====================================================
// GraphQL fragment: ChannelContentsConnectable
// ====================================================
export interface ChannelContentsConnectable_Attachment_user {
__typename: "User";
id: number;
name: string;
}
export interface ChannelContentsConnectabl... | the_stack |
import { expect, test } from '@jest/globals';
import { stringifyResolvedType, stringifyShortResolvedType, stringifyType, Type } from '../src/reflection/type';
import { reflect, typeOf } from '../src/reflection/reflection';
import { deserializeType, serializeType } from '../src/type-serialization';
test('stringifyType ... | the_stack |
import { Expr, JsonExpr } from "./Expr";
import { InterpolatedPropertyDefinition } from "./InterpolatedPropertyDefs";
import {
BaseTechniqueParams,
BasicExtrudedLineTechniqueParams,
ExtrudedPolygonTechniqueParams,
FillTechniqueParams,
isTextureBuffer,
LineTechniqueParams,
MarkerTechniquePara... | the_stack |
import {bind, each, indexOf, curry, extend, normalizeCssArray, isFunction} from 'zrender/src/core/util';
import * as graphic from '../../util/graphic';
import {getECData} from '../../util/innerStore';
import {
isHighDownDispatcher,
setAsHighDownDispatcher,
setDefaultStateProxy,
enableHoverFocus,
Z2_... | the_stack |
import fs from "fs";
import * as _ from "lodash";
import { Stores } from "../../schema/stores";
import { Params } from "../../server/params";
import { ReplicatedError } from "../../server/errors";
import { Context } from "../../context";
import {
Exec,
KubeConfig,
AppsV1Api,
CoreV1Api,
V1beta1Eviction,
V1No... | the_stack |
import { expect } from "chai";
import * as faker from "faker";
import { enablePatches } from "immer";
import * as sinon from "sinon";
import { IModelConnection, SnapshotConnection } from "@itwin/core-frontend";
import { ChildNodeSpecificationTypes, RuleTypes } from "@itwin/presentation-common";
import { IPresentationTr... | the_stack |
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { Services } from "../operationsInterfaces";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
import { SearchManagementClient } from "../searchManage... | the_stack |
import { Resource, StoredProcedureDefinition, TriggerDefinition, UserDefinedFunctionDefinition } from "@azure/cosmos";
import * as ko from "knockout";
import * as _ from "underscore";
import * as Constants from "../../Common/Constants";
import { bulkCreateDocument } from "../../Common/dataAccess/bulkCreateDocument";
im... | the_stack |
import * as React from "react"
import Typography from "@material-ui/core/Typography"
import TextField from "@material-ui/core/TextField"
import Table from "@material-ui/core/Table"
import TableBody from "@material-ui/core/TableBody"
import TableCell from "@material-ui/core/TableCell"
import TableHead from "@material-ui... | the_stack |
import AutoLayout from '@lume/autolayout/es/AutoLayout.js'
import {attribute, autorun, element} from '@lume/element'
import {emits} from '@lume/eventful'
import {Node, NodeAttributes} from '../core/Node.js'
import {Motor} from '../core/Motor.js'
import {autoDefineElements} from '../LumeConfig.js'
import type {XYZParti... | the_stack |
import {
generatePrivateKey,
getAddressFromPrivateKey,
getPubkeyFromPrivateKey,
// toChecksumAddress,
encrypt,
decrypt,
EncryptOptions,
Keystore,
Signature,
getAddress,
} from '@harmony-js/crypto';
import {
isPrivateKey,
add0xToString,
hexToNumber,
AddressSuffix,
ChainType,
} from '@harmo... | the_stack |
import { VDomModel, VDomRenderer } from '@jupyterlab/apputils';
import { CodeEditor } from '@jupyterlab/codeeditor';
import { IDocumentWidget } from '@jupyterlab/docregistry';
import { TranslationBundle } from '@jupyterlab/translation';
import { caretDownIcon, caretUpIcon } from '@jupyterlab/ui-components';
import type... | the_stack |
import React, { useState, useEffect, useMemo } from 'react'
import {
Checkbox,
CircularProgress,
FormControl,
FormControlLabel,
Grid,
IconButton,
Link,
Tooltip,
Typography,
makeStyles,
} from '@material-ui/core'
import { DataGrid, GridCellParams } from '@mui/x-data-grid'
import {
ToggleButtonGroup... | the_stack |
import { ChangeDetectorRef, Component, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { FormControl, FormGroup, FormsModule, ReactiveFormsModule } from '@angular/forms';
import { ComponentFixture, fakeAsync, inject, TestBed, tick, } from '@angular/core/testing';
import { By } from '@angular/platform-browser';
im... | the_stack |
import * as THREE from 'three'
import React, { useEffect, useRef, useContext }from 'react'
import * as d3 from 'd3';
import * as _ from 'underscore';
import SideBar from './sidebar';
import {StoreContext} from '../../../store';
const width = window.innerWidth;
const height = window.innerHeight;
const vizWidth = width;... | the_stack |
'use strict';
import { EventEmitter } from 'events';
import machina = require('machina');
import { errors, endpoint, AuthenticationProvider } from 'azure-iot-common';
import { Amqp as BaseAmqpClient, AmqpMessage, SenderLink, ReceiverLink, AmqpTransportError, getErrorName } from 'azure-iot-amqp-base';
import { TwinPro... | the_stack |
import { AbstractLayout } from '@antv/g6-core';
import { Layout } from '../../layout';
import { LayoutWorker } from '../../layout/worker/layout.worker';
import { LAYOUT_MESSAGE } from '../../layout/worker/layoutConst';
import { gpuDetector } from '../../util/gpu';
import { mix, clone } from '@antv/util';
import { IGra... | the_stack |
import { Injectable, EventEmitter } from '@angular/core';
import { Observable, throwError, of, from } from 'rxjs';
import { map, catchError, switchMap, tap } from 'rxjs/operators';
import * as osmAuth from 'osm-auth';
import { HttpClient, HttpHeaders } from '@angular/common/http';
import { Storage } from '@ion... | the_stack |
import {
EventHandler,
FocusEvent,
KeyboardEvent as ReactKeyboardEvent,
MouseEvent as ReactMouseEvent,
SyntheticEvent,
useEffect,
useRef,
useState,
} from "react";
import { isButton } from "ariakit-utils/dom";
import {
addGlobalEventListener,
isFocusEventOutside,
isPortalEvent,
isSelfTarget,
q... | the_stack |
import * as coreHttp from "@azure/core-http";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
import { StorageClientContext } from "../storageClientContext";
import {
DirectoryCreateOptionalParams,
DirectoryCreateResponse,
DirectoryGetPropertiesOptionalParams,
D... | the_stack |
import { Doc, doc, FastPath, ParserOptions, Printer } from "prettier";
import { format, inspect } from "util";
import RESERVED_WORDS from "./reservedWords";
import { getNodeKey, isNodeKey } from "./util";
// Cheap lodash ;)
const _ = {
keys: Object.keys.bind(Object),
identity: <T>(val: T): T => val,
isArray: Ar... | the_stack |
import {
resolve
} from "https://deno.land/std/path/mod.ts";
const CLOCKID_REALTIME = 0;
const CLOCKID_MONOTONIC = 1;
const CLOCKID_PROCESS_CPUTIME_ID = 2;
const CLOCKID_THREAD_CPUTIME_ID = 3;
const ERRNO_SUCCESS ... | the_stack |
'use strict';
import * as React from 'react';
import { connect } from 'react-redux';
import { IStateGlobal } from 'chord/workbench/api/common/state/stateGlobal';
import { makeListKey } from 'chord/platform/utils/common/keys';
import { ORIGIN } from 'chord/music/common/origin';
import { IArtist } from 'chord/music/... | the_stack |
import {
AstroTime, Body, Observer,
GeoVector, EquatorFromVector, Constellation, ConstellationInfo,
PairLongitude,
SearchHourAngle,
SearchLocalSolarEclipse, NextLocalSolarEclipse, LocalSolarEclipseInfo,
SearchLunarApsis, NextLunarApsis, Apsis,
SearchLunarEclipse, NextLunarEclipse, LunarEclip... | the_stack |
import { configureTestSuite } from '../../test-utils/configure-suite';
import { TestBed, waitForAsync } from '@angular/core/testing';
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
import { IgxHierarchicalGridModule } from './public_api';
import { Component, ViewChild, DebugElement} from '... | the_stack |
import { Component, EventEmitter, Input, OnDestroy, OnInit, Output } from '@angular/core';
import {
Observable,
of as observableOf,
combineLatest as observableCombineLatest,
Subscription,
BehaviorSubject
} from 'rxjs';
import { filter, map, take } from 'rxjs/operators';
import {
DynamicDatePickerModel,
D... | the_stack |
import { Observable, ReplaySubject } from 'rxjs';
import { vec2, vec4 } from 'gl-matrix';
import { assert, logIf, LogLevel } from './auxiliaries';
import { clamp, v2 } from './gl-matrix-extensions';
import { ChangeLookup } from './changelookup';
import { Context } from './context';
import { Controllable } from './co... | the_stack |
import type {ComponentType} from './component';
import type {Entity} from './entity';
import type {System} from './system';
interface Waitable<T> {
markAwaited?(): void;
isReady(): boolean;
cancel?(): void;
value?: T;
error?: Error | undefined;
}
/**
* An exception thrown by coroutines when they've been c... | the_stack |
import * as validators from '../../validate/validators';
import { validatorFactory } from './factory';
// MARK: Custom
export const passed = function (options?: any) {
return validatorFactory(validators.passed, [], {
message: '$field must be passed!',
...options,
});
};
export const Passed = passed;
//... | the_stack |
import * as vscode from "vscode";
import axios from "axios";
import { writeFile, unlink } from "fs";
import { UserDataFolder } from "../common/UserDataFolder";
import {
RestyaBoard,
RestyaboardList,
RestyaboardCard,
RestyaboardChecklist,
RestyaboardActionComment,
CheckItem,
RestyaboardMember,
Restyaboa... | the_stack |
export declare type Arrayish = string | ArrayLike<number>;
export declare abstract class BigNumber {
abstract fromTwos(value: number): BigNumber;
abstract toTwos(value: number): BigNumber;
abstract add(other: BigNumberish): BigNumber;
abstract sub(other: BigNumberish): BigNumber;
abstract div(other:... | the_stack |
module Kiwi.Files {
/**
* Base class which handles the loading of an external data file an xhr.
* TextureFile, AudioFile contain fallback loading via tags and all extended Files contain methods for processing the files.
*
* Also can contain information about the file (like file size, last modified, e.t.c.)
* Us... | the_stack |
import * as THREE from "three";
import View3DError from "~/View3DError";
import {
getCanvas,
range,
toRadian,
clamp,
findIndex,
getElement,
mix,
circulate,
merge,
getBoxPoints,
toPowerOfTwo,
} from "~/utils";
import * as ERROR from "~/consts/error";
import { cleanup, createSandbox } from "./test-u... | the_stack |
import { jest, describe, it, expect } from "@jest/globals";
import { dataset } from "@rdfjs/dataset";
import * as fc from "fast-check";
import { DataFactory } from "n3";
import * as RdfJs from "@rdfjs/types";
import {
serializeBoolean,
serializeDatetime,
serializeDecimal,
serializeInteger,
xmlSchemaTypes,
} f... | the_stack |
import * as Common from '../../../../core/common/common.js';
import * as Platform from '../../../../core/platform/platform.js';
import * as TextUtils from '../../../../models/text_utils/text_utils.js';
import * as UI from '../../legacy.js';
import type {CodeMirrorTextEditor} from './CodeMirrorTextEditor.js';
export c... | the_stack |
import React from 'react';
import sortBy from 'lodash/sortBy';
import findIndex from 'lodash/findIndex';
import partition from 'lodash/partition';
import reverse from 'lodash/reverse';
import isNumber from 'lodash/isNumber';
import {
Wrapper,
Footer,
HeaderContainer,
CompareHeader,
NumberOfLocationsText,
} fr... | the_stack |
import { Component, AfterViewInit, ViewChild, DoCheck, Input, ComponentFactoryResolver, OnDestroy } from "@angular/core";
import { TranslateService } from "@ngx-translate/core";
import { IdpService } from "../idp-service.service";
import { IdprestapiService } from "../idprestapi.service";
import { Router } from "@angul... | the_stack |
import {expectTranslate} from './test_support';
// TODO(jacobr): merge these tests back in with the other tests. These tests are
// only separate because we expected at one point to integrate with TS2Dart
// instead of refactoring TS2Dart to only output facades.
describe('variables', () => {
it('should print variabl... | the_stack |
module Kiwi.Time {
/**
* The Timer class hooks into a game Clock and allows you run code at a specified point in game time.
* Use the start() method to start a timer. Add TimerEvents to set-up code to be run on the timer interval.
* Timer objects can run once or repeat at specified intervals to execute code on a s... | the_stack |
import StatsManager, {lumaStats} from '../utils/stats-manager';
import {log} from '../utils/log';
import {uid} from '../utils/utils';
import {TextureFormat} from './types/texture-formats';
import type {default as CanvasContext, CanvasContextProps} from './canvas-context';
import type {BufferProps} from './resources/buf... | the_stack |
import * as vscode from 'vscode';
import * as parser from 'web-tree-sitter';
import * as jsonc from 'jsonc-parser';
import * as fs from 'fs';
import * as path from 'path';
// Grammar class
const parserPromise = parser.init();
class Grammar {
// Parser
readonly lang: string;
parser: parser;
// Grammar
... | the_stack |
import { EntityMgr, Entity } from "./ECS/entityMgr";
import { Accessor, Mesh } from "./mesh/mesh";
import { Texture } from "./texture";
import { Material, RenderQueue } from "./material/material";
import { vec3, vec4, mat4 } from "./math";
import { TransformSystem, Transform } from "./transform";
import { Skin } from "... | the_stack |
import tape from 'tape'
import td from 'testdouble'
import Common, { Chain as CommonChain, Hardfork } from '@ethereumjs/common'
import { FeeMarketEIP1559Transaction, Transaction } from '@ethereumjs/tx'
import { Block, BlockHeader } from '@ethereumjs/block'
import { DefaultStateManager, StateManager } from '@ethereumjs/... | the_stack |
import * as msRest from "@azure/ms-rest-js";
import * as Models from "../models";
import * as Mappers from "../models/filesMappers";
import * as Parameters from "../models/parameters";
import { DataMigrationServiceClientContext } from "../dataMigrationServiceClientContext";
/** Class representing a Files. */
export cl... | the_stack |
import {
AfterContentInit, ChangeDetectorRef, Component, ContentChildren, ElementRef, EventEmitter, HostListener, Input,
OnInit, Output, QueryList,
} from '@angular/core';
import { CommonDataService } from '../../services/data/common.data.service';
import { DeviceQueryService } from '../../services/device/device.qu... | the_stack |
import _debug from "debug";
import { uniqBy, some, has, transform } from "lodash";
import { AliasHierarchyVisitor } from "./AliasHierarchyVisitor";
import { MappedDataSource } from "./MappedDataSource";
import { DataSourceMapping } from "./DataSourceMapping";
import { MappedField } from "./MappedField";
import { Mappe... | the_stack |
import * as csstips from 'csstips';
// tslint:disable-next-line:enforce-name-casing
import * as React from 'react';
import {stylesheet} from 'typestyle';
import BreadCrumb from '@material-ui/core/Breadcrumbs';
import InputLabel from '@material-ui/core/InputLabel';
import MenuItem from '@material-ui/core/MenuItem';
imp... | the_stack |
import { GlobalProps } from 'ojs/ojvcomponent';
import { ComponentChildren } from 'preact';
import { baseComponent, baseComponentEventMap, baseComponentSettableProperties, JetElementCustomEvent, JetSetPropertyType } from '..';
export interface ojButton<SP extends ojButtonSettableProperties = ojButtonSettableProperties>... | the_stack |
import * as webidl from "webidl2"
import { StringCompiler } from "./stringcompiler";
import * as fs from "fs"
import { O_NOCTTY } from "constants";
import { maxHeaderSize } from "http";
export enum BinderMode {
WEBIDL_NONE = -1,
WEBIDL_LUA = 0,
WEBIDL_CPP = 1,
}
export class SemanticError extends Error {
... | the_stack |
import {
ClientDocumentSnapshot,
IFieldValue,
} from "@/types/ClientDocumentSnapshot";
import { getParentPath, newId, prettifyPath } from "@/utils/common";
import {
deserializeDocumentSnapshotArray,
serializeQuerySnapshot,
} from "firestore-serializers";
import firebase from "firebase/app";
import { differenceB... | the_stack |
import 'mocha';
import { strictEqual } from 'assert';
const { format } = require('assertion-error-formatter'); // eslint-disable-line @typescript-eslint/no-var-requires
import { AssertionError } from '../../src/errors';
import { ErrorSerialiser, parse } from '../../src/io';
import { expect } from '../expect';
des... | the_stack |
import type { Color as MuiColorShades } from '@material-ui/core';
import type { PartialDeep, Merge } from 'type-fest'
declare global {
type BreakpointName = "xs"|"sm"|"md"|"lg"|"xl"|"tiny"
type ColorString = string;
type ThemeGreyscale = MuiColorShades & {
0: ColorString,
1000: ColorString,
1... | the_stack |
import bezierEasing from 'bezier-easing'
import { Keyframe, KeyframeValueTypes } from '../Entity'
import ColorRGB from '../Values/ColorRGB'
import ColorRGBA from '../Values/ColorRGBA'
import { AnyParameterTypeDescriptor, TypeDescriptor } from '../PluginSupport/TypeDescriptor'
import { AssetPointer } from '../Values'
... | the_stack |
module android.widget {
import R = android.R;
import Resources = android.content.res.Resources;
import Context = android.content.Context;
import PixelFormat = android.graphics.PixelFormat;
import Rect = android.graphics.Rect;
import Drawable = android.graphics.drawable.Drawable;
import StateListDrawable = android.graph... | the_stack |
import * as fs from "fs";
import * as path from "path";
import { Client } from "ssh2";
import { SocksClient, SocksClientOptions } from "./socks/client/socksclient";
import { Reader, ProgressFunc, IMountList, ProgressResult } from "../../common/Reader";
import { File } from "../../common/File";
import { Logger } from ".... | the_stack |
import {Constants} from "../../scripts/constants";
import {TooltipType} from "../../scripts/clipperUI/tooltipType";
import {TooltipHelper} from "../../scripts/extensions/tooltipHelper";
import {Storage} from "../../scripts/storage/storage";
import {ClipperStorageKeys} from "../../scripts/storage/clipperStorageKeys";... | the_stack |
import { ensurePercent, formatPercent, parseCSSFunction, cssFunction, formatFloat, toFloat } from './utils/formatting';
import { roundFloat, round } from './utils/math';
import { StringType } from './types';
import { ColorProperty } from 'csstype';
const RGB = 'rgb', HSL = 'hsl';
const converters = {
[RGB + HSL]:... | the_stack |
export interface ExpressionBuilder {
e: NewExpression
}
type TypeExpressionMap = {
new: NewExpression
unknown: UnknownExpression
boolean: BooleanExpression
number: NumberExpression
string: StringExpression
array: ArrayExpression
json: JSONExpression
row: RowExpression
table: TableExpression
}
type ... | the_stack |
import * as gregor1 from '../gregor1';
export declare type HasServerKeysRes = {
hasServerKeys: boolean;
};
export declare type APIRes = {
status: string;
body: string;
httpStatus: number;
appStatus: string;
};
export declare enum MobileAppState {
FOREGROUND = "foreground",
BACKGROUND = "back... | the_stack |
import { coerceBooleanProperty } from '@angular/cdk/coercion';
import { DOWN_ARROW, ENTER, ESCAPE, TAB, UP_ARROW } from '@angular/cdk/keycodes';
import {
FlexibleConnectedPositionStrategy,
Overlay,
OverlayConfig,
OverlayRef,
ViewportRuler,
} from '@angular/cdk/overlay';
import { TemplatePortal } fro... | the_stack |
import * as React from 'react';
import { FormGroup } from '@patternfly/react-core';
import { configure, render, waitFor } from '@testing-library/react';
import { Formik, FormikConfig } from 'formik';
import * as _ from 'lodash';
import { Provider } from 'react-redux';
import store from '@console/internal/redux';
import... | the_stack |
import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js";
import * as msRest from "@azure/ms-rest-js";
export { BaseResource, CloudError };
/**
* Specifications of the Dimension of metrics.
*/
export interface Dimension {
/**
* The public facing name of the dimension.
*/... | the_stack |
import {IHaikuComponent} from './api';
import HaikuBase, {GLOBAL_LISTENER_KEY} from './HaikuBase';
import getActionsMaxTime from './helpers/getActionsMaxTime';
import getTimelineMaxTime from './helpers/getTimelineMaxTime';
import {isNumeric, tokenizeDirective} from './reflection/Tokenizer';
import assign from './vendor... | the_stack |
import { BitField } from '@typings/src/BitField';
import { Constants } from '@typings/src/Constants';
import { DataStructure } from '@typings/typings/DataStructure';
import EmojiData from 'src/Content/Util/Emoji.json';
import twemoji from 'twemoji';
import { Logger } from 'src/Logger';
import { Twitch } from 'src/Sites... | the_stack |
function Lazy<T, TArgs extends unknown[]>(fn: (...args: TArgs) => T)
{
let evaluated: T | null = null;
return (...a: TArgs) => (evaluated ??= fn(...a));
}
var Util = (() => Lazy(() =>
{
const { HasQueryKey, GetQueryValue, GetAllQueryValues } = Query();
let isDarkMode = (() =>
{
// check if... | the_stack |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.