text stringlengths 2.5k 6.39M | kind stringclasses 3
values |
|---|---|
import flatten from 'lodash/flatten';
import isFinite from 'lodash/isFinite';
import { GLSLContext } from '.';
import {
AST_NODE_TYPES as SHADER_AST_NODE_TYPES,
AST_TOKEN_TYPES as SHADER_AST_TOKEN_TYPES,
STORAGE_CLASS,
} from './ast/glsl-ast-node-types';
import {
ArrayExpression,
BaseNode as ShaderBaseNode,
... | the_stack |
import {
PDFArray,
PDFBool,
PDFContentStream,
PDFContext,
PDFDict,
PDFHexString,
PDFName,
PDFNull,
PDFNumber,
PDFObjectCopier,
PDFPageLeaf,
PDFPageTree,
PDFRawStream,
PDFRef,
PDFString,
} from 'src/index';
describe(`PDFObjectCopier`, () => {
it(`copies PDFDicts, including their indirect... | the_stack |
import { addGraphQLSchema, Globals } from './vulcan-lib';
import { CallbackChainHook } from './vulcan-lib/callbacks';
import { RateLimiter } from './rateLimiter';
import React, { useContext, useEffect, useState, useRef, useCallback } from 'react'
import { hookToHoc } from './hocUtils'
import { isClient, isServer, isDev... | the_stack |
import React from 'react';
import {
StyleSheet,
Text,
View,
ScrollView,
} from 'react-native';
import {
Button,
Icon,
Input,
Switch,
ListItem
} from 'react-native-elements'
import DropDownPicker from 'react-native-dropdown-picker';
import AsyncStorage from '@react-native-async-storage/async-storage... | the_stack |
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Un... | the_stack |
import { Color } from 'three'
import { RepresentationRegistry } from '../globals'
import MeasurementRepresentation, { calcArcPoint, parseNestedAtoms, MeasurementRepresentationParameters, LabelDataField } from './measurement-representation'
import { defaults } from '../utils'
import MeshBuffer from '../buffer/mesh-buf... | the_stack |
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { LongTermRetentionBackups } from "../operationsInterfaces";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
import { SqlManagementClient } from "..... | the_stack |
const F2 = 0.5 * (Math.sqrt(3.0) - 1.0);
const G2 = (3.0 - Math.sqrt(3.0)) / 6.0;
const F3 = 1.0 / 3.0;
const G3 = 1.0 / 6.0;
const F4 = (Math.sqrt(5.0) - 1.0) / 4.0;
const G4 = (5.0 - Math.sqrt(5.0)) / 20.0;
const grad3 = new Float32Array([1, 1, 0,
-1, 1, 0,
1, -1, 0,
-1, -1, 0,
1, 0, 1,
-1, 0, 1,
1, 0,... | the_stack |
import * as yok from "../lib/common/yok";
import * as constants from "../lib/constants";
import * as ProjectServiceLib from "../lib/services/project-service";
import { assert } from "chai";
import { SettingsService } from "../lib/common/test/unit-tests/stubs";
import { ErrorsStub, LoggerStub, TempServiceStub } from "./... | the_stack |
import * as fs from 'fs';
import pLimit = require('p-limit');
import * as path from 'path';
import {promisify} from 'util';
import * as sourceMap from 'source-map';
import {Logger} from '../config';
import {findScriptsFuzzy} from '../util/utils';
const CONCURRENCY = 10;
const WEBPACK_PREFIX = 'webpack://';
const read... | the_stack |
import { expect } from "chai";
import { decode as decodeJwt, JwtHeader } from "jsonwebtoken";
import { UserInfo } from "../../../emulator/auth/state";
import {
deleteAccount,
getAccountInfoByIdToken,
PROJECT_ID,
registerTenant,
signInWithPhoneNumber,
TEST_PHONE_NUMBER,
updateProjectConfig,
} from "./helpe... | the_stack |
import { create, ApisauceInstance, ApiResponse, ApiOkResponse } from 'apisauce';
import nacl from 'tweetnacl';
import stringify from 'fast-json-stable-stringify';
import {
strToUint8Array,
uInt8ArrayToB64,
hash,
b64ToUint8Array,
} from '@/utils/encoding';
import BrightidError from '@/api/brightidError';
const ... | the_stack |
import {
ChangeEvent,
Dispatch,
FocusEvent,
HTMLAttributes,
ReactNode,
SetStateAction,
useCallback,
useRef,
useState,
} from "react";
import { useIcon } from "@react-md/icon";
import {
FormMessageInputLengthCounterProps,
FormMessageProps,
} from "../FormMessage";
import { defaultGetErrorIcon, Get... | the_stack |
import { join } from 'path';
import { ConfigFile, ConfigValue, fs, Logger, SfdxError, SfdxProject } from '@salesforce/core';
import { AnyJson, Dictionary, get, Nullable } from '@salesforce/ts-types';
import { SourcePathInfo } from './sourcePathStatusManager';
import { ChangeElement, RemoteSourceTrackingService } from '... | the_stack |
import { parseoutput, StructToken } from "./afterwriting-parser"
import { GeneratePdf } from "./pdf/pdf"
import { ExportConfig, FountainConfig } from "./configloader"
import { pdfstats } from "./pdf/pdfmaker"
import { calculateDialogueDuration, isMonologue, rgbToHex, wordToColor, median } from "./utils"
import readabil... | the_stack |
import { DOM } from 'aurelia-pal';
import { HttpClientConfiguration } from './http-client-configuration';
import { Interceptor, RequestInit, ValidInterceptorMethodName } from './interfaces';
import { RetryInterceptor } from './retry-interceptor';
/**
* An HTTP client based on the Fetch API.
*/
export class HttpClien... | the_stack |
import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js";
import * as msRest from "@azure/ms-rest-js";
export { BaseResource, CloudError };
/**
* @interface
* An interface representing Resource.
* The Resource model definition.
*
* @extends BaseResource
*/
export interface ... | the_stack |
import { Component, OnInit, OnDestroy } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { Subscription } from 'rxjs/Subscription';
import * as _ from 'lodash';
import { environment } from './../../../../../environments/environment';
import { WorkflowService } from '../../../../cor... | the_stack |
import loggerFactory from '@/ts/instances/loggerFactory';
import { Logger } from 'lines-logger';
import WsHandler from '@/ts/message_handlers/WsHandler';
import {
FileTransferStatus,
ReceivingFile
} from '@/ts/types/model';
import FileHandler from '@/ts/webrtc/file/FileHandler';
import NotifierHandler from '@/ts/cl... | the_stack |
import deepEqual from "../jslib/deepEqual";
import invariant from "../jslib/invariant";
import stringify = require("fast-stable-stringify");
import {
Expr,
ListComprehensionExpr,
ConstantExpr,
IfExpr,
CallExpr,
} from "../expr/Expr";
import { SqrlInstance } from "../function/Instance";
class ConstantJsExpr {... | the_stack |
import React from 'react';
import { fireEvent, render } from '@testing-library/react';
import { ColorPicker } from './ColorPicker';
import { ColorInputPanel } from './ColorInputPanel';
import { ColorValue } from '../utils';
it('should render ColorInputPanel with input fields', () => {
const { container } = render(
... | the_stack |
import * as fse from 'fs-extra';
import test from 'ava';
import { difference } from 'lodash';
import { join } from '../src/path';
import {
DirItem, OSWALK, osWalk, rmdir,
} from '../src/io';
import { COMMIT_ORDER, Repository, RESET } from '../src/repository';
import { createRandomFile, getRandomPath } from './helpe... | the_stack |
import { Dictionary} from './../../../collections/dictionary';
export class ArabicShapeRenderer {
//#region Constants
private readonly arabicCharTable : string[][] = [['\u0621', '\uFE80'], ['\u0622', '\uFE81', '\uFE82'],
['\u0623', '\uFE83', '\uFE84'],
['\u0624', '\uFE85', '\uFE8... | the_stack |
import React from 'react';
import {Modal} from 'react-bootstrap';
import {Theme} from 'mattermost-redux/types/preferences';
import {Post} from 'mattermost-redux/types/posts';
import {Team} from 'mattermost-redux/types/teams';
import {APIResponse, IssueMetadata, CreateIssueRequest, JiraFieldTypeEnums, JiraFieldCustomT... | the_stack |
import { expect } from 'chai';
import * as http from 'http';
import { firstValueFrom } from 'rxjs';
import {
BlockDTO,
BlockInfoDTO,
BlockMetaDTO,
BlockPage,
BlockRoutesApi,
ImportanceBlockDTO,
MerklePathItemDTO,
MerkleProofInfoDTO,
NetworkTypeEnum,
Pagination,
PositionEnum,
... | the_stack |
import React from 'react';
import { TrashIcon } from '@heroicons/react/outline';
import { Alert, Button, Checkbox, Col, Modal, notification, Popover, Row, Statistic, Table, Tooltip } from 'antd';
import { motion } from 'framer-motion';
import { autorun, computed, IReactionDisposer, makeObservable, observable } from 'mo... | the_stack |
import { ServiceClientOptions, RequestOptions, ServiceCallback, HttpOperationResponse } from 'ms-rest';
import * as models from '../models';
/**
* @class
* MeshSecret
* __NOTE__: An instance of this class is automatically created for an
* instance of the ServiceFabricClient.
*/
export interface MeshSecret {
... | the_stack |
import * as crypto from 'crypto';
import Compressor from '../../lib/core/versions/latest/util/Compressor';
import CoreIndexFile from '../../lib/core/versions/latest/CoreIndexFile';
import CoreIndexFileModel from '../../lib/core/versions/latest/models/CoreIndexFileModel';
import ErrorCode from '../../lib/core/versions/l... | the_stack |
import { getModalDialogService } from "@core/service-registry";
import { ProgramCounterInfo } from "@state/AppState";
import { Z80CpuState } from "../../cpu/Z80Cpu";
import { IAudioRenderer } from "../audio/IAudioRenderer";
import { MachineCreationOptions, MachineState } from "../../../core/abstractions/vm-core-types"... | the_stack |
import * as React from 'react';
import SweetAlert from 'react-bootstrap-sweetalert';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
import Select from 'react-select';
import * as ContributionsActions from '../modules/contributions';
interface OwnProps {
contrib_data: any;
projects... | the_stack |
/// <reference types="node" />
declare module 'tinder' {
import fs = require('fs');
class TinderClient {
constructor();
/**
* Authorize this tinder client
* @param {String} fbToken the Facebook token. This will be obtained when authenticating the user
* @param {Stri... | the_stack |
import { OrientedBox3 } from "@here/harp-geoutils";
import { SolidLineMaterial } from "@here/harp-materials";
import { assert } from "@here/harp-utils";
import * as THREE from "three";
import { displaceBox, DisplacedBufferGeometry, DisplacementRange } from "./DisplacedBufferGeometry";
const tmpSphere = new THREE.Sphe... | the_stack |
import { Context } from '@rundeck/testdeck/context'
import { CreateContext } from '@rundeck/testdeck/test/selenium'
import { SystemAclsPage, Elems } from 'pages/systemAcls.page'
import { LoginPage } from 'pages/login.page'
import { mkdtemp, mkdtempSync, writeFile, writeFileSync } from 'fs'
import { until, By } from 's... | the_stack |
import { MutableObject, HashedObject, Hash, MutationOp, Hashing } from 'data/model';
import { Store } from 'storage/store';
import { MultiMap } from 'util/multimap';
import { Endpoint, NetworkAgent, NetworkAgentProxyConfig, SecureNetworkAgent } from '../agents/network';
import { PeerInfo, PeerSource, PeerGroupAgent, ... | the_stack |
import path from 'path'
import { prependChangelogFile, writeChangesetFile } from '@monodeploy/changelog'
import { backupPackageJsons, clearBackupCache, restorePackageJsons } from '@monodeploy/io'
import logging from '@monodeploy/logging'
import {
commitPublishChanges,
createReleaseGitTags,
getWorkspacesToP... | the_stack |
* Event handler function with a generic sender and a generic argument.
*/
export interface IEventHandler<TSender, TArgs> {
/**
* @sender The sender.
* @args The argument.
*/
(sender: TSender, args: TArgs);
}
/**
* Event handler function with a generic argument
*/
export interface ISimpleE... | the_stack |
import * as models from '../models';
/* generated type guards */
export function is$Xgafv(arg: any): arg is models.$Xgafv {
return arg != null
|| arg === models.$Xgafv.V1
|| arg === models.$Xgafv.V2
;
}
export function isAlt(arg: any): arg is models.Alt {
return arg != null
|| arg === models.Alt.jso... | the_stack |
import GatsbyMobxStoreItem, { DEFAULT_REQUEST_DELAY } from '../src/dist/GatsbyMobxStoreItem';
import GatsbyMobxStore from '../src/dist/GatsbyMobxStore';
import BackendClient from '../src/dist/BackendClient';
import { ItemStateEvent } from '../src/dist/types';
class RequestsMock {
requests: any[] = [];
public add(... | the_stack |
import * as assert from "assert";
import { Schema, type, MapSchema, ArraySchema, filter, filterChildren } from "../src";
describe("Next Iteration", () => {
it("add and modify an primary array item", () => {
class State extends Schema {
@type(["string"])
arr: ArraySchema<string>;
... | the_stack |
import { CSSProperties } from 'react'
import { render } from 'react-dom'
import { Viewer } from '@bytemd/react'
import { slice, debounce } from 'lodash-es'
import { HintRequest, HintResponse } from './types'
const toStyleText = (obj: { [key: string]: string | number }) => {
return Object.entries(obj)
.map(([k, v... | the_stack |
import { pluginReadme } from "../../../../components/MarkdownRenderer/__tests__/test_state";
import {
PluginMetadata,
PropertyTypes,
Primitives,
ConfigurationGroup,
buildDefaultConfiguration,
} from "@codotype/core";
import {
SchemaEditorConfiguration,
RelationTypes,
Datatypes,
Group... | the_stack |
import { HTMLElement, HTMLDocument, TextNode, Node } from "./chef/html/html";
import { ClassDeclaration } from "./chef/javascript/components/constructs/class";
import { parseTemplate, IBinding, ITemplateData, BindingAspect, PartialBinding } from "./templating/template";
import { Module as JSModule } from "./chef/javasc... | the_stack |
import { Base } from "../../src/class/Base.js"
import { AnyConstructor, ClassUnion, Mixin, ZeroBaseClass } from "../../src/class/Mixin.js"
declare const StartTest : any
StartTest(t => {
t.it('Repeating creation with the same requirements should not call mixin functions and use cache', t => {
let count1 =... | the_stack |
* @title: Camera
* @description:
* This sample shows how to set up and then animate a Turbulenz Camera object.
* You can switch between tracking, orbiting and chasing motions.
*/
/*{{ javascript("jslib/aabbtree.js") }}*/
/*{{ javascript("jslib/camera.js") }}*/
/*{{ javascript("jslib/floor.js") }}*/
/*{{ javascript(... | the_stack |
import { IAsyncEqualityComparer, IEqualityComparer } from "./"
/**
* Common Methods between IAsyncEnumerable and IParallelEnumerable
*/
export interface IAsyncParallel<TSource> extends AsyncIterable<TSource> {
/**
* Applies an accumulator function over a sequence.
* @param func An accumulator function ... | the_stack |
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { Bots } from "../operationsInterfaces";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
import { AzureBotService } from "../azureBotService";
impor... | the_stack |
export = Hilo;
export as namespace Hilo;
/**
* Hilo的基础核心方法集合。
*/
declare namespace Hilo {
interface IElementRect {
left: number;
top: number;
width: number;
height: number;
}
/**
* 获取DOM元素在页面中的内容显示区域。
* @param elem 获取DOM元素在页面中的内容显示区域。
* @returns DOM元素的可视区域。格式为:{left:0, top:0, width:1... | the_stack |
module TDev.AST.Json
{
export var docs:string;
function isPlaceholder(j:JExprHolder) {
return (<any>j) === "" ||
j.tokens && (j.tokens.length == 0 || (j.tokens.length == 1 && j.tokens[0].nodeType == "placeholder"))
}
function isEmptyBlock(b:JStmt[])
{
return !b || b.le... | the_stack |
import {
EditorState,
ContentState,
ContentBlock,
SelectionState,
} from 'draft-js';
import pluckGoodies from './pluck_goodies';
import { getPosNum, getPosAfter, getPosInBetween } from './pos_generators';
import { recreateParentBlockMap } from './recreate_parent_block_map';
import { calculateDepth } from './ca... | the_stack |
import * as common from "./common";
const FILE_MAGIC = 0xed26ff3a;
const MAJOR_VERSION = 1;
const MINOR_VERSION = 0;
export const FILE_HEADER_SIZE = 28;
const CHUNK_HEADER_SIZE = 12;
// AOSP libsparse uses 64 MiB chunks
const RAW_CHUNK_SIZE = 64 * 1024 * 1024;
export class ImageError extends Error {
constructor... | the_stack |
import { Vector3 } from 'three';
import { BUFFER_WINDOW_SIZE, TOM_HEADER_NUM_BYTES } from './Defaults';
import { DeepReadonly } from 'ts-essentials';
import { TomTypedArray, TomType } from './types';
import { getTomDimensions, getTomDataType, getTomUseNull, getTomNumElements } from './io';
import { dataSizeForType, nul... | 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/iscsiServersMappers";
import * as Parameters from "../models/parameters";
import { StorSimpleManagementClientContext } from "../storSimpleManageme... | the_stack |
import { ServiceClientOptions, RequestOptions, ServiceCallback, HttpOperationResponse } from 'ms-rest';
import * as models from '../models';
/**
* @class
* FrontDoors
* __NOTE__: An instance of this class is automatically created for an
* instance of the FrontDoorManagementClient.
*/
export interface FrontDoors ... | the_stack |
import AppDispatcher from "#SRC/js/events/AppDispatcher";
import * as SystemLogTypes from "#SRC/js/constants/SystemLogTypes";
import LogBuffer from "../../structs/LogBuffer";
import MesosLogActions from "../../events/MesosLogActions";
import MesosLogStore from "../MesosLogStore";
import * as EventTypes from "../../cons... | the_stack |
import "jest";
jest.mock("./gui/Splitter");
jest.mock("./gui/Tab");
jest.mock("./gui/TabWidget");
import { Splitter } from "./gui/Splitter";
import { Tab } from "./gui/Tab";
import { TabWidget } from "./gui/TabWidget";
import { SplitLayout } from "./SplitLayout";
const SplitOrientation = {
VERTICAL: 0,
HORIZONTAL... | the_stack |
import * as cdk from '@aws-cdk/core';
import * as cloudfront from '@aws-cdk/aws-cloudfront';
import * as route53 from '@aws-cdk/aws-route53';
import * as route53targets from '@aws-cdk/aws-route53-targets';
import * as acm from '@aws-cdk/aws-certificatemanager';
import * as cloudwatch from '@aws-cdk/aws-cloudwatch';
imp... | the_stack |
import { Injectable, OnDestroy } from '@angular/core';
import { ActivatedRoute, Params } from '@angular/router';
import {
BehaviorSubject,
combineLatest,
combineLatest as observableCombineLatest,
merge as observableMerge,
Observable,
Subscription
} from 'rxjs';
import { distinctUntilChanged, filter, map, s... | the_stack |
import {BeforeVisitorOptions} from "../before-visitor-options";
import {isRequireCall} from "../../util/is-require-call";
import {walkThroughFillerNodes} from "../../util/walk-through-filler-nodes";
import {getModuleExportsFromRequireDataInContext} from "../../util/get-module-exports-from-require-data-in-context";
impo... | the_stack |
import makeMdns = require("multicast-dns");
import * as dgram from "dgram";
const mdns = makeMdns();
mdns; // $ExpectType MulticastDNS
makeMdns({ port: 1234 });
makeMdns({ type: "udp4" });
makeMdns({ type: "udp6" });
makeMdns({ ip: "1.2.3.4" });
makeMdns({ interface: "1.2.3.4" });
makeMdns({ socket: dgram.createSocket... | the_stack |
import * as functions from 'firebase-functions';
import { firestore } from 'firebase-admin';
import { auth, db } from '../../../app';
import { IOffer, Offer, OfferStatus } from '../../../models/offers';
import { IOfferWithLocation } from '../../../models/offers/offersWithLocation';
import { IRequest, Request, RequestS... | the_stack |
import { DownloadOutlined } from '@ant-design/icons'
import { t, Trans } from '@lingui/macro'
import { Button, Select, Space } from 'antd'
import DeployedERC20EventElem from 'components/shared/activityEventElems/DeployedERC20EventElem'
import PayEventElem from 'components/shared/activityEventElems/PayEventElem'
import ... | the_stack |
import {strict as assert} from 'assert';
import Baobab, {Cursor, Path} from '../../src/baobab';
// @ts-ignore
import type from '../../src/type';
import state from '../state';
import {assertIsFrozen} from "../utils";
const noop = () => undefined;
describe('Baobab API', function() {
/**
* Testing the very basics ... | the_stack |
import * as React from "react";
import { GUI, GUIParams, GUIController } from "dat.gui";
import { Divider, InputGroup, Classes } from "@blueprintjs/core";
import { Node, Color3, Tags, Color4, BaseTexture, ISize, Material } from "babylonjs";
import { Nullable, Undefinable } from "../../../shared/types";
impor... | the_stack |
module android.widget {
import Canvas = android.graphics.Canvas;
import Drawable = android.graphics.drawable.Drawable;
import Gravity = android.view.Gravity;
import View = android.view.View;
import Integer = java.lang.Integer;
import System = java.lang.System;
import Button = android.widget.Button;
import Checkable = a... | the_stack |
import XRay from './xRay'
export {XRay}
import EC2 from './ec2'
export {EC2}
import ACMPCA from './acmpca'
export {ACMPCA}
import ServiceCatalog from './serviceCatalog'
export {ServiceCatalog}
import GlobalAccelerator from './globalAccelerator'
export {GlobalAccelerator}
import AccessAnalyzer from './accessAnalyze... | the_stack |
"use strict";
import debugGenerator = require("debug");
import * as path from "path";
import fs = require("fs-extra");
import mkdirp = require("mkdirp");
import BroccoliPlugin = require("broccoli-plugin");
import glob = require("glob");
import FSTree = require("fs-tree-diff");
import walkSync = require("walk-sync");
im... | the_stack |
import { EventEmitter } from 'events';
import { Agent } from '../Agent';
import { Match } from '../Match';
import { Design } from '../Design';
import {
FatalError,
TournamentPlayerDoesNotExistError,
DatabaseGetUserError,
} from '../DimensionError';
import { DeepPartial } from '../utils/DeepPartial';
import { Log... | the_stack |
import copy from "copy-to-clipboard";
import {
ContentState,
convertFromRaw,
convertToRaw,
Editor,
EditorState,
Modifier,
} from "draft-js";
import { assign, filter, map } from "lodash";
import {
Button,
Dropdown,
DropdownProps,
Form,
Icon,
Input,
Loader,
Message,
Modal,
} from "semantic-u... | the_stack |
import {
TextProcessor, TextRange, TextProcessingOptions,
TextFilter, TextResult
} from "./common"
import { TURKISH_ASCIIFY_TABLE, TURKISH_CHAR_ALIST } from "./turkish"
import { StringBuffer } from './util'
class SkipList implements TextFilter {
constructor(private skipRegions: Array<TextRange>) { }
public sh... | the_stack |
import * as fs from "fs-plus";
import * as path from "path";
import * as vscode from "vscode";
import * as AdmZip from "adm-zip";
import { IoTWorkbenchSettings } from "./IoTSettings";
import * as utils from "./utils";
import { Board, BoardQuickPickItem } from "./Models/Interfaces/Board";
import { TelemetryContex... | the_stack |
import { RegExpParser } from "regexpp";
import { Character, CharacterClass, CharacterSet, Flags } from "regexpp/ast";
import { mentionCharElement } from "../format";
import { CleanRegexRule, createRuleListener, getDocUrl } from "../rules-util";
import { toCharSet } from "../char-util";
type LiteralEscapeMode = "requir... | the_stack |
import { Drive, User } from "@prisma/client";
import { Config, DriveFile, DriveFolder, UploadingFile } from "@util/types";
import axios from "axios";
import { FirebaseApp, getApp, getApps, initializeApp } from "firebase/app";
import {
createUserWithEmailAndPassword,
getAuth,
onAuthStateChanged,
signInWithEmailAndPa... | the_stack |
'use strict';
import { Gateway, GatewayOptions, Network, Wallet } from 'fabric-network';
import { URL } from 'url';
import { ConsoleOutputAdapter, FabricSmartContractDefinition, OutputAdapter } from 'ibm-blockchain-platform-common';
import { FabricWallet } from 'ibm-blockchain-platform-wallet';
import { Lifecycle, Lif... | the_stack |
import { saveBMP } from '../common/BmpWriter';
import { FileParams, TexturingParams, Bounds2, Type } from '../common/types';
import { Vector2, Vector3 } from 'three';
import MutableTypedArray from '../common/MutableTypedArray';
import { dataSizeForType } from '../common/utils';
import { saveOBJ } from '../common/ObjWr... | the_stack |
import * as msRest from "@azure/ms-rest-js";
import * as Models from "../models";
import * as Mappers from "../models/productsMappers";
import * as Parameters from "../models/parameters";
import { BillingManagementClientContext } from "../billingManagementClientContext";
/** Class representing a Products. */
export cl... | the_stack |
import {IConstructInstanceOptions} from "../construct-instance-options/i-construct-instance-options";
import {IParent} from "../construct-instance-options/i-parent";
import {ConstructorArgument} from "../constructor-arguments/constructor-argument";
import {CONSTRUCTOR_ARGUMENTS_SYMBOL} from "../constructor-arguments/co... | the_stack |
import type { ReactElement } from 'react'
import { isNumber, UNDEFINED } from 'tsfn'
import { LAYOUT_SIZE_1, LAYOUT_SIZE_2, LAYOUT_SIZE_3, LAYOUT_SIZE_4, LAYOUT_SIZE_FIT } from './symbols'
import type { TLayoutRenderState, TLayoutSize, TOnItemMove, TOnItemSizeChange } from './types'
export const getLayoutWidth = (item... | the_stack |
import { observable, action, runInAction, computed } from 'mobx';
import QNRTC, {
QNConnectionState, QNTrack as RTCTrack,
QNRemoteUser as RTCUser,
QNRTCClient,
QNRemoteTrack,
QNConnectionDisconnectedInfo,
QNConnectionDisconnectedReason,
QNLocalTrack,
QNRemoteVideoTrack,
QNRemoteAudioTrack,
QNLocalAu... | the_stack |
(function () {
try {
function getCookies() {
return document.cookie.split('; ').reduce((s: { [name: string]: string }, d) => {
let key = d.split('=')[0];
let val = d.split('=')[1];
s[key] = val;
return s;
}, {});
... | the_stack |
import { concat, isNumber, isDef, AnyObject } from '@xiao-ai/utils';
import { Matrix, BigNumber, parseShortNumber } from '@circuit/math';
import { stringifyInsidePart, stringifyInsidePin, stringifyPin } from '../utils/connection';
import { Mapping } from './map';
import { isMeterGnd } from '../utils/part';
impor... | the_stack |
import { MSGraphClient, SPHttpClient, SPHttpClientResponse, ISPHttpClientOptions, HttpClientResponse, HttpClient, IHttpClientOptions } from "@microsoft/sp-http";
import * as MicrosoftGraph from "@microsoft/microsoft-graph-types";
import { WebPartContext } from "@microsoft/sp-webpart-base";
import { IGroup, IGroupCollec... | the_stack |
//@ts-check
///<reference path="devkit.d.ts" />
declare namespace DevKit {
namespace Formmsdyn_ocsystemmessage_Information {
interface tab_MessageTemplate_GeneralTab_Sections {
_F86C374B_46E7_4B2F_9BC6_2D41E13AAFE2: DevKit.Controls.Section;
MessageTemplate_LocalizationDataGridSection: DevKit.Controls.Section;... | the_stack |
import {Messages} from '@salesforce/core';
import {expect} from 'chai';
import Sinon = require('sinon');
import path = require('path');
import { fail } from 'assert';
import {Config, ConfigContent} from '../../../src/lib/util/Config';
import {CONFIG_FILE, ENGINE} from '../../../src/Constants'
import { FileHandler } fro... | the_stack |
import { isServer, TCromwellBlockProps, TPagedList, TPagedParams } from '@cromwell/core';
import { debounce } from 'throttle-debounce';
import React from 'react';
import { CBlock } from '../CBlock/CBlock';
import { LoadBox } from '../loadBox/Loadbox';
import { throbber } from '../throbber';
import styles from './CList... | the_stack |
import { pxTransform } from '@tarojs/taro'
import classnames from 'classnames'
import useDeepCompareEffect from 'use-deep-compare-effect'
import { ScrollView, Text, View } from '@tarojs/components'
import React, { memo, useCallback, useEffect, useState, useMemo } from 'react'
import { IColumns, ITableProps } from '../.... | the_stack |
//import isEmpty from 'lodash/isEmpty';
import { QnAFile } from '@bfc/shared';
import { sectionHandler } from '@microsoft/bf-lu/lib/parser/composerindex';
import isEmpty from 'lodash/isEmpty';
import { Diagnostic, Position, Range, DiagnosticSeverity, LuParseResource } from '@bfc/shared';
import { nanoid } from 'nanoid'... | the_stack |
import * as core from "./core";
import * as auth from "./auth";
import * as data from "./data";
import * as workspace from "./workspace";
import * as app from "./app";
type File = pxt.workspace.File;
type Header = pxt.workspace.Header;
type ScriptText = pxt.workspace.ScriptText;
import U = pxt.Util;
type CloudProjec... | the_stack |
import { Rectangle } from '@pixi/math';
import { Area, AreaOrientation } from './Area';
import type { AreaAllocator } from './AreaAllocator';
import type { AreaField } from './Area';
/**
* An allocator node is represented as a tuple. The zeroth element is the parent of the node. The first element
* always exists a... | the_stack |
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { BlobContainers } from "../operationsInterfaces";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
import { StorageManagementClient } from "../stora... | the_stack |
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import Autosuggest = require('react-autosuggest');
// endregion
interface Language {
name: string;
year: number;
}
// https://developer.mozilla.org/en/docs/Web/JavaScript/Guide/Regular_Expression
// s#Using_Special_Characters
function esca... | the_stack |
import { Injectable } from '@angular/core';
import { WKUserScriptWindow } from 'cordova-plugin-wkuserscript';
import { WKWebViewCookiesWindow } from 'cordova-plugin-wkwebview-cookies';
import { CoreApp } from '@services/app';
import { CoreFile } from '@services/file';
import { CoreFileHelper } from '@services/file-hel... | the_stack |
import { expect } from "chai";
import * as METADATA_KEY from "../../src/constants/metadata_keys";
import { interfaces } from "../../src/interfaces/interfaces";
import { Container, inject, injectable, MetadataReader } from "../../src/inversify";
import { Metadata } from "../../src/planning/metadata";
describe("Custom M... | the_stack |
import {
h,
defineComponent,
PropType,
computed,
inject,
ref,
watchEffect,
VNode
} from 'vue'
import {
CancelIcon,
TrashIcon,
AttachIcon,
RetryIcon,
DownloadIcon,
EyeIcon
} from '../../_internal/icons'
import { NButton } from '../../button'
import { NIconSwitchTransition, NBaseIcon } from '.... | the_stack |
import {
PLAYER_STATE,
MEDIA_TYPE,
InternalPlayerState,
} from 'events/events';
import type * as Event from 'events/events';
import type { TracksMixin, SimpleAudioTrack } from 'providers/tracks-mixin';
import type { VideoActionsInt } from 'providers/video-actions-mixin';
import type { VideoAttachedInt } fro... | the_stack |
* TODO: Remove this file as part of addressing https://github.com/keymanapp/keyman/issues/2492.
*/
interface StringConstructor {
kmwFromCharCode(cp0: number): string,
_kmwFromCharCode(cp0: number): string,
kmwEnableSupplementaryPlane(bEnable: boolean)
}
interface String {
kmwCharCodeAt(codePointIndex: numbe... | the_stack |
import ICleaner from "../../common/ICleaner";
import IDataStore from "../../common/IDataStore";
import IGCExtentProvider from "../../common/IGCExtentProvider";
import * as Models from "../generated/artifacts/models";
import Context from "../generated/Context";
/**
* This model describes a chunk inside a persistency e... | the_stack |
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { ConfigService } from './services/config.service';
import { AssessmentComponent } from './assessment/assessment.component';
import { AssessmentInfoComponent } from './assessment/prepare/assessment-info/assessment-i... | the_stack |
import { PdfDocument, PdfGraphics, PdfPage, PdfTextWebLink, PdfColor, SizeF, PdfLayoutFormat, PdfSection } from './../../src/index';
import { PdfStringFormat } from './../../src/index';
import { PdfGrid, PdfGridCellStyle } from './../../src/index';
import { PdfGridRow, PdfPen, PdfDocumentLinkAnnotation, PdfSolidBrush,... | the_stack |
import Page = require('../../../../../base/Page');
import Response = require('../../../../../http/response');
import Sync = require('../../../Sync');
import serialize = require('../../../../../base/serialize');
import { SerializableClass } from '../../../../../interfaces';
type SyncListItemQueryFromBoundType = 'inclus... | the_stack |
import EquationDiagramGloss from "./EquationDiagramGloss";
import LabelRenderer from "./LabelRenderer";
import { getRemoteLogger } from "../../../logging";
import { Point } from "../../control/Selection";
import * as selectors from "../../../selectors";
import { Entities } from "../../../state";
import { Equation } fro... | the_stack |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.