text stringlengths 2.5k 6.39M | kind stringclasses 3
values |
|---|---|
import {BigInt} from 'app/common/BigInt';
import * as MemBuffer from 'app/common/MemBuffer';
import {EventEmitter} from 'events';
import * as util from 'util';
export interface MarshalOptions {
stringToBuffer?: boolean;
version?: number;
}
export interface UnmarshalOptions {
bufferToString?: boolean;
}
functi... | the_stack |
import {assert} from 'chai';
import type * as puppeteer from 'puppeteer';
import {$, getBrowserAndPages, step} from '../../shared/helper.js';
import {describe, it} from '../../shared/mocha-extensions.js';
import {CONSOLE_MESSAGE_WRAPPER_SELECTOR, deleteConsoleMessagesFilter, filterConsoleMessages, getConsoleMessages, ... | the_stack |
import * as ts from 'typescript';
import { inspect } from 'util';
import { TARGET_LANGUAGES, TargetLanguage } from './languages';
import { RecordReferencesVisitor } from './languages/record-references';
import * as logging from './logging';
import { renderTree } from './o-tree';
import { AstRenderer, AstHandler, AstRe... | the_stack |
import { WebXRFeaturesManager, WebXRFeatureName } from "../webXRFeaturesManager";
import { WebXRSessionManager } from "../webXRSessionManager";
import { AbstractMesh } from "../../Meshes/abstractMesh";
import { Observer } from "../../Misc/observable";
import { WebXRInput } from "../webXRInput";
import { WebXRInput... | the_stack |
import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
/**
* <p>You do not have sufficient access to perform this action.</p>
*/
export interface AccessDeniedException extends __SmithyException, $MetadataBearer {
name: "AccessDeniedException";
$fault: "client";
... | the_stack |
import { Buffer } from '@stacks/common';
import { cloneDeep } from './utils';
import {
ClarityValue,
uintCV,
intCV,
contractPrincipalCV,
standardPrincipalCV,
noneCV,
bufferCV,
falseCV,
trueCV,
ClarityType,
getCVTypeString,
bufferCVFromString,
} from './clarity';
import { ContractCallPayload } fr... | the_stack |
var forPrettyPrinter = false;
interface ITypeDefinition {
name: string;
baseType: string;
interfaces?: string[];
children: IMemberDefinition[];
isTypeScriptSpecific: boolean;
}
interface IMemberDefinition {
name: string;
type?: string;
isToken?: boolean;
isList?: bool... | the_stack |
import { VectorChainReader, waitForTransaction } from "@connext/vector-contracts";
import {
AllowedSwap,
HydratedProviders,
jsonifyError,
Result,
TAddress,
TBytes32,
TIntegerString,
MinimalTransaction,
CheckStatusParams,
getConfirmationsForChain,
} from "@connext/vector-types";
import { getRandomByt... | the_stack |
import {SearchableProps} from './ui';
import {Logger} from 'flipper-common';
import {
Searchable,
Button,
ButtonGroup,
FlexBox,
FlexColumn,
FlexRow,
Glyph,
ContextMenu,
styled,
colors,
} from './ui';
import {PluginDefinition, DevicePluginMap, ClientPluginMap} from './plugin';
import {connect} from '... | the_stack |
import { expect } from "chai";
import { Util, ICommandActions, ICommandParameters } from "../src/util";
import { AppserviceMock } from "./mocks/appservicemock";
// we are a test file and thus need those
/* tslint:disable:no-unused-expression max-file-line-count no-any */
function CreateMockIntent(members): any {
... | the_stack |
import BigNumber from 'bignumber.js';
import { TransactionObject } from 'web3/eth/types';
import { OrderMapper } from '@dydxprotocol/exchange-wrappers';
import { LimitOrders } from '../LimitOrders';
import { StopLimitOrders } from '../StopLimitOrders';
import { CanonicalOrders } from '../CanonicalOrders';
import { Cont... | the_stack |
'use strict';
import * as strings from 'vs/base/common/strings';
import { Position } from 'vs/editor/common/core/position';
import { Range } from 'vs/editor/common/core/range';
import { FindMatch, EndOfLinePreference } from 'vs/editor/common/editorCommon';
import { CharCode } from 'vs/base/common/charCode';
import { T... | the_stack |
import { RangeNavigator } from '../range-navigator';
import { valueToCoefficient, textElement, firstToLowerCase } from '../../common/utils/helper';
import { PathOption, Rect, measureText, TextOption, SvgRenderer } from '@syncfusion/ej2-svg-base';
import { DateTime } from '../../chart/axis/date-time-axis';
import { Inte... | the_stack |
import * as widgets from '@jupyter-widgets/base';
import * as d3 from 'd3';
import { ColorScale, GeoScale, LinearScale, OrdinalScale } from 'bqscales';
import { MessageLoop } from '@lumino/messaging';
import { Widget } from '@lumino/widgets';
import { d3GetEvent } from './utils';
import * as _ from 'underscore';
im... | the_stack |
import {action} from '@storybook/addon-actions';
import AlignCenter from '@spectrum-icons/workflow/AlignCenter';
import AlignLeft from '@spectrum-icons/workflow/AlignLeft';
import AlignRight from '@spectrum-icons/workflow/AlignRight';
import Blower from '@spectrum-icons/workflow/Blower';
import Book from '@spectrum-ico... | the_stack |
import { Component, OnInit, ComponentFactoryResolver, ReflectiveInjector, ElementRef, EventEmitter, Output, Inject, Input, ViewChild } from '@angular/core';
import { Filter } from '../../secondary-components/jazz-table/jazz-filter';
import { Sort } from '../../secondary-components/jazz-table/jazz-table-sort';
import { ... | the_stack |
import { AppState } from '../../app.reducer';
import eventManager from '@joplin/lib/eventManager';
import NoteListUtils from '../utils/NoteListUtils';
import { _ } from '@joplin/lib/locale';
import time from '@joplin/lib/time';
import BaseModel from '@joplin/lib/BaseModel';
import bridge from '../../services/bridge';
i... | the_stack |
import { Components, getFragment, registerComponent } from '../../lib/vulcan-lib';
import React, { useState } from 'react';
import times from 'lodash/times';
import groupBy from 'lodash/groupBy';
import maxBy from 'lodash/maxBy';
import { useMutation, useQuery, gql } from '@apollo/client';
import { useCurrentUser } fro... | the_stack |
// Mocha discourages using arrow functions, see https://mochajs.org/#arrow-functions
import {
assertRejected,
getTestResourceUrl,
silenceLoggingAroundFunction,
stubGlobalConstructor
} from "@here/harp-test-utils";
import * as chai from "chai";
import * as chaiAsPromised from "chai-as-promised";
chai... | the_stack |
import React, { SyntheticEvent, Fragment } from "react";
import ReactDOM from "react-dom";
import _ from "lodash";
import {
Player, BigPlayButton, ControlBar, CurrentTimeDisplay,
TimeDivider, PlaybackRateMenuButton, VolumeMenuButton,
} from "video-react";
import { IAssetProps } from "./assetPreview";
import { I... | the_stack |
import {
AfterViewInit,
Directive,
EventEmitter,
Inject,
InjectFlags,
Injector,
Input,
OnChanges,
OnDestroy,
OnInit,
Output,
SimpleChanges
} from '@angular/core';
import { AbstractControl, ControlValueAccessor, FormControl, NgControl, Validator } from '@angular/forms';
import { Subscription } fr... | the_stack |
import { PureComponent } from 'react'
import { connect } from 'redaction'
import { BigNumber } from 'bignumber.js'
import { FormattedMessage } from 'react-intl'
import CSSModules from 'react-css-modules'
import getCoinInfo from 'common/coins/getCoinInfo'
import utils from 'common/utils'
import erc20Like from 'common/er... | the_stack |
import {
Block,
BlockFactory,
CssBlockError,
DEFAULT_NAMESPACE,
SourceRange,
isNamespaceReserved,
} from "@css-blocks/core";
import { AST, Walker, preprocess } from "@glimmer/syntax";
import { ElementNode } from "@glimmer/syntax/dist/types/lib/types/nodes";
import { Position, TextDocuments } from "vscode-la... | the_stack |
import { AxisRenderer, IAxisRendererSettings, IAxisRendererPrivate } from "./AxisRenderer";
import { p100 } from "../../../core/util/Percent";
import type { IPoint } from "../../../core/util/IPoint";
import * as $type from "../../../core/util/Type";
import * as $utils from "../../../core/util/Utils";
import type { Grap... | the_stack |
import Point from '@mapbox/point-geometry';
import Transform from './transform';
import LngLat from './lng_lat';
import {OverscaledTileID, CanonicalTileID} from '../source/tile_id';
import {fixedLngLat, fixedCoord} from '../../test/unit/lib/fixed';
import type Terrain from '../render/terrain';
describe('transform', ()... | the_stack |
import "./Tests";
import { SortDefinitionOrder, TriggerCallbackHandler, SortDefinition, RelativeSortDefinition, Parser, Widget, ParsedCell, TablesorterHeading, StorageConfiguration } from "tablesorter";
import { RelativeSorting } from "tablesorter/Sorting/RelativeSorting";
import { StorageType } from "tablesorter/Stora... | the_stack |
module Fayde.Controls {
var Key = Input.Key;
var MAX_UNDO_COUNT = 10;
export class TextBoxBase extends Control {
static CaretBrushProperty = DependencyProperty.RegisterCore("CaretBrush", () => Media.Brush, TextBoxBase);
static SelectionForegroundProperty = DependencyProperty.RegisterCor... | the_stack |
import { ApiObject, ApiObjectMetadata, GroupVersionKind } from 'cdk8s';
import { Construct } from 'constructs';
/**
* Jenkins is the Schema for the jenkins API
*
* @schema Jenkins
*/
export class Jenkins extends ApiObject {
/**
* Returns the apiVersion and kind for "Jenkins"
*/
public static readonly GV... | the_stack |
import { TextStyleDefinition } from "@here/harp-datasource-protocol";
import { expect } from "chai";
import * as sinon from "sinon";
import * as THREE from "three";
import { TextElement } from "../lib/text/TextElement";
import { DEFAULT_FONT_CATALOG_NAME } from "../lib/text/TextElementsRenderer";
import { TextElementT... | the_stack |
import {
Application,
ApplicationConfig,
Binding,
BindingAddress,
Constructor,
Context,
Provider,
Server,
} from '@loopback/core';
import {
ExpressMiddlewareFactory,
ExpressRequestHandler,
Middleware,
MiddlewareBindingOptions,
} from '@loopback/express';
import {OpenApiSpec, OperationObject} fro... | the_stack |
import {
DATA_SOURCE_ENUM,
ENGINE_SOURCE_TYPE_ENUM,
FLINK_VERSIONS,
ID_COLLECTIONS,
KAFKA_DATA_TYPE,
RDB_TYPE_ARRAY,
} from '@/constant';
import type { UniqueId } from '@dtinsight/molecule/esm/common/types';
/**
* 是否需要 schema
*/
export const isSchemaRequired = (type?: DATA_SOURCE_ENUM) => {
return !!(
type ... | the_stack |
import {
artifacts as assetProxyArtifacts,
encodeERC20AssetData,
encodeERC721AssetData,
encodeMultiAssetData,
encodeStaticCallAssetData,
TestStaticCallTargetContract,
} from '@0x/contracts-asset-proxy';
import { DummyERC20TokenContract } from '@0x/contracts-erc20';
import { DummyERC721TokenContr... | the_stack |
import type { b64string } from '@tanker/crypto';
import { tcrypto, utils } from '@tanker/crypto';
import { TankerError, DeviceRevoked, InternalError, InvalidArgument, InvalidVerification, OperationCanceled, PreconditionFailed } from '@tanker/errors';
import { fetch, retry, exponentialDelayGenerator } from '@tanker/http... | the_stack |
import React, { useCallback, useEffect, useRef, useState } from 'react';
import { grey } from '@ant-design/colors';
import { Alert, Button, Divider, message, Typography } from 'antd';
import { useHistory } from 'react-router';
import { ApolloError } from '@apollo/client';
import styled from 'styled-components';
import ... | the_stack |
import {
Matrix4,
BufferAttribute,
BufferGeometry,
Vector2,
Vector4,
Quaternion,
Matrix3,
Mesh,
Object3D,
Vector3,
CustomBlending,
SrcAlphaFactor,
OneMinusSrcAlphaFactor,
AddEquation,
DoubleSide,
ShaderMaterial,
Scene
} from 'three'
/**
* @author Mark Kellogg - http://www.github.com/... | the_stack |
import {Injectable} from '@angular/core';
import {StreamService} from '../../shared/api/stream.service';
import {AppService} from '../../shared/api/app.service';
import {Stream, StreamDeployConfig} from '../../shared/model/stream.model';
import {forkJoin, Observable, of} from 'rxjs';
import {map, mergeMap} from 'rxjs/o... | the_stack |
import { ConfigurationChangeEvent, Disposable, workspace } from 'vscode';
import { IActionContext, parseError } from 'vscode-azureextensionui';
import { ProjectLanguage, projectTemplateKeySetting, TemplateFilter } from '../constants';
import { ext, TemplateSource } from '../extensionVariables';
import { FuncVersion } f... | the_stack |
import { useRouter } from 'next/router';
import { Dialog, Transition } from '@headlessui/react';
import { Fragment, useState } from 'react';
import truncate from 'lodash.truncate';
import { useClerkSWR } from '@/lib/fetcher';
import { notionSites } from '@prisma/client';
import SidebarLayout from '@/layouts/SidebarLay... | the_stack |
"use strict";
import * as nexpect from "nexpect";
import * as rimraf from "rimraf";
import * as mkdirp from "mkdirp";
import * as fs from "fs";
import * as path from "path";
describe("command line interface", () => {
var dtsmPath = path.resolve(__dirname, "../bin/dtsm");
var testWorkingDir = path.resolve(pr... | the_stack |
import {
Assert, AITestClass, PollingAssert, EventValidator, TraceValidator, ExceptionValidator,
MetricValidator, PageViewPerformanceValidator, PageViewValidator, RemoteDepdencyValidator
} from "@microsoft/ai-test-framework";
import { SinonStub, SinonSpy } from 'sinon';
import {
Exception, SeverityLevel,... | the_stack |
import { Store } from 'ember-orbit';
import {
Planet,
Moon,
Star,
Ocean,
BinaryStar,
PlanetarySystem
} from 'dummy/tests/support/dummy-models';
import { createStore } from 'dummy/tests/support/store';
import { buildTransform } from '@orbit/data';
import { module, test } from 'qunit';
import { setupTest } fr... | the_stack |
import { Directionality } from '@angular/cdk/bidi';
import { coerceBooleanProperty } from '@angular/cdk/coercion';
import {
ConnectedOverlayPositionChange,
ConnectionPositionPair,
FlexibleConnectedPositionStrategy,
Overlay,
OverlayRef,
ScrollDispatcher
} from '@angular/cdk/overlay';
import { Ove... | the_stack |
import * as fs from "fs";
import * as path from "path";
import * as toolrunner from "@actions/exec/lib/toolrunner";
import * as yaml from "js-yaml";
import * as analysisPaths from "./analysis-paths";
import { CODEQL_VERSION_COUNTS_LINES, getCodeQL } from "./codeql";
import * as configUtils from "./config-utils";
impo... | the_stack |
import * as date from './mocks/date';
import * as vscode from './mocks/vscode';
jest.mock('vscode', () => vscode, { virtual: true });
jest.mock('fs');
jest.mock('https');
jest.mock('../src/dataSource');
jest.mock('../src/extensionState');
jest.mock('../src/logger');
import * as fs from 'fs';
import { ClientR... | the_stack |
export as namespace Zdog;
/** @see {@link Anchor} */
export interface AnchorOptions {
/**
* Adds item to parent item.
* Shapes can be added as children to other shapes.
* A child shape is positioned relative to its parent.
* @see {@link https://zzz.dog/api#anchor-addto Zdog API}
*/
rea... | the_stack |
import { contracts, ContractsData } from 'french-contractions';
/*
accord des adjectifs
Actuellement implémenté via des règles et des listes d'exceptions. Les règles sont nombreuses avec plein d'exceptions.
L'implémentation faite actuellement a une bonne couverture, mais quelques impasses, et certainement quelq... | the_stack |
import {
ChangeRangeInterface,
EngineInterface,
RangeInterface,
} from '../types';
import { $ } from '../node';
import { CARD_ELEMENT_KEY, CARD_KEY, EDITABLE_SELECTOR } from '../constants';
import Range from '../range';
import { isFirefox } from '../utils';
export type ChangeRangeOptions = {
onSelect?: (range: Ran... | the_stack |
import { OrbitGtBlobProps, RealityDataFormat, RealityDataProvider, RealityDataSourceKey } from "@itwin/core-common";
import { expect } from "chai";
import { CesiumIonAssetProvider, getCesiumAssetUrl } from "../core-frontend";
import { RealityDataSource } from "../RealityDataSource";
describe("RealityDataSource", () =>... | the_stack |
import { flattenBy, functionalUpdate, memo, RequiredKeys } from '../utils'
import {
Updater,
TableOptionsResolved,
TableState,
TableInstance,
Renderable,
TableGenerics,
InitialTableState,
Row,
Column,
RowModel,
ColumnDef,
} from '../types'
//
import { createColumn } from './column'
import { Head... | the_stack |
import cbor from 'cbor';
import chalk from 'chalk';
import dgram from 'dgram';
import express from 'express';
import net from 'net';
import upnp from 'node-ssdp';
import {Readable} from 'stream';
import xmlBuilder from 'xmlbuilder2';
import yargs from 'yargs';
import {ControlKind, DiscoveryKind} from '../common/discov... | the_stack |
import * as React from 'react';
import { IPropertyFieldDocumentPickerPropsInternal } from './PropertyFieldDocumentPicker';
import { Label } from 'office-ui-fabric-react/lib/Label';
import { IconButton, DefaultButton, PrimaryButton, IButtonProps } from 'office-ui-fabric-react/lib/Button';
import { Panel, PanelType } fro... | the_stack |
import { ActionType } from "../common";
import * as actions from "./actions";
import { getUserProviderInfo } from "./actions";
import { ProvidersState, ProvidersActionsType } from "./types";
import { CodeStreamState } from "..";
import {
CSMe,
CSMSTeamsProviderInfo,
CSProviderInfos,
CSSlackProviderInfo
} from "@cod... | the_stack |
import { EventEmitter } from 'events'
import { inject, injectable } from 'inversify'
import * as tokens from '@webmonetization/wext/tokens'
import { flatMapSlow } from '../util/flatMapSlow'
import { getFrameSpec } from '../../util/tabs'
import {
Command,
ToBackgroundMessage,
ToContentMessage
} from '../../types... | the_stack |
import execa from 'execa';
import prettyBytes from 'pretty-bytes';
import glob from 'glob-promise';
import fs from 'fs-extra';
import path from 'path';
import tmp from 'tmp';
import { build } from 'esbuild';
import {
isCI,
toInteger,
TSError,
toPascalCase,
set,
toUpperCase
} from '@terascope/ut... | the_stack |
namespace com.keyman.osk {
export class KeyData {
['key']: OSKKey;
['keyId']: string;
['subKeys']?: OSKKeySpec[];
constructor(keyData: OSKKey, keyId: string) {
this['key'] = keyData;
this['keyId'] = keyId;
}
}
export type KeyElement = HTMLDivElement & KeyData;
// Many thanks t... | the_stack |
import type { KVS, KVSOptions, StoreNames, StoreValue } from "@kvs/types";
import type { JsonValue } from "@kvs/storage";
const debug = {
enabled: false,
log(...args: any[]) {
if (!debug.enabled) {
return;
}
console.log(...args);
}
};
const openDB = ({
name,
vers... | the_stack |
/*global renderingCommonGetTechniqueIndexFn: false*/
/*global Effect: false*/
/*global VertexBufferManager: false*/
/*global Geometry: false*/
/*global Reference: false*/
/*exported loadCustomFileShapeFn*/
//
// loadCustomFileShapeFn
//
/* tslint:disable:no-unused-variable */
var loadCustomFileShape = function loadCu... | the_stack |
import { Injectable } from '@angular/core';
import { BungieService } from '@app/service/bungie.service';
import { Player, SearchResult, SelectedUser, TriumphRecordNode, Platform, Const, InventoryItem, Character } from '@app/service/model';
import { BehaviorSubject, Observable } from 'rxjs';
import { map } from 'rxjs/op... | the_stack |
import * as nls from 'vscode-nls'
import * as _ from 'lodash'
const localize = nls.loadMessageBundle()
import * as path from 'path'
import * as vscode from 'vscode'
import { samDeployDocUrl } from '../../shared/constants'
import * as localizedText from '../../shared/localizedText'
import { getLogger } from '../../sha... | the_stack |
type ContextMenuSettings = import("../thirdParty/handsontable/handsontable").contextMenu.Settings
type GridSettings = import("../thirdParty/handsontable/handsontable").GridSettings
/* --- common helpers --- */
/**
* displayed or hides the options bar content
* @param shouldCollapse
*/
function toggleOptionsBa... | the_stack |
import React, { useState, useEffect } from 'react';
import { useTranslation } from 'react-i18next';
import {
EyeOutlined,
EyeInvisibleOutlined,
NodeIndexOutlined,
DisconnectOutlined,
TagOutlined,
SearchOutlined,
HighlightOutlined,
} from '@ant-design/icons';
const isBrowser = typeof window !== 'undefined... | the_stack |
import { } from 'jasmine';
import * as td from 'testdouble'
import { TestBed, inject, async, ComponentFixture, fakeAsync, tick } from '@angular/core/testing';
import { DragulaDirective } from '../components/dragula.directive';
import { DragulaService } from '../components/dragula.service';
import { DrakeWithModels } fr... | the_stack |
import { Immutable } from '../format/format';
import {
decodeBech32,
encodeBech32,
isBech32CharacterSet,
regroupBits,
} from './bech32';
export enum CashAddressNetworkPrefix {
mainnet = 'bitcoincash',
testnet = 'bchtest',
regtest = 'bchreg',
}
export const cashAddressBitToSize = {
0: 160,
1: 192,
... | the_stack |
import * as Redis from 'ioredis';
import { Module, RedisModuleOptions } from '../module.base';
import { RejsonCommander } from './rejson.commander';
import { ReJSONGetParameters } from './rejson.types';
export class ReJSON extends Module {
private rejsonCommander = new RejsonCommander();
/**
* Initializi... | the_stack |
let cache;
export const MD5 = function(data) {
//use cache first
if(cache) {
const cache_ret = cache.get(data);
if(cache_ret) {
return cache_ret;
}
}
// convert number to (unsigned) 32 bit hex, zero filled string
function to_zerofilled_hex(n) {
... | the_stack |
/////*1*/var a;var c , b;var $d
/////*2*/var $e
/////*3*/var f
/////*4*/a++;b++;
////
/////*5*/function f ( ) {
/////*6*/ for (i = 0; i < 10; i++) {
/////*7*/ k = abc + 123 ^ d;
/////*8*/ a = XYZ[m (a[b[c][d]])];
/////*9*/ break;
////
/////*10*/ ... | the_stack |
import LineChart from "./Components/LineChart/LineChart";
import AvailabilityChart from "./Components/AvailabilityChart/AvailabilityChart";
import PieChart from "./Components/PieChart/PieChart";
import ScatterPlot from "./Components/ScatterPlot/ScatterPlot";
import GroupedBarChart from "./Components/GroupedBarChart/Gro... | the_stack |
import { ResolvedLayoutConfig, ResolvedPopoutLayoutConfig } from '../config/resolved-config';
import { PopoutBlockedError } from '../errors/external-error';
import { UnexpectedNullError, UnexpectedUndefinedError } from '../errors/internal-error';
import { ContentItem } from '../items/content-item';
import { LayoutManag... | the_stack |
import { Component, Input, Output, Pipe, PipeTransform, ViewChild, EventEmitter } from '@angular/core';
import { ModalDirective } from 'ngx-bootstrap';
import { Validators, FormGroup, FormControl, FormArray, FormBuilder } from '@angular/forms';
import { ExportServiceCfg } from './export.service'
import { TreeView} from... | the_stack |
* Original code taken from https://github.com/kvz/locutus
*/
function initCache () {
const store: any[] = []
// cache only first element, second is length to jump ahead for the parser
const cache = function cache (value) {
store.push(value[0])
return value
}
cache.get = (index) => {
if (index >... | the_stack |
import {
SPDestinationNode,
SPNode,
NodePlaybackDescription
} from '../nodes/SPNodeFactory';
import { TimeInstant } from '../time';
import { Mutation, MutationNames, CommandsMutation } from '../Mutations';
import { ContentCache } from '../ContentCache';
import { Score } from 'nf-grapher';
import { DirectedScore }... | the_stack |
/**
* @license Copyright © 2013 onwards, Andrew Whewell
* All rights reserved.
*
* Redistribution and use of this software in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyri... | the_stack |
import { Injectable, Inject } from "@angular/core";
import { RegistrationUser } from "../../../app/components/auth/register/registration.component";
import { environment } from "../../../environments/environment";
/**
* Created by Vladimir Budilov
*/
declare var AWSCognito: any;
declare var AWS: any;
export inter... | the_stack |
import { DID, SchemaManager } from 'identity_ts';
import { v4 as uuid } from 'uuid';
import zmq from 'zeromq';
import { maxDistance, operations, security } from '../config.json';
import { processReceivedCredentialForUser, VERIFICATION_LEVEL } from '../utils/credentialHelper';
import { readData, writeData } from '../uti... | the_stack |
import React from "react";
import {BrowserRouter as Router} from "react-router-dom";
import {fireEvent, render, wait, waitForElement} from "@testing-library/react";
import CustomCard from "./custom-card";
import axiosMock from "axios";
import data from "../../../assets/mock-data/curation/flows.data";
import {act} from ... | the_stack |
import EthVal from 'ethval'
import Table from 'cli-table'
import colors from 'colors'
import moment from 'moment'
import terminalLink from 'terminal-link'
import { PrefixedHexString } from 'ethereumjs-util'
import * as asciichart from 'asciichart'
import { GSNContractsDeployment } from '@opengsn/common/dist/GSNContrac... | the_stack |
import { CSharpRenderer } from '../CSharpRenderer';
import { CSharpPreset } from '../CSharpPreset';
import { getUniquePropertyName, DefaultPropertyNames, FormatHelpers, TypeHelpers, ModelKind } from '../../../helpers';
import { CommonInputModel, CommonModel } from '../../../models';
function renderSerializeProperty(mo... | the_stack |
import React, { Component } from "react";
import ReactDOM from "react-dom";
import * as d3 from "d3";
import { InfoTooltip } from "./InfoTooltip.tsx"
import { DirectionalHint } from '@fluentui/react';
import { IconButton } from '@fluentui/react/lib/Button';
type PerformanceCompatibilityState = {
data: any,
h1Perf... | the_stack |
import { EventBus, EventBusOffListener } from './EventBus'
import { loadResource, LoadResourceUrlType } from './loadResource'
import { mapValues, noop } from 'lodash-uni'
declare const wx: any
/**
* 微信 JSSDK 支持的 API。
*
* @public
*/
export type WechatJsApi =
| 'checkJsApi'
| 'updateAppMessageShareData'
| 'up... | the_stack |
import { testTokenization } from '../test/testRunner';
testTokenization('pla', [
// Keywords
// .i
[
{
line: '.i 50',
tokens: [
{ startIndex: 0, type: 'keyword.i.pla' },
{ startIndex: 2, type: '' },
{ startIndex: 3, type: 'number.pla' }
]
},
{
line: ' .i 333 # Input',
tokens: [
... | the_stack |
import {
authClient as auth,
authClientWithSession as authWithSession,
authSubscriptionClient,
clientApiAutoConfirmOffSignupsEnabledClient as phoneClient,
clientApiAutoConfirmDisabledClient as signUpDisabledClient,
clientApiAutoConfirmEnabledClient as signUpEnabledClient,
} from './lib/clients'
import { moc... | the_stack |
import AxiosError from 'axios-error';
import get from 'lodash/get';
import { MergeExclusive } from 'type-fest';
import { MessengerClient } from 'bottender';
import * as Types from './FacebookTypes';
function handleError(err: AxiosError): never {
if (err.response && err.response.data) {
const error = get(err, 'r... | the_stack |
* 内容审核 Ocr 文字鉴政、敏感任务结果类型
*/
export interface VodPoliticalOcrReviewResult {
/**
* 任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。
*/
Status: string
/**
* 错误码,0:成功,其他值:失败。
注意:此字段可能返回 null,表示取不到有效值。
*/
Code: number
/**
* 错误信息。
注意:此字段可能返回 null,表示取不到有效值。
*/
Msg: string
/**
* Ocr 文字涉政、... | the_stack |
import type { AlignType, Point, TableColumn } from '@yozora/ast'
import { TableCellType, TableRowType, TableType } from '@yozora/ast'
import { AsciiCodePoint, isWhitespaceCharacter } from '@yozora/character'
import type {
IMatchBlockHookCreator,
IPhrasingContentLine,
IResultOfEatAndInterruptPreviousSibling,
IRe... | the_stack |
import * as THREE from 'three';
// @ts-ignore
import julian from 'julian';
import Stats from 'three/examples/jsm/libs/stats.module';
import {
BloomEffect,
EffectComposer,
EffectPass,
RenderPass,
// @ts-ignore
} from 'postprocessing';
import type { Scene, Object3D, Vector3, WebGL1Renderer } from 'three';
imp... | the_stack |
import { Buffer } from "buffer";
import { Vault, requestUrl } from "obsidian";
import { Queue } from "@fyears/tsqueue";
import chunk from "lodash/chunk";
import flatten from "lodash/flatten";
import { getReasonPhrase } from "http-status-codes";
import { RemoteItem, VALID_REQURL, WebdavConfig } from "./baseTypes";
impo... | the_stack |
import {
AfterViewInit,
Component,
ElementRef,
EventEmitter,
OnDestroy,
Output,
QueryList,
ViewChild
} from '@angular/core';
import { async } from '@angular/core/testing';
import { render } from '@testing-library/angular';
import { noop, Observable } from 'rxjs';
import { ObservableChildren } from './o... | the_stack |
import Conditions from '../../../../../resources/conditions';
import NetRegexes from '../../../../../resources/netregexes';
import Outputs from '../../../../../resources/outputs';
import Regexes from '../../../../../resources/regexes';
import { Responses } from '../../../../../resources/responses';
import ZoneId f... | 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 ConnectPar... | the_stack |
// IMPORTANT
// This file was generated by https://github.com/Bolisov/google-api-typings-generator. Please do not edit it manually.
// In case of any problems please post issue to https://github.com/Bolisov/google-api-typings-generator
// Generated from: https://androidmanagement.googleapis.com/$discovery/rest?version=... | the_stack |
import {FieldStats, getAllKeys, getStats, isInteger} from '../stats';
const {expect} = chai;
describe('getAllKeys', () => {
it('should return an empty array for null input', () => {
const ret = getAllKeys(null);
expect(ret).to.deep.equal([]);
});
it('should return an empty array for an empty array inp... | the_stack |
import * as React from "react";
import { isMouseEnabled } from "./mouse-enabled";
/**
* The responder takes its inspiration from react-native's
* pan-responder. Learn more about react-native's
* system here:
*
* https://facebook.github.io/react-native/docs/gesture-responder-system.html
*
* Basic usage:
*
* co... | the_stack |
/// <reference path="../metricsPlugin.ts"/>
/// <reference path="../services/alertsManager.ts"/>
/// <reference path="../services/errorsManager.ts"/>
module HawkularMetrics {
export interface IServerLabel {
key: string;
value: string;
}
export class ServerLabel implements IServerLabel {
public key:... | the_stack |
import {
HydratedProviders,
ERC20Abi,
ChainInfo,
TransactionReason,
IVectorChainReader,
jsonifyError,
} from "@connext/vector-types";
import {
hydrateProviders,
getChainInfo,
getAssetName,
getMainnetEquivalent,
getExchangeRateInEth,
calculateExchangeWad,
} from "@connext/vector-utils";
import { ... | the_stack |
import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js";
import * as msRest from "@azure/ms-rest-js";
export { BaseResource, CloudError };
/**
* The resource model definition.
*/
export interface Resource extends BaseResource {
/**
* Resource ID
* **NOTE: This property ... | the_stack |
import * as d3 from 'd3';
import { ANIMATION_DURATION, DEFAULT_HEIGHT_DECREMENT, DEFAULT_LEVEL_HEIGHT, DEFAULT_NODE_HEIGHT, DEFAULT_NODE_WIDTH, MATCH_SCALE_REGEX, MATCH_TRANSLATE_REGEX } from './constant';
import { TreeDataset, Direction, TreeLinkStyle } from './tree-chart';
import { deepCopy, rotatePoint } from './uti... | the_stack |
import { Component, h, render } from "preact";
import {
StartJobResult,
PollJobResult,
JobState,
FieldValueCounts,
} from "../api/v1";
import { LogEvent } from "../models/Event";
import { Popover } from "../components/popover";
import { TopFieldValueInfo } from "../models/TopFieldValueInfo";
import { TimeSelect... | the_stack |
import { DEFAULT_FONT, DEFAULT_TEXT_MAX_WIDTH, SEGMENT_NUMBER } from '@/constant/tool';
import { IPolygonPoint } from '@/types/tool/polygon';
import { createSmoothCurvePointsFromPointList } from './tool/polygonTool';
import Vector from './VectorUtils';
/**
* 基础的三角运算
*/
export class Trigonometric {
public static ta... | the_stack |
import { ok, err, okAsync, errAsync, Result, ResultAsync } from '../src'
(function describe(_ = 'Result') {
(function describe(_ = 'andThen') {
(function it(_ = 'Combines two equal error types (native scalar types)') {
type Expectation = Result<unknown, string>
const result: Expectation = ok<number,... | the_stack |
import {Device} from '../Device';
import Dimensions = Utils.Measurements.Dimensions;
import DisplayObject = etch.drawing.DisplayObject;
import Size = minerva.Size;
import {IApp} from '../IApp';
import {Block} from './../Blocks/Block';
import {ToneSource} from './../Blocks/Sources/ToneSource';
import {ComputerKeyboard} ... | the_stack |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.