text stringlengths 2.5k 6.39M | kind stringclasses 3
values |
|---|---|
import {
extractQueryStringObjectFromUrl,
UpdatePolicy,
HttpHeaders,
HttpRequestMethod,
MimeType,
} from '../../../utils';
import { Page, Request, Route } from 'playwright';
export type ResponseData =
| Record<string, unknown>
| Record<string, never>
| string
| undefined
| unknown;
e... | the_stack |
import path from "path";
import util from "util";
import blessed from "blessed";
import WebSocket from "ws";
// import timer from "timers/promises"
import minimist from "minimist";
import * as logWriter from "./logWriter";
import { Client, Room } from "colyseus.js";
// TODO: use "timers/promises" instead (drop Node.j... | the_stack |
import { Cookware, Ingredient, Recipe, Timer } from 'cooklang'
import { TextFileView, setIcon, TFile, Keymap, WorkspaceLeaf, ViewStateResult, Notice } from 'obsidian'
import { CookLangSettings } from './settings';
import { Howl } from 'howler';
import alarmMp3 from './alarm.mp3'
import timerMp3 from './timer.mp3'
// T... | the_stack |
import * as React from "react"
import * as ReactDOM from "react-dom"
import {
observable,
action,
reaction,
runInAction,
IReactionDisposer,
} from "mobx"
import { observer } from "mobx-react"
import { HeaderSearch } from "./HeaderSearch"
import classnames from "classnames"
import { flatten } from ".... | the_stack |
import * as npath from 'path'
import errorLogTraverse from '../util/ErrorLogTraverse'
import * as t from '@babel/types'
import {isStaticRes} from '../util/util'
import {geneOrder} from '../util/util'
import configure from '../configure'
import {setEntryModuleInfo} from '../util/cacheModuleInfos'
import * as fse from... | the_stack |
namespace ts.projectSystem {
describe("unittests:: tsserver:: Semantic operations on partialSemanticServer", () => {
function setup() {
const file1: File = {
path: `${tscWatch.projectRoot}/a.ts`,
content: `import { y, cc } from "./b";
import { something } fr... | the_stack |
import { AccessLevelList } from "../shared/access-level";
import { PolicyStatement } from "../shared";
/**
* Statement provider for service [shield](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsshield.html).
*
* @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/referenc... | the_stack |
import { SuggestionCostMapDef } from '../models/suggestionCostsDef';
import { DEFAULT_COMPOUNDED_WORD_SEPARATOR } from '../suggestions/suggestCollector';
export type WeightedRepMapTrie = Record<string, WeightedRepTrieNode>;
const matchPossibleWordSeparators = /[+∙•・●]/g;
interface WeightedRepTrieNode {
/** The n... | the_stack |
import {Request} from '../lib/request';
import {Response} from '../lib/response';
import {AWSError} from '../lib/error';
import {Service} from '../lib/service';
import {ServiceConfigurationOptions} from '../lib/service';
import {ConfigBase as Config} from '../lib/config-base';
interface Blob {}
declare class DataExchan... | the_stack |
import {
usGovernmentAuthentication,
authentication,
v32Authentication,
v31Authentication,
} from '../../constants/authEndpoints';
import { createBotFrameworkAuthenticationMiddleware } from './botFrameworkAuthentication';
const mockGetKey = jest.fn().mockResolvedValue(`openIdMetadataKey`);
jest.mock('../../ut... | the_stack |
import React from 'react';
import { LargeMessage, notify, notifDelete } from 'giu';
import { merge, addLast, omit, updateIn, setIn, mergeIn } from 'timm';
import { v4 as uuidv4 } from 'uuid';
import classnames from 'classnames';
import axios from 'axios';
import type { Config, Key, Keys, Translation } from '../types';
... | the_stack |
import { CreateContextAndInputs, LogCallback, ResultCallback } from '../src/Context';
import { Context } from "../src/public/Interfaces";
import { FunctionInfo } from '../src/FunctionInfo';
import { AzureFunctionsRpcMessages as rpc } from '../azure-functions-language-worker-protobuf/src/rpc';
import * as sinon from 'si... | the_stack |
import R2Error from '../../../model/errors/R2Error';
import ManifestV2 from '../../../model/ManifestV2';
import FileTree from '../../../model/file/FileTree';
import * as path from 'path';
import FsProvider from '../../../providers/generic/file/FsProvider';
import Profile from '../../../model/Profile';
import FileWrit... | the_stack |
import fs from 'fs-extra';
import getUnixUtcTimestamp from 'oc-get-unix-utc-timestamp';
import path from 'path';
import ComponentsCache from './components-cache';
import getComponentsDetails from './components-details';
import registerTemplates from './register-templates';
import settings from '../../resources/setting... | the_stack |
import rule, { RULE_NAME } from '../../../lib/rules/await-fire-event';
import { createRuleTester } from '../test-utils';
const ruleTester = createRuleTester();
const COMMON_FIRE_EVENT_METHODS: string[] = [
'click',
'change',
'focus',
'blur',
'keyDown',
];
ruleTester.run(RULE_NAME, rule, {
valid: [
..... | the_stack |
import { merge } from '../common/common';
import tween, { Tween } from '../common/tween';
import { ChartData, Types } from '../common/types';
let uniqueId = 0;
function generateUniqueId() {
return `shoot-${uniqueId++}`;
}
const PI = 2 * Math.PI;
const { sin, cos, atan, sqrt } = Math;
const pow2 = function (x: num... | the_stack |
import express from 'express'
import adminUser from '../controllers/admin/adminUsers' // 后台用户
import users from '../controllers/admin/users' // 前台用户
import userRoleAuthority from '../controllers/admin/userRoleAuthority' // 前台用户角色权限
import articles from '../controllers/admin/articles' // 文章
import articleTag from '../co... | the_stack |
import {Label} from '@microsoft/bf-dispatcher';
import {LabelType} from '@microsoft/bf-dispatcher';
import {Result} from '@microsoft/bf-dispatcher';
import {ILabelArrayAndMap} from '@microsoft/bf-dispatcher';
import {PredictionStructureWithScoreLabelString, PredictionType} from '@microsoft/bf-dispatcher';
import {Pred... | the_stack |
import { createApiService,
AppListCloudPage,
BrowserActions,
FilterProps,
GroupIdentityService,
IdentityService,
LocalStorageUtil,
LoginPage,
ProcessDefinitionsService,
ProcessInstancesService,
QueryService,
StringUtil,
TasksService
} from '@alfresco/adf-testing';
import ... | the_stack |
import Opt = require('../../Opt');
import util = require('../../util/index');
import fs = require("fs");
import path = require("path");
import mkdirp = require("mkdirp");
var webpack = require("webpack");
import depMan=require("./dependencyManager");
import fsutil=require("../../util/fsutil");
var tsc = require('typesc... | the_stack |
import { emptyArray } from "../platform.js";
import { Notifier, Subscriber, SubscriberSet } from "./notifier.js";
import { Observable } from "./observable.js";
import { Updates } from "./update-queue.js";
/**
* A splice map is a representation of how a previous array of items
* was transformed into a new array of it... | the_stack |
import { PlateEditor } from '@udecode/plate-core';
import { jsx } from '@udecode/plate-test-utils';
import { createPlateTestEditor } from '../../../core/src/common/__tests__/createPlateTestEditor';
import { createTablePlugin } from './createTablePlugin';
jsx;
describe('onKeyDownTable', () => {
// https://github.com... | the_stack |
import {
Component,
EventEmitter,
Input,
NgModule,
OnDestroy,
Output,
OnInit,
ChangeDetectionStrategy,
ChangeDetectorRef,
Injector,
forwardRef,
HostListener,
AfterViewInit
} from '@angular/core';
import {ControlValueAccessor, NG_VALUE_ACCESSOR} from "@angular/forms";
... | the_stack |
import { AdbWrapper, DeviceInfo, PackageInfo } from 'electron/platform/android/adb-wrapper';
import { AndroidFriendlyDeviceNameProvider } from 'electron/platform/android/android-friendly-device-name-provider';
import {
AndroidServiceApkInfo,
AndroidServiceApkLocator,
AndroidServicePackageName,
} from 'elect... | the_stack |
import { dia } from 'jointjs';
import { Flo } from './flo-common';
import * as _ from 'lodash';
import * as _$ from 'jquery';
const joint: any = Flo.joint;
const $: any = _$;
const isChrome: boolean = /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor);
const isFF: boolean = navigator.userAgent.i... | the_stack |
import { VSBuffer } from 'vs/base/common/buffer';
import { CancellationToken } from 'vs/base/common/cancellation';
import { IStringDictionary } from 'vs/base/common/collections';
import { Event } from 'vs/base/common/event';
import { deepClone } from 'vs/base/common/objects';
import { URI } from 'vs/base/common/uri';
i... | the_stack |
import Dialog from '../Dialog';
import Client from '../../Client';
import JID from '../../JID';
import { IConnection } from '../../connection/Connection.interface';
import TableElement from '../util/TableElement';
import Translation from '../../util/Translation';
import Log from '../../util/Log';
import Account from '@... | the_stack |
import * as msRest from "@azure/ms-rest-js";
export const ResponseBase: msRest.CompositeMapper = {
serializedName: "ResponseBase",
type: {
name: "Composite",
polymorphicDiscriminator: {
serializedName: "_type",
clientName: "_type"
},
uberParent: "ResponseBase",
className: "Response... | the_stack |
import { notP } from "../../../Data/Bool"
import { equals, notEquals } from "../../../Data/Eq"
import { cnst, ident } from "../../../Data/Function"
import { fmap, fmapF, mapReplace } from "../../../Data/Functor"
import { over, set } from "../../../Data/Lens"
import { consF, countWith, elem, elemF, filter, find, flength... | the_stack |
import {Component, DebugElement, Provider, ViewChild} from '@angular/core';
import {async, ComponentFixture, fakeAsync, TestBed, flush, tick} from '@angular/core/testing';
import {FormsModule} from '@angular/forms';
import {By} from '@angular/platform-browser';
import {Platform} from '@angular/cdk/platform';
import {
... | the_stack |
import ee from 'event-emitter';
import { AlfrescoApiClient } from '../alfrescoApiClient';
import { AlfrescoApiConfig } from '../alfrescoApiConfig';
import { Authentication } from './authentication';
import { AuthenticationApi } from '../api/auth-rest-api/api/authentication.api';
import { AlfrescoApi } from '../alfresco... | the_stack |
import * as React from 'react'
import SimpleMarkdown from 'simple-markdown'
import * as Styles from '../../styles'
import Text, {LineClampType} from '../text'
import Box from '../box'
import Markdown from '../markdown'
import Emoji, {Props as EmojiProps} from '../emoji'
import {emojiIndexByName} from './emoji-gen'
impo... | the_stack |
import { ComponentClass } from "react";
import Taro, { Component, Config } from "@tarojs/taro";
import { AtTabBar, AtIcon, AtSearchBar } from "taro-ui";
import classnames from "classnames";
import { View, Image, Text } from "@tarojs/components";
import { connect } from "@tarojs/redux";
import CLoading from "../../compo... | the_stack |
* XML element names.
*/
export module XmlElementNames {
export var AllProperties: string = "AllProperties";
export var ParentFolderIds: string = "ParentFolderIds";
export var DistinguishedFolderId: string = "DistinguishedFolderId";
export var ItemId: string = "ItemId";
export var ItemIds: string = ... | the_stack |
import nock from 'nock';
import {describe, it, afterEach} from 'mocha';
import {getPolicy, GitHubRepo, githubRawBase} from '../src/policy';
import assert from 'assert';
import sinon from 'sinon';
// eslint-disable-next-line node/no-extraneous-import
import {Octokit} from '@octokit/rest';
nock.disableNetConnect();
con... | the_stack |
import { TActiveSection, TActiveInspectorTab, IDescriptor, TTargetReference, TSelectDescriptorOperation, ITargetReference, TSubTypes, ITreeDataTabs, TPath, TFilterEvents, TImportItems, IInspectorState, TGenericViewType, TCodeViewType, IAMCoverter, TFontSizeSettings, IDescriptorSettings, ISettings } from "../model/types... | the_stack |
import PropTypes from 'prop-types';
import expr from 'property-expr';
import React, {
useEffect,
useImperativeHandle,
useMemo,
useRef,
SyntheticEvent,
Fragment,
} from 'react';
import shallowequal from 'shallowequal';
import { BindingContext } from 'topeka';
import { useUncontrolledProp } from 'uncontrollab... | the_stack |
import { DialogConnectionFactory } from "../common.speech/DialogConnectorFactory";
import {
DialogServiceAdapter,
IAgentConfig,
IAuthentication,
IConnectionFactory,
RecognitionMode,
RecognizerConfig,
ServiceRecognizerBase,
SpeechServiceConfig,
} from "../common.speech/Exports";
import {
... | the_stack |
import * as core from "@actions/core";
import * as github from "@actions/github";
import * as im from "@actions/exec/lib/interfaces"; // eslint-disable-line no-unused-vars
import * as tr from "@actions/exec/lib/toolrunner";
import * as io from "@actions/io";
import * as os from "os";
import * as path from "path";
impor... | the_stack |
import React, { RefObject, createRef, Fragment } from "react";
import { Comment, Form, Button, Header, RatingProps, Rating, Popup, Divider, Container } from "semantic-ui-react";
import connectAllProps from "../../../shared/connect";
import User from "../../../models/User";
import CommentClass from "../../../models/Comm... | the_stack |
import * as msRest from "@azure/ms-rest-js";
import * as msRestAzure from "@azure/ms-rest-azure-js";
import * as Models from "../models";
import * as Mappers from "../models/billingSubscriptionsMappers";
import * as Parameters from "../models/parameters";
import { BillingManagementClientContext } from "../billingManage... | the_stack |
var Cetab: {[id: number]: string} = {
0x0000: 'BEEP',
0x0001: 'OPEN',
0x0002: 'OPEN.LINKS',
0x0003: 'CLOSE.ALL',
0x0004: 'SAVE',
0x0005: 'SAVE.AS',
0x0006: 'FILE.DELETE',
0x0007: 'PAGE.SETUP',
0x0008: 'PRINT',
0x0009: 'PRINTER.SETUP',
0x000A: 'QUIT',
0x000B: 'NEW.WINDOW',
0x000C: 'ARRANGE.ALL',
0x000D: 'W... | the_stack |
import React, { useCallback } from 'react';
import {
actions,
ActionType,
CellProps,
CellRendererProps,
Column,
Row,
TableInstance,
TableState,
} from 'react-table';
import {
Checkbox,
Code,
InputGroup,
Table,
Leading,
tableFilters,
TableFilterValue,
TableProps,
Tooltip,
DefaultCell,... | the_stack |
import {
Attribute,
Entity,
InvalidPrimaryKeyAttributesUpdateError,
InvalidUniqueAttributeUpdateError,
QUERY_ORDER,
} from '@typedorm/common';
import {Customer} from '../../../../__mocks__/inherited-customer';
import {table} from '../../../../__mocks__/table';
import {User, UserGSI1} from '../../../../__mocks... | the_stack |
import { List, Range } from 'immutable'
import { GameType } from '../../../common/games/configuration'
import {
canAddObservers,
canRemoveObservers,
getLobbySlots,
getLobbySlotsWithIndexes,
getObserverTeam,
hasObservers,
humanSlotCount,
isInObserverTeam,
isTeamType,
isUms,
Lobby,
MAX_OBSERVERS,
... | the_stack |
import set from 'lodash/set';
import cloneDeep from 'lodash/cloneDeep';
import '../../fixtures/window';
import { Project } from '../../../src/project/project';
import { Node } from '../../../src/document/node/node';
import { Designer } from '../../../src/designer/designer';
import formSchema from '../../fixtures/schema... | the_stack |
const path = require('path')
const fs = require('fs')
const recast = require('recast')
/**
* Re-using few private methods of react-docgen to avoid code duplication
*/
const isRequiredPropType = require('react-docgen/dist/utils/isRequiredPropType')
.default
const setPropDescription = require('react-docgen/dist/util... | the_stack |
import {each, map, isFunction, createHashMap, noop, HashMap, assert} from 'zrender/src/core/util';
import {
createTask, Task, TaskContext,
TaskProgressCallback, TaskProgressParams, TaskPlanCallbackReturn, PerformArgs
} from './task';
import {getUID} from '../util/component';
import GlobalModel from '../model/Gl... | the_stack |
import Component, { types } from "@ff/graph/Component";
import { ITweenState } from "@ff/graph/components/CTweenMachine";
import { IPulseContext } from "@ff/graph/components/CPulse";
import { ITour, ITours, ITourStep } from "client/schema/setup";
import { ELanguageType, DEFAULT_LANGUAGE } from "client/schema/comm... | the_stack |
const sys_op_test = 1 // sys_opcode op
const sys_op_exit = 2 // int status_code
const sys_op_openat = 3 // const char* path, usize flags, isize mode
const sys_op_close = 4 // sys_fd fd
const sys_op_read = 5 // sys_fd fd, void* data, usize size
const sys_op_write = 6 // sys_fd fd, const void* data, usize size
co... | the_stack |
import { EventEmitter } from 'events';
import { LasConfig, TimeRange } from '../types/core';
import { MP4Segment } from '../types/remux';
import { Log } from '../utils/log';
import { ErrorDetails, ErrorTypes } from './errors';
import LasEvents from './events';
// append关闭时queue允许缓存的长度上限
const QUEUE_SIZE_LIMIT = 200 * ... | the_stack |
import '@polymer/iron-icon/iron-icon';
import '../gr-avatar/gr-avatar';
import '../gr-hovercard-account/gr-hovercard-account';
import {getAppContext} from '../../../services/app-context';
import {getDisplayName} from '../../../utils/display-name-util';
import {isSelf, isServiceUser} from '../../../utils/account-util';
... | the_stack |
'use strict'
import { NightwatchBrowser } from 'nightwatch'
import init from '../helpers/init'
module.exports = {
before: function (browser: NightwatchBrowser, done: VoidFunction) {
init(browser, done, 'http://127.0.0.1:8080', true)
},
'Should zoom in editor #group1': function (browser: NightwatchBrowser)... | the_stack |
import { ConcreteRequest } from "relay-runtime";
import { FragmentRefs } from "relay-runtime";
export type OrderHistoryRowTestsQueryVariables = {};
export type OrderHistoryRowTestsQueryResponse = {
readonly commerceOrder: {
readonly " $fragmentRefs": FragmentRefs<"OrderHistoryRow_order">;
} | null;
};
e... | the_stack |
import * as Config from '@oclif/config'
import {expect, fancy} from 'fancy-test'
import Base, {flags} from '../src'
import {TestHelpClassConfig} from './helpers/test-help-in-src/src/test-help-plugin'
import * as PluginHelp from '@oclif/plugin-help'
const originalgetHelpClass = PluginHelp.getHelpClass
// const pjson ... | the_stack |
import * as events from 'events';
/**
* A standard node.js callback after an asynchronous call with no return value.
* @param error - This parameter will be undefined if the call was successful, or an error if not.
*/
export declare type AsyncCallback = (error: Error | undefined) => void;
/**
* A standard node.js... | the_stack |
import {InfluxDB} from '@influxdata/influxdb-client'
import {APIBase, RequestOptions} from '../APIBase'
import {
AddResourceMemberRequestBody,
LabelMapping,
LabelResponse,
LabelsResponse,
Logs,
ResourceMember,
ResourceMembers,
ResourceOwner,
ResourceOwners,
Run,
RunManually,
Runs,
Task,
Task... | the_stack |
import WxmlParser from '../../parser/wxml-parser'
const testCases = [
{
name: 'plain text',
input: 'This is the plain text',
expected: [{ type: 'text', content: 'This is the plain text' }],
},
{
name: 'simple tag',
input: '<view></view>',
expected: [{ type: 'view', attributes: {}, childre... | the_stack |
import * as fs from 'fs';
import * as path from 'path';
import { PROJECT_CONFIG } from '../../project.config';
import { ObjectUtils } from '../object/ObjectUtils';
import { StringUtils } from '../string/StringUtils';
import { UriUtils } from '../view/uri-utils';
import { generateDependencyTreeSingle } from './errorSta... | the_stack |
import { warn, info, error } from "../helper/Logger";
import { isFrame, downloadIconClass, version } from "../helper/Constants";
import { WaitUntil } from "../helper/Wait";
import { Downloader } from "../helper/Downloader";
import { Script } from "../helper/Script";
import { Config, UriType } from "../helper/ScriptConf... | the_stack |
import { EventEmitter } from "events";
import {
GraphQLError,
GraphQLObjectType,
GraphQLSchema,
GraphQLString,
} from "graphql";
import { createServer, Server } from "http";
import { AddressInfo } from "net";
import WebSocket from "ws";
import Benzene from "../../core/src/core";
import { Options } from "../../c... | the_stack |
import { AardvarkManifest, Av, AvActionState, AvInterfaceEventProcessor, AvNode, AvNodeTransform, AvNodeType, AvStartGadgetResult, EAction, EHand, EndpointAddr, endpointAddrToString, EndpointType, ENodeFlags, Envelope, InitialInterfaceLock, interfaceStringFromMsg, MessageType, MsgGadgetStarted, MsgGetInstalledGadgets, ... | the_stack |
import { Duration } from "chronoshift";
import { $, Expression, ExpressionJS, RefExpression } from "plywood";
import {
DEFAULT_LATEST_PERIOD_DURATIONS,
DEFAULT_TIME_SHIFT_DURATIONS
} from "../../../client/components/filter-menu/time-filter-menu/presets";
import { DEFAULT_LIMITS } from "../../limit/limit";
import { ... | the_stack |
import * as assert from 'assert';
import * as vscode from 'vscode-languageserver';
import * as scopes from '../src/sentence-model/Scopes';
import {QualId, ScopeFlags, Symbol, SymbolKind} from '../src/sentence-model/Scopes';
class MockSentence {
constructor(
public prev: MockSentence|null,
public next: MockS... | the_stack |
import {
workspace as Workspace, languages as Languages, TextDocument, TextDocumentChangeEvent, TextDocumentWillSaveEvent, TextEdit as VTextEdit,
DocumentSelector as VDocumentSelector, Event, EventEmitter, Disposable
} from 'vscode';
import {
ClientCapabilities, DidChangeTextDocumentNotification, DidChangeTextDocum... | the_stack |
export function createElement(name: string, props: Props, ...children: Node[]): Element;
/**
* Creates a new JSX fragment.
*
* A fragment is just an element without a name, but when inserted somewhere in the element tree, it disappears.
* @example
* const fragment =
* <>
* <div>Element 1</div>
* ... | the_stack |
import * as pulumi from "@pulumi/pulumi";
import { input as inputs, output as outputs } from "../types";
import * as utilities from "../utilities";
/**
* Manages a Cost Management Export for a Subscription.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azure fr... | the_stack |
import { IComponent } from "../types";
import { Vnode, TAttributes, isRepeatNode, isTextNode, isDirective, isEventDirective, isPropOrNvDirective, isTagName } from "../vnode";
import { cloneVnode, copyRepeatData, isFromVM, buildProps, argumentsIsReady, getVMFunctionArguments, getValueByValue, getVMVal, getVMFunction, s... | the_stack |
import moment from 'moment';
import React from 'react';
import {
Chart as ChartJS,
ArcElement,
LineElement,
BarElement,
PointElement,
BarController,
BubbleController,
DoughnutController,
LineController,
PieController,
PolarAreaController,
RadarController,
ScatterContr... | the_stack |
import * as React from 'react';
import CustomTable, { Column, Row, CustomRendererProps } from '../components/CustomTable';
import RunUtils, { ExperimentInfo } from '../../src/lib/RunUtils';
import { Apis, JobSortKeys, ListRequest } from '../lib/Apis';
import { Link, RouteComponentProps } from 'react-router-dom';
import... | the_stack |
import { GenderEnum, EthnicityEnum, EyeColorEnum, HairColorEnum, BreastTypeEnum, DateAccuracyEnum, FingerprintAlgorithm } from "./globalTypes";
// ====================================================
// GraphQL fragment: EditDetailsFragment
// ====================================================
export interface Edit... | the_stack |
// module eui.sys {
let STATE = "eui.State";
let ADD_ITEMS = "eui.AddItems";
let SET_PROPERTY = "eui.SetProperty";
let SET_STATEPROPERTY = "eui.SetStateProperty";
let BINDING_PROPERTIES = "eui.Binding.$bindProperties";
/**
* @private
* 代码生成工具基类
*/
export class CodeBase {
/**
* @private
*
* @ret... | the_stack |
/// <reference types="node" />
import * as Stream from "stream";
import { Commit } from "conventional-commits-parser";
/**
* Returns a transform stream.
*
* @param context Variables that will be interpolated to the template. This
* object contains, but not limits to the following fields.
* @param... | the_stack |
import * as assert from "assert";
import { AABB, EPSILON, Hit, Point, Sweep } from "../src/intersect";
function almostEqual(actual: number, expected: number, message?: string) {
if (Math.abs(actual - expected) > 1e-8) {
assert.equal(actual, expected, message);
}
}
function assertNotNull<T>(value: T | null): T... | the_stack |
import { HarnessLoader } from '@angular/cdk/testing';
import { TestbedHarnessEnvironment } from '@angular/cdk/testing/testbed';
import { Component } from '@angular/core';
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
impor... | the_stack |
import {
testSaga,
TestApi,
TestApiWithEffectsTesters,
} from 'redux-saga-test-plan';
import { Platform, AppState } from 'react-native';
import NetInfo, { NetInfoState } from '@react-native-community/netinfo';
import networkSaga, {
netInfoChangeSaga,
connectionIntervalSaga,
createNetInfoConnectionChangeChan... | the_stack |
import { Observable } from 'rxjs/Observable';
import * as fromRouter from '@ngrx/router-store';
import { localStorageSync } from 'ngrx-store-localstorage';
import { Article } from './article/article.model';
import { Book } from './book/book.model';
import { Claim } from './claim/claim.model';
import { Comment } from '... | the_stack |
import { Assertion, Orbit } from '@orbit/core';
import {
buildQuery,
buildTransform,
DefaultRequestOptions,
FullRequestOptions,
FullResponse,
OperationTerm,
QueryOrExpressions,
RequestOptions,
TransformOrOperations
} from '@orbit/data';
import {
AsyncRecordQueryable,
AsyncRecordUpdatable,
Initia... | the_stack |
'use strict';
// tslint:disable no-unused-expression
import * as vscode from 'vscode';
import { FabricGatewayConnection } from 'ibm-blockchain-platform-gateway-v1';
import { FabricRuntimeUtil, FabricGatewayRegistryEntry } from 'ibm-blockchain-platform-common';
import * as chai from 'chai';
import * as sinon from 'sin... | the_stack |
import {Table, TableExpiresSettings, TableUpdateOptions, TableWaitForActiveSettings} from ".";
import Internal from "../Internal";
const {internalProperties} = Internal.General;
import * as DynamoDB from "@aws-sdk/client-dynamodb";
import ddb from "../aws/ddb/internal";
import utils from "../utils";
import CustomError ... | the_stack |
import dayjs from 'dayjs';
import {
AnyFactorType,
ComputedParameter,
ConstantParameter,
Parameter,
ParameterComputeType,
ParameterExpression,
ParameterExpressionOperator,
ParameterInvalidReason,
ParameterJoint,
TopicFactorParameter,
ValueType,
ValueTypes
} from './factor-calculator-types';
import {
comput... | the_stack |
/* eslint-disable @typescript-eslint/class-name-casing */
/* eslint-disable @typescript-eslint/no-unused-vars */
/* eslint-disable @typescript-eslint/no-empty-interface */
/* eslint-disable @typescript-eslint/no-namespace */
/* eslint-disable no-irregular-whitespace */
import {
OAuth2Client,
JWT,
Compute,
User... | the_stack |
import { Component, OnInit } from "@angular/core";
import { PanelExtendMoveBackService } from "../panel-extend-move-back.service";
import { Subscription } from "rxjs";
import { PanelExtendService } from "../panel-extend.service";
import { PanelScopeEnchantmentService } from "../panel-scope-enchantment/panel-scope-encha... | the_stack |
import {
AnnotationMotivation,
ExternalResourceType,
} from "@iiif/vocabulary/dist-commonjs/";
import { Directory } from "./Directory";
import { dirname, extname } from "path";
import { IConfigJSON } from "./IConfigJSON";
import { join, basename } from "path";
import { promise as glob } from "glob-promise";
import ... | the_stack |
import * as _ from 'lodash';
import * as setProtocolUtils from 'set-protocol-utils';
import { Address } from 'set-protocol-utils';
import {
CoreContract,
CoreMockContract,
CTokenExchangeIssuanceModuleContract,
ExchangeIssuanceModuleContract,
OracleWhiteListContract,
RebalancingSetCTokenExchangeIssuanceModu... | the_stack |
import 'zone.js/dist/zone.js';
import {
tracing,
Span,
ATTRIBUTE_HTTP_STATUS_CODE,
ATTRIBUTE_HTTP_METHOD,
WindowWithOcwGlobals,
LinkType,
Link,
} from '@opencensus/web-core';
import {
InteractionTracker,
RESET_TRACING_ZONE_DELAY,
} from '../src/interaction-tracker';
import {
doPatching,
setXhrAttr... | the_stack |
namespace SwiftSnapper {
export module CameraManager {
let video,
mediaStream;
var Capture = Windows.Media.Capture;
var DeviceInformation = Windows.Devices.Enumeration.DeviceInformation;
var DeviceClass = Windows.Devices.Enumeration.DeviceClass;
var DisplayOrien... | the_stack |
import EventEmitter from 'eventemitter3';
import { history } from 'prosemirror-history';
import { DOMParser, Node as ProsemirrorNode, Schema } from 'prosemirror-model';
import { EditorState, Plugin, Transaction } from 'prosemirror-state';
import { EditorView, NodeView } from 'prosemirror-view';
import { ISylApiAdapter... | the_stack |
const HEX_CHARS = "0123456789abcdef".split("");
const EXTRA = Uint32Array.of(-2147483648, 8388608, 32768, 128);
const SHIFT = Uint32Array.of(24, 16, 8, 0);
const blocks = new Uint32Array(80);
export class Sha1 {
#blocks: Uint32Array;
#block: number;
#start: number;
#bytes: number;
#hBytes: number;
#finali... | the_stack |
// TODO: fix linter
// tslint:disable
import { Directionality } from '@angular/cdk/bidi';
import { OverlayContainer } from '@angular/cdk/overlay';
import { Platform } from '@angular/cdk/platform';
import { ScrollDispatcher } from '@angular/cdk/scrolling';
import {
ChangeDetectionStrategy,
Component,
DebugEl... | the_stack |
import {Size} from "./types"
import {BBox} from "./util/bbox"
import {Context2d} from "./util/canvas"
import {font_metrics, /*glyph_metrics,*/ FontMetrics, parse_css_font_size} from "./util/text"
import {max, max_by, sum} from "./util/array"
import {isNumber} from "./util/types"
import {Rect, AffineTransform} from "./u... | the_stack |
import {
Entity,
EntityRequest,
fetchEntity,
fetchQuestionBackLinks,
fetchStoryBackLinks,
getCollectionSchema,
request,
ResourceType,
SearchBlockResult,
searchBlocks,
translateSmartQuery
} from '@app/api'
import { useAsync } from '@app/hooks'
import { useWorkspace } from '@app/hooks/useWorkspace'
... | the_stack |
'use strict';
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import * as _ from 'lodash';
import './index.less';
import 'butterfly-dag/dist/index.css';
import Canvas from './canvas/canvas';
import Edge from './canvas/edge';
import {transformInitData, diffPropsData} from './adaptor';
// 右键菜单配置
... | the_stack |
import * as React from 'react';
import { connect } from 'react-redux';
import Tour from 'reactour';
import { Localized } from '@fluent/react';
import './InteractiveTour.css';
import * as locale from 'core/locale';
import * as project from 'core/project';
import * as user from 'core/user';
import type { ReactourStep ... | the_stack |
import { Diagnostic, DiagnosticSeverity, Position, Range, TextDocument } from "vscode";
import { Block, BlockType, Chunk, ConsumerBlock, DynamicChunk, KafkaFileDocument, CalleeFunction, MustacheExpression, ProducerBlock, Property } from "../parser/kafkaFileParser";
import { ConsumerValidator } from "../../../validato... | the_stack |
import { VoiceOpcodes } from 'discord-api-types/voice/v4';
import { VoiceUDPSocket } from './VoiceUDPSocket';
import { VoiceWebSocket } from './VoiceWebSocket';
import * as secretbox from '../util/Secretbox';
import { Awaited, noop } from '../util/util';
import type { CloseEvent } from 'ws';
import { TypedEmitter } fro... | the_stack |
import * as cspell from 'cspell-lib';
import { getDefaultSettings, Pattern } from 'cspell-lib';
import * as os from 'os';
import * as Path from 'path';
import { Connection, WorkspaceFolder } from 'vscode-languageserver/node';
import { URI as Uri } from 'vscode-uri';
import { CSpellUserSettings } from '../config/cspellC... | the_stack |
import { expect, test } from '@jest/globals';
import 'reflect-metadata';
import { createBSONSizer, getBSONSerializer, getBSONSizer, getValueSize, hexToByte, uuidStringToByte } from '../src/bson-serialize';
import { ExtractClassType, f, getClassSchema, jsonSerializer, nodeBufferToArrayBuffer, t } from '@deepkit/type';
i... | the_stack |
import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
/**
* <p>The specified version does not match the version of the document.</p>
*/
export interface ConflictException extends __SmithyException, $MetadataBearer {
name: "ConflictException";
$fault: "client";
... | the_stack |
import React, { FC, useRef } from 'react';
import { useMutation, useQueryClient } from 'react-query';
import { Alert, Col, Grid, Row } from 'react-bootstrap';
import * as Yup from 'yup';
import { Field, FieldProps, Form, Formik, FormikProps } from 'formik';
import { toast } from 'react-toastify';
import { YBButton, YBF... | the_stack |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.