text stringlengths 2.5k 6.39M | kind stringclasses 3
values |
|---|---|
import { expect } from 'chai';
import { testImmutableClass } from 'immutable-class-tester';
import { $, Expression } from 'plywood';
import { MANIFESTS } from "../../manifests/index";
import { Essence, EssenceJS, VisStrategy } from './essence';
import { DataCube, Introspection } from "../data-cube/data-cube";
import {... | the_stack |
import * as assert from 'assert';
import * as nock from 'nock';
import {describe, it, afterEach} from 'mocha';
import {Impersonated, JWT} from '../src';
import {CredentialRequest} from '../src/auth/credentials';
const PEM_PATH = './test/fixtures/private.pem';
nock.disableNetConnect();
const url = 'http://example.com... | the_stack |
import { copyFileSync, existsSync, mkdirSync, writeFileSync } from 'fs'
import { copy } from 'fs-extra'
import { copyFile } from 'fs/promises'
import { dump } from 'js-yaml'
import { Argv } from 'yargs'
import { $, cd, nothrow } from 'zx'
import { DEPLOYMENT_PASSWORDS_SECRET } from '../common/constants'
import { decryp... | the_stack |
'use strict';
import { GenericOAuth2Router } from '../common/generic-router';
import { AuthRequest, EndpointDefinition, AuthResponse, IdentityProvider, IdpOptions, SamlIdpConfig, CheckRefreshDecision, SamlAuthResponse, ErrorLink } from '../common/types';
import { OidcProfile, Callback, WickedApi } from 'wicked-sdk';
c... | the_stack |
import {
ProviderAttribute,
ProviderReadNotifyAttribute,
ProviderReadWriteNotifyAttribute
} from "../../provider/ProviderAttribute";
/*eslint no-use-before-define: "off", no-useless-concat: "off"*/
import SubscriptionQos from "../../proxy/SubscriptionQos";
import PeriodicSubscriptionQos from "../../proxy/Pe... | the_stack |
module txt {
export class Text 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;
font:string = ... | the_stack |
import { packedValue, EncodingType, FormatType } from "./custom_types";
/**
* Return type for all the *2packed functions
*/
const b64Tab = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
const arraybuffer_error = "ARRAYBUFFER not supported by this environment";
const uint8array_error = "UINT8ARRA... | the_stack |
import * as t from 'io-ts';
import { RTTI_id } from '../Scalar/RTTI_id';
import { RTTI_Meta, IMeta } from './RTTI_Meta';
import { RTTI_uri } from '../Scalar/RTTI_uri';
import { RTTI_Element, IElement } from './RTTI_Element';
import { RTTI_code } from '../Scalar/RTTI_code';
import { RTTI_Narrative, INarrative } from './... | the_stack |
import IPython = require('base/js/namespace');
import $ = require('jquery');
import gapiutils = require('./gapiutils');
import pickerutils = require('./pickerutils');
import iface = require('content-interface');
import Path = iface.Path
export var FOLDER_MIME_TYPE = 'application/vnd.google-apps.folder';
expo... | the_stack |
//@ts-check
///<reference path="devkit.d.ts" />
declare namespace DevKit {
namespace FormCustomer_Asset {
interface tab__B3F36061_1F16_4BBB_BD74_44FAC42C9094_Sections {
_216040C1_499B_4120_8175_2EFB7536E940: DevKit.Controls.Section;
_576663BB_EA91_486D_8F88_DA4CD98DF0EB: DevKit.Controls.Section;
_B3F36061_... | the_stack |
import * as fs from 'fs';
import * as SZIP from 'node-stream-zip';
import got = require('got');
import HTTPService from '../HttpService';
import BungieResource from './BungieResoure';
import { ServerResponse } from '../type-definitions/common';
import {
BungieMembershipType,
DestinyCharacterResponse,
DestinyAct... | the_stack |
import { Functor } from "@siteimprove/alfa-functor";
import { Serializable } from "@siteimprove/alfa-json";
import { Mapper } from "@siteimprove/alfa-mapper";
import { Option, None } from "@siteimprove/alfa-option";
import { Parser } from "@siteimprove/alfa-parser";
import { Predicate } from "@siteimprove/alfa-predicat... | the_stack |
import React, { Component, useEffect, useState } from "react";
import memoize from "memoize-one";
import "./DataPreviewMap.scss";
import DataPreviewMapOpenInNationalMapButton from "./DataPreviewMapOpenInNationalMapButton";
import {
config,
DATASETS_BUCKET,
RawPreviewMapFormatPerferenceItem
} from "config";
... | the_stack |
declare const describe: any;
declare const it: any;
declare const expect: any;
import * as Immutable from "immutable";
import { event, Event, timeEvent } from "../src/event";
import { avg, sum } from "../src/functions";
import { index } from "../src/index";
import { time } from "../src/time";
import { timerange } fro... | the_stack |
import { DebugFlags } from '../debug';
import { EncodedTokenAttributes, OptionalStandardTokenType, StandardTokenType, toOptionalTokenType } from '../encodedTokenAttributes';
import { IEmbeddedLanguagesMap, IGrammar, IToken, ITokenizeLineResult, ITokenizeLineResult2, ITokenTypeMap, StateStack as StackElementDef } from '... | the_stack |
async function GithubStats(username: string): Promise<GithubStats> {
const GITHUB_API_URL = 'https://api.github.com';
const LanguageColorMap: {[key in DefinedLanguage]: string } = {
'1C Enterprise': '#814CCC',
ABAP: '#E8274B',
ActionScript: '#882B0F',
Ada: '#02f88c',
Agd... | the_stack |
import {inject} from 'aurelia-dependency-injection';
import {EventAggregator, Subscription} from 'aurelia-event-aggregator';
import {bindable, computedFrom} from 'aurelia-framework';
import {IModdleElement, IShape} from '@process-engine/bpmn-elements_contracts';
import * as bundle from '@process-engine/bpmn-js-custom-... | the_stack |
import {
IConnection,
Diagnostic,
DiagnosticSeverity,
TextDocuments,
ErrorMessageTracker,
DidChangeConfigurationParams
} from "vscode-languageserver";
import { TextDocument } from 'vscode-languageserver-textdocument';
import { URI } from 'vscode-uri';
import * as path from 'path';
let stripJsonComments: any =... | the_stack |
import type * as appsync from '@aws-cdk/aws-appsync';
import { isOptional, Meta, Shape, ShapeGuards, timestamp, UnionShape } from '@punchcard/shape';
import { UserPool } from '../../cognito/user-pool';
import { Build } from '../../core/build';
import { CDK } from '../../core/cdk';
import { Construct, Scope } from '../... | the_stack |
import test from 'ava';
import {JsonView} from '../src/decorators/JsonView';
import {ObjectMapper} from '../src/databind/ObjectMapper';
import {JsonProperty} from '../src/decorators/JsonProperty';
import {JsonGetter} from '../src/decorators/JsonGetter';
import {JsonSetter} from '../src/decorators/JsonSetter';
import {J... | the_stack |
import { ChildProcess, exec } from 'child_process';
import * as FS from 'fs';
import getPort from 'get-port';
import * as Path from 'path';
import vscode from 'vscode';
import { getWebviewContent } from './getWebviewContent';
interface ViteProcess {
port: number;
output: vscode.OutputChannel;
instance: ChildProc... | the_stack |
import * as lodash from 'lodash';
import { IWebPartContext } from '@microsoft/sp-webpart-base';
import { ICRManagementDataProvider } from './ICRManagementDataProvider';
import { IMyChangeRequestItem, IChangeDiscussionItem, Constants, IPerson } from '../../../libraries/index';
import { IChangeRequestManagementItem, CRMT... | the_stack |
import {FloppyDisk, SectorData, Side} from "trs80-base";
import {SimpleEventDispatcher} from "strongly-typed-events";
import {Machine} from "./Machine.js";
import {toHexByte} from "z80-base";
import {EventType} from "./EventScheduler.js";
// Enable debug logging.
const DEBUG_LOG = false;
// Whether this controller su... | the_stack |
import * as chaiAsPromised from "chai-as-promised";
import * as chai from "chai";
chai.use(chaiAsPromised);
import { expect } from "chai";
import {
AlreadyHaveReaderError,
Stream,
Transform,
WriteAfterEndError,
} from "../lib/index";
import "./mocha-init";
import {
defer,
delay,
settle,
swallowErrors,
track... | the_stack |
import 'vs/css!./notebookOutline';
import { Codicon } from 'vs/base/common/codicons';
import { Emitter, Event } from 'vs/base/common/event';
import { combinedDisposable, IDisposable, Disposable, DisposableStore, MutableDisposable, toDisposable } from 'vs/base/common/lifecycle';
import { IThemeService, ThemeIcon } from ... | the_stack |
import {log} from '../console/log';
const UNWALKABLE = -10;
const RANGE_MODIFIER = 1; // this parameter sets the scaling of weights to prefer walls closer protection bounds
const RANGE_PADDING = 3; // max range to reduce weighting; RANGE_MODIFIER * RANGE_PADDING must be < PROTECTED
const NORMAL = 0;
const PROTECTED = ... | the_stack |
import { FocusTrap, FocusTrapFactory } from '@angular/cdk/a11y';
import { Direction, Directionality } from '@angular/cdk/bidi';
import { ESCAPE } from '@angular/cdk/keycodes';
import { Overlay, OverlayConfig, OverlayKeyboardDispatcher, OverlayRef } from '@angular/cdk/overlay';
import { CdkPortalOutlet, ComponentPortal,... | the_stack |
import {TSNE} from './bh_tsne';
import * as knn from './knn';
import * as scatterPlot from './scatterPlot';
import {shuffle, getSearchPredicate, runAsyncTask} from './util';
import * as logging from './logging';
import * as vector from './vector';
import {SpriteMetadata} from './data-provider';
export type DistanceFun... | the_stack |
import {AttributeMetadata} from './../metadata/attribute-metadata';
import {
DynamoEntityIndexesSchema,
DynamoEntityIndexSchema,
} from './../metadata/entity-metadata';
import {
EntityTarget,
Table,
SparseIndexParseError,
CONSUMED_CAPACITY_TYPE,
InvalidDynamicUpdateAttributeValueError,
} from '@typedorm/c... | the_stack |
import { trace } from '../common/trace';
import { services } from '../common/coreservices';
import { stringify } from '../common/strings';
import { map, find, extend, mergeR, tail, omit, arrayTuples, unnestR, identity, anyTrueR } from '../common/common';
import { isObject, isUndefined } from '../common/predicates';
imp... | the_stack |
import { Octokit } from "@octokit/rest";
import { RequestRequestOptions } from "@octokit/types";
import * as createHttpsProxyAgent from "https-proxy-agent";
import pick = require("lodash.pick");
import { CONFIGURATION_KEY, CONFIGURATION_POKA_YOKE_THRESHOLD } from "../constants";
import { createError } from "../utils/e... | the_stack |
const models = require('../../../../../db/mysqldb/index')
import moment from 'moment'
const { resClientJson } = require('../../../utils/resData')
const Op = require('sequelize').Op
const cheerio = require('cheerio')
const clientWhere = require('../../../utils/clientWhere')
const xss = require('xss')
const config = requ... | the_stack |
import { orientationSupport } from '@src/common/constants'
import Shape from '@src/common/shape'
import { IElement, Options } from '@src/types/particle'
import { ValueOf } from '@src/types/utility-types'
import {
calcQuantity,
isElement,
isNull,
offset,
pInt,
randomInRange,
randomSpeed,
} from '@src/utils... | the_stack |
import { isSafari } from '@antv/g-webgpu-core';
import { Camera } from '@antv/g-webgpu';
import { WebGPUEngine } from '@antv/g-webgpu-engine';
import * as WebGPUConstants from '@webgpu/types/dist/constants';
import { mat4, vec3 } from 'gl-matrix';
import { InteractionSystem } from './interaction';
import { Mesh } from ... | the_stack |
/// <reference types="node" />
// See Karma public API https://karma-runner.github.io/latest/dev/public-api.html
import Promise = require('bluebird');
import https = require('https');
import { Appender } from 'log4js';
import { EventEmitter } from 'events';
import * as constants from './lib/constants';
import { VERSIO... | the_stack |
import { BlockCiper, BlockCiperOperation } from "./block_ciper_operator.ts";
import type { BlockCiperConfig } from "./common.ts";
import type { AESBase } from "./aes_base.ts";
// deno-fmt-ignore
const SBOX: number[] = [
0x63,
0x7c,
0x77,
0x7b,
0xf2,
0x6b,
0x6f,
0xc5,
0x30,
0x01,
0x67,
0x2b,
0... | the_stack |
import {
CommandClasses,
getCCName,
Maybe,
MessageOrCCLogEntry,
MessageRecord,
parseCCId,
validatePayload,
ValueID,
ZWaveError,
ZWaveErrorCodes,
} from "@zwave-js/core";
import { cpp2js, getEnumMemberName, num2hex } from "@zwave-js/shared";
import type { Driver } from "../driver/Driver";
import { MessagePrior... | the_stack |
import * as dom from 'vs/base/browser/dom';
import { IMouseEvent } from 'vs/base/browser/mouseEvent';
import { Orientation } from 'vs/base/browser/ui/sash/sash';
import { Sizing, SplitView } from 'vs/base/browser/ui/splitview/splitview';
import { Color } from 'vs/base/common/color';
import { Emitter, Event } from 'vs/b... | the_stack |
import * as BigQuery from "@google-cloud/bigquery";
import * as async from "async";
export class BigQueryStore {
public projectId: string;
public dataSetId: string;
public revisionsTable: string;
public revertedTable: string;
public cronLogs: string;
public bigquery: any;
constructor(conf... | the_stack |
import { CollectionDivider, CollectionItem, CollectionNode, CollectionSection, NodeType, useCollection, useScrollableCollection } from "../../collection";
import { ComponentProps, KeyboardEvent, ReactNode, SyntheticEvent, forwardRef } from "react";
import {
InternalProps,
Keys,
OmitInternalProps,
Styled... | the_stack |
import { DocumentRegistry } from '@jupyterlab/docregistry';
import { YDocument, MapChange } from '@jupyterlab/shared-models';
import { IModelDB, ModelDB } from '@jupyterlab/observables';
import { IChangedArgs } from '@jupyterlab/coreutils';
import { PartialJSONObject } from '@lumino/coreutils';
import { ISignal, S... | the_stack |
import Point from '../point/Point';
import Circle from '../circle/Circle';
import Line from '../line/Line';
import { Vector2Like } from '../types';
/**
* A triangle is a plane created by connecting three points.
* The first two arguments specify the first point, the middle two arguments
* specify the second point, ... | the_stack |
// clang-format off
import {webUIListenerCallback} from 'chrome://resources/js/cr.m.js';
import {PromiseResolver} from 'chrome://resources/js/promise_resolver.m.js';
import {flush} from 'chrome://resources/polymer/v3_0/polymer/polymer_bundled.min.js';
import { ClearBrowsingDataBrowserProxyImpl, ClearBrowsingDataResult,... | the_stack |
declare module "react-multi-date-picker" {
import React, { HTMLAttributes } from "react";
import DateObject, { Calendar, Locale } from "react-date-object";
export type Value =
| Date
| string
| number
| DateObject
| Date[]
| string[]
| number[]
| DateObject[]
| null;
export... | the_stack |
import Component from "@egjs/component";
import { AnimationManager } from "./AnimationManager";
import { EventManager } from "./EventManager";
import { InterruptManager } from "./InterruptManager";
import { AxisManager, AxisOption, Axis } from "./AxisManager";
import { InputObserver } from "./InputObserver";
import {
... | the_stack |
export as namespace AmazonCognitoIdentity;
// Stubs the XDomainRequest built-in from older IE browsers, does not follow the project's interface naming convention
export interface XDomainRequest {
readonly responseText: string;
timeout: number;
onprogress: () => void;
ontimeout: () => void;
onerror:... | the_stack |
"use strict";
import {
MessageRoom,
Game,
Server,
User,
Utils,
Colors,
Stopwatch,
} from "../../core/core";
import {
Alignment,
Roles,
Role,
GameEndConditions,
priorities,
getRoleColor,
Passives,
WinConditions,
getRoleBackgroundColor,
} from "../classic/roles";
import { ClassicPlayer ... | the_stack |
import "core-js/stable/array/from";
import "core-js/stable/array/fill";
import "core-js/stable/array/iterator";
import "core-js/stable/promise";
import "core-js/stable/reflect";
import "es6-map/implement";
//import "core-js/stable/symbol";
import "whatwg-fetch";
import * as React from 'react';
import * as ReactDom fro... | the_stack |
import * as path from 'path';
import { ResourcePart } from '@aws-cdk/assert-internal';
import '@aws-cdk/assert-internal/jest';
import * as iam from '@aws-cdk/aws-iam';
import * as s3 from '@aws-cdk/aws-s3';
import * as ssm from '@aws-cdk/aws-ssm';
import * as core from '@aws-cdk/core';
import * as constructs from 'cons... | the_stack |
import * as appscaling from '@aws-cdk/aws-applicationautoscaling';
import * as cloudwatch from '@aws-cdk/aws-cloudwatch';
import * as ec2 from '@aws-cdk/aws-ec2';
import * as elb from '@aws-cdk/aws-elasticloadbalancing';
import * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';
import * as iam from '@aws-cdk/aws-ia... | the_stack |
import GPUHelper from '../common/GPUHelper';
import { BufferedTomDataR } from '../common/BufferedTomDataR';
import { FileParams, GPUTypedArray } from '../common/types';
import MutableTypedArray from '../common/MutableTypedArray';
import { getBinLength } from '../common/io';
import { log, nullValForType, positionToIndex... | the_stack |
* @module WebGL
*/
import { assert, dispose } from "@itwin/core-bentley";
import { Point3d, Range3d, Transform } from "@itwin/core-geometry";
import { InstancedGraphicParams, PatternGraphicParams } from "../InstancedGraphicParams";
import { RenderMemory } from "../RenderMemory";
import { AttributeMap } from "./Attrib... | the_stack |
import { resolve, dirname, relative } from 'path';
import resolveDependency from '../resolve-dependency';
import { getPackageName } from './get-package-base';
import { readFileSync } from 'fs';
import { Job } from '../node-file-trace';
import { Ast } from './types';
type Node = Ast['body'][0]
const specialCases: Recor... | the_stack |
import Electron, { Menu } from 'electron'
import CommonUtil from '~/src/library/util/common'
import ConfigHelperUtil from '~/src/library/util/config_helper'
import PathConfig from '~/src/config/path'
import Logger from '~/src/library/logger'
import DispatchTaskCommand from '~/src/command/dispatch_task'
import DataTrans... | the_stack |
import { addClass, Browser, EventHandler, detach, removeClass, select, selectAll, KeyboardEvents} from '@syncfusion/ej2-base';
import { isNullOrUndefined as isNOU, KeyboardEventArgs, closest, isNullOrUndefined } from '@syncfusion/ej2-base';
import { setStyleAttribute, extend } from '@syncfusion/ej2-base';
import { Tool... | the_stack |
import { Animation, AnimationOptions, isNullOrUndefined } from '@syncfusion/ej2-base';
import { effect, getPathArc } from '../utils/helper';
import { ProgressBar } from '../progressbar';
import { lineCapRadius, completeAngle } from '../model/constant';
/**
* Animation for progress bar
*/
export class ProgressAnimatio... | the_stack |
import {TestBed, ComponentFixture, inject} from '@angular/core/testing';
import {By} from '@angular/platform-browser';
import {createGenericTestComponent, isBrowserVisible} from '../test/common';
import {Component} from '@angular/core';
import {NgbAccordionModule, NgbPanelChangeEvent, NgbAccordionConfig, NgbAccordion... | the_stack |
import "@azure/core-paging";
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { Keys } from "../operationsInterfaces";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
import { KeyVaultManagementCli... | the_stack |
import {
ForceDictationPropertyName,
OutputFormatPropertyName,
ServicePropertiesPropertyName
} from "../common.speech/Exports";
import { IStringDictionary } from "../common/Exports";
import { Contracts } from "./Contracts";
import {
OutputFormat,
ProfanityOption,
PropertyCollection,
Property... | the_stack |
import { Logger, LogLevel } from "@pnp/logging";
import find from 'lodash/find';
import findIndex from 'lodash/findIndex';
import cloneDeep from 'lodash/cloneDeep';
import forEach from 'lodash/forEach';
import filter from 'lodash/filter';
import remove from 'lodash/remove';
import includes from 'lodash/includes';
impor... | the_stack |
import * as React from 'react';
import * as PropTypes from 'prop-types';
import {connect} from 'react-redux';
import {isEqual, isObject, throttle} from 'lodash';
import {toast, ToastContainer} from 'react-toastify';
import * as THREE from 'three';
import {randomBytes} from 'crypto';
import ResizeDetector from 'react-re... | the_stack |
import * as path from "path";
import * as fs from "fs";
import * as async from "async";
import SpriteAnimations, { SpriteAnimationPub } from "./SpriteAnimations";
// Reference to THREE, client-side only
let THREE: typeof SupEngine.THREE;
if ((global as any).window != null && (window as any).SupEngine != null) THREE =... | the_stack |
import { ILabelValue } from '../../interface/common';
import { IDirectoryLogCollectPath, IFileLogCollectPath, IKeyValue, ILogSliceRule, ILogCollectTask, ILogCollectTaskDetail } from '../../interface/collect';
import { judgeEmpty } from '../../lib/utils';
export const collectLogTypes = [{
label: '文件',
value: 'file'... | the_stack |
import React, { Component } from 'react'
import { View } from '@instructure/ui-view'
import { testable } from '@instructure/ui-testable'
import { omitProps } from '@instructure/ui-react-utils'
import { uid } from '@instructure/uid'
import { hasVisibleChildren } from '@instructure/ui-a11y-utils'
import { findTabbable, ... | the_stack |
import { faHistory, faSync, faSearch } from '@fortawesome/free-solid-svg-icons';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { Trans } from '@lingui/macro';
import {
Box,
Button,
ButtonGroup,
ButtonProps,
Collapse,
Container,
Divider,
Paper,
TextField,
Typography,
} from... | the_stack |
import {InferenceHandler} from '../../backend';
import {Logger} from '../../instrument';
import {Tensor} from '../../tensor';
import {ShapeUtil} from '../../util';
import {createPackProgramInfoLoader} from './ops/pack';
import {createPackedReshape3DProgramInfoLoader, isReshapeCheap, processDims3D} from './ops/reshape-... | the_stack |
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
import {
AssociateTrackerConsumerCommand,
AssociateTrackerConsumerCommandInput,
AssociateTrackerConsumerCommandOutput,
} from "./commands/AssociateTrackerConsumerCommand";
import {
BatchDeleteDevicePositionHistoryCommand,
BatchDelet... | the_stack |
import { NoomiError } from "./errorfactory";
import { RedisFactory } from "./redisfactory";
import { Util } from "./util";
import { App } from "./application";
/**
* cache item类型,用于cache操作参数传递
*/
interface ICacheItem{
/**
* 键
*/
key:string;
/**
* 子键,当key对应值为map时,存取操作需要设置
*/
subKey... | the_stack |
import Color from '../style-spec/util/color';
import type Context from './context';
import type {
BlendFuncType,
BlendEquationType,
ColorMaskType,
DepthRangeType,
DepthMaskType,
StencilFuncType,
StencilOpType,
DepthFuncType,
TextureUnitType,
ViewportType,
CullFaceModeType,
... | the_stack |
import nock from 'nock';
import Resolution, {
ResolutionError,
ResolutionErrorCode,
UnclaimedDomainResponse,
} from '../index';
import {
BlockchainType,
DnsRecordType,
JsonRpcPayload,
NamingServiceName,
} from '../types/publicTypes';
import {JsonRpcProvider, InfuraProvider} from '@ethersproject/providers'... | the_stack |
import {app} from './common/module-require';
import '@uirouter/angular';
import 'kylo-services';
import './main/IndexController';
import './main/HomeController';
import './main/AccessDeniedController';
import {AccessControlService} from './services/AccessControlService';
import LoginNotificationService from "./services... | the_stack |
import assert from "assert"
import {HasLocation, Token} from "../../ast"
import * as cursors from "./cursors"
import Cursor from "./cursors/cursor"
import ForwardTokenCursor from "./cursors/forward-token-cursor"
import PaddedTokenCursor from "./cursors/padded-token-cursor"
import {search} from "./utils"
export type Sk... | the_stack |
export default [
{ groupa: 'Group number 1', label: 'Afghanistan', id: 'AF' },
{ groupa: 'Group number 1', label: 'Åland Islands', id: 'AX' },
{ groupa: 'Group number 1', label: 'Albania', id: 'AL' },
{ groupa: 'Group number 1', label: 'Algeria', id: 'DZ', disalbed: true },
{ groupa: 'Group number 1', label: ... | the_stack |
import { GitInspector } from './GitInspector';
import { Types } from '../types';
import fs from 'fs';
import git from 'simple-git/promise';
import os from 'os';
import path from 'path';
import rimraf from 'rimraf';
import util from 'util';
import { Container } from 'inversify';
import { delay } from '../lib/delay';
de... | the_stack |
import { MichelsonMap } from '@taquito/taquito';
import { char2Bytes, InvalidUri } from '@taquito/tzip16';
import { Tzip12ContractAbstraction } from '../src/tzip12-contract-abstraction';
import { InvalidTokenMetadata, TokenIdNotFound, TokenMetadataNotFound } from '../src/tzip12-errors';
describe('Tzip12 contract abstr... | the_stack |
import { createElement } from '@syncfusion/ej2-base';
import { Chart } from '../../../src/chart/chart';
import { Highlight } from '../../../src/chart/user-interaction/high-light';
import { SeriesModel } from '../../../src/chart/series/chart-series-model';
import { LineSeries } from '../../../src/chart/series/line-serie... | the_stack |
module es {
/** 2d 向量 */
export class Vector2 implements IEquatable<Vector2> {
public x: number = 0;
public y: number = 0;
/**
* 从两个值构造一个带有X和Y的二维向量。
* @param x 二维空间中的x坐标
* @param y 二维空间的y坐标
*/
constructor(x: number = 0, y: number = ... | the_stack |
import { ManifestBuilder } from "./manifest";
import { VsixManifestBuilder } from "./vsix-manifest-builder";
import { FileDeclaration, PackageSettings, PackageFiles, PackagePart, ResourceSet, ResourcesFile } from "./interfaces";
import { VsixComponents } from "./merger";
import { cleanAssetPath, toZipItemName } from ".... | the_stack |
import { RequestTypes } from 'detritus-client-rest';
import { ShardClient } from '../client';
import { BaseCollection } from '../collections/basecollection';
import { BaseSet } from '../collections/baseset';
import {
ApplicationCommandOptionTypes,
ApplicationCommandTypes,
DiscordKeys,
InteractionCallbackTypes,... | the_stack |
const models = require('../../../../../db/mysqldb/index')
const {
checkEmail,
checkPhoneNum,
checkUrl,
checkPwd
} = require('../../../utils/validators')
import moment from 'moment'
const { resClientJson } = require('../../../utils/resData')
const { sendVerifyCodeMail } = require('../../../utils/sendEmail')
cons... | the_stack |
import {
DinoContainer,
IDinoContainerConfig,
DIContainer,
RouteTable,
ObjectUtility,
DinoUtility,
Attribute,
Reflector,
DataUtility,
IControllerAttributeExtended,
DinoRouter,
IControllerAttributeProvider,
RouteAttribute,
IActionMethodAttribute
} fr... | the_stack |
import * as fs from 'fs'
import * as path from 'path'
import * as yaml from 'js-yaml'
import { KubernetesManifest } from '../../../app/v2/core/integrations/interfaces/k8s-manifest.interface'
import { AppConstants } from '../../../app/v2/core/constants'
const basePath = path.join(__dirname, '../../../', 'resources/hel... | the_stack |
/// <reference path="mocks.d.ts" />
import * as angular from 'angular';
///////////////////////////////////////////////////////////////////////////////
// ngMock module (angular-mocks.js)
///////////////////////////////////////////////////////////////////////////////
declare module 'angular' {
/////////////////////... | the_stack |
import { app, dialog, Menu } from 'electron';
import path from 'path';
import { MainReceiver } from '../actions/main';
import { CLOUD_PROTOCOL, STUDIO_PROTOCOL } from '../constants';
import * as dataImporter from '../services/data-importer';
import { showError } from '../ui/reusable/errors';
import { RealmLoadingMode ... | the_stack |
import * as Bluebird from 'bluebird';
import * as Docker from 'dockerode';
import { EventEmitter } from 'events';
import * as _ from 'lodash';
import StrictEventEmitter from 'strict-event-emitter-types';
import * as config from '../config';
import * as db from '../db';
import * as constants from '../lib/constants';
im... | the_stack |
import * as THREE from 'three';
import { times } from 'lodash';
import { WORLD_SIZE, normalizeAngle } from '../../../../utils/lba';
import { IslandSection } from '../IslandLayout';
import Scene from '../../../Scene';
import Actor, { SlideWay } from '../../../Actor';
import Extra from '../../../Extra';
import { scanGrid... | the_stack |
import type { IndexedCollection } from "./utility-types.ts";
export type Comparator<T> = (a: T, b: T) => -1 | 0 | 1;
/**
* Extends Array to handle sorted data.
*/
export class SortedArray<ItemType> extends Array<ItemType> {
unique = false;
/**
* The default comparator.
*
* @param a the first value
... | the_stack |
import { RefreshMode, IExternalBaseLayer, Bounds, LayerTransparencySet, LayerProperty, MgBuiltInLayers, MgLayerType, MG_LAYER_TYPE_NAME, MG_BASE_LAYER_GROUP_NAME, ImageFormat, GenericEvent, ClientKind, Coordinate2D, Size, BLANK_SIZE, Dictionary, UnitOfMeasure } from './common';
import LayerGroup from "ol/layer/Group";
... | the_stack |
import { Injectable, NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { Params, RouteReuseStrategy, RouterStateSnapshot } from '@angular/router';
import { DefaultRouterStateSerializer, Route... | the_stack |
import { strictParseByte, strictParseDouble, strictParseFloat32, strictParseShort } from "./parse-utils";
// Build indexes outside so we allocate them once.
const DAYS: Array<String> = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];
// These must be kept in order
// prettier-ignore
const MONTHS: Array<String> = ["... | the_stack |
import { TreeGrid } from '../../src/treegrid/base/treegrid';
import { createGrid, destroy } from '../base/treegridutil.spec';
import { sampleData, projectData, sortData } from '../base/datasource.spec';
import { Sort } from '../../src/treegrid/actions/sort';
import { profile, inMB, getMemoryProfile } from '../common.sp... | the_stack |
describe('team management', () => {
const now = Cypress.moment().format('MMDDYYhhmm');
const cypressPrefix = 'test-team-mgmt';
const teamName = `${cypressPrefix} team ${now}`;
const customTeamID = `${cypressPrefix}-custom-id-${now}`;
const generatedTeamID = teamName.split(' ').join('-');
const unassignedTea... | the_stack |
import { CSSAttribute, css } from '../styles';
import { SerpHandler } from '../types';
import { handleSerp, hasDarkBackground, insertElement } from './helpers';
function getURLFromPing(selector: string): (root: HTMLElement) => string | null {
return root => {
const a = selector ? root.querySelector(selector) : r... | the_stack |
import * as uuid from 'uuid';
import * as Tp from 'thingpedia';
import { ObjectSet } from 'thingpedia';
import { SchemaRetriever } from 'thingtalk';
import { AbstractDatabase } from '../db';
import SyncDatabase from '../db/syncdb';
import SyncManager from '../sync/manager';
// check for updates of all devices every 3... | the_stack |
import {NeovimElement, Neovim} from 'neovim-component';
import {remote, shell, ipcRenderer as ipc} from 'electron';
import {join, basename} from 'path';
import {readdirSync} from 'fs';
import {Nvim, RPCValue} from 'promised-neovim-client';
class ComponentLoader {
initially_loaded: boolean;
component_paths: str... | the_stack |
import {
applyBindings
} from '@tko/bind'
import {
computed
} from '@tko/computed'
import {
observable
} from '@tko/observable'
import {
triggerEvent, options
} from '@tko/utils'
import { DataBindProvider } from '@tko/provider.databind'
import { bindings as coreBindings } from '../dist'
const DEBU... | the_stack |
import assert from "assert";
import { ReadableStream } from "stream/web";
import {
KVGetValueType,
KVListOptions,
KVNamespace,
KVPutOptions,
KVPutValueType,
} from "@miniflare/kv";
import {
RequestContext,
Storage,
StoredKeyMeta,
StoredValueMeta,
base64Encode,
} from "@miniflare/shared";
import {
... | the_stack |
import type { ITableOrView, ITable, IWithView } from "../utils/ITableOrView"
import type { BooleanValueSource, NumberValueSource, IntValueSource, IValueSource, __OptionalRule, IfValueSource, IExecutableSelectQuery } from "../expressions/values"
import type { int } from "ts-extended-types"
import type { DefaultTypeAdapt... | the_stack |
import DomElements from "./DomElements";
import ArrayUtils from "./ArrayUtils";
export default class DomAttributes {
static readonly ATTRIBUTE_DISABLED = "disabled";
public static actions = {
set : "set",
unset : "unset"
};
public static dataAttributes = {
contentEd... | the_stack |
import { expect } from 'chai';
import {
Stylable,
functionWarnings,
processorWarnings,
resolverWarnings,
murmurhash3_32_gc,
} from '@stylable/core';
import { build } from '@stylable/cli';
import { createMemoryFs } from '@file-services/memory';
const log = () => {
/**/
};
describe('build stand ... | the_stack |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.