text stringlengths 2.5k 6.39M | kind stringclasses 3
values |
|---|---|
import JNI_ENV_METHODS from "../data/jni_env.json";
import { JNIThreadManager } from "./jni_thread_manager";
import { JavaVMInterceptor } from "./java_vm_interceptor";
import { JNIMethod } from "./jni_method";
import { ReferenceManager } from "../utils/reference_manager";
import { Types } from "../utils/types";
impor... | the_stack |
import { BadRequestException, Inject, Injectable } from '@nestjs/common'
import { InjectModel } from '@nestjs/sequelize'
import type { Logger } from '@island.is/logging'
import { LOGGER_PROVIDER } from '@island.is/logging'
import { Op, Sequelize, WhereOptions } from 'sequelize'
import { IdentityResource } from '../enti... | the_stack |
function array_sort(o: any, comparator?: any): any {
"use strict";
function min(a: any, b: any) {
return a < b ? a : b;
}
function stringComparator(a: any, b: any) {
var aString = a.string;
var bString = b.string;
var aLength = aString.length;
var bLength = bString... | the_stack |
import * as tf from '../index';
import {ALL_ENVS, describeWithFlags} from '../jasmine_util';
import {Tensor4D} from '../tensor';
import {expectArraysClose, expectArraysEqual} from '../test_util';
const sqArr = (arr: number[]) => arr.map(d => d * d);
const sumArr = (arr: number[]) => arr.reduce((prev, curr) => prev + c... | the_stack |
import Long from 'long';
import _m0 from 'protobufjs/minimal';
export const protobufPackage = 'opentelemetry.proto.common.v1';
/**
* AnyValue is used to represent any type of attribute value. AnyValue may contain a
* primitive value such as a string or integer or it may contain an arbitrary nested
* object contain... | the_stack |
import { INode, IConnector, Layout, Bounds } from './layout-base';
import { PointModel } from '../primitives/point-model';
import { Connector } from '../objects/connector';
import { LineDistribution, MatrixCellGroupObject } from '../interaction/line-distribution';
import { LayoutOrientation } from '../enum/enum';
/**
... | the_stack |
import { encodeERC20AssetData } from '@0x/contracts-asset-proxy';
import { BlockchainTestsEnvironment, constants, expect, orderHashUtils, OrderStatus } from '@0x/contracts-test-utils';
import { BatchMatchedFillResults, FillResults, MatchedFillResults, Order, SignedOrder } from '@0x/types';
import { BigNumber } from '@0... | the_stack |
import {BaseLayout, BaseLayoutOptions} from './BaseLayout';
import {LayoutInfo, Rect, Size} from '@react-stately/virtualizer';
export interface GalleryLayoutOptions extends BaseLayoutOptions {
// /**
// * The card size in the grid.
// */
// cardSize?: 'S' | 'M' | 'L',
/**
* The the default row height. N... | the_stack |
import {
autoJoin,
chainCommands,
Command,
EditorState,
Fragment,
liftListItem,
liftTarget,
Node,
NodeRange,
NodeSelection,
NodeType,
ReplaceAroundStep,
ResolvedPos,
Schema,
Selection,
sinkListItem,
Slice,
TextSelection,
Transaction,
wrapInList as pmWrapInList,
} from '@bangle.de... | the_stack |
import {Storage} from '@google-cloud/storage';
/* eslint-disable-next-line node/no-extraneous-import */
import {Probot, Context} from 'probot';
import {logger} from 'gcf-utils';
import * as helper from './helper';
import {
CONFIG_FILE_NAME,
DEFAULT_CONFIGS,
LABEL_PRODUCT_BY_DEFAULT,
DriftRepo,
DriftApi,
Lab... | the_stack |
import { expect } from "chai";
import { latLngBounds, point } from "leaflet";
import {
AttributionControlDirective,
EXAMPLE_WMS_LAYER_NAMES,
EXAMPLE_WMS_LAYER_URL,
LatLngBoundsExpression,
LayerGroupProvider,
MapComponent,
MapProvider,
Point,
WmsLayerDirective,
WMSParams,
} from "... | the_stack |
import { IIterator } from '@lumino/algorithm';
import { Message } from '@lumino/messaging';
import { Layout } from './layout';
import { TabBar } from './tabbar';
import { Widget } from './widget';
/**
* A layout which provides a flexible docking arrangement.
*
* #### Notes
* The consumer of this layout is responsib... | the_stack |
import type { Client } from "../Client";
import type { CamelCaseObjectKeys, Saved, TimeRange } from "../Interface";
import type { Playlist } from "../structures/Playlist";
import type { Artist } from "../structures/Artist";
import type { Track } from "../structures/Track";
import type { Episode } from "../structures/Ep... | the_stack |
import { SendTransactionOpts } from '@0x/base-contract';
import { getContractAddressesForChainOrThrow } from '@0x/contract-addresses';
import { ExchangeContract } from '@0x/contracts-exchange';
import { ExchangeFunctionName } from '@0x/contracts-test-utils';
import { devConstants } from '@0x/dev-utils';
import { schema... | the_stack |
import { Diagram } from '../diagram';
import { NodeModel, LaneModel, PhaseModel, SwimLaneModel } from '../objects/node-model';
import { Node, Shape, SwimLane } from '../objects/node';
import { GridPanel, GridCell, GridRow, RowDefinition, ColumnDefinition } from '../core/containers/grid';
import { Lane, Phase } from '..... | the_stack |
import { StateSyncAgent } from '../state/StateSyncAgent';
import { PeeringAgentBase } from '../peer/PeeringAgentBase';
import { AgentPod, Event, AgentSetChangeEvent, AgentSetChange, AgentPodEventType } from '../../service/AgentPod';
import { AgentId } from '../../service/Agent';
import { Endpoint } from '../network/Ne... | the_stack |
module awk.grid {
var _ = Utils;
export class FilterManager {
private $compile: any;
private $scope: any;
private gridOptionsWrapper: GridOptionsWrapper;
private grid: any;
private allFilters: any;
private rowModel: any;
private popupService... | the_stack |
import * as path from "path";
import { CharacterPair, Position, Range, TextDocument, Uri } from "vscode";
import { COMPONENT_EXT, isScriptComponent } from "../entities/component";
import { getTagPattern, parseTags, Tag, TagContext } from "../entities/tag";
import { cfmlCommentRules, CommentContext, CommentType } from "... | the_stack |
'use strict';
import * as vscode from 'vscode';
import { BlockchainTreeItem } from './model/BlockchainTreeItem';
import { BlockchainExplorerProvider } from './BlockchainExplorerProvider';
import { WalletTreeItem } from './wallets/WalletTreeItem';
import { LocalWalletTreeItem } from './wallets/LocalWalletTreeItem';
impo... | the_stack |
import {browserWindowSize, makeId, px} from "../util";
import {IHtmlElement} from "./ui";
/**
* One item in a menu.
*/
export interface BaseMenuItem {
/**
* Text that is written on screen when menu is displayed.
*/
readonly text: string;
/**
* String that is displayed as a help popup.
... | the_stack |
import { runInAction } from "mobx";
import { URL } from "url";
import {
commands,
env,
ExtensionContext,
ProgressLocation,
QuickPickItem,
Uri,
window,
workspace
} from "vscode";
import { EXTENSION_NAME } from "../constants";
import { duplicateGist, exportToRepo } from "../fileSystem/git";
import { openR... | the_stack |
import * as moment from 'moment-timezone';
import { Observable, Subject } from 'rxjs';
import agent from '@egjs/agent';
import { IOptions } from './scatter-chart.class';
import { ScatterChartSizeCoordinateManager } from './scatter-chart-size-coordinate-manager.class';
export class ScatterChartMouseManager {
priva... | the_stack |
import { GraphQLID, GraphQLInputType, GraphQLList, GraphQLNonNull } from 'graphql';
import { ZonedDateTime } from 'js-joda';
import { CalcMutationsOperator, Field } from '../../model';
import {
BinaryOperationQueryNode,
BinaryOperator,
LiteralQueryNode,
MergeObjectsQueryNode,
ObjectQueryNode,
Qu... | the_stack |
import { expect } from "chai";
import { Point2d, Point3d, Range3d, Vector3d } from "@itwin/core-geometry";
import {
ColorDef, ImageBuffer, ImageBufferFormat, QParams3d, QPoint3dList, RenderMaterial, RenderMode, RenderTexture, TextureMapping,
} from "@itwin/core-common";
import { RenderGraphic } from "../../../render/... | the_stack |
import chai = require('chai')
const sinonChai = require('sinon-chai')
const expect = chai.expect
chai.use(sinonChai)
const validateConfig = require('../../lib/startup/validateConfig')
const { checkUnambiguousMandatorySpecialProducts, checkUniqueSpecialOnProducts, checkYamlSchema, checkMinimumRequiredNumberOfProducts, ... | the_stack |
* @module CartesianGeometry
*/
import { CurveCurveApproachType, CurveLocationDetail, CurveLocationDetailPair } from "../curve/CurveLocationDetail";
import { AxisOrder, BeJSONFunctions, Geometry } from "../Geometry";
import { SmallSystem } from "../numerics/Polynomials";
import { Matrix3d } from "./Matrix3d";
import { ... | the_stack |
import { domInfoHelper, domTypes } from '../dom/exports'
import { resize } from '../../ObservableApi/observableApi';
import { mutationObserver as mutation } from '../../ObservableApi/mutationObserver';
//Make sure the enum is identical as C# AntDesign.Placement enum
export enum Placement {
TopLeft = 0,
TopC... | the_stack |
import { IIterator, IIterable, ArrayExt } from '@lumino/algorithm';
import {
Datastore,
IServerAdapter,
Schema,
Table,
Record
} from '@lumino/datastore';
import { IDisposable } from '@lumino/disposable';
import { ISignal } from '@lumino/signaling';
import { Message } from '@lumino/messaging';
export type... | the_stack |
import { AttributeContextExpectedValue, AttributeExpectedValue } from '../../Utilities/ObjectValidator';
import { CommonTest } from './CommonTest';
// tslint:disable:max-func-body-length
// tslint:disable:variable-name
describe('Cdm.ResolutionGuidanceFilterIn', () => {
/**
* Resolution Guidance Test - FilterI... | the_stack |
import {
chain,
externalSchematic,
move,
noop,
Rule,
SchematicContext,
Tree,
} from '@angular-devkit/schematics';
import {
createOrUpdate,
getWorkspace,
getWorkspacePath,
} from '@nrwl/workspace';
import {
getJsonFromFile,
getAppPaths,
prerun,
getNpmScope,
getPrefix,
getGroupByName,
up... | the_stack |
import {
concatUnique,
deduplicateBy,
deepKeys,
ensureSet,
flatten,
flatMap,
get,
groupBy,
isEmpty,
isEqual,
moveFromToIndex,
objectDiff,
omit,
pick,
set,
squashObject,
takeWhile,
valueOrNull,
} from '../FunctionalUtils';
interface IThing {
firstName: string;
middleName?: string... | the_stack |
import type {
CSMessage,
CommentCMsg,
CommentCSMsg,
LyricSMsg,
MsicRankingCMsg,
ProviderCMsg,
} from "@cloudmusic/shared";
import { ColorThemeKind, Uri, ViewColumn, commands, window } from "vscode";
import {
IPC,
MultiStepInput,
State,
pickAlbum,
pickArtist,
pickSong,
pickUser,
} from ".";
imp... | the_stack |
import IReservesApiModel from '@/model/api/reserves/IReservesApiModel';
import IRuleApiModel from '@/model/api/rule/IRuleApiModel';
import { inject, injectable } from 'inversify';
import { cloneDeep } from 'lodash';
import * as apid from '../../../../../api';
import * as event from '../../../lib/event';
import DateUtil... | the_stack |
import { deepStrictEqual, doesNotThrow, notDeepStrictEqual, notStrictEqual, ok, strictEqual, throws } from 'assert';
// FoalTS
import { controller } from '../../common/utils/controller.util';
import { Config } from '../config';
import { Hook, HookFunction } from '../hooks';
import { Context, Get, HttpResponseOK, Post ... | the_stack |
import {expect, toJSON} from '@loopback/testlab';
import {
CrudFeatures,
CrudRepositoryCtor,
CrudTestContext,
DataSourceOptions,
} from '../../..';
import {
deleteAllModelsInDefaultDataSource,
MixedIdType,
withCrudCtx,
} from '../../../helpers.repository-tests';
import {
CartItem,
CartItemRepository,
... | the_stack |
'use strict';
import * as assert from 'assert';
import { ReactWrapper } from 'enzyme';
import * as path from 'path';
import * as React from 'react';
import { Provider } from 'react-redux';
import { EXTENSION_ROOT_DIR } from '../../client/common/constants';
import { InteractiveWindowMessages } from '../../client/datasci... | the_stack |
* call asynchronously on a 'server' and receive the result
* back via a callback.
*/
export interface Client {
/** Invoke an RPC call and invoke callback with the results.
* The values in the arguments array are passed to handler registered
* with Server.on() for the given method.
*
* The opti... | the_stack |
declare module 'dgram' {
import { AddressInfo } from 'node:net';
import * as dns from 'node:dns';
import { EventEmitter, Abortable } from 'node:events';
interface RemoteInfo {
address: string;
family: 'IPv4' | 'IPv6';
port: number;
size: number;
}
interface BindOp... | the_stack |
export interface Error {
message: string;
type: string;
code: number;
error_subcode: number;
fbtrace_id: string;
}
// Send Api
export type SendAPIRequest = SenderActionRequest | MessageRequest;
export interface SendAPIResponse {
recipient_id: string;
message_id: string;
}
export inter... | the_stack |
import modelPage from "../../support/pages/model";
import {
entityTypeModal,
entityTypeTable,
graphView,
propertyModal,
propertyTable,
graphViewSidePanel,
relationshipModal
} from "../../support/components/model/index";
import {mappingStepDetail} from "../../support/components/mapping";
import graphVis fr... | the_stack |
namespace lcd {
//% shim=lcd::__write8
function __write8(value: number, char_mode: boolean): void {
}
// Commands
const _LCD_CLEARDISPLAY = 0x01
const _LCD_RETURNHOME = 0x02
const _LCD_ENTRYMODESET = 0x04
const _LCD_DISPLAYCONTROL = 0x08
const _LCD_CURSORSHIFT = 0x10
const _LCD... | the_stack |
declare class DKAsset extends NSObject {
static alloc(): DKAsset; // inherited from NSObject
static new(): DKAsset; // inherited from NSObject
readonly duration: number;
error: NSError;
fileName: string;
fileSize: number;
localIdentifier: string;
localTemporaryPath: NSURL;
readonly location: CLLocatio... | the_stack |
import '../../../test/common-test-setup-karma';
import './gr-settings-view';
import {GrSettingsView} from './gr-settings-view';
import {flush} from '@polymer/polymer/lib/legacy/polymer.dom';
import {GerritView} from '../../../services/router/router-model';
import {queryAll, queryAndAssert, stubRestApi} from '../../../t... | the_stack |
import {Feed, StepStateChangeEvent} from "../../../model/feed/feed.model";
import {DefineFeedService, FeedEditStateChangeEvent} from "../services/define-feed.service";
import {StateService, Transition} from "@uirouter/angular";
import {OnDestroy, OnInit, TemplateRef} from "@angular/core";
import {SaveFeedResponse} from... | the_stack |
import {
IExecuteFunctions,
} from 'n8n-core';
import {
IDataObject,
ILoadOptionsFunctions,
INodeExecutionData,
INodePropertyOptions,
INodeType,
INodeTypeDescription,
NodeApiError,
} from 'n8n-workflow';
import {
adjustAddresses,
getFilterQuery,
getOrderFields,
getProductAttributes,
magentoApiRequest,
m... | the_stack |
import { basename, dirname, extname, relative, sep } from 'path';
import {
ArrayLiteralExpression,
CallExpression,
ClassDeclaration,
createClassDeclaration,
createIdentifier,
createNamedImports,
Decorator,
Expression,
Identifier,
ImportDeclaration,
ImportSpecifier,
NamedImports,
Node,
NodeA... | the_stack |
import * as ts from 'typescript';
import * as Lint from 'tslint';
import * as doctrine from 'doctrine';
const RULE_NAME = 'valid-jsdoc';
let OPTIONS: any;
export class Rule extends Lint.Rules.AbstractRule {
public static FAILURE_STRING = {
missingBrace: 'JSDoc type missing brace',
syntaxError: 'JSDoc syntax... | the_stack |
import { expect } from "chai";
import {
EnumerationChoice, IconEditorParams, PropertyDescriptionHelper, PropertyEditorParamTypes, RangeEditorParams, SuppressLabelEditorParams,
} from "../../appui-abstract";
// cSpell:ignore Picklist
describe("PropertyDescriptionHelper", () => {
const testName = "name";
const te... | the_stack |
import { assert, isArray, eqNaN, isFunction } from 'zrender/src/core/util';
import Scale from '../scale/Scale';
import { AxisBaseModel } from './AxisBaseModel';
import { parsePercent } from 'zrender/src/contain/text';
import { AxisBaseOption, CategoryAxisBaseOption } from './axisCommonTypes';
import { ScaleDataValue } ... | the_stack |
import {ResourceBase, ResourceTag} from '../resource'
import {Value, List} from '../dataTypes'
export class CustomArtifactConfiguration {
MavenReference?: MavenReference
S3ContentLocation?: S3ContentLocation
ArtifactType!: Value<string>
constructor(properties: CustomArtifactConfiguration) {
Ob... | the_stack |
import * as protos from '../protos/protos';
import * as assert from 'assert';
import * as sinon from 'sinon';
import {SinonStub} from 'sinon';
import {describe, it} from 'mocha';
import * as devicemanagerModule from '../src';
import {PassThrough} from 'stream';
import {protobuf} from 'google-gax';
function generateS... | the_stack |
import ImageLoader from '../image_loader';
import { XYSize, Point } from '../../../type-definitions/quagga.d';
import { InputStreamFactory, InputStream, EventHandlerList } from './input_stream.d';
const inputStreamFactory: InputStreamFactory = {
createVideoStream(video): InputStream {
let _config: { size: ... | the_stack |
import * as moment from 'moment';
import * as React from 'react';
import * as strings from 'MyTasksWebPartStrings';
import spservices from './../../../../services/spservices';
import styles from './MyTasks.module.scss';
import TaskCard from './../TaskCard/TaskCard';
import {
CommandButton,
Icon,
IContextualMenuPr... | the_stack |
import { Injectable } from '@angular/core';
import { global } from './index';
const timeoutData = { code: -2 };
@Injectable()
export class ApiService {
// 登出
public loginOut(success?: Function) {
return new Promise((resolve) => {
global.JIM.loginOut();
if (success && success ins... | the_stack |
import { GeoPackageConnection } from './geoPackageConnection'
import { UserTable } from '../user/userTable'
import { UserCustomTableReader } from '../user/custom/userCustomTableReader'
import { CoreSQLUtils } from './coreSQLUtils'
import { StringUtils } from './stringUtils'
import { UserCustomTable } from '../user/cust... | the_stack |
import assert from 'assert';
import { r } from '../src';
import config from './config';
describe('math and logic', () => {
before(async () => {
await r.connectPool(config);
});
after(async () => {
await r.getPoolMaster().drain();
});
it('`add` should work', async () => {
let result = await r
... | the_stack |
import React from 'react';
import PropTypes from 'prop-types';
import warning from 'warning';
import classNames from 'classnames';
import LoaderDots from '../LoaderDots/index';
import { InputRowContext } from '../InputRow/index';
import getAnchorProps from './get-anchor-props';
import getButtonProps from './get-button-... | the_stack |
import { createCanvas, loadImage, resizeImage } from "./tools";
import { Translator } from "../i18n";
export interface TopGraphicOptions {
champion?: riot.Champion;
title: string;
players: {
championAvatar?: string;
place: number;
username: string;
avatar: string;
... | the_stack |
import * as React from 'react';
import * as CopyToClipboard from 'react-copy-to-clipboard';
import * as CSSModules from 'react-css-modules';
import * as TetherComponent from 'react-tether';
import {InlineData} from 'vega-lite/build/src/data';
import {isDiscrete, isFieldDef} from 'vega-lite/build/src/fielddef';
import {... | the_stack |
import Ajv from 'ajv';
import {
File,
Location,
MutationScoreThresholds,
StrykerOptions,
strykerCoreSchema,
WarningOptions,
Mutant,
MutantTestCoverage,
MutantResult,
MutantCoverage,
schema,
MutantStatus,
} from '@stryker-mutator/api/core';
import { Logger } from '@stryker-mutator/api/logging';
i... | the_stack |
import {
keys,
makeAutoObservable,
observable,
ObservableMap,
runInAction,
toJS,
values,
} from 'mobx';
import * as POOL from 'types/generated/trader_pb';
import Big from 'big.js';
import debounce from 'lodash/debounce';
import { hex } from 'util/strings';
import { Store } from 'store';
import { Lease, Or... | the_stack |
import { throwError as observableThrowError, Observable } from 'rxjs';
import { Injectable } from '@angular/core';
import { HttpClient, HttpParams, HttpErrorResponse } from '@angular/common/http';
import { ScanMetadata } from '../model/ScanMetadata';
import { MarkerSlice } from '../model/MarkerSlice';
import { API_UR... | the_stack |
import { sleep } from "@atomist/automation-client/lib/internal/util/poll";
import { guid } from "@atomist/automation-client/lib/internal/util/string";
import { GitCommandGitProject } from "@atomist/automation-client/lib/project/git/GitCommandGitProject";
import { GitProject } from "@atomist/automation-client/lib/projec... | the_stack |
import * as fse from 'fs-extra';
import test from 'ava';
import {
rmdir, DirItem, OSWALK, osWalk,
} from '../src/io';
import { join, dirname } from '../src/path';
import { Commit } from '../src/commit';
import { Index } from '../src/index';
import { Reference } from '../src/reference';
import { COMMIT_ORDER, Repos... | the_stack |
import { _, QueryPredicate, QuerybaseUtils} from './QuerybaseUtils';
import { QuerybaseQuery } from './QuerybaseQuery';
import * as firebase from 'firebase';
export type DatabaseReference = firebase.database.Reference;
export type DatabaseQuery = firebase.database.Query;
export type CompleteCallback = (a: Error) => an... | the_stack |
import {
GetScheduleDistributionInput,
PaymentScheduleDistribution,
} from '@island.is/api/schema'
import { FieldBaseProps } from '@island.is/application/core'
import {
AccordionItem,
AlertMessage,
Box,
Text,
} from '@island.is/island-ui/core'
import { useLocale } from '@island.is/localization'
import { Rad... | the_stack |
import { reflectSpecifics } from "../../generated/types";
import type {
SpecificStatics,
CoreAccountSpecifics,
CoreOperationSpecifics,
CoreCurrencySpecifics,
} from "../../generated/types";
declare class CoreWalletPool {
newInstance(
name: string,
pwd: string,
httpClient: CoreHttpClient,
webS... | the_stack |
import { dirname, join } from 'path';
import { appendFile, ensureDir, pathExists, readFile, remove, stat, unlink, writeFile } from 'fs-extra';
import { AlreadyEncoded, DeepkitFile, FileMode, FileType, FilterQuery, StreamBehaviorSubject } from '@deepkit/framework-shared';
import { eachKey, eachPair, ProcessLocker } from... | the_stack |
import { ImageEdits, ImageFormatTypes } from '../lib';
import { ThumborMapper } from '../thumbor-mapper';
describe('process()', () => {
describe('001/thumborRequest', () => {
it('Should pass if the proper edit translations are applied and in the correct order', () => {
// Arrange
const path = '/fit-i... | the_stack |
import MenuItem from "@material-ui/core/MenuItem"
import { mount, ReactWrapper } from "enzyme"
import { createMemoryHistory, MemoryHistory } from "history"
import { SnackbarProvider } from "notistack"
import React from "react"
import { Router } from "react-router"
import { AnalyticsAction } from "./analytics"
import {
... | the_stack |
import { CDK_DEBUG, debugModeEnabled } from './debug';
import { IResolvable, IResolveContext } from './resolvable';
import { captureStackTrace } from './stack-trace';
import { Token } from './token';
/**
* Interface for lazy string producers
*/
export interface IStringProducer {
/**
* Produce the string value
... | the_stack |
//@ts-check
///<reference path="devkit.d.ts" />
declare namespace DevKit {
namespace Formmsdyusd_windowroute_Information {
interface tab_CTITab_Sections {
CTI: DevKit.Controls.Section;
MultipleMatchesTab: DevKit.Controls.Section;
NoMatchesTab: DevKit.Controls.Section;
SingleMatchTab: DevKit.Controls.Sec... | the_stack |
import React, { useState, useEffect, Suspense } from 'react';
import loadable from '@loadable/component';
import { useAB } from '@guardian/ab-react';
import { tests } from '@frontend/web/experiments/ab-tests';
import { ShareCount } from '@frontend/web/components/ShareCount';
import { MostViewedFooter } from '@frontend/... | the_stack |
import { join } from "path";
import { readFile } from "fs-extra";
import {
LanguageServiceHost, IScriptSnapshot, getDefaultCompilerOptions,
ScriptSnapshot, CompilerOptions, getDefaultLibFilePath, MapLike, createLanguageService,
IndentStyle, SemicolonPreference,
} from "typescript";
import { Nullabl... | the_stack |
import { bigNumberify } from 'ethers/utils';
import { ClientType, ColonyClientV5 } from '@colony/colony-js';
import { Address } from '~types/index';
import { log } from '~utils/debug';
import apolloCache from './cache';
import {
UnsubscribeFromColonyMutationResult,
SubscribeToColonyMutationResult,
UserColoniesQu... | the_stack |
import * as d3 from "d3";
import { RawData, SeriesGraph } from "./series_graph";
export class CTimeseriesGraph extends SeriesGraph {
protected readonly baseUrl = "/stats/cumulative_timeseries?series_id=";
protected readonly margin = { top: 20, right: 50, bottom: 80, left: 40 };
private readonly bisector =... | the_stack |
import {fixJob} from "./job-adapter";
import {V1CommandLineToolModel} from "cwlts/models/v1.0";
import {CommandLineTool, CommandInputParameter} from "cwlts/mappings/v1.0";
import {JobHelper} from "cwlts/models/helpers/JobHelper";
import {CommandLineToolModel} from "cwlts/models";
import objectContaining = jasmine.objec... | the_stack |
import { JSDOM } from 'jsdom';
const ishalfWidthImage = (element: CAPIElement): boolean => {
if (!element) return false;
return (
element._type ===
'model.dotcomrendering.pageElements.ImageBlockElement' &&
element.role === 'halfWidth'
);
};
const isMultiImage = (element: CAPIElement): boolean => {
if (!ele... | the_stack |
export interface Trello {
id: IDBoardEnum;
name: BoardName;
desc: string;
descData: null;
closed: boolean;
idOrganization: null;
shortLink: ShortLink;
powerUps: any[];
dateLastActivity: string;
idTa... | the_stack |
import $ from "jquery";
import { InputBinding } from "./inputBinding";
import {
formatDateUTC,
updateLabel,
$escape,
parseDate,
hasOwnProperty,
} from "../../utils";
declare global {
interface JQuery {
// Adjustment of https://github.com/DefinitelyTyped/DefinitelyTyped/blob/1626e0bac175121ec2e9f766a770... | the_stack |
import {
Atom,
Branch,
isColRowBranch,
isNamedBranch,
ToLatexOptions,
} from '../core/atom-class';
import { Box } from '../core/box';
import { VBox, VBoxElementAndShift } from '../core/v-box';
import { makeLeftRightDelim } from '../core/delimiters';
import { MathstyleName } from '../core/mathstyle';
import { ... | the_stack |
import * as vscode from "vscode";
import { executeCommand, ExpectedDocument, groupTestsByParentName } from "../utils";
suite("./test/suite/commands/seek-object-sentence.md", function () {
// Set up document.
let document: vscode.TextDocument,
editor: vscode.TextEditor;
this.beforeAll(async () => {
do... | the_stack |
namespace pxt.tutorial {
export interface TutorialRuleStatus {
ruleName: string;
ruleTurnOn: boolean;
ruleStatus?: boolean;
ruleMessage?: string;
isStrict?: boolean;
blockIds?: string[];
}
/**
* Check the user's code to the map of tutorial validation rul... | the_stack |
import type { queries } from '@testing-library/dom';
import {
jsHandleToArray,
printColorsInErrorMessages,
removeFuncFromStackTrace,
} from './utils';
import type { ElementHandle, JSHandle, Page } from 'puppeteer';
import { createClientRuntimeServer } from './module-server/client-runtime-server';
import type { As... | the_stack |
module RongIMLib {
/**
* 把消息对象写入流中
* 发送消息时用到
*/
export class MessageOutputStream {
out: RongIMLib.RongIMStream;
constructor(_out: any) {
var binaryHelper = new RongIMLib.BinaryHelper();
this.out = binaryHelper.convertStream(_out);
}
writeMes... | the_stack |
import { Button, Col, Form, Row, Spin } from 'antd'
import _, { get, isArray, isFunction, omit, set } from 'lodash'
import { observer } from 'mobx-react'
import Qs from 'query-string'
import React, { Component } from 'react'
import { JsonSchema } from '~/types'
import { updateComponentAlias } from '~/utils'
import { re... | the_stack |
import { Activity, ActivityTypes, BotAdapter, TurnContext, ConversationReference, ResourceResponse, WebRequest, WebResponse } from 'botbuilder';
import * as Twitter from 'twitter';
import { TwitterAdapterSettings, TwitterMessage, TwitterActivityAPIMessage, TwitterActivityAPIDirectMessage, TwitterActivityType, TwitterDi... | the_stack |
// WARNING: Do not edit the *.js version of this file. Instead, always edit the
// corresponding *.ts source in the ts subfolder, and then invoke the
// compileTypescript.sh bash script to generate new *.js and *.js.map files.
module workbench {
export module paging {
var KT = 'know_total';
var ... | the_stack |
import drag from '@interactjs/actions/drag/plugin'
import drop from '@interactjs/actions/drop/plugin'
import autoStart from '@interactjs/auto-start/base'
import type { PointerType } from '@interactjs/types/index'
import extend from '@interactjs/utils/extend'
import * as pointerUtils from '@interactjs/utils/pointerUtils... | the_stack |
import * as msRest from "@azure/ms-rest-js";
/**
* Filters to be applied when traversing a data source.
*/
export interface TrainSourceFilter {
/**
* A case-sensitive prefix string to filter content
* under the source location. For e.g., when using a Azure Blob
* Uri use the prefix to restrict subfolders ... | the_stack |
import * as db from '../util/db';
export interface Row {
id : number;
primary_kind : string;
owner : number;
name : string;
description : string;
license : string;
license_gplcompatible : boolean;
website : string;
repository : string;
issue_tracker : string;
source_code : s... | the_stack |
import * as angular from 'angular';
import {moduleName} from './module-name';
import AccessConstants from '../constants/AccessConstants';
import 'kylo-services-module';
import * as _ from "underscore";
import CommonRestUrlService from "./CommonRestUrlService";
import {UserGroupService} from "./UserGroupService";
impor... | the_stack |
export const directorySeparator = "/";
export const altDirectorySeparator = "\\";
const urlSchemeSeparator = "://";
const backslashRegExp = /\\/g;
const relativePathSegmentRegExp = /(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/;
//#region Path Tests
/**
* Determines whether a charCode corresponds to `/` or `\`.
*/
export function... | the_stack |
/// <reference path='metricsPlugin.ts'/>
/// <reference path='services/alertsManager.ts'/>
/// <reference path='services/paginationService.ts'/>
/// <reference path='services/errorsManager.ts'/>
/// <reference path='services/notificationsService.ts'/>
module HawkularMetrics {
// work around https://github.com/Micro... | the_stack |
import { lexer } from './lexer.js';
import { Lexer, Token as LexerToken } from 'moo';
/** @internal */
export type Token = Content | PlainArg | FunctionArg | Select | Octothorpe;
/**
* Text content of the message
*
* @public
*/
export interface Content {
type: 'content';
value: string;
ctx: Context;
}
/**
... | the_stack |
import GoldenLayout = require("@glue42/golden-layout");
import registryFactory from "callback-registry";
const ResizeObserver = require("resize-observer-polyfill").default;
import { idAsString, getAllWindowsFromConfig, createWaitFor, getElementBounds } from "../utils";
import { Workspace, Window, FrameLayoutConfig, Sta... | the_stack |
import swdcTracker from 'swdc-tracker';
import {api_endpoint} from '../Constants';
import {version} from 'vscode';
import {
getPluginName,
getItem,
getPluginId,
getVersion,
getWorkspaceFolders,
getGitEventFile,
isGitProject,
getEditorName,
} from '../Util';
import {KpmItem} from '../model/models';
impor... | the_stack |
import type { Socket } from 'socket.io-client';
import { ConfiguredDocumentClass, ConfiguredDocumentClassForName, DocumentConstructor } from '../../types/helperTypes';
declare global {
/**
* The core Game instance which encapsulates the data, settings, and states relevant for managing the game experience.
* Th... | the_stack |
import chalk from 'chalk'
import indent from 'indent-string'
import leven from 'js-levenshtein'
import type { BaseField, DMMF } from '../dmmf-types'
import Decimal from 'decimal.js'
import type { DMMFClass } from '../dmmf'
export interface Dictionary<T> {
[key: string]: T
}
export const keyBy: <T>(collection: T[], ... | the_stack |
'use strict';
import * as objects from 'vs/base/common/objects';
import { parse, stringify } from 'vs/base/common/marshalling';
import * as strings from 'vs/base/common/strings';
import URI from 'vs/base/common/uri';
import * as dom from 'vs/base/browser/dom';
import {
IDecorationRenderOptions, IModelDecorationOption... | the_stack |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.