text stringlengths 2.5k 6.39M | kind stringclasses 3
values |
|---|---|
import { Yok } from "../../../yok";
import { assert } from "chai";
import * as _ from "lodash";
import {
CommonLoggerStub,
HooksServiceStub,
DeviceLogProviderStub,
} from "../stubs";
import { ApplicationManagerBase } from "../../../mobile/application-manager-base";
import { IDictionary, IHooksService } from "../../.... | the_stack |
import * as React from 'react';
import JqxButton from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxbuttons';
import JqxCheckBox from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcheckbox';
import JqxListBox from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxlistbox';
import JqxTabs from 'jqwidgets-scripts/jqwidgets-react-tsx... | the_stack |
import { LocalResolver } from '../../compiler_util/expression_converter';
import { ConstantPool } from '../../constant_pool';
import * as core from '../../core';
import { AST, AstMemoryEfficientTransformer, BindingPipe, LiteralArray, LiteralMap } from '../../expression_parser/ast';
import * as i18n from '../../i18n/i18... | the_stack |
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
import {
AddSourceIdentifierToSubscriptionCommand,
AddSourceIdentifierToSubscriptionCommandInput,
AddSourceIdentifierToSubscriptionCommandOutput,
} from "./commands/AddSourceIdentifierToSubscriptionCommand";
import {
AddTagsToResource... | the_stack |
import {
Opcode,
ProtocolNames,
ProtocolParams,
IStoreService,
ProtocolMessage,
ProtocolRoles,
ILoggerService,
SetStateCommitmentJSON,
ConditionalTransactionCommitmentJSON,
AppInstanceJson,
HexString,
} from "@connext/types";
import { stringify, logTime, toBN, getSignerAddressFromPublicIdentifier ... | the_stack |
import {Base64} from 'js-base64';
import * as helpers from '../../src/utils/helpers';
import {CategoryType} from '../../src/templates/category';
import {PostType} from '../../src/fragments/post';
// I HAVE NO IDEA WHAT THESE CHINESE WORDS MEAN. NO HATE PLEASE! :)
test('[slugify] non-latin characters are not stripped o... | the_stack |
import * as cheerio from "cheerio";
import * as querystring from "querystring";
import {ParsedUrlQuery} from "querystring";
import {BoxingBoutOutcome} from "./boxrec-pages/event/boxrec.event.constants";
/**
* Converts fractional symbols into decimals
* @param {string} fraction
* @returns {number}
*/
export functio... | the_stack |
import { get, isEmpty } from 'lodash';
import { DOMRectLikeType } from '../utils/dom';
import BaseFoundation, { DefaultAdapter } from '../base/foundation';
import { ArrayElement } from '../utils/type';
import { strings } from './constants';
const REGS = {
TOP: /top/i,
RIGHT: /right/i,
BOTTOM: /bottom/i,
... | the_stack |
import {
FarceStoreExtension,
HistoryEnhancerOptions,
Location,
LocationDescriptor,
LocationDescriptorObject,
NavigationListener,
NavigationListenerOptions,
NavigationListenerResult,
Protocol,
Query,
QueryDescriptor,
} from 'farce';
import * as React from 'react';
import { Middleware, Reducer, Sto... | the_stack |
import { DocumentEditor } from '../../../src/document-editor/document-editor';
import { DocumentHelper } from '../../../src/document-editor/implementation/viewer/viewer';
import { createElement } from '@syncfusion/ej2-base';
import { TestHelper } from '../../test-helper.spec';
import { ParagraphWidget, LineWidget, Bloc... | the_stack |
import * as chai from 'chai';
import {
SequenceMultiplicity,
SequenceType,
ValueType,
} from 'fontoxpath/expressions/dataTypes/Value';
import astHelper from 'fontoxpath/parsing/astHelper';
import parseExpression from 'fontoxpath/parsing/parseExpression';
import annotateAst, { countQueryBodyAnnotations } from 'fontox... | the_stack |
import { SourceInfo } from "./parser";
import { AutoTypeSignature, TypeSignature } from "./type_signature";
import { InvokeDecl, BuildLevel } from "./assembly";
import { BSQRegex } from "./bsqregex";
class InvokeArgument {
readonly value: Expression;
readonly ref: "ref" | "out" | "out?" | undefined;
const... | the_stack |
import { Autowired, Injectable, Injector, INJECTOR_TOKEN } from '@opensumi/di';
import { PreferenceChange } from '@opensumi/ide-core-browser';
import {
DisposableCollection,
PreferenceScope,
Uri,
URI,
Emitter,
CommandService,
toDisposable,
} from '@opensumi/ide-core-common';
import { WorkbenchEditorServic... | the_stack |
import { ENTER, SPACE } from '@angular/cdk/keycodes';
import { HttpErrorResponse } from '@angular/common/http';
import { ChangeDetectorRef, Component, ElementRef, OnDestroy, OnInit, ViewChild } from '@angular/core';
import { MatChipInputEvent, MatDialog } from '@angular/material';
import { Title } from '@angular/platfo... | the_stack |
import Util from './Util';
import { getMetadata } from './public';
import Properties from './Properties';
import Timer from './Timer';
import GDriveService from './GDriveService';
import API from './API';
import MimeType from './MimeType';
import Constants from './Constants';
import ErrorMessages from './ErrorMessages'... | the_stack |
'use strict';
// tslint:disable no-unused-expression
import * as vscode from 'vscode';
import * as chai from 'chai';
import * as sinon from 'sinon';
import * as sinonChai from 'sinon-chai';
import { TestUtil } from '../TestUtil';
import { PackageRegistryEntry } from '../../extension/registries/PackageRegistryEntry';
im... | the_stack |
import { computed, makeObservable, obx, action, runWithGlobalEventOff, wrapWithEventSwitch } from '@alilc/lowcode-editor-core';
import { NodeData, isJSExpression, isDOMText, NodeSchema, isNodeSchema, RootSchema, PageSchema } from '@alilc/lowcode-types';
import { EventEmitter } from 'events';
import { Project } from '..... | the_stack |
import assert from "assert";
import { BigNumber } from "@ethersproject/bignumber";
const getDigits = (numDigits: number) => TEN.pow(numDigits);
const MAX_UINT_256 = "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff";
const PRECISION = 18;
const ONE = BigNumber.from(1);
const TEN = BigNumber.from(10... | the_stack |
import test from 'ava';
import {
AuthenticationProgramStateBCH,
BytecodeGenerationResult,
CompilationEnvironmentBCH,
compilerOperationsBCH,
createAuthenticationProgramEvaluationCommon,
createCompiler,
createTransactionContextCommonTesting,
dateToLocktime,
generateBytecodeMap,
hexToBin,
instantiat... | the_stack |
import {assert} from '../../platform/chai-web.js';
import {Manifest} from '../manifest.js';
import {Entity, EntityClass} from '../entity.js';
import {IdGenerator, Id} from '../id.js';
import {EntityType, Schema} from '../../types/lib-types.js';
import {SYMBOL_INTERNALS} from '../symbols.js';
import {ConCap} from '../..... | the_stack |
import {
CodeNode,
ensureEnvironment,
ExpressionNode,
ProgramResult,
runProgram,
} from "literate-elm";
import _ from "lodash";
import { Position } from "unist";
import visit from "unist-util-visit";
import {
Cache,
CodeBlock,
EvaluatedOutputExpression,
FailedLitvisContext,
LitvisCodeBlock,
Litvi... | the_stack |
export interface ResetDBInstancePasswordResponse {
/**
* 异步请求Id,用户查询该流程的运行状态
*/
AsyncRequestId?: string;
/**
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
RequestId?: string;
}
/**
* DescribeSpecInfo请求参数结构体
*/
export interface DescribeSpecInfoRequest {
/**
* 待查询可用区
... | the_stack |
import { assert } from "chai";
import { LinkedList, LinkedListNode } from "../lib/list";
describe("linked-list", () => {
describe("node", () => {
it("ctor", () => {
const node = new LinkedListNode(1);
assert.strictEqual(node.value, 1);
assert.strictEqual(node.lis... | the_stack |
import { debugExports, createWorkspaceNamesResolver, resolveSettings } from './WorkspacePathResolver';
import * as Path from 'path';
import { WorkspaceFolder } from 'vscode-languageserver/node';
import { URI as Uri } from 'vscode-uri';
import { CSpellUserSettings, CustomDictionaries } from '../config/cspellConfig';
imp... | the_stack |
import type {GeoPackageLoaderOptions} from '../geopackage-loader';
import initSqlJs, {SqlJsStatic, Database, Statement} from 'sql.js';
import {WKBLoader} from '@loaders.gl/wkt';
import {
Schema,
Field,
Geometry,
DataType,
Bool,
Utf8,
Float64,
Int32,
Int8,
Int16,
Float32,
Binary,
Tables,
Obje... | the_stack |
import { useComposedRefs } from '@tamagui/compose-refs'
import { getButtonSize, getSize, isWeb, styled, withStaticProperties } from '@tamagui/core'
import { clamp, composeEventHandlers } from '@tamagui/helpers'
import { SizableStackProps, ThemeableStack, YStackProps } from '@tamagui/stacks'
import { useControllableStat... | the_stack |
import bodyParser from "body-parser";
import express, { Express, NextFunction, Request, Response } from "express";
import path from "path";
import cookieSession from "cookie-session";
import csrf from "csurf";
import * as Sentry from "@sentry/node";
import GithubOAuth from "./github-oauth";
import getGitHubSetup from "... | the_stack |
import * as ts from 'typescript';
import * as Lint from 'tslint';
import * as tsutils from 'tsutils';
import { AstUtils } from './utils/AstUtils';
import { Scope } from './utils/Scope';
import { Utils } from './utils/Utils';
import { ExtendedMetadata } from './utils/ExtendedMetadata';
import { isObject } from './utils... | the_stack |
import { ClientWorker, ServerListManager, Snapshot } from '../src';
import * as fs from 'fs';
import * as path from 'path';
import { HttpAgent } from '../src/http_agent';
import { createDefaultConfiguration } from './utils';
import * as mm from 'mm';
import * as assert from 'assert';
const pedding = require('pedding')... | the_stack |
import * as path from "path";
import { MessageItem } from "vscode";
import * as nls from "vscode-nls";
// Debugger Server
export const SERVER_INFO = {
DEFAULT_SERVER_PORT: 5577,
ERROR_CODE_INIT_SERVER: "ERROR_INIT_SERVER",
SERVER_PORT_CONFIGURATION: "deviceSimulatorExpress.debuggerServerPort",
};
const lo... | the_stack |
import fs from 'fs'
import fsPath from 'path'
import makeDir from 'make-dir'
import stream from 'stream'
import isStream from 'is-stream'
import shellEscape from 'shell-escape'
import scanDirectory from 'sb-scandir'
import { PromiseQueue } from 'sb-promise-queue'
import invariant, { AssertionError } from 'assert'
impor... | the_stack |
import { JsPsych, JsPsychPlugin, ParameterType, TrialType } from "jspsych";
const info = <const>{
name: "preload",
parameters: {
/** Whether or not to automatically preload any media files based on the timeline passed to jsPsych.run. */
auto_preload: {
type: ParameterType.BOOL,
pretty_name: "Au... | the_stack |
import {Matrix4, Vector3} from '@math.gl/core';
import {Ellipsoid} from '@math.gl/geospatial';
import {Stats} from '@probe.gl/stats';
import {
RequestScheduler,
assert,
path,
LoaderWithParser,
LoaderOptions
} from '@loaders.gl/loader-utils';
import TilesetCache from './tileset-cache';
import {calculateTransfo... | the_stack |
import assign from 'lodash/assign';
import concat from 'lodash/concat';
import deburr from 'lodash/deburr';
import each from 'lodash/each';
import get from 'lodash/get';
import greaterThan from 'lodash/gt';
import greaterOrEqualTo from 'lodash/gte';
import includes from 'lodash/includes';
import isArray from 'lodash/is... | the_stack |
* This is an autogenerated file created by the Stencil compiler.
* It contains typing information for all components that exist in this project.
*/
import '@stencil/core';
import {
SelectOption,
TreeItem,
} from './shared/interfaces';
import {
SelectOption as SelectOption2,
} from './draft-components/shared... | the_stack |
import * as tf from '../../index';
import {ALL_ENVS, describeWithFlags} from '../../jasmine_util';
import {expectArraysClose} from '../../test_util';
describeWithFlags('resizeNearestNeighbor', ALL_ENVS, () => {
it('simple alignCorners=false', async () => {
const input = tf.tensor3d([2, 2, 4, 4], [2, 2, 1]);
... | the_stack |
import * as os from "os";
import * as path from "path";
import * as stream from "stream";
import * as fs from "fs";
import * as tl from "azure-pipelines-task-lib/task";
import * as trl from "azure-pipelines-task-lib/toolrunner";
import * as fse from "fs-extra";
import ToolRunner = trl.ToolRunner;
import * as uuidv5 fr... | the_stack |
import React from 'react'
import { Box, Text } from 'ink'
import { render } from 'ink-testing-library'
import Table, { Header, Skeleton, Cell } from '../src'
// Helpers -------------------------------------------------------------------
const skeleton = (v: string) => <Skeleton>{v}</Skeleton>
const header = (v: stri... | the_stack |
import * as assert from 'assert';
import {describe, it} from 'mocha';
import {Transform} from 'stream';
import {EchoClient} from '../fixtures/google-gax-packaging-test-app/src/v1beta1';
import {GoogleAuth} from 'google-auth-library';
import {GoogleError} from '../../src';
interface Operation {
promise(): Function;
}
... | the_stack |
import { Applicative as ApplicativeHKT, Applicative1 } from 'fp-ts/lib/Applicative'
import { Apply1 } from 'fp-ts/lib/Apply'
import * as A from 'fp-ts/lib/Array'
import * as Eq from 'fp-ts/lib/Eq'
import { Foldable1, intercalate } from 'fp-ts/lib/Foldable'
import { flow, Predicate, Refinement } from 'fp-ts/lib/function... | the_stack |
import React, { useState, useEffect } from "react";
import firebase from "firebase"
import "firebase/functions"
import { createStyles, makeStyles, Theme } from "@material-ui/core/styles";
import Table from "@material-ui/core/Table";
import TableBody from "@material-ui/core/TableBody";
import TableCell from "@mate... | the_stack |
import { PromptValidator, PromptOptions, PromptRecognizerResult } from 'botbuilder-dialogs';
import { DialogTurnResult, Dialog, DialogContext } from 'botbuilder-dialogs';
import { InputHints, TurnContext, Activity, Attachment } from 'botbuilder-core';
/**
* Settings to control the behavior of AdaptiveCardPrompt
*/
... | the_stack |
import {
DOMWidgetModel,
DOMWidgetView,
ISerializers,
} from "@jupyter-widgets/base";
import _ from "lodash";
import Plotly from "plotly.js/dist/plotly";
import { MODULE_NAME, MODULE_VERSION } from "./version";
// @ts-ignore
window.PlotlyConfig = { MathJaxConfig: "local" };
const semver_range = "^" + MODULE_V... | the_stack |
import { fail } from 'assert';
import { expect } from 'chai';
import { stub } from 'sinon';
import { nls } from '../../../src/messages';
import {
BrowserNode,
ComponentUtils,
MetadataOutlineProvider,
NodeType,
parseErrors,
TypeUtils
} from '../../../src/orgBrowser';
/* tslint:disable:no-unused-expression *... | the_stack |
import { GenesisBlock, Chain, Block, Transaction } from '@liskhq/lisk-chain';
import { jobHandlers } from '@liskhq/lisk-utils';
import { ForkStatus, BFT } from '@liskhq/lisk-bft';
import { validator } from '@liskhq/lisk-validator';
import { CustomModule0, CustomModule1 } from './custom_modules';
import { Processor } fr... | the_stack |
const { path } = require('@vuepress/utils')
module.exports = {
// 注入到当前页面的 HTML <head> 中的标签
head: [
[
'link',
{
rel: 'icon',
href: '/logo-s.png',
},
], // 增加一个自定义的 favicon(网页标签的图标)
[
'script',
{ src: 'https://cdn.jsdelivr.net/npm/react/umd/rea... | the_stack |
import { expect, test } from '@jest/globals';
import { typeOf } from '../src/reflection/reflection';
import { assertType, ReflectionKind, stringifyResolvedType, Type } from '../src/reflection/type';
import { serialize } from '../src/serializer-facade';
import { expectEqualType } from './utils';
test('array stack', () ... | the_stack |
import {
AfterViewInit,
Component,
ElementRef,
Inject,
ViewChild,
} from '@angular/core'
import {MAT_DIALOG_DATA, MatDialogRef} from '@angular/material/dialog'
import {
DataStore,
DataStoreAutoCompleter,
InvalidItemError,
} from '../data/data-store'
import Color from 'color'
import {
DayID,
Item,
... | the_stack |
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Un... | the_stack |
import { addSeconds } from 'date-fns';
import mongoose from 'mongoose';
import { PageActionStage, PageActionType } from '../../../src/server/models/page-operation';
import { getInstance } from '../setup-crowi';
describe('Test page service methods', () => {
let crowi;
let Page;
let Revision;
let User;
let U... | the_stack |
import * as store from '../store'; // TODO: refactor for Redux Hooks
import * as actions from './../features/business/businessSlice';
import * as uiactions from './../features/ui/uiSlice';
import graphQLController from './graphQLController';
import { ReqRes, WindowAPI, WindowExt } from '../../types';
const ... | the_stack |
import * as assert from 'assert';
import { basename } from 'path';
import { Uri } from 'vscode';
import { isLinux } from '../../../env/node/platform';
import { normalizeRepoUri } from '../../../repositories';
import { PathEntryTrie, UriEntry, UriEntryTrie, UriTrie } from '../../../system/trie';
// eslint-disable-next-l... | the_stack |
import { expect } from "chai";
import { UnexpectedErrors } from "@itwin/core-bentley";
import { Point2d } from "@itwin/core-geometry";
import { AnalysisStyle, ColorDef, ImageBuffer, ImageBufferFormat } from "@itwin/core-common";
import { ViewRect } from "../ViewRect";
import { ScreenViewport } from "../Viewport";
impor... | the_stack |
import { Test, TestingModule } from '@nestjs/testing'
import { NotImplementedException } from '@nestjs/common'
import { getRepositoryToken } from '@nestjs/typeorm'
import { Repository } from 'typeorm'
import { TypeOrmQueryService } from '@nestjs-query/query-typeorm'
import { PaymentEntity /* PaymentStatus */ } from '.... | the_stack |
import * as C from "csstype"
import * as T from "../types"
import { PX_SCALE } from "../constants"
import { addPx } from "../utils"
import { compose } from "../compose"
import { extend, style } from "../style"
import { display, DisplayProps, DisplayStyle } from "./display"
import {
alignContent,
AlignContentProps,
... | the_stack |
import {dirname, basename, extname} from 'path';
import camelCase from 'camelcase';
import * as t from '@babel/types';
import traverse, {NodePath} from '@babel/traverse';
import MigrationReporter from './migration_reporter';
import shouldMigrateFilePath from './should_migrate_file_path';
import * as allowlists from './... | the_stack |
import { Inject, Injectable, InjectionToken } from '@angular/core';
import * as LocalForage from 'localforage';
import 'localforage';
import IdleQueue from 'custom-idle-queue';
import { PoLokiDriver } from '../drivers/lokijs/po-loki-driver';
import { PoStorageConfig } from './po-storage-config.interface';
export co... | the_stack |
import {get as getBrowserGlobals} from 'app/client/lib/browserGlobals';
import {guessTimezone} from 'app/client/lib/guessTimezone';
import {getWorker} from 'app/client/models/gristConfigCache';
import * as gutil from 'app/common/gutil';
import {addOrgToPath, docUrl, getGristConfig} from 'app/common/urlUtils';
import {U... | the_stack |
import { EventEmitter } from 'events';
import SDKDriver from '../../../lib/sdkdriver/src';
import LocalParticipantDriver from './localparticipant';
import { ParticipantSID } from './participant';
import RemoteParticipantDriver from './remoteparticipant';
const { difference } = require('../../../../lib/util');
/**
* A... | the_stack |
declare module net {
export module lingala {
export module zip4j {
export class ZipFile {
public static class: java.lang.Class<net.lingala.zip4j.ZipFile>;
public addFiles(param0: java.util.List<java.io.File>, param1: net.lingala.zip4j.model.ZipParameters): void;
public getSplitZipFiles(): java.util.Li... | the_stack |
// @ts-nocheck
// o object_name | g group_name
const OBJECT_RE = /^[og]\s*(.+)?/;
// mtllib file_reference
const MATERIAL_RE = /^mtllib /;
// usemtl material_name
const MATERIAL_USE_RE = /^usemtl /;
class MeshMaterial {
constructor({index, name = '', mtllib, smooth, groupStart}) {
this.index = index;
this.n... | the_stack |
import { Component, State, Element, h } from '@stencil/core';
import Utils from '@visa/visa-charts-utils';
// import 'core-js/features/symbol';
import '@visa/scatter-plot';
const { autoTextColor } = Utils;
@Component({
tag: 'app-bivariate-mapbox-map',
styleUrl: 'app-bivariate-mapbox-map.scss'
})
export class AppB... | the_stack |
export type Maybe<T> = T | null;
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };
/** All... | the_stack |
import { expect, test } from '@jest/globals';
import { ReceiveType, ReflectionClass, resolveReceiveType } from '../src/reflection/reflection';
import { AutoIncrement, BackReference, isReferenceType, MapName, MongoId, PrimaryKey, Reference, UUID } from '../src/reflection/type';
import { cast, cloneClass, serialize } fro... | the_stack |
import React from 'react';
import { fireEvent, render } from '@testing-library/react';
import { ComboBox, ComboBoxProps } from './ComboBox';
import { SvgCaretDownSmall } from '@itwin/itwinui-icons-react';
const renderComponent = (props?: Partial<ComboBoxProps<number>>) => {
return render(
<ComboBox
option... | the_stack |
import Q = require("q");
import _ = require("underscore");
import Validation = require("./Validation");
/**
* Basic validation rules that enables to validate an value against common constraints.
*
* Assertions with conditions.
*
* + basic constraints (Type,EqualTo,Required)
* + string constraints (Email,Pattern,... | the_stack |
export type ApiMethod =
| 'onMenuShareTimeline'
| 'onMenuShareAppMessage'
| 'onMenuShareQQ'
| 'onMenuShareWeibo'
| 'onMenuShareQZone'
| 'startRecord'
| 'stopRecord'
| 'onVoiceRecordEnd'
| 'playVoice'
| 'pauseVoice'
| 'stopVoice'
| 'onVoicePlayEnd'
| 'uploadVoice'
| 'downloadVoice'
| 'choos... | the_stack |
import Dimensions = Utils.Measurements.Dimensions;
import DisplayObject = etch.drawing.DisplayObject;
import IDisplayContext = etch.drawing.IDisplayContext;
import Point = etch.primitives.Point;
import Size = minerva.Size;
import {OptionADSR} from './Options/OptionADSR';
import {ButtonArray} from './Options/OptionButto... | the_stack |
export default {
name: 'github-dark',
base: 'vs-dark',
inherit: true,
rules: [
{ token: 'comment', foreground: '#8B949E' },
{ token: 'punctuation.definition.comment', foreground: '#8B949E' },
{ token: 'string.comment', foreground: '#8B949E' },
{ token: 'constant', foreground: '#79C0FF' },
{ ... | the_stack |
import { ChronoGraph, CommitArguments, CommitResult, CommitZero } from "../chrono/Graph.js"
import { Identifier } from "../chrono/Identifier.js"
import { SyncEffectHandler, YieldableValue } from "../chrono/Transaction.js"
import { AnyConstructor, Mixin } from "../class/Mixin.js"
import { DEBUG, debug, DEBUG_ONLY, Sourc... | the_stack |
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import { ATN } from "antlr4ts/atn/ATN";
import { ATNDeserializer } from "antlr4ts/atn/ATNDeserializer";
import { CharStream } from "antlr4ts/CharStream";
import { Lexer } from "antlr4ts/Lexer";
import { LexerATNSimu... | the_stack |
import {
DecorationOptions,
Range,
TextEditorDecorationType,
ThemableDecorationRenderOptions,
ThemeColor,
window,
} from "vscode";
export interface VimHighlightUIAttributes {
foreground?: number;
background?: number;
special?: number;
reverse?: boolean;
italic?: boolean;
... | the_stack |
import $ from 'mdui.jq/es/$';
import contains from 'mdui.jq/es/functions/contains';
import extend from 'mdui.jq/es/functions/extend';
import { JQ } from 'mdui.jq/es/JQ';
import 'mdui.jq/es/methods/add';
import 'mdui.jq/es/methods/addClass';
import 'mdui.jq/es/methods/after';
import 'mdui.jq/es/methods/append';
import '... | the_stack |
import { getCookie, isObject, removeCookie, setCookie } from '@guardian/libs';
import { noop } from 'lib/noop';
import config from '../../../../lib/config';
import { fetchJson } from '../../../../lib/fetch-json';
import { dateDiffDays } from '../../../../lib/time-utils';
import { getLocalDate } from '../../../../types/... | the_stack |
import React, { useEffect, useState, Children } from 'react';
import classNames from 'classnames';
import { useTranslation } from 'react-i18next';
import { FullscreenOutlined, FullscreenExitOutlined } from '@ant-design/icons';
import styles from './DecisionTree.module.less';
import { CKBJson } from '@antv/knowledge';
i... | the_stack |
import {
ProviderReadAttribute,
ProviderReadWriteNotifyAttribute,
ProviderReadNotifyAttribute,
ProviderReadWriteAttribute
} from "../../../../main/js/joynr/provider/ProviderAttribute";
import TestEnum from "../../../generated/joynr/tests/testTypes/TestEnum";
import ComplexRadioStation from "../../../gen... | the_stack |
import { PdfDocument, PdfPage, PdfStandardFont, PdfTrueTypeFont, PdfGrid } from './../../../src/index';
import { PdfSolidBrush, PdfColor, PdfFont, PdfFontFamily, PdfStringFormat } from './../../../src/index';
import { RectangleF, PdfPen, PdfGraphicsState, PdfFontStyle, PdfTextAlignment,PdfPath, PointF,PdfArc, PdfFillMo... | the_stack |
import { Component } from 'vue-property-decorator';
import { scaleLinear } from 'd3-scale';
import { select } from 'd3-selection';
import _ from 'lodash';
import $ from 'jquery';
import template from './heatmap.html';
import {
Visualization,
injectVisualizationTemplate,
Scale,
PlotMargins,
DEFAULT_PLOT_MARGI... | the_stack |
import { addCommand } from "../cmd";
import { exit } from "../lib/process";
import { Argv } from "yargs";
import { dispatch, initCore } from "../lib/core";
import { BaseArgs } from "../types";
import {
authz,
getEnvironmentsByEnvParentId,
graphTypes,
} from "@core/lib/graph";
import chalk from "chalk";
import Tab... | the_stack |
import {
PositionGizmo, RotationGizmo, ScaleGizmo, UtilityLayerRenderer, AbstractMesh, Node, TransformNode,
LightGizmo, Light, IParticleSystem, Sound, Vector3, Quaternion, Camera, CameraGizmo, HemisphericLight,
SkeletonViewer,
Mesh,
} from "babylonjs";
import { Nullable } from "../../../shared/t... | the_stack |
import { App } from '../app/index';
// Import all public types with aliases, and re-export from the auth namespace.
import { ActionCodeSettings as TActionCodeSettings } from './action-code-settings-builder';
import { Auth as TAuth } from './auth';
import {
AuthFactorType as TAuthFactorType,
AuthProviderConfig a... | the_stack |
* Mailscript
* 0.4.0
* DO NOT MODIFY - This file has been generated using oazapfts.
* See https://www.npmjs.com/package/oazapfts
*/
import * as Oazapfts from 'oazapfts/lib/runtime'
import * as QS from 'oazapfts/lib/runtime/query'
export const defaults: Oazapfts.RequestOpts = {
baseUrl: 'https://api.mailscript.com... | the_stack |
import 'jasmine';
import NotFoundError from '../Errors/NotFoundError';
import TooManyResultsError from '../Errors/TooManyResultsError';
import DatabaseInterface from '../Databases/DatabaseInterface';
import PgSqlDatabase from '../Databases/PgSqlDatabase';
import MySqlDatabase from '../Databases/MySqlDatabase';
import S... | the_stack |
import {
INodeProperties,
} from 'n8n-workflow';
export const storyManagementOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
displayOptions: {
show: {
source: [
'managementApi',
],
resource: [
'story',
],
},
},
options: [
... | the_stack |
module android.text {
import View = android.view.View;
import Layout = android.text.Layout;
import TextDirectionHeuristic = android.text.TextDirectionHeuristic;
import TextUtils = android.text.TextUtils;
/**
* Some objects that implement {@link TextDirectionHeuristic}. Use these with
* th... | the_stack |
import fs from 'fs';
import path from 'path';
import bayes from 'bayes';
import config from 'config';
import getUrls from 'get-urls';
import { clamp } from 'lodash';
import sanitizeHtml from 'sanitize-html';
import slackLib, { OPEN_COLLECTIVE_SLACK_CHANNEL } from '../lib/slack';
import models from '../models';
/** R... | the_stack |
import type { GenericObject } from 'types/generic.type';
// States
export type InternalPlayerState = 'buffering' | 'idle' | 'complete' | 'paused' | 'playing' | 'error' | 'loading' | 'stalled';
// Event Types
export type TimeEvent = {
position: number;
duration?: number;
currentTime?: number;
seekRange?:... | the_stack |
import { replaceAll } from "./util/utils";
type URLQueryParseState = "ParameterName" | "ParameterValue" | "Invalid";
/**
* A class that handles the query portion of a URLBuilder.
*/
export class URLQuery {
private readonly _rawQuery: { [queryParameterName: string]: string | string[] } = {};
/**
* Get whethe... | the_stack |
import 'chrome://resources/cr_elements/cr_button/cr_button.m.js';
import 'chrome://resources/cr_elements/cr_dialog/cr_dialog.m.js';
import 'chrome://resources/cr_elements/cr_lazy_render/cr_lazy_render.m.js';
import 'chrome://resources/cr_elements/cr_search_field/cr_search_field.js';
import 'chrome://resources/cr_elemen... | the_stack |
import { sha256 } from "@core/lib/crypto/utils";
import { clearOrphanedEnvUpdatesProducer } from "@core/lib/client/blob";
import { getEnvironmentsQueuedForReencryptionIds } from "@core/lib/graph";
import {
getBlobParamsEnvParentIds,
getBlobParamsEnvironmentAndLocalIds,
} from "@core/lib/blob";
import { v4 as uuid }... | the_stack |
// TODO events and async
// Next available error: TD215:
module TDev.AST
{
export class TypeResolver
extends NodeVisitor
{
constructor(public parent:TypeChecker)
{
super()
}
private fixupKind(n:AstNode, k:Kind)
{
if (k instanceof Unresol... | the_stack |
import { FullIndex } from "data/index";
import { Context, LinkHandler } from "expression/context";
import { resolveSource, Datarow, matchingSourcePaths } from "data/resolver";
import { DataObject, LiteralValue, Values, Task, Grouping } from "data/value";
import { ListQuery, Query, QueryOperation, TableQuery } from "que... | the_stack |
import 'chrome://resources/cr_elements/cr_lazy_render/cr_lazy_render.m.js';
import 'chrome://resources/cr_elements/shared_style_css.m.js';
import 'chrome://resources/cr_elements/shared_vars_css.m.js';
import 'chrome://resources/cr_elements/cr_tabs/cr_tabs.js';
import 'chrome://resources/polymer/v3_0/iron-media-query/ir... | the_stack |
import {
IExecuteFunctions,
WAIT_TIME_UNLIMITED,
} from 'n8n-core';
import {
IDataObject,
INodeExecutionData,
INodeType,
INodeTypeDescription,
IWebhookFunctions,
IWebhookResponseData,
NodeOperationError,
} from 'n8n-workflow';
import * as basicAuth from 'basic-auth';
import { Response } from 'express';
imp... | the_stack |
import {
AgnosticMediaGalleryItem,
AgnosticAttribute,
AgnosticPrice,
ProductGetters
} from '@vue-storefront/core';
import { ProductVariant } from '@vue-storefront/shopify-api/src/types';
import { enhanceProduct } from '../helpers/internals';
import { formatAttributeList, capitalize } from './_utils';
type Prod... | the_stack |
import RBTreeNode from './red-black-tree-node'
import Stack from '../../sequences/stack'
import * as utils from '../../utils'
/***************************************************************************************************
* A red-black tree is a binary tree that satisfies the red-black properties:
* 1. Every nod... | the_stack |
import { pluginReadme } from "../../../../components/MarkdownRenderer/__tests__/test_state";
import {
PluginMetadata,
PropertyTypes,
Primitives,
ConfigurationGroup,
PropertyLayoutVariants,
ConfigurationProperty,
} from "@codotype/core";
// // // //
// React + TS Component Library Starter
// //... | the_stack |
/// <reference types="node" />
declare module '@mapbox/mapbox-sdk/lib/classes/mapi-client' {
import { MapiRequest, MapiRequestOptions, DirectionsApproach } from '@mapbox/mapbox-sdk/lib/classes/mapi-request';
export default class MapiClient {
constructor(config: SdkConfig);
accessToken: string;
... | the_stack |
import * as tf from '@tensorflow/tfjs-core';
import {ExplicitPadding} from '@tensorflow/tfjs-core/dist/ops/conv_util';
import {MLAutoPad, MLConv2dOptions, MLFilterOperandLayout, MLInputOperandLayout} from '../graph_builder';
import {ConstantOperand, MLOperand, OutputOperand} from '../operand';
import {FusedOperation, ... | the_stack |
import * as anchor from '@project-serum/anchor';
import { assert } from 'chai';
import { BN } from '../sdk';
import {
getFeedData,
mockOracle,
mockUserUSDCAccount,
mockUSDCMint,
setFeedPrice,
} from './testHelpers';
import {
calculateMarkPrice,
PEG_PRECISION,
PositionDirection,
QUOTE_PRECISION,
calculateTa... | the_stack |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.