text stringlengths 2.5k 6.39M | kind stringclasses 3
values |
|---|---|
import { async, ComponentFixture, fakeAsync, flushMicrotasks, TestBed } from '@angular/core/testing';
import { InteractiveImageClickInput } from './oppia-interactive-image-click-input.component';
import { InteractionAttributesExtractorService } from 'interactions/interaction-attributes-extractor.service';
import { Imag... | the_stack |
GDevelop - Physics Behavior Extension
Copyright (c) 2013-2016 Florian Rival (Florian.Rival@gmail.com)
*/
namespace gdjs {
/**
* Manage the common objects shared by objects having a
* physics behavior.
*/
export class PhysicsSharedData {
stepped: boolean = false;
totalTime: float = 0;
fixedTime... | the_stack |
import { GlobalProps } from 'ojs/ojvcomponent';
import { ComponentChildren } from 'preact';
import CommonTypes = require('../ojcommontypes');
import { KeySet } from '../ojkeyset';
import { DataProvider, Item } from '../ojdataprovider';
import { baseComponent, baseComponentEventMap, baseComponentSettableProperties, JetE... | the_stack |
import * as _ from "lodash";
import * as singleLineString from "single-line-string";
import * as Web3 from "web3";
import { BigNumber } from "../../utils/bignumber";
// Apis
import { ContractsAPI } from "./";
// Utils
import { DISABLED_TOKEN_SYMBOLS } from "../../utils/constants";
import { generateTxOptions } from ".... | the_stack |
import React, {RefObject} from 'react';
import {createTileData, Point, Tile, TileData} from '../../pathfinding/core/Components';
import RectGrid, {Grid} from '../../pathfinding/core/Grid';
import TileFg from './TileFg';
import SolidFg from './SolidFg';
import WeightFg from './WeightFg';
interface IProps {
tileSize... | the_stack |
var selfEasyrtcid:string = "";
function wrapperForCalls():void {
easyrtc._presetMediaConstraints = { audio:true, video:true};
easyrtc.setDebugPrinter( function(message:any[]):void{
});
easyrtc.setSdpFilters(easyrtc.buildLocalSdpFilter({}), easyrtc.buildRemoteSdpFilter({}));
easyrtc.setPeerClo... | the_stack |
export interface Const<T> {
readonly _const: T;
}
export interface Generic {
opaque: 'Generic is a token type that is going to be replaced with a real type';
}
export interface Unit {
opaque: 'opaque token for empty payload type';
}
export type Case<T> = Of<T> | Const<T>;
export interface RecordDict {
reado... | the_stack |
import { ServiceClientOptions, RequestOptions, ServiceCallback, HttpOperationResponse } from 'ms-rest';
import * as models from '../models';
/**
* @class
* ServiceTopologies
* __NOTE__: An instance of this class is automatically created for an
* instance of the AzureDeploymentManager.
*/
export interface Service... | the_stack |
import * as assert from 'assert';
import { color, hsl, hsla, rgb, rgba } from '../src/color';
const cyan = rgb(0, 255, 255);
const blue = rgb(0, 0, 255);
const green = rgb(0, 128, 0);
const maroon = rgb(128, 0, 0);
const black = rgb(0, 0, 0);
const white = rgb(255, 255, 255);
const red = rgb(255, 0, 0);
const transpar... | the_stack |
import { Trans } from "@lingui/macro";
import { i18nMark } from "@lingui/react";
import { Link } from "react-router";
import mixin from "reactjs-mixin";
import * as React from "react";
import { Icon } from "@dcos/ui-kit";
import {
greyDark,
iconSizeXs,
} from "@dcos/ui-kit/dist/packages/design-tokens/build/js/desig... | the_stack |
//@ts-check
///<reference path="devkit.d.ts" />
declare namespace DevKit {
namespace FormProcessSession_Information {
interface tab__474B8A52_CB22_4194_A5A6_F21FD40B7417_Sections {
Details: DevKit.Controls.Section;
}
interface tab_Comments_Sections {
Comments: DevKit.Controls.Section;
}
interface tab_... | the_stack |
import * as Meta from 'meta';
import * as Shell from 'shell';
import {
buildMetaWindowIdentifier,
MsWindow,
MsWindowMatchingInfo,
} from 'src/layout/msWorkspace/msWindow';
import { MsWorkspace } from 'src/layout/msWorkspace/msWorkspace';
import { MsDndManager } from 'src/manager/msDndManager';
import { MsFo... | the_stack |
import React from 'react';
import styled from 'styled-components';
import { Utilities, HostType } from '@microsoft/office-js-helpers';
import queryString from 'query-string';
import cloneDeep from 'lodash/cloneDeep';
import Theme from 'common/lib/components/Theme';
import Console from 'common/lib/components/Console';
... | the_stack |
declare module com {
export module couchbase {
export module lite {
export abstract class AbstractDatabase {
public static class: java.lang.Class<com.couchbase.lite.AbstractDatabase>;
public static TAG: string;
public static DB_EXTENSION: string;
public static MAX_CHANGES: number;
public stati... | the_stack |
import * as React from 'react';
import { Observable } from 'rxjs';
import {
PixieAPIContext, ExecutionStateUpdate, VizierQueryError, GRPCStatusCode, VizierTable,
} from 'app/api';
import { ClusterContext, useClusterConfig } from 'app/common/cluster-context';
import { useSnackbar } from 'app/components';
import { Li... | the_stack |
import { UserComponentFactory } from '../../../components/framework/userComponentFactory';
import { KeyCode } from '../../../constants/keyCode';
import { Autowired, PostConstruct } from '../../../context/context';
import { Column } from '../../../entities/column';
import { Events, FilterChangedEvent } from '../../../ev... | the_stack |
import React, { Component } from 'react'
import { connect } from 'react-redux'
import copy from 'clipboard-copy'
import { GlobalHotKeys } from 'react-hotkeys'
import { replace, StoreStateRouterLocationURI, PropTypes } from '../../family'
import { serve } from '../../relatives/services/constant'
import { METHODS, STATUS... | the_stack |
import { Observable, Subscription } from 'rxjs';
import { finalize, tap } from 'rxjs/operators';
import {
COMPUTED,
DEFAULT_VERSION,
OPTIMISTIC_CONCURRENCY,
} from '../constants';
import { ODataHelper } from '../helper';
import { ODataParserOptions } from '../options';
import { ODataStructuredTypeFieldParser } fr... | the_stack |
/* eslint-disable node/no-extraneous-import */
import myProbotApp from '../src/snippet-bot';
import {SNIPPET_BOT_LABELS} from '../src/labels';
import * as apiLabelsModule from '../src/api-labels';
import * as snippetsModule from '../src/snippets';
import schema from '../src/config-schema.json';
import {CONFIGURATION_F... | the_stack |
import spawnAsync from '@expo/spawn-async';
import chalk from 'chalk';
import fs from 'fs-extra';
import inquirer from 'inquirer';
import path from 'path';
import readline from 'readline';
import * as Directories from '../Directories';
import * as Packages from '../Packages';
import * as ProjectVersions from '../Proje... | the_stack |
import React from 'react';
import { mount, ReactWrapper } from 'enzyme';
import { RefObject } from '@devextreme-generator/declarations';
import { titleize } from '../../../../../core/utils/inflector';
import {
ScrollDirection,
} from '../../utils/scroll_direction';
import {
ScrollableSimulated as Scrollable,
Scr... | the_stack |
* topic返回信息展示字段
*/
export interface TopicSet {
/**
* 主题的 ID。
注意:此字段可能返回 null,表示取不到有效值。
*/
TopicId: string
/**
* 主题名称。
注意:此字段可能返回 null,表示取不到有效值。
*/
TopicName: string
/**
* 消息在主题中最长存活时间,从发送到该主题开始经过此参数指定的时间后,不论消息是否被成功推送给用户都将被删除,单位为秒。固定为一天(86400秒),该属性不能修改。
注意:此字段可能返回 null,表示取不到有效值... | the_stack |
import {DanmakuManager} from "./danmaku/danmakuManager";
import {DanmakuItem} from "./danmaku/DanmakuItem";
import {EventBase} from "./eventBase";
declare function require(module: string);
declare const Hls: any;
const style = require('./player.css');
let DEBUG = false;
function log(info) {
if (DEBUG) {
... | the_stack |
import {ResourceBase, ResourceTag} from '../resource'
import {Value, List} from '../dataTypes'
export class OwnershipControls {
Rules!: List<OwnershipControlsRule>
constructor(properties: OwnershipControls) {
Object.assign(this, properties)
}
}
export class ReplicaModifications {
Status!: Val... | the_stack |
import { Bone, SkinnedMesh } from 'three'
import { Object3D, Quaternion, Skeleton, Vector3 } from 'three'
import { SkeletonUtils } from '../../avatar/SkeletonUtils'
import { DOWN, LEFT, RIGHT } from '../constants/Vector3Constants'
import { spinBoneForward, alignChain, alignBoneForward, worldToModel } from '../functions... | the_stack |
import { Component, EventEmitter, Input, OnInit, Output, ViewChild } from "@angular/core";
import { forkJoin, Observable, throwError as observableThrowError } from "rxjs";
import { catchError, finalize, map } from "rxjs/operators";
import { TranslateService } from "@ngx-translate/core";
import { HelmChartMaintainer, He... | the_stack |
import {
defineAsyncComponent,
defineCustomElement,
h,
inject,
nextTick,
Ref,
ref,
renderSlot,
VueElement
} from '../src'
describe('defineCustomElement', () => {
const container = document.createElement('div')
document.body.appendChild(container)
beforeEach(() => {
container.innerHTML = ''... | the_stack |
import * as path from 'path'
import { basename } from 'path'
import * as util from 'util'
import generate from '@babel/generator'
import * as t from '@babel/types'
import { getStylesAtomic } from '@tamagui/core-node'
import { concatClassName } from '@tamagui/helpers'
import invariant from 'invariant'
import { getRemai... | the_stack |
// Copyright the Browserify authors. MIT License.
// Ported from https://github.com/browserify/path-browserify/
// This module is browser compatible.
import type { FormatInputPathObject, ParsedPath } from "./_interface.ts";
import { CHAR_DOT, CHAR_FORWARD_SLASH } from "./_constants.ts";
import {
_format,
assertPa... | the_stack |
import {
Error as ErrorMsg,
GroupAgg,
HandleData, Histogram,
Message, ModifyStream,
QuantileBin, Sample, SampleN,
Select,
TableOp
} from "../data/messages";
import {DataType, DoubleType, LongType, NumericTypes, StructField, StructType, UnsafeLongType} from "../data/data_type";
import {DataRe... | the_stack |
import {
isDevMode,
ComponentFactoryResolver,
HostListener,
ViewContainerRef,
ElementRef,
Component,
OnInit,
OnDestroy,
ApplicationRef,
Optional,
Inject,
NgZone,
Injector,
ViewChild,
Input,
Output,
EventEmitter,
StaticProvider,
Type,
ComponentRef,
SkipSelf,
} from '@angular/cor... | the_stack |
import * as angular from 'angular';
import { ListItemSelectModeEnum } from './listItemSelectModeEnum';
import { ListItemTypeEnum } from './listItemTypeEnum';
import { ListLayoutEnum } from './listLayoutEnum';
describe('listDirective: <uif-list />', () => {
let element: JQuery;
let scope: any;
beforeEach(() => ... | the_stack |
import React from 'react';
import {
ParallaxProps,
BgImageProp,
BgImageSrcSetProp,
BgImageSizesProp,
Parallax as ParallaxClass,
SplitChildrenResultType,
StyleObjectType,
} from '../../@types';
import {
getRelativePosition,
getSplitChildren,
getHasDynamicBlur,
getBlurValue,
... | the_stack |
import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js";
import * as msRest from "@azure/ms-rest-js";
export { BaseResource, CloudError };
/**
* Error response indicates Insights service is not able to process the incoming request. The
* reason is provided in the error message.... | the_stack |
declare class AmbientWeatherApi {
constructor(credentials: AmbientWeatherApi.Credentials);
/** Get all weather devices. */
userDevices(): Promise<AmbientWeatherApi.Device[]>;
/** Get data for a single device. */
deviceData(
macAddress: string,
options?: {
endDate?: stri... | the_stack |
import { ConcreteRequest } from "relay-runtime";
import { FragmentRefs } from "relay-runtime";
export type InboxOldQueryVariables = {};
export type InboxOldQueryResponse = {
readonly me: {
readonly " $fragmentRefs": FragmentRefs<"InboxOld_me">;
} | null;
};
export type InboxOldQuery = {
readonly res... | the_stack |
import Conditions from '../../../../../resources/conditions';
import NetRegexes from '../../../../../resources/netregexes';
import Outputs from '../../../../../resources/outputs';
import { Responses } from '../../../../../resources/responses';
import ZoneId from '../../../../../resources/zone_id';
import { Raidbos... | the_stack |
import { AccessLevelList } from "../shared/access-level";
import { PolicyStatement } from "../shared";
/**
* Statement provider for service [workdocs](https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonworkdocs.html).
*
* @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/r... | the_stack |
import { BehaviorSubject } from "rxjs";
import { debounceTime, distinctUntilChanged } from "rxjs/operators";
import { IProjectEnv } from "src/app/config/types";
import { TeamService } from "src/app/services/team.service";
import { isNotPercentageRollout, isSingleOperator } from "src/app/utils";
import { ruleType, ruleV... | the_stack |
export type BGPConfiguration = object;
// BGPConfigurationList is a list of BGPConfiguration
export class BGPConfigurationList {
// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. ... | the_stack |
import assert from 'assert';
import { r } from '../src';
import config from './config';
import { uuid } from './util/common';
describe('transformations', () => {
let dbName: string;
let tableName: string;
before(async () => {
await r.connectPool(config);
dbName = uuid();
tableName = uuid();
cons... | the_stack |
import ms from 'ms';
import bytes from 'bytes';
import { delimiter, dirname, join } from 'path';
import { fork, ChildProcess } from 'child_process';
import { createFunction } from '@zeit/fun';
import {
Builder,
BuildOptions,
Env,
File,
Lambda,
FileBlob,
FileFsRef,
isOfficialRuntime,
} from '@vercel/buil... | the_stack |
import {BoolPropertyDefinition} from "../../../PropertyDefinitions/BoolPropertyDefinition";
import {ByteArrayPropertyDefinition} from "../../../PropertyDefinitions/ByteArrayPropertyDefinition";
import {ComplexPropertyDefinition} from "../../../PropertyDefinitions/ComplexPropertyDefinition";
import {ConversationFlagSta... | the_stack |
import { Injectable } from '@angular/core';
import { Actions, Effect, ofType } from '@ngrx/effects';
import { select, Store } from '@ngrx/store';
import { TranslateService } from '@ngx-translate/core';
import { forkJoin, from, Observable } from 'rxjs';
import { catchError, filter, map, mergeMap, switchMap, withLatestFr... | the_stack |
import { ResponseHints } from '../../src/response';
import { Source } from '../../src/source';
import {
isPushable,
pushable,
Pushable
} from '../../src/source-interfaces/pushable';
import { buildTransform, Transform } from '../../src/transform';
import {
AddRecordOperation,
RecordData,
RecordOperation,
R... | the_stack |
import { AcceptMeetingInvitationMessage } from "../ResponseObjects/AcceptMeetingInvitationMessage";
import { Appointment } from "./Appointment";
import { AppointmentType } from "../../../Enumerations/AppointmentType";
import { AttendeeCollection } from "../../../ComplexProperties/AttendeeCollection";
import { CalendarA... | the_stack |
import { Iterate, IterateAction } from 'iteratez';
import { CalendarDay } from './CalendarDay';
import { CalendarEvent } from './CalendarEvent';
import { Constants } from './Constants';
import { Day, DayInput } from './Day';
import { DaySpan } from './DaySpan';
import { Event, EventInput } from './Event';
import { Fun... | the_stack |
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { MockPipe } from 'ng-mocks';
import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
import { TranslateService } from '@ngx-translate/core';
import { QuizScoringInfoStudentModalComponent } from 'app/exercises/quiz/shared/questions/quiz-scoring-in... | the_stack |
import { configure, mount, shallow } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
import * as React from 'react';
import renderer from 'react-test-renderer';
import MDPicker from '../index';
configure({ adapter: new Adapter() });
beforeEach(() => {
jest.useFakeTimers();
});
it('renders correctly wi... | the_stack |
import { stripIndent } from "common-tags";
import { fromFixture } from "eslint-etc";
import rule = require("../../source/rules/suffix-subjects");
import { ruleTester } from "../utils";
ruleTester({ types: true }).run("suffix-subjects", rule, {
valid: [
{
code: stripIndent`
// with default suffix
... | the_stack |
import { WebApiTeam } from 'TFS/Core/Contracts';
import * as Calendar_Contracts from '../Contracts';
import * as Calendar_DateUtils from '../Utils/Date';
import { realPromise } from "../Utils/Promise";
import * as Capacity_Enhancer from '../Enhancers/VSOCapacityEnhancer';
import * as Culture from 'VSS/Utils/Culture';
i... | the_stack |
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="yue_CN">
<context>
<name>AboutWindow</name>
<message>
<location filename="../../windows/aboutwindow.cpp" line="+159"/>
<source>About %1</source>
<translation>关于 %1</translation>
</message>
<message>
... | the_stack |
import React, { useState, useMemo, useCallback, ReactNode, useEffect, useRef } from 'react';
import { Tooltip, Button } from 'antd';
import moment from 'moment';
import { cloneDeep } from 'lodash';
import Grid from '@grid';
import ConfigModal from './config';
import { SmartGridType, SmartGridProps, ViewConfig } from '.... | the_stack |
import * as blockstack from 'blockstack';
import * as express from 'express';
import * as crypto from 'crypto';
import * as jsontokens from 'jsontokens';
import * as logger from 'winston';
import {
gaiaConnect,
gaiaUploadProfileAll,
makeAssociationToken,
getGaiaAddressFromProfile,
} from './data';
import { ge... | the_stack |
import ErrorStackParser from 'error-stack-parser';
import {EventEmitter} from 'events';
import debounce from 'lodash/debounce';
import cloneDeep from 'lodash/fp/cloneDeep';
import get from 'lodash/fp/get';
import isEmpty from 'lodash/fp/isEmpty';
import merge from 'lodash/fp/merge';
import set from 'lodash/fp/set';
im... | the_stack |
import env from './core/env';
import * as zrUtil from './core/util';
import Handler from './Handler';
import Storage from './Storage';
import {PainterBase} from './PainterBase';
import Animation from './animation/Animation';
import HandlerProxy from './dom/HandlerProxy';
import Element, { ElementEventCallback } from '.... | the_stack |
import {
CdmArgumentDefinition,
CdmAttributeGroupDefinition,
CdmCollection,
CdmConstantEntityDefinition,
CdmCorpusContext,
CdmDataTypeDefinition,
CdmDataTypeReference,
CdmDocumentDefinition,
CdmEntityDefinition,
CdmImport,
cdmLogCode,
CdmObject,
cdmObjectType,
Cdm... | the_stack |
import {Highlight, Text2HtmlConverter, TextRenderer} from './renderer';
import {SlElement} from '@app/utils/sl-element';
import {LvUtils} from '@app/utils/utils';
const exceptionMessageClass = 'exception-message';
const exceptionFileNameClass = 'ex-stacktrace-source';
const MAX_MESSAGE_LENGTH = 1024;
export class Ja... | the_stack |
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use t... | the_stack |
import {
ChangeDetectionStrategy,
ChangeDetectorRef,
Component,
ElementRef,
EventEmitter,
Input,
isDevMode,
OnDestroy,
OnInit,
Output,
Renderer2,
ViewChild,
ViewEncapsulation,
} from '@angular/core';
import { TsWindowService } from '@terminus/ngx-tools/browser';
import {
TsStyleThemeTypes,
... | the_stack |
import BScroll from '@better-scroll/core'
import { IndicatorOptions, Ratio, Postion, ValueSign } from './types'
import {
EventRegister,
EventEmitter,
getRect,
getClientSize,
getNow,
between,
Probe,
TouchEvent,
style,
} from '@better-scroll/shared-utils'
const resolveRatioOption = (ratioConfig?: Ratio)... | the_stack |
import {
defineComponent,
PropType,
reactive,
onMounted,
Teleport,
watch,
onBeforeUnmount,
CSSProperties,
computed
} from 'vue';
import {
allToolbar,
highlightUrl,
iconfontUrl,
prettierUrl,
cropperUrl,
screenfullUrl,
mermaidUrl,
katexJsUrl,
katexCssUrl
} from './config';
import { us... | the_stack |
import { HttpClient, HttpResponse, HttpEvent } from '@angular/common/http';
import { Inject, Injectable, Optional } from '@angular/core';
import { APIClientInterface } from './api-client.interface';
import { Observable } from 'rxjs';
import { tap } from 'rxjs/operators';
import { USE_DOMAIN, USE_HTTP_OPTIONS, APIClient... | the_stack |
import { IInputs, IOutputs } from "./generated/ManifestTypes";
export class WebAPIControl implements ComponentFramework.StandardControl<IInputs, IOutputs>
{
// Reference to the control container HTMLDivElement
// This element contains all elements of our custom control example
private _container: HTMLDivElement;
... | the_stack |
import { update } from '../../src/spec/update/update';
import { RemoveChange } from '../../lib/utility/change';
import { Tree } from '@angular-devkit/schematics';
import { SchematicTestRunner } from '@angular-devkit/schematics/testing';
import { collectionPath } from './common';
describe('Update a spec', () => {
i... | the_stack |
import * as pulumi from "@pulumi/pulumi";
import * as utilities from "../utilities";
/**
* Provides a hosted connection on the specified interconnect or a link aggregation group (LAG) of interconnects. Intended for use by AWS Direct Connect Partners only.
*
* ## Example Usage
*
* ```typescript
* import * as pulu... | the_stack |
import expect = require("expect");
import StorageManager from "@worldbrain/storex";
import { DexieStorageBackend } from '@worldbrain/storex-backend-dexie'
import { ChangeWatchMiddleware } from '@worldbrain/storex-middleware-change-watcher';
import inMemory from '@worldbrain/storex-backend-dexie/lib/in-memory'
import { ... | the_stack |
* @title: Leaderboards
* @description:
* An example of how to set and view scores from the leaderboards.
*/
/*{{ javascript("jslib/observer.js") }}*/
/*{{ javascript("jslib/requesthandler.js") }}*/
/*{{ javascript("jslib/utilities.js") }}*/
/*{{ javascript("jslib/services/turbulenzservices.js") }}*/
/*{{ javascript("j... | the_stack |
import { fetchAddr, fetchSize, isSize } from '../backend/backUtils';
import { Context, ContextSet } from '../backend/context';
import { absExpIndexByLen, simplifyNum } from '../backend/expUtils';
import { simplifyShape } from '../backend/expUtils';
import { CodeSource, ShValue, SVInt, SVObject, SVSize, SVType } from '.... | the_stack |
'use strict';
import { uuid_to_string as rheaUuidToString, string_to_uuid as rheaStringToUuid, types as rheaTypes, message as rheaMessage } from 'rhea';
import { Message } from 'azure-iot-common';
/* tslint:disable:variable-name */
/* tslint:enable:variable-name: [true, "check-format", allow-leading-underscore", "ban... | the_stack |
import * as pulumi from "@pulumi/pulumi";
import { input as inputs, output as outputs, enums } from "../types";
import * as utilities from "../utilities";
/**
* Provides a resource to manage a VPC's default network ACL. This resource can manage the default network ACL of the default or a non-default VPC.
*
* > **NO... | the_stack |
import * as assert from "assert";
import { testContext, disposeTestDocumentStore } from "../../Utils/TestUtil";
import {
AttachmentName,
IDocumentStore,
DeleteAttachmentOperation,
DeleteCommandData
} from "../../../src";
import * as stream from "readable-stream";
import { User } from "../../Assets/Enti... | the_stack |
import type { Client } from '../client';
import type { FilteredStreamRuleResolvable } from './Types';
import type { ClientEvents, Collection } from '../util';
import type { Tweet, RequestData, MatchingRule } from '../structures';
import type { TweetResolvable, UserResolvable, SpaceResolvable } from './Types';
import ty... | the_stack |
import * as pulumi from "@pulumi/pulumi";
import { input as inputs, output as outputs, enums } from "../types";
import * as utilities from "../utilities";
/**
* Provides a CloudWatch Metric Stream resource.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from... | the_stack |
import {
app, BrowserWindow, ipcMain, shell
} from 'electron';
import {
IService
} from './main';
import {
ElectronStateDB
} from './state';
import {
JSONObject, JSONValue
} from '@lumino/coreutils';
import log from 'electron-log';
import { AsyncRemote, asyncRemoteMain } from '../asyncremote';
impo... | the_stack |
import { peek, Disposer, reverse } from '@/lib/std';
import Vue from 'vue';
import { reactive } from '@vue/composition-api';
import { emitter } from '@/lib/events';
import { getLogger } from '@/lib/log';
const logger = getLogger('olyger');
// You can read more about this file in the following issue:
// https://github... | the_stack |
import graphlib from '../graphlib';
import util from '../util';
import { graphlib as IGraphLib } from '../../graphlib';
type IGraph = IGraphLib.Graph;
const Graph = (graphlib as any).Graph;
/*
* This module provides coordinate assignment based on Brandes and Köpf, "Fast
* and Simple Horizontal Coordinate Assignment... | the_stack |
export class DbConnect {
private readonly httpClient: HttpClient
/**
* Creates a DbConnect instance with host and credentials.
*
* @param host required, hostname or url of your Argo Tunnel running in db-connect mode.
* @param clientId recommended, client id of the Access policy for your ho... | the_stack |
import { readBin, getBinUseNull, getBinNumElements, writeBin, writeBinHeader, readDataAsType } from './io';
import { isPositiveInteger, typeOfTypedArray, isNonNegativeInteger, nullValForType, isArray, dataSizeForType } from './utils';
import { Vector3, Vector2 } from 'three';
import { Type, TypedArray } from './types';... | the_stack |
/**
* @module annieUI
*/
namespace annieUI {
import Sprite=annie.Sprite;
import Shape=annie.Shape;
import Event=annie.Event;
import MouseEvent=annie.MouseEvent;
import Point=annie.Point;
/**
* 电子杂志组件
* @class annieUI.FlipBook
* @public
* @extends annie.Sprite
* @since... | the_stack |
import { ActiveWorkspace } from "../workspace/model/ActiveWorkspace";
import { decoder, useWorkspaces, WorkspaceFile } from "../workspace/WorkspacesContext";
import { useRoutes } from "../navigation/Hooks";
import * as React from "react";
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
import... | the_stack |
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
import requester from "~/core/fetch";
import EventEmitter from "~/core/EventEmitter";
import {
AnyObjectType,
AppDataElementsTypes,
ArgumentsBoolean,
ArgumentsNumber,
ArgumentsString,
} from "~/types/appData";
import { Modules } from "... | the_stack |
import * as React from "react"
import styled from "../utils/styled"
import { SearchIcon, CaretDownIcon, CaretUpIcon, EnterIcon, NoIcon } from "../Icon"
import useHotkey from "../useHotkey"
import Chip from "../Chip/Chip"
import { getHighlightColor } from "../utils/constants"
export interface SearchInputProps<TCategory... | the_stack |
import { useState } from 'react';
import { Link } from 'react-router-dom';
import styles from './PathTreeItem.module.css';
import { sidePanelVisibilityChanged } from '../../store/sidePanelVisibleSlice';
import { useAppDispatch, useAppSelector } from '../../support/hooks';
import { isOnMobile } from '../../support/util... | the_stack |
import {
hAlignFromPlacement,
hPlacementFromAlignment,
TextPlacement,
vAlignFromPlacement,
vPlacementFromAlignment
} from "@here/harp-text-canvas";
import { assert } from "@here/harp-utils";
import { LayoutState } from "./LayoutState";
import { RenderState } from "./RenderState";
import { TextEleme... | the_stack |
// Based upon the TypeScript language services example at https://github.com/Microsoft/TypeScript/wiki/Using-the-Compiler-API#incremental-build-support-using-the-language-services
import * as ts from "../../../../modules/typescript";
/**
* Abstraction over the file system
*/
export interface FileSystemInterface {
... | the_stack |
import { Input, Switch, Select, Slider } from 'antd';
import {
TrademarkCircleOutlined,
DeploymentUnitOutlined,
BranchesOutlined,
ApartmentOutlined,
GatewayOutlined,
CopyrightCircleOutlined,
ForkOutlined,
ShareAltOutlined,
MediumOutlined,
} from '@ant-design/icons';
import TwoInput from './twoInput';
... | the_stack |
import { SlideEffects } from './swiper-interfaces';
import { CLS, eachChild, isHorizontal, transform, transition, triggerTransitionEnd } from './swiper-utils';
import { isIosUIWebView, isSafari } from '../../../platform/platform-utils';
/*=========================
Effects
===========================*/
export cons... | the_stack |
"use strict";
import * as path from 'path';
import { draftsObject } from './compile';
import * as TreeModel from 'tree-model';
import { window, Disposable, StatusBarAlignment, StatusBarItem, TextDocument, workspace } from 'vscode';
import {totalLength, draftRoot} from './compile';
import simpleGit, {SimpleGit} from ... | the_stack |
import { IncomingMessage, ServerResponse } from 'http';
import { FC } from './fc';
import { SCF } from './scf';
interface CookieGetOption {
signed: boolean;
}
interface CookieSetOption {
/**
* a number representing the milliseconds from Date.now() for expiry
*/
maxAge?: number;
/**
* a Date object in... | the_stack |
declare module '@babel/core';
declare module '@babel/plugin-syntax-import-meta';
declare module '@babel/plugin-syntax-dynamic-import';
declare module '@babel/helper-plugin-utils';
declare module '@babel/template';
declare module '@babel/traverse' {
import * as t from 'babel-types';
export type Node = t.Node;
... | the_stack |
export abstract class Condition {
/**
* Matches if variable is present
*/
public static isPresent(variable: string): Condition {
return new VariableComparison(variable, ComparisonOperator.IsPresent, true);
}
/**
* Matches if variable is not present
*/
public static isNotPresent(variable: str... | the_stack |
import "@logseq/libs";
import {
BlockEntity,
BlockPageName,
BlockUUID,
ILSPluginUser,
PageEntity,
} from "@logseq/libs/dist/LSPlugin";
import { N, TempCache } from "./type";
import { schemaVersion } from "../../package.json";
import hotkeys from "hotkeys-js";
import { useCommandStore } from "@/stores/command"... | the_stack |
import { FunctionComponent, useCallback, useEffect, useRef } from 'react';
import { useRecoilState, useRecoilValue, useSetRecoilState } from 'recoil';
import Peer from 'simple-peer';
import { MAX_BANDWIDTH, MIN_BANDWIDTH } from 'utils/settings';
import { transformSdp, blankVideo } from 'utils/helper';
import {
addMes... | the_stack |
import { CoreConstants } from '@/core/constants';
import { Injectable } from '@angular/core';
import { CoreError } from '@classes/errors/error';
import { CoreSite, CoreSiteWSPreSets } from '@classes/site';
import { CoreCourseCommonModWSOptions } from '@features/course/services/course';
import { CoreCourseLogHelper } fr... | the_stack |
import {
DBCore,
DBCoreAddRequest,
DBCoreDeleteRequest,
DBCoreMutateResponse,
DBCorePutRequest,
DBCoreTable,
DBCoreTransaction,
Middleware
} from 'dexie';
import { DBOperation } from 'dexie-cloud-common';
import { BehaviorSubject } from 'rxjs';
import { DexieCloudDB } from '../db/DexieCloudDB';
import {... | the_stack |
import * as State from "../state";
import * as Core from "./core";
import config from "../config";
import { regDescriptor } from "@effectful/serialization";
import {
regOpaqueObject,
opaqueWeakMap,
opaqueWeakSet,
setObjectDescriptor
} from "../persist";
import * as Binds from "./binds";
import { ForInIterator, ... | the_stack |
import React, {Component, createRef, Dispatch} from 'react';
import Console from 'global/console';
import {bindActionCreators} from 'redux';
import styled, {ThemeProvider, withTheme} from 'styled-components';
import {createSelector} from 'reselect';
import {connect as keplerGlConnect} from 'connect/keplergl-connect';
i... | the_stack |
'use strict';
// Note: vscode-nls *MUST* be configured before loading any other modules
// to ensure loadMessageBundle is not called before vscode-nls has been
// configured
import * as nls from 'vscode-nls';
nls.config({ messageFormat: nls.MessageFormat.both })();
import * as vscode from 'vscode';
import * as semver ... | the_stack |
import React, { useMemo } from 'react';
import { Link } from 'react-router-dom';
import { Form, Select, Tag, Tooltip, Typography } from 'antd';
import styled from 'styled-components';
import { useEntityRegistry } from '../useEntityRegistry';
import { useAppConfig } from '../useAppConfig';
import { useGetSearchResultsF... | the_stack |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.