text stringlengths 2.5k 6.39M | kind stringclasses 3
values |
|---|---|
import { ClassType, CompilerContext, isArray, isObject, toFastProperties } from '@deepkit/core';
import { ClassSchema, getClassSchema, getGlobalStore, getSortedUnionTypes, JitStack, jsonTypeGuards, PropertySchema, UnpopulatedCheck, unpopulatedSymbol } from '@deepkit/type';
import { seekElementSize } from './continuatio... | the_stack |
import { ParserContext } from './ParserContext';
import { Token, TokenKind } from './Token';
import { Tokenizer } from './Tokenizer';
import {
DocBlockTag,
DocCodeSpan,
DocErrorText,
DocEscapedText,
DocHtmlAttribute,
DocHtmlEndTag,
DocHtmlStartTag,
DocInlineTag,
DocNode,
DocPlainText,
... | the_stack |
import {
CURRENCY_USD,
LANGUAGE_EN,
} from '../../../helpers/site-context-selector';
import {
waitForCategoryPage,
waitForPage,
waitForProductPage,
} from '../../checkout-flow';
interface StrategyRequestContext {
language?: string;
category?: string;
productIds?: string[];
facets?: string[];
contai... | the_stack |
import { config } from "../config";
import { Logger } from "../utils/logger";
import { db, privateDB } from "../databases/databases";
import { getMaxResThumbnail, YouTubeAPI } from "../utils/youtubeApi";
import { getSubmissionUUID } from "../utils/getSubmissionUUID";
import { getHash } from "../utils/getHash";
import {... | the_stack |
declare namespace GoogleAppsScript {
namespace AdminDirectory {
namespace Collection {
namespace Groups {
interface AliasesCollection {
// Add a alias for the group
insert(resource: Schema.Alias, groupKey: string): AdminDirectory.Schema.Alias;
// List all aliases for a ... | the_stack |
import { rebuildLinode } from '@linode/api-v4/lib/linodes';
import { UserDefinedField } from '@linode/api-v4/lib/stackscripts';
import { APIError } from '@linode/api-v4/lib/types';
import { RebuildLinodeFromStackScriptSchema } from '@linode/validation/lib/linodes.schema';
import { Formik, FormikProps } from 'formik';
i... | the_stack |
import {OutputFormat} from './OutputFormat';
import {Writer} from "ion-js";
import {IonComparisonReport} from "./ComparisonReport";
import {ComparisonContext} from "./ComparisonContext";
import {IonCompareArgs} from "./CliCompareArgs";
import {ComparisonResult, ComparisonResultType} from "ion-js";
import {IonEvent, Ion... | the_stack |
import * as net from 'net';
import * as tls from 'tls';
import { Connection, ConnectionOptions, CryptoConnection } from './connection';
import {
MongoNetworkError,
MongoNetworkTimeoutError,
AnyError,
MongoCompatibilityError,
MongoInvalidArgumentError,
MongoServerError,
MongoRuntimeError
} from '../error';... | the_stack |
import {
Connection,
Server,
WebSocketTransport
} from "vscode-cdp-proxy";
import * as semver from "semver";
import { IncomingMessage } from "http";
import { OutputChannelLogger } from "../../utils/log/outputChannelLogger";
import { DebuggerEndpointHelper } from "./debuggerEndpointHelper";
import { LogLevel... | the_stack |
import * as pulumi from "@pulumi/pulumi";
import * as utilities from "../utilities";
/**
* Adds a trust between Active Directory domains
*
* To get more information about DomainTrust, see:
*
* * [API documentation](https://cloud.google.com/managed-microsoft-ad/reference/rest/v1/projects.locations.global.domains/a... | the_stack |
import { Emitter, Event } from 'vs/base/common/event';
import { CharCode } from 'vs/base/common/charCode';
import { IDisposable } from 'vs/base/common/lifecycle';
import { IPosition, Position } from 'vs/editor/common/core/position';
import { IRange, Range } from 'vs/editor/common/core/range';
import { getWordAtText, IW... | the_stack |
* @fileoverview Externs creates Closure Compiler #externs definitions from the
* ambient declarations in a TypeScript file.
*
* (Note that we cannot write the "@" form of the externs tag, even in comments,
* because the compiler greps for it in source files(!). So we write #externs
* instead.)
*
* For example, ... | the_stack |
import * as path from 'path'
import readdirp from 'readdirp'
import {
stat, exists, readFile, replaceContents, mkdirp, rm, isEmptyDir,
rename, existsSync, readFileSync, statSync, notFoundAsUndefined,
} from '@salto-io/file'
import { localDirectoryStore } from '../../../src/local-workspace/dir_store'
jest.mock('@sa... | the_stack |
import "source-map-support/register";
import * as assert from "assert";
import * as Mocha from "mocha";
import * as path from "path";
// @ts-expect-error
import * as unexpected from "unexpected";
import * as vscode from "vscode";
import { Context, SelectionBehavior, Selections } from "../../src/api";
import type {... | the_stack |
import { Component, AfterViewInit } from '@angular/core';
import { NavController, AlertController, Platform } from '@ionic/angular';
import { OsmApiService } from '../../services/osmApi.service';
import { TagsService } from '../../services/tags.service';
import { MapService } from '../../services/map.service';
i... | the_stack |
import qs from 'qs';
import { isObject, has, merge, isArray, map, get } from 'lodash';
import { tokenize, dataMapping } from './tpl-builtin';
import { evalExpression } from './tpl';
import {
isObjectShallowModified,
hasFile,
object2formData,
qsstringify,
cloneObject,
createObject,
} from './helper';
import ... | the_stack |
import { IAcknowledgeStartupWarningsAction } from "../actions/defs";
/**
* Defines our localized message bundle. Any property name here
* can be used as a key in any {@link tr} call
*
* Any translated string bundles must conform to the shape as defined by
* this interface
*
* @export
* @interface ILocalizedM... | the_stack |
import * as Long from 'long';
import {
BigDecimal,
LocalDate,
LocalDateTime,
LocalTime,
OffsetDateTime
} from '../core';
/**
* Portable field type.
*/
export enum FieldType {
PORTABLE = 0,
BYTE = 1,
BOOLEAN = 2,
CHAR = 3,
SHORT = 4,
INT = 5,
LONG = 6,
FLOAT = 7,
... | the_stack |
import { Injectable } from '@angular/core';
export type DisableEnableDate =
| string
| Date
| { from: Date | string; to: Date | string }
| ((date: Date) => boolean);
// tslint:disable no-inferrable-types
export interface FlatpickrDefaultsInterface {
/**
* Exactly the same as date format, but for the alt... | the_stack |
import React from 'react';
import {assert} from 'chai';
import td from 'testdouble';
import {shallow, mount} from 'enzyme';
import Dialog, {
ChildTypes,
DialogTitle,
DialogContent,
DialogFooter,
DialogButton,
} from '../../../packages/dialog';
import {isScrollable, areTopsMisaligned} from '@material/dialog/u... | the_stack |
import * as _ from "lodash";
import * as Studio from "../studio";
import { Field, SharedModel, UIModeType } from "../studio";
import { XBridge } from "../studio/bridge/XBridge";
import { FieldValueKind } from "../studio/models/FieldValueKind";
import { Relation } from "../studio/models/Relation";
import { ModelUtils } ... | the_stack |
* @module iModels
*/
import { join } from "path";
import { IModelJsNative } from "@bentley/imodeljs-native";
import {
AccessToken, BeEvent, BentleyStatus, ChangeSetStatus, DbResult, Guid, GuidString, Id64, Id64Arg, Id64Array, Id64Set, Id64String, IModelStatus,
JsonUtils, Logger, OpenMode,
} from "@itwin/core-bent... | the_stack |
* @module ModelState
*/
import { Id64, Id64String, JsonUtils } from "@itwin/core-bentley";
import {
GeometricModel2dProps, GeometricModel3dProps, GeometricModelProps, ModelProps, RealityDataFormat, RealityDataSourceKey, RelatedElement, SpatialClassifiers,
} from "@itwin/core-common";
import { Point2d, Range3d } fro... | the_stack |
* @title: 2D Physics constraints
* @description:
* This sample shows how to create each of the 2D physics constraints
* (point, weld, distance, line, angle, motor, pulley and custom).
* Each object in the scene can be manipulated with the mouse to see how the constraints work.
*/
/*{{ javascript("jslib/observer.js... | the_stack |
import { scan, Token, Literal } from './scan';
import { Expr, Prim, StringLiteral, IntLiteral, BytesLiteral, sourceReference, List, SourceReference } from './micheline';
import { expandMacros } from './macros';
import { ProtocolOptions } from './michelson-types';
export class MichelineParseError extends Error {
/*... | the_stack |
import { LayoutConfig } from './config/config';
import { ResolvedComponentItemConfig, ResolvedLayoutConfig, ResolvedPopoutLayoutConfig } from './config/resolved-config';
import { ComponentContainer } from './container/component-container';
import { BindError } from './errors/external-error';
import { UnexpectedUndefine... | the_stack |
declare var R: R.Static;
//
declare namespace R {
// Fantasyland interfaces
// TODO: incorporate generalized inheritance e.g.: `<U extends
// Applicative, V extends Traversable>`; possibly needs [rank 2
// polymorphism](https://github.com/Microsoft/TypeScript/issues/1213).
interface Setoid<T> {
... | the_stack |
import { AccessPermissionsContract } from '@nestjs-bff/global-contracts/lib/domain/access-permissions/access-permissions.contract';
import { IEntity } from '@nestjs-bff/global-contracts/lib/domain/core/entity.interface';
import * as _ from 'lodash';
import { Document, Model } from 'mongoose';
import { AuthCheckContract... | the_stack |
import * as crypto from 'crypto';
import * as retry from 'p-retry';
import * as zlib from 'zlib';
import {handler as dockerAuth} from './auth/dockerio';
import {GCRAuthOptions, handler as gcrAuth} from './auth/gcr';
import {DockerAuthResult, DockerCredentialHelpers} from './credentials-helper';
import {ImageLocation, ... | the_stack |
import { setupController, views, actionChartView, state, ActionChartItem, SectionItem, EquipmentSectionMechanics, translations, template, mechanicsEngine, Item, SpecialObjectsUse, CombatMechanics, Bonus, InventoryState } from "..";
/**
* The action chart controller
*/
export const actionChartController = {
/**
... | the_stack |
import assert from 'assert';
import * as Tp from 'thingpedia';
import { Ast, Type } from 'thingtalk';
import type Engine from '../engine';
import type { DeviceInfo } from '../engine';
import { cleanKind } from '../utils/misc-utils';
import { ReplacedList, ReplacedConcatenation } from '../utils/template-string';
impor... | the_stack |
import {
Component,
OnInit,
Input,
ChangeDetectorRef,
Output,
EventEmitter, ViewChild
} from '@angular/core';
import {FormGroup, FormControl, Validators} from '@angular/forms';
import {cloneDeep, map, zipObject, extend, defer} from 'lodash';
import {TranslateService} from '@ngx-translate/core';... | the_stack |
import {DateTime, Unit} from './datetime';
import Collapse from './display/collapse';
import Namespace from './utilities/namespace';
import Dates from './dates';
import Validation from './validation';
import Display from './display';
import {EventEmitters} from './utilities/event-emitter';
import {serviceLocator} from ... | the_stack |
namespace pixi_heaven.mesh {
const tempPoint = new PIXI.Point();
const tempPolygon = new PIXI.Polygon();
/**
* Base mesh class
* @class
* @extends PIXI.Container
* @memberof PIXI.mesh
*/
export class Mesh extends PIXI.Container implements ITextureAnimationTarget {
/**
* The texture of the Mesh
*
... | the_stack |
import { Augur } from "augur.js";
import BigNumber from "bignumber.js";
import * as t from "io-ts";
import * as Knex from "knex";
import * as _ from "lodash";
import { Dictionary, NumericDictionary } from "lodash";
import { FrozenFunds } from "../../blockchain/log-processors/profit-loss/frozen-funds";
import { getCurre... | the_stack |
export const enum KeyType {
RSA = "RSA",
Ed25519 = "Ed25519",
Secp256k1 = "Secp256k1",
}
export const encodeKeyType: { [key: string]: number } = {
RSA: 0,
Ed25519: 1,
Secp256k1: 2,
};
export const decodeKeyType: { [key: number]: KeyType } = {
0: KeyType.RSA,
1: KeyType.Ed25519,
2: KeyType.Secp256k1,... | the_stack |
// This is the "new" UI rendered in newDesktopFrame.html
(function () {
"use strict";
let overlay = null;
let spinner = null;
function postError(error, message) {
poster.postMessageToParent("LogError", { error: JSON.stringify(error), message: message });
}
function initializeFabric()... | the_stack |
import * as Types from "./";
import {
Client,
InvokeApiResult
} from "@web3api/core-js";
export type UInt = number;
export type UInt8 = number;
export type UInt16 = number;
export type UInt32 = number;
export type Int = number;
export type Int8 = number;
export type Int16 = number;
export type Int32 = number;
exp... | the_stack |
import { Histogram } from "./histogram.js";
import { ColorRGBA64 } from "./color-rgba-64.js";
/**
* Adds a newItem to an already sorted list without needing to do a full re-sort.
* Higher sort priority puts the newItem closer to the start (index 0) of the list.
*
* @public
*/
export function insertIntoSortedList(... | the_stack |
import * as PropTypes from 'prop-types';
import * as React from 'react';
import * as RN from 'react-native';
import * as RNW from 'react-native-windows';
import AccessibilityUtil, { ImportantForAccessibilityValue } from '../native-common/AccessibilityUtil';
import assert from '../common/assert';
import { Button as But... | the_stack |
import React, { useState } from 'react';
import { I18nManager, Pressable, StatusBar, StyleSheet, Switch, Text, TextInput, View } from 'react-native';
import { SafeAreaProvider, SafeAreaView } from 'react-native-safe-area-context';
import { Slider } from '@sharcoux/slider';
import { PageScrollView } from 'pagescrollview... | the_stack |
import { IDataSet } from '../../src/base/engine';
import { pivot_dataset } from '../base/datasource.spec';
import { PivotView } from '../../src/pivotview/base/pivotview';
import { createElement, remove, EmitType, EventHandler, extend } from '@syncfusion/ej2-base';
import { GroupingBar } from '../../src/common/grouping-... | the_stack |
import {
BufferAttribute,
BufferGeometry,
Float32BufferAttribute,
InterleavedBuffer,
InterleavedBufferAttribute,
TriangleFanDrawMode,
TriangleStripDrawMode,
TrianglesDrawMode,
Vector3,
Mesh,
Line,
Points,
Material,
SkinnedMesh,
MeshStandardMaterial,
} from 'three'
import { getWithKey } fr... | the_stack |
import type {SetupWorkerApi} from 'msw'
import preval from 'preval.macro'
import React from 'react'
import ReactDOM from 'react-dom'
import {createBrowserHistory} from 'history'
import {setup as setupServer} from './server'
import {renderReactApp} from './react-app'
import type {
FileInfo,
LazyComponents,
Imports... | 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://translation.googleapis.com/$discovery/rest?version=v2
//... | the_stack |
import {
DinoRouter,
IRouterConfig,
ObjectUtility,
DinoParser,
DinoUtility
} from '../../index';
describe('modules.router.dino.router.spec', () => {
it('static_create.invoke_constructor', () => {
let config: IRouterConfig = {
routerCb: () => null
} as any;
le... | the_stack |
'use strict'
/// <reference path="../../client/typings/ycm.d.ts" />
import {
IPCMessageReader, IPCMessageWriter,
createConnection, IConnection, TextDocumentSyncKind,
TextDocuments, TextDocument, Diagnostic, DiagnosticSeverity,
InitializeParams, InitializeResult, TextDocumentPositionParams,
Completio... | the_stack |
import { wrapped } from "../functions";
import { withPossibleRepresentations, FunctionMap, PossibleRepresentation, ProtocolConformance, ReifiedType } from "../reified";
import { addVariable, lookup, uniqueName, DeclarationFlags, Scope } from "../scope";
import { Function } from "../types";
import { concat, lookupForMap... | the_stack |
import './TreeDrawer/Column';
import './TreeDrawer/TreeLine';
import './TreeDrawer/Table';
import {
defineComponent,
FunctionalComponent,
html,
observable,
TemplateResult,
updated,
} from '@vuerd/lit-observable';
import { classMap } from 'lit-html/directives/class-map';
import { LineShape } from '@/compon... | the_stack |
module WinJSTests {
"use strict";
var previousTracingOptions;
// Store edit result, use "recordEditSuccess" callback, clear it before.
var editSucceeded = false;
function clearLastEdit() {
editSucceeded = false;
}
function recordEditSuccess() {
editSucceeded = true;
}... | the_stack |
import * as msRest from "@azure/ms-rest-js";
import * as Models from "../models";
import * as Mappers from "../models/tasksMappers";
import * as Parameters from "../models/parameters";
import { DataMigrationServiceClientContext } from "../dataMigrationServiceClientContext";
/** Class representing a Tasks. */
export cl... | the_stack |
import {
API,
APIEvent,
Characteristic,
DynamicPlatformPlugin,
Logger,
PlatformAccessory,
Service,
} from 'homebridge';
import { PLATFORM_NAME, PLUGIN_NAME } from './settings';
import * as path from 'path';
import { PermitJoinAccessory } from './accessories/permit-join-accessory';
import { sleep } from '... | the_stack |
import { AbortController } from "@azure/abort-controller";
import {
BlobServiceClient,
newPipeline,
StorageSharedKeyCredential
} from "@azure/storage-blob";
import assert = require("assert");
import * as fs from "fs";
import { join } from "path";
import { PassThrough } from "stream";
import { configLogger } from... | the_stack |
import Logger from "@supercollider/logger";
import { packBundle, packMessage, unpackMessage } from "@supercollider/osc";
import { spawn } from "child_process";
import * as dgram from "dgram";
import { EventEmitter } from "events";
import _ from "lodash";
import path from "path";
import { IDisposable, Observable, Subjec... | the_stack |
import test, { Macro } from 'ava';
import {
addressContentsToLockingBytecode,
AddressType,
Base58AddressError,
Base58AddressFormatVersion,
base58AddressToLockingBytecode,
CashAddressDecodingError,
CashAddressNetworkPrefix,
cashAddressToLockingBytecode,
hexToBin,
instantiateSha256,
LockingBytecode... | 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/fileServersMappers";
import * as Parameters from "../models/parameters";
import { StorSimpleManagementClientContext } from "../storSimpleManagemen... | the_stack |
import {
CdmCorpusDefinition,
CdmDocumentCollection,
CdmDocumentDefinition,
CdmEntityDefinition,
CdmFolderDefinition,
CdmManifestDefinition,
ImportInfo,
resolveOptions
} from '../../internal';
import { testHelper } from '../testHelper';
/**
* Sets the document's isDirty flag to true an... | the_stack |
import { GlobalProps } from 'ojs/ojvcomponent';
import { ComponentChildren } from 'preact';
import RequiredValidator = require('../ojvalidator-required');
import RegExpValidator = require('../ojvalidator-regexp');
import NumberRangeValidator = require('../ojvalidator-numberrange');
import LengthValidator = require('../... | the_stack |
import { strict as assert } from "assert";
import { IGCTestProvider, runGCTests } from "@fluid-internal/test-dds-utils";
import {
MockFluidDataStoreRuntime,
MockContainerRuntimeFactory,
MockContainerRuntimeFactoryForReconnection,
MockContainerRuntimeForReconnection,
MockStorage,
MockSharedObject... | the_stack |
import * as assert from 'assert';
import { BitArray } from '@zxing/library';
import { QRCodeByteMatrix } from '@zxing/library';
import { QRCodeMatrixUtil } from '@zxing/library';
import { QRCodeDecoderErrorCorrectionLevel } from '@zxing/library';
import { QRCodeVersion } from '@zxing/library';
/**
* @author satorux@g... | the_stack |
import { Injectable } from '@angular/core';
import { BehaviorSubject, of, pipe } from 'rxjs';
import { switchMap, tap } from 'rxjs/operators';
import { Participation } from 'app/entities/participation/participation.model';
import { Result } from 'app/entities/result.model';
import { Exercise } from 'app/entities/exerci... | the_stack |
* Testing for utils.ts
*/
import 'jasmine';
import {Spec} from '../lib/types';
import * as utils from './utils';
describe('randInt test', () => {
it('generates random integers in a given range', async () => {
let start = 1;
let end = 5;
let result = utils.randInt(start, end);
expect(result).not.toB... | the_stack |
import { UserModel } from 'src/chat21-core/models/user';
import { Component, OnInit, Output, EventEmitter, Input, AfterViewInit, ViewChild, ElementRef, OnChanges, HostListener, Renderer2 } from '@angular/core';
import { Chooser } from '@ionic-native/chooser/ngx';
import { IonTextarea, ModalController, ToastController ... | the_stack |
import { SET, ADD_ITEM, REMOVE_ITEM } from "#SRC/js/constants/TransactionTypes";
import { combineReducers, simpleFloatReducer } from "#SRC/js/utils/ReducerUtil";
import { findNestedPropertyInObject } from "#SRC/js/utils/Util";
import ContainerUtil from "#SRC/js/utils/ContainerUtil";
import { isEmpty } from "#SRC/js/uti... | the_stack |
import moment from 'moment'
import { Map as ImmutableMap } from 'immutable'
import { isEqual } from '../compare'
import {
toArr,
every,
some,
findIndex,
find,
includes,
map,
reduce,
} from '../array'
import { clone, shallowClone } from '../clone'
import { lowerCase } from '../case'
import { deprecate } ... | the_stack |
import { getHash } from "../../src/utils/getHash";
import { db } from "../../src/databases/databases";
import assert from "assert";
import { LockCategory } from "../../src/types/segments.model";
import { client } from "../utils/httpClient";
const stringDeepEquals = (a: string[] ,b: string[]): boolean => {
let resu... | the_stack |
import { Query, parseQuery, Condition, WhereClause } from 'soql-parser-js';
import { Common } from "../../components/common_components/common";
import { CONSTANTS } from "../../components/common_components/statics";
import { Logger, RESOURCES, LOG_MESSAGE_VERBOSITY, LOG_MESSAGE_TYPE } from "../../components/common_comp... | the_stack |
import { Big, BigJS, Biglike, ONE, ZERO } from './types';
import { OrderbookState, PriceLevel } from './Orderbook';
import BigArray from './BigArray';
export interface MarketOrderStats {
first_price: BigJS;
last_price: BigJS;
ave_price: BigJS;
total_size: BigJS;
total_cost: BigJS;
slippage: Big... | 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 ManagedBlo... | the_stack |
import * as OpaqueTypes from '@da/ui-core/lib/api/OpaqueTypes'
/* tslint:disable */
/* eslint-disable */
// @generated
// This file was automatically generated and should not be edited.
// ====================================================
// GraphQL query operation: ContractDetailsById
// ==========================... | the_stack |
import * as pulumi from "@pulumi/pulumi";
import { input as inputs, output as outputs } from "../types";
import * as utilities from "../utilities";
/**
* Budget configuration for a billing account.
*
* To get more information about Budget, see:
*
* * [API documentation](https://cloud.google.com/billing/docs/refer... | the_stack |
import * as React from 'react';
import * as _ from 'lodash-es';
import { useTranslation } from 'react-i18next';
import DashboardCard from '@console/shared/src/components/dashboard/dashboard-card/DashboardCard';
import DashboardCardHeader from '@console/shared/src/components/dashboard/dashboard-card/DashboardCardHeader'... | the_stack |
import chalk from 'chalk';
import * as yargs from 'yargs';
import {readdirSync, lstatSync, mkdirSync, readFileSync, writeFileSync, existsSync} from 'fs';
import {join} from 'path';
import {execSync} from 'child_process';
import inquirer = require('inquirer');
import {paramCase, pascalCase, titleCase} from 'change-case'... | the_stack |
import { Location, MarkdownString, TestItem, TestMessage } from 'vscode';
import { INVOCATION_PREFIX } from '../../constants';
import { dataCache, ITestItemData } from '../../controller/testItemDataCache';
import { createTestItem, updateOrCreateTestItem } from '../../controller/utils';
import { IJavaTestItem, IRunTestC... | the_stack |
/* global mhaStrings */
/* global mhaDates */
/* exported Received */
const Received = (function () {
"use strict";
const receivedRows = [];
let sortColumn = "hop";
let sortOrder = 1;
// Builds array of values for each header in receivedHeaderNames.
// This algorithm should work regardless o... | the_stack |
const self =
typeof window !== 'undefined'
? window // if in browser
: typeof WorkerGlobalScope !== 'undefined' &&
self instanceof WorkerGlobalScope
? self // if in worker
: {}; // if in node js
/**
* Prism: Lightweight, robust, elegant syntax highlighting
* MIT license http://www.opensource.... | the_stack |
import BScroll, { Boundary } from '@better-scroll/core'
import Wheel from '../index'
jest.mock('@better-scroll/core')
const createWheel = (wheelOptions: Object) => {
const wrapper = document.createElement('div')
const content = document.createElement('div')
wrapper.appendChild(content)
const scroll = new BScr... | 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 BackupGate... | the_stack |
import _ from 'lodash';
import {
MediaItemBase,
mediaItemColumns,
MediaItemItemsResponse,
} from 'src/entity/mediaItem';
import { Database } from 'src/dbconfig';
import { Seen } from 'src/entity/seen';
import { UserRating, userRatingColumns } from 'src/entity/userRating';
import { GetItemsArgs } from 'src/reposi... | the_stack |
import { expect } from "chai";
import "test/helper/ToneAudioBuffer";
import { getContext } from "../Global";
import { ToneAudioBuffer } from "./ToneAudioBuffer";
const testFile = "./audio/sine.wav";
describe("ToneAudioBuffer", () => {
context("basic", () => {
it("can be created and disposed", () => {
const bu... | the_stack |
import { Browser, setStyleAttribute as setBaseStyleAttribute, getComponent, detach, isNullOrUndefined, removeClass, extend, isUndefined } from '@syncfusion/ej2-base';
import { StyleType, CollaborativeEditArgs, CellSaveEventArgs, ICellRenderer, IAriaOptions, completeAction } from './index';
import { HideShowEventArgs, i... | the_stack |
import { AtomicProps } from '@fower/atomic-props'
import type { Atom } from './atom'
import type { Parser } from './parser'
import * as CSS from 'csstype'
import React from 'react'
import '@fower/atomic-props'
export type ComponentProps<T extends As> = React.ComponentProps<T> & {
as?: As
}
export type FowerHTMLProp... | the_stack |
export const overrides = [
{
"key": "ctrl+g",
"command": "workbench.action.gotoLine",
},
{
"key": "ctrl+g",
"command": "-workbench.action.gotoLine",
},
{
"key": "1",
"command": "dance.selections.align",
"when": "editorTextFocus && dance.mode == 'normal'",
},
{
"key": "shift... | the_stack |
namespace SchemeDesigner {
/**
* Tools
*/
export class Tools {
/**
* Number for id generator
* @type {number}
*/
protected static idNumber: number = 0;
/**
* Object configurator
* @param obj
* @param params
*/
... | the_stack |
import { HttpClient, HttpErrorResponse } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Deserialize, Serialize } from 'cerialize';
import { Observable, of, zip } from 'rxjs';
import { catchError, map, mergeMap, tap } from 'rxjs/operators';
import { environment } from '@browsecloud/e... | the_stack |
import Ajv from "ajv";
import { JSONSchema7 } from "json-schema";
import { z } from "zod";
import { zodToJsonSchema } from "../src/zodToJsonSchema";
const ajv = new Ajv();
const deref = require("json-schema-deref-sync");
describe("Pathing", () => {
it("should handle recurring properties with paths", () => {
cons... | the_stack |
namespace eui {
/**
* An ViewStack navigator container consists of a collection of child
* containers stacked on top of each other, where only one child
* at a time is visible.
* When a different child container is selected, it seems to replace
* the old one because it appears in the same ... | the_stack |
import { expect } from 'chai';
import mock, * as mockRequire from 'mock-require';
import { SinonSandbox as Sandbox, SinonStub as Stub } from 'sinon';
import * as sinon from 'sinon';
import { normalize, sep } from 'path';
import { cloneDeep } from 'lodash';
import {
getMockFilename,
hydrateHttpMock,
IHttpMock,
... | the_stack |
import * as _ from "lodash";
import * as uuid from "node-uuid";
import PUL from "../../../lib/updates/PUL";
import * as jerr from "../../../lib/errors";
describe("PUL", () => {
it("Should build a simple PUL", () => {
var pul = new PUL();
pul
.insertIntoObject(uuid.v4(), [], { b: 2 })
... | the_stack |
* TLSH is provided for use under two licenses: Apache OR BSD.
* Users may opt to use either license depending on the license
* restictions of the systems with which they plan to integrate
* the TLSH code.
*/
/* ==============
* Apache License
* ==============
* Copyright 2013 Trend Micro Incorporated
*
* Lice... | the_stack |
import * as DiscoveryEntryWithMetaInfo from "../../../generated/joynr/types/DiscoveryEntryWithMetaInfo";
import MessagingQos from "../../messaging/MessagingQos";
import MulticastWildcardRegexFactory from "../../messaging/util/MulticastWildcardRegexFactory";
import defaultMessagingSettings from "../../start/settings/de... | the_stack |
import EEObject from "../Base/EEObject";
import IAttributeConverterDeclaration from "../Declaration/IAttributeConverterDeclaration";
import GomlLoader from "../Node/GomlLoader";
import EnumConverter from "../Converters/EnumConverter";
import NumberArrayConverter from "../Converters/NumberArrayConverter";
import Compone... | the_stack |
import 'webmidi';
declare namespace JZZ {
namespace SMPTE {
interface Constructor {
/** Create new SMPTE object
*
* https://jazz-soft.net/doc/JZZ/smpte.html#constructor */
new (...args: any[]): SMPTE;
/** Create new SMPTE object
*
* https://jazz-soft.net/doc/JZZ/smpt... | the_stack |
import {
concat as observableConcat,
empty as observableEmpty,
from as observableFrom,
of as observableOf,
Observable,
Subject,
Subscription,
} from "rxjs";
import {
catchError,
expand,
finalize,
first,
map,
mergeMap,
publishReplay,
refCount,
startWith,
... | the_stack |
import * as Immutable from "immutable";
import * as _ from "lodash";
import { Event } from "./event";
import { Key } from "./key";
import { Processor } from "./processor";
import util from "./util";
import { FillMethod, FillOptions } from "./types";
/**
* A processor that fills missing/invalid values in the `Event`... | the_stack |
import { HttpResponse } from "@azure-rest/core-client";
import { ErrorModelOutput } from "./outputModels";
/** Get true Boolean value on path */
export interface PathsGetBooleanTrue200Response extends HttpResponse {
status: "200";
body: Record<string, unknown>;
}
/** Get true Boolean value on path */
export inter... | the_stack |
import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js";
import * as msRest from "@azure/ms-rest-js";
export { BaseResource, CloudError };
/**
* Payload for Add Users operation on a Lab.
*/
export interface AddUsersPayload {
/**
* List of user emails addresses to add to th... | the_stack |
import {HttpClient} from "@angular/common/http";
import {Compiler, Component, Inject, Injector, Input, NgModuleFactory, NgModuleFactoryLoader, OnChanges, OnDestroy, OnInit, SimpleChanges, Type} from "@angular/core";
import {FormGroup} from "@angular/forms";
import {Observable} from "rxjs/Observable";
import {ArrayObser... | the_stack |
import * as spec from '@jsii/spec';
import { Assembly } from '@jsii/spec';
import * as fs from 'fs';
import * as path from 'path';
import * as ts from 'typescript';
import { ProjectInfo } from '../project-info';
import { symbolIdentifier } from '../symbol-id';
export const WARNINGSCODE_FILE_NAME = '.warnings.jsii.js'... | the_stack |
import React, { Component } from 'react'
import {
Platform,
StyleSheet,
Text,
View,
ScrollView,
Switch,
TouchableWithoutFeedback,
TouchableOpacity,
ActivityIndicator,
Dimensions,
LayoutAnimation,
Image
} from 'react-native'
import SectionedMultiSelect from 'react-native-sectioned-multi-select'
i... | the_stack |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.