text
stringlengths
2.5k
6.39M
kind
stringclasses
3 values
import { BlockBlobClient, BlobServiceClient } from "../src"; import { getBSU, recorderEnvSetup } from "./utils/index"; import { assert } from "chai"; import { appendToURLPath } from "../src/utils/utils.common"; import { record, Recorder } from "@azure-tools/test-recorder"; import * as dotenv from "dotenv"; import { Con...
the_stack
"use strict"; (function() { function log(code: string, message?: string, success?: boolean) { message = message || ''; if (document && document.body) { if (message) { message = $.views.converters.html(message); message = success === undefined ? "<br/>==== <b><em>" + message + "<...
the_stack
* @module Frontstage */ import produce, { Draft } from "immer"; import { StagePanelLocation, StagePanelSection, UiEvent } from "@itwin/appui-abstract"; import { NineZoneState, PanelSide } from "@itwin/appui-layout-react"; import { FrontstageManager } from "../frontstage/FrontstageManager"; import { WidgetDef } from "...
the_stack
import { APIFormField, FeatureBaseConfig, FormField, FormFieldBaseConfig, NormalisedBaseConfig, NormalisedFormField, ThemeBaseProps, } from "../../types"; import { RefObject } from "react"; import { GetRedirectionURLContext as AuthRecipeModuleGetRedirectionURLContext, OnHandleEventCo...
the_stack
import { ChangeDetectorRef, Component, ViewChild } from "@angular/core"; import { ActivatedRoute, Router } from "@angular/router"; import { GlobalVarsService } from "../../global-vars.service"; import { BackendApiService, NFTBidData, NFTBidEntryResponse, NFTEntryResponse, PostEntryResponse, } from "../../back...
the_stack
import { TestBed, waitForAsync } from "@angular/core/testing"; import { By } from "@angular/platform-browser"; import { Component } from "@angular/core"; import { DISABLE_NATIVE_VALIDITY_CHECKING, MdlTextFieldComponent, } from "./mdl-textfield.component"; import { MdlButtonComponent } from "../button/mdl-button.com...
the_stack
class Vector2 { public x: any; public y: any; /** * The constructor of the class Vector2. * * @param {(Number|Vector2)} x The initial x coordinate value or, if the single argument, a Vector2 object. * @param {Number} y The initial y coordinate value. */ constructor(x, y) { ...
the_stack
import { DefaultPrivacyLevel, monitor, noop } from '@datadog/browser-core' import { getMutationObserverConstructor } from '@datadog/browser-rum-core' import { NodePrivacyLevel } from '../../constants' import { getNodePrivacyLevel, getTextContent } from './privacy' import { getElementInputValue, getSerializedNodeId,...
the_stack
import { ComponentFixture, fakeAsync, TestBed, tick } from '@angular/core/testing'; import { CourseWideContext, PostSortCriterion, SortDirection } from 'app/shared/metis/metis.util'; import { PostingThreadComponent } from 'app/shared/metis/posting-thread/posting-thread.component'; import { PostCreateEditModalComponent ...
the_stack
export interface AddressDetail { adminArea?: string; country?: string; countryCode?: string; locality?: string; postalCode?: string; streetNumber?: string; subAdminArea?: string; subLocality?: string; tertiaryAdminArea?: string; thoroughfare?: string; } export interface Autocompl...
the_stack
import {Component, Directive} from '@angular/core'; import {TestBed} from '@angular/core/testing'; import {By} from '@angular/platform-browser'; describe('@angular/common integration', () => { describe('NgForOf', () => { @Directive({selector: '[dir]'}) class MyDirective { } @Component({selector: 'ap...
the_stack
import { PortMap, PortRange } from '../src/compose/ports'; import { expect } from 'chai'; // Force cast `PortMap` as a public version so we can test it const PortMapPublic = (PortMap as any) as new ( portStrOrObj: string | PortRange, ) => PortMap; describe('Ports', function () { describe('Port string parsing', func...
the_stack
require('./split-tile.css'); import * as React from 'react'; import * as ReactDOM from 'react-dom'; import * as Q from 'q'; import { SvgIcon } from '../svg-icon/svg-icon'; import { STRINGS, CORE_ITEM_WIDTH, CORE_ITEM_GAP } from '../../config/constants'; import { Stage, Clicker, Essence, VisStrategy, DataCube, Filter,...
the_stack
import * as CodeMirror from 'codemirror'; import {AfterViewInit, Component, EventEmitter, forwardRef, Input, OnDestroy, Output, ViewChild,} from '@angular/core'; import {NG_VALUE_ACCESSOR} from '@angular/forms'; import {isUndefined} from 'util'; /** * CodeMirror component * Usage : * <codemirror [(ngModel)]="data" ...
the_stack
import { PoolClient } from "pg" import QueryStream from "pg-query-stream" import { boardReducer } from "../../common/src/board-reducer" import { Board, BoardAccessPolicy, BoardHistoryEntry, exampleBoard, Id, isBoardEmpty, Serial, } from "../../common/src/domain" import { migrateBoard, mkBoot...
the_stack
import i18next from "i18next"; import { action, computed, runInAction } from "mobx"; import URI from "urijs"; import isDefined from "../../../Core/isDefined"; import loadJson from "../../../Core/loadJson"; import runLater from "../../../Core/runLater"; import TerriaError, { networkRequestError } from "../../../Core/Ter...
the_stack
import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { ApiOperation } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ApiManagementClient } from "../apiManageme...
the_stack
import { AmbiguityInfo } from "./AmbiguityInfo"; import { ATN } from "./ATN"; import { ATNConfigSet } from "./ATNConfigSet"; import { ATNSimulator } from "./ATNSimulator"; import { BitSet } from "../misc/BitSet"; import { ContextSensitivityInfo } from "./ContextSensitivityInfo"; import { DecisionInfo } from "./Decision...
the_stack
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for details. import * as child_process from "child_process"; import * as fs from "fs"; import * as path from "path"; import { URL } from "url"; import * as semver from "semver"; import ...
the_stack
import { token, CdsTheme } from './token-utils'; const layout = { space: { xxs: token(2), xs: token(4), sm: token(6), md: token(12), lg: token(24), xl: token(48), xxl: token(96), }, grid: { cols: token(12, { static: true }), }, width: { xs: token('576px', { static: true })...
the_stack
import { HttpClient } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { MatSnackBar } from '@angular/material/snack-bar'; import { Actions, Effect, ofType } from '@ngrx/effects'; import { Action, Store } from '@ngrx/store'; import { combineLatest, Observable, of } from 'rxjs'; import { c...
the_stack
import { Ticker } from 'pixi.js'; import { trace } from '../utils/trace'; import { EngineView } from '../map/EngineView'; import { ObjectView } from '../map/ObjectView'; import { GridNode } from '../pathFinding/GridNode'; import { getDist, getUnit } from '../utils/calculations'; import { EasingFunction, EasingType, get...
the_stack
import { act, fireEvent, wait, waitForElement, RenderResult } from '@testing-library/react'; import { Renderer } from '@gqlapp/testing-client-react'; import POSTS_SUBSCRIPTION from '../graphql/PostsSubscription.graphql'; import POST_SUBSCRIPTION from '../graphql/PostSubscription.graphql'; import COMMENT_SUBSCRIPTION ...
the_stack
import * as fs from 'fs'; import uri from 'vscode-uri'; import * as path from 'path'; import * as glslx from 'glslx'; import * as server from 'vscode-languageserver/node'; import { TextDocument } from 'vscode-languageserver-textdocument'; let buildResults: () => Record<string, glslx.CompileResultIDE | undefined> = () ...
the_stack
import { IExecuteFunctions, } from 'n8n-core'; import { IDataObject, ILoadOptionsFunctions, INodeExecutionData, INodeType, INodeTypeDescription, } from 'n8n-workflow'; import { adjustAccounts, adjustAttendees, freshworksCrmApiRequest, getAllItemsViewId, handleListing, loadResource, throwOnEmptyFilter, t...
the_stack
import * as React from "react"; import classnames from "classnames"; import "./Listbox.scss"; import { Guid } from "@itwin/core-bentley"; import { SpecialKey } from "@itwin/appui-abstract"; /** Ideas borrowed from https://reacttraining.com/reach-ui/listbox */ /** * `Listbox` value. * @alpha */ export type Listbo...
the_stack
import { Request, Response, NextFunction } from "express"; import { InteractionRequiredAuthError, OIDC_DEFAULT_SCOPES, PromptValue } from '@azure/msal-common'; import { ConfidentialClientApplication, Configuration, AccountInfo, ICachePlugin, CryptoProvider, Authorizatio...
the_stack
import { code as ctWrapperScript } from 'code ./browser/contentScriptWrapper.ts' import { cosmiconfigSync } from 'cosmiconfig' import fs from 'fs-extra' import { JSONPath } from 'jsonpath-plus' import memoize from 'mem' import path, { basename, relative } from 'path' import { EmittedAsset, OutputChunk } from 'rollup' i...
the_stack
import { stub, SinonStub, useFakeTimers, SinonFakeTimers } from 'sinon'; import { Trace } from '../resources/trace'; import * as transportService from './transport_service'; import * as iidService from './iid_service'; import { expect } from 'chai'; import { Api, setupApi } from './api_service'; import { SettingsServic...
the_stack
import { Theme } from './theme'; export const devuiLightTheme: Theme = new Theme({ id: 'devui-light-theme', name: 'Light Mode', cnName: '浅色主题', data: { // 基础变量 'devui-global-bg': '#f3f6f8', 'devui-global-bg-normal': '#ffffff', 'devui-base-bg': '#ffffff', 'devui-base-bg-dark': '#333854', ...
the_stack
namespace pxtmelody { export class MelodyGallery { protected contentDiv: HTMLDivElement; protected containerDiv: HTMLDivElement; protected itemBorderColor: string; protected itemBackgroundColor: string; protected value: string = null; protected visible = false; ...
the_stack
import { Component, DebugElement, ViewChild } from '@angular/core'; import { ComponentFixture, fakeAsync, TestBed, flush } from '@angular/core/testing'; import { FormControl, FormsModule, NgModel, ReactiveFormsModule } from '@angular/forms'; import { By } from '@angular/platform-browser'; import { NoopAnimationsModule ...
the_stack
import * as ts from 'typescript'; import * as Lint from 'tslint'; import * as tsutils from 'tsutils'; import { ExtendedMetadata } from './utils/ExtendedMetadata'; import { Utils } from './utils/Utils'; import { getImplicitRole } from './utils/getImplicitRole'; import { getJsxAttributesFromJsxElement, getStringLiteral,...
the_stack
import { Component, ComponentInterface, Element, Event, EventEmitter, h, Listen, Method, Prop, QueueApi, State, } from '@stencil/core'; import { SuperTabsConfig } from '../interface'; import { checkGesture, debugLog, getTs, pointerCoord, scrollEl, STCoord } from '../utils'; @Component({ tag: 's...
the_stack
import BaseRemoteClient from "./BaseRemoteClient"; import ProjectServer from "./ProjectServer"; import { server as serverConfig } from "./config"; import * as path from "path"; import * as fs from "fs"; import * as rimraf from "rimraf"; import * as async from "async"; import * as recursiveReaddir from "recursive-readdi...
the_stack
import { Bifunctor3 } from 'fp-ts/Bifunctor' import { Alt3 } from 'fp-ts/Alt' import { Monad3 } from 'fp-ts/Monad' import { MonadTask3 } from 'fp-ts/MonadTask' import { MonadThrow3 } from 'fp-ts/MonadThrow' import { IncomingMessage } from 'http' import { Readable } from 'stream' import * as M from './Middleware' /** ...
the_stack
import { visit } from 'jsonc-parser'; import { Injectable, Autowired } from '@opensumi/di'; import { PreferenceConfigurations, IContextKey, Emitter, Event, PreferenceService, URI, WaitUntilEvent, IContextKeyService, CommandService, localize, StorageProvider, STORAGE_NAMESPACE, IStorage, Thr...
the_stack
import * as msRest from "@azure/ms-rest-js"; export const QueryContext: msRest.CompositeMapper = { serializedName: "QueryContext", type: { name: "Composite", polymorphicDiscriminator: { serializedName: "_type", clientName: "_type" }, uberParent: "QueryContext", className: "QueryCon...
the_stack
import cloneDeep from 'lodash/cloneDeep'; import { AppConstants } from 'app.constants'; import { AnswerGroup, AnswerGroupObjectFactory } from 'domain/exploration/AnswerGroupObjectFactory'; import { FractionInputValidationService } from 'interactions/FractionInput/directives/fraction-input-validation.service'; impo...
the_stack
import {Component, ElementRef, Injector, OnDestroy, OnInit, ViewChild} from '@angular/core'; import {User} from '@domain/user/user'; import {UserService} from '../service/user.service'; import {CookieConstant} from '@common/constant/cookie.constant'; import {AbstractComponent} from '@common/component/abstract.component...
the_stack
import { gql } from '@apollo/client'; import * as Apollo from '@apollo/client'; export type Maybe<T> = T | null; export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] }; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { ID: string; String: strin...
the_stack
import _ from 'lodash'; import { omitUndefinedValues, repository } from 'src/repository/repository'; import { getItemsKnex, generateColumnNames } from 'src/knex/queries/items'; import { Database } from 'src/dbconfig'; import { getDetailsKnex } from 'src/knex/queries/details'; import { Seen } from 'src/entity/seen'; im...
the_stack
import { when } from 'jest-when'; import { getAddressFromPublicKey } from '@liskhq/lisk-cryptography'; import { TransactionList } from '../../src/transaction_list'; import { TransactionPool } from '../../src/transaction_pool'; import { Transaction, Status, TransactionStatus } from '../../src/types'; import { generateRa...
the_stack
import { assert, expect } from "chai"; import * as enzyme from "enzyme"; import * as React from "react"; import * as sinon from "sinon"; import * as moq from "typemoq"; import { BackgroundMapSettings, DisplayStyle3dSettings, EmptyLocalization, PlanarClipMaskMode, PlanarClipMaskPriority, TerrainHeightOriginMode, Ter...
the_stack
import { Database, makeArray, Logger, Schema, Context, Query, Model, TableType, union, difference } from 'koishi' import { executeUpdate } from '@koishijs/orm-utils' import { Builder, Caster } from '@koishijs/sql-utils' import sqlite, { Statement } from 'better-sqlite3' import { resolve } from 'path' import { escape as...
the_stack
import { WordDocument } from './word-document'; import { DomType, IDomTable, IDomNumbering, IDomHyperlink, IDomImage, OpenXmlElement, IDomTableColumn, IDomTableCell, TextElement, SymbolElement, BreakElement } from './dom/dom'; import { Length, CommonProperties } from './dom/common'; import { Options } from './docx...
the_stack
import {AnyAction, PayloadAction, createSelector, createSlice} from '@reduxjs/toolkit' import type {ClientError, Patch, Transaction} from '@sanity/client' import { Asset, AssetItem, AssetType, BrowserView, HttpError, Order, OrderDirection, Tag } from '@types' import groq from 'groq' import {nanoid} from...
the_stack
import { hashPersonalMessage, ecrecover } from 'ethereumjs-util'; import Common from 'ethereumjs-common'; import { safeIntegerValidator, bigNumberValidator, addressValidator, hexSequenceValidator, messageValidator, messageDataValidator, } from './validators'; import { hexSequenceNormalizer, recoveryParamNo...
the_stack
import { css } from '@emotion/react'; import { light, Theme } from '@sumup/design-tokens'; import { create } from '../util/test-utils'; import { cx, spacing, shadow, typography, disableVisually, hideVisually, focusOutline, focusVisible, clearfix, hideScrollbar, inputOutline, listItem, naviga...
the_stack
import {wx, App, Page, getApp, setTimeout, clearTimeout, setInterval, clearInterval} from 'weapp-api' App({ onLaunch: function () { //调用API从本地缓存中获取数据 let logs = wx.getStorageSync('logs') as Array<any> || [] logs.unshift(Date.now()) wx.setStorageSync('logs', logs) }, getUserIn...
the_stack
import {AbstractMessageParser} from './abstract-message-parser'; import {ParsedMessage} from './parsed-message'; import {ParsedMessagePartStartTag} from './parsed-message-part-start-tag'; import {ParsedMessagePartEndTag} from './parsed-message-part-end-tag'; import {ParsedMessagePartPlaceholder} from './parsed-message-...
the_stack
import type { TokenEachCheck } from '../../token/token-collection'; import { log } from '../../debug'; import { matched, unmatched } from '../../match-result'; export const datetimeTokenCheck: Record< | 'year' | 'month' | 'date' | 'hour' | 'minute' | 'second' | 'secondFractionalPart' | 'week' | 'hyphen' | '...
the_stack
import { expect } from 'chai' import { concatBuffers } from '../src' import { deserializeHeaderV1Factory } from '../src/deserialize_header_v1' import { decodeEncryptionContextFactory } from '../src/decode_encryption_context' import { deserializeEncryptedDataKeysFactory } from '../src/deserialize_encrypted_data_keys' im...
the_stack
import React, { useMemo, useEffect, useState, useCallback } from 'react'; import { FormikProps } from 'formik'; import { defineMessages, FormattedMessage, MessageDescriptor, } from 'react-intl'; import { bigNumberify } from 'ethers/utils'; import moveDecimal from 'move-decimal-point'; import sortBy from 'lodash/s...
the_stack
import {act, fireEvent, render} from '@testing-library/react'; import {installMouseEvent} from '@react-spectrum/test-utils'; import {press, testKeypresses} from './utils'; import {Provider} from '@adobe/react-spectrum'; import React, {useState} from 'react'; import {Slider} from '../'; import {theme} from '@react-spect...
the_stack
import React, { Component } from 'react'; import yaml from 'js-yaml'; import { ipcRenderer } from 'electron'; //IMPORT HELPER FUNCTIONS import convertYamlToState from './helpers/yamlParser'; import setD3State from './helpers/setD3State'; import parseOpenError from './helpers/parseOpenError'; import { runDockerComposeV...
the_stack
import * as assert from 'assert'; import { v4 as uuid } from 'uuid'; import { generate as randomstring } from 'randomstring'; import * as request from 'supertest'; import * as requestPromise from 'request-promise'; import * as requestLegacy from 'request'; import * as httpstatus from 'http-status'; import * as sinon fr...
the_stack
import { HelperEventEmitter, Notifier } from 'coc-helper'; import { Buffer, Disposable, disposeAll, ExtensionContext, Window, workspace, } from 'coc.nvim'; import pFilter from 'p-filter'; import { ActionExplorer } from './actions/actionExplorer'; import { loadGlobalActions } from './actions/globalActions'; ...
the_stack
import * as packageUtils from "../util/package"; import merge = require("lodash.merge"); import includes = require("lodash.includes"); import * as path from "path"; import { IEyeglass } from "../IEyeglass"; import { SassImplementation } from "../util/SassImplementation"; import type { FunctionDeclarations } from "node-...
the_stack
import path from 'path'; import { matcherHint, RECEIVED_COLOR as red, EXPECTED_COLOR as green, matcherErrorMessage, printWithType, printExpected, } from 'jest-matcher-utils'; import { joinWithNewLines, str, } from '../../../../../commonTestResources/utils'; import jestOpenAPI from '../../..'; const ex...
the_stack
import generate from "@babel/generator"; import { arrayExpression, assignmentExpression, binaryExpression, blockStatement, booleanLiteral, callExpression, conditionalExpression, expressionStatement, functionDeclaration, functionExpression, identifier, ifStatement, isExpression as isExpression_, isFunction, isLiteral, i...
the_stack
import concat from 'concat-stream'; // @ts-ignore import reproject from 'reproject'; import PolyToLine from '@turf/polygon-to-line'; import Simplify from '@turf/simplify'; import proj4 from 'proj4'; import { Geometry } from 'geojson'; import { FeatureDao } from '../../features/user/featureDao'; import { TileBoundingBo...
the_stack
import { app, BrowserWindow, dialog, ipcMain, shell } from 'electron'; import { IService } from './main'; import { ElectronStateDB } from './state'; import { JSONObject, JSONValue } from '@lumino/coreutils'; import log from 'electron-log'; import { AsyncRemote, asyncRemoteMain } from '../asyncremote'; import { IPy...
the_stack
import util from '../common/util' /** Private enumaration to determine the value (new value or old value) should be applied during action */ enum HistoryValue { New, Old, } /** Private interface hack to access properties of objects via `any` */ type IIndexedObject = Record<string, any> /** Private class for ...
the_stack
* This file was automatically 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 **/ gapi.load('client', () => { /** now we can use gapi.client */ gapi.client...
the_stack
import sinon from "sinon"; import Contract from "./Contract"; // In order to test the action package in a meaningful way, it needs // to be able to interact with contracts. import TasitContracts from "@tasit/contracts"; import ProviderFactory from "../ProviderFactory"; import { accounts, mineBlocks, createSnaps...
the_stack
import Observable = require("data/observable"); import TypeUtils = require("utils/types"); /** * Name of the property for a "real" / non-routed value. */ export const INNER_VALUE_PROPERTY = 'innerValue'; /** * Name of the property for a routed value. */ export const VALUE_PROPERTY = 'value'; /** * L...
the_stack
import { RenameProvider, ProviderResult, WorkspaceEdit, TextDocument, Position, CancellationToken } from 'vscode'; import * as vscode from 'vscode' import { LParse } from '../parser/LParse' import { LFileMgr } from './LFileMgr' import { LCItem } from "../provider/LCItem" import { LFile } from "./LFile" import { LFItem ...
the_stack
import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { LoadTests } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { LoadTestClient } from "../loadTestClient"; im...
the_stack
import * as ts from 'typescript'; import * as base from './base'; import {FacadeConverter, identifierCanBeRenamed, isValidIdentifier} from './facade_converter'; import {Transpiler} from './main'; import {MergedMember, MergedParameter, MergedType, MergedTypeParameters} from './merge'; const PRIVATE_CLASS_INSTANCE_IN_E...
the_stack
import React from 'react'; import styled from '@emotion/styled'; import { keyframes } from '@emotion/core'; import configureCadence, { CADENCE_LANGUAGE_ID } from '../util/cadence'; import { CadenceCheckCompleted, CadenceLanguageServer, Callbacks, } from '../util/language-server'; import { createCadenceLanguageCli...
the_stack
import type {Mutable, Proto, ObserverType} from "@swim/util"; import {FastenerOwner, FastenerInit, FastenerClass, Fastener} from "@swim/component"; import {Model, AnyTrait, TraitFactory, Trait} from "@swim/model"; import {AnyView, ViewFactory, View} from "@swim/view"; /** @internal */ export type TraitViewRefTraitType...
the_stack
import { JupyterFrontEnd, JupyterFrontEndPlugin } from '@jupyterlab/application'; import { IThemeManager } from '@jupyterlab/apputils'; import { ISettingRegistry } from '@jupyterlab/settingregistry'; const extensionId = 'jupyterlab-tailwind-theme:plugin'; /** * A plugin for jupyterlab-tailwind-theme * Since th...
the_stack
import * as vscode from "vscode"; import * as fs from "fs"; import * as path from "path"; import parseXML = require("@rgrove/parse-xml"); import validateFrameworkSDK from "../utils/validateFrameworkSDK"; const FILE_EXTENSION_AS3PROJ = ".as3proj"; const FILE_ASCONFIG_JSON = "asconfig.json"; const FILE_APPLICATION_XML =...
the_stack
import { TableClient } from "@azure/data-tables"; import * as assert from "assert"; import { configLogger } from "../../src/common/Logger"; import TableTestServerFactory from "../TableTestServerFactory"; import { generateJWTToken, getUniqueName } from "../testutils"; import { SimpleTokenCredential } from "../simpleTo...
the_stack
import { Syntax, Visitor, id } from './javascript'; import { MessageException, unexpected } from './message'; import { globalDeclarations } from './preamble'; function unsupportedLoc (loc: Syntax.SourceLocation, description: string = '') { return new MessageException({ status: 'error', type: 'unsupported', loc, desc...
the_stack
import dayjs from 'dayjs'; import sample from 'lodash/sample'; import { commands, Position, QuickPickItem, Range, Selection, TextDocument, TextEditor, TextEditorEdit, ThemeIcon, window, WorkspaceEdit } from 'vscode'; import { appendTaskToFile, archiveTasks, editTaskWorkspaceEdit, hideTask, incrementCountForTask, increm...
the_stack
import { PluginSettingTab, Setting } from 'obsidian'; import BannersPlugin from './main'; type StyleOption = 'solid' | 'gradient'; type IconHorizontalOption = 'left' | 'center' | 'right' | 'custom'; type IconVerticalOption = 'above' | 'center' | 'below' | 'custom'; export interface SettingsOptions { height: number, ...
the_stack
import { Obligation, ProjectScanStatusType, Scan, SystemConfiguration } from '@app/models'; import { ProjectAttributionDto, ProjectDistinctLicenseDto, ProjectDistinctVulnerabilityDto } from '@app/models/DTOs'; import { ObligationSearchDto } from '@app/models/DTOs/ObligationSearchDto'; import { ProjectDistinctSeverityDt...
the_stack
import React, { useCallback, useEffect, useRef, useState } from 'react' import { ConditionalKeys } from 'type-fest' import createDeferred, { Deferred } from '../../common/async/deferred' import shallowEquals from '../../common/shallow-equals' interface FormHook<ModelType> { /** * Event handler that should be atta...
the_stack
import { CMIBoolean, CMIBlank, CMIString255, CMIIdentifier, CMIDecimal, CMITimeSpan, CMIString4096, CMIInteger, CMISInteger, CMITime, CMIFeedback, } from './CMIDataTypes'; import { CMIElementComments, CMIElementCommentsFromLMS, CMIElementCoreChildren, CMIEleme...
the_stack
import type * as P from 'xxscreeps/engine/db/storage/provider'; import type { KeyvalScript } from 'xxscreeps/engine/db/storage/script'; import type { MaybePromises } from './responder'; import fs from 'fs/promises'; import Fn from 'xxscreeps/utility/functional'; import { latin1ToBuffer, typedArrayToString } from 'xxscr...
the_stack
import {OpenYoloCredential, OpenYoloCredentialHintOptions, OpenYoloCredentialRequestOptions, OpenYoloProxyLoginResponse, RequestContext} from '../protocol/data'; import {OpenYoloInternalError} from '../protocol/errors'; import {SecureChannel} from '../protocol/secure_channel'; import {PromiseResolver, TimeoutRacer} fro...
the_stack
import * as TH from './type-helpers'; import { AsyncActionCreatorBuilder } from './type-helpers'; import { createAsyncAction } from './create-async-action'; type User = { firstName: string; lastName: string }; // @dts-jest:group async action without cancel { const fetchUsersAsync = createAsyncAction( 'FETCH_USE...
the_stack
import { AggregatedError } from "./aggregatederror"; import { TokenSource } from "./tokensource"; import { DurableError } from "./durableerror"; import { EntityId, ITaskMethods, RetryOptions, Task, TimerTask, CallActivityAction, CallActivityWithRetryAction, CallEntityAction, ...
the_stack
import { Client } from '@src/core' import { Endpoints } from '@src/constants' import { MessageCreateData } from '@src/api/entities/message/interfaces/MessageCreateData' import { GatewayOpCodes, RestFinishedResponse } from '@discordoo/providers' import { RawMessageData } from '@src/api/entities/message/interfaces/RawMes...
the_stack
namespace LiteMol.Bootstrap.Tree { "use strict"; import Node = Tree.Node.Any; export interface Transformer<A extends Node, B extends Node, P> { info: Transformer.Info<A, B, P>; apply(context: Context, a: A, t: Transform<A, B, P>): Task<B> update(context: Context, b: B, t: Tran...
the_stack
import { ConcreteRequest } from "relay-runtime"; import { FragmentRefs } from "relay-runtime"; export type SaleArtworkTileRailCardTestsQueryVariables = {}; export type SaleArtworkTileRailCardTestsQueryResponse = { readonly saleArtwork: { readonly " $fragmentRefs": FragmentRefs<"SaleArtworkTileRailCard_saleA...
the_stack
module TDev.AST { // update library references export class SplitAppIntoAppAndLibrary { constructor() { this.ddManager = new DeclAndDepsManager(); } private ddManager: DeclAndDepsManager = null; private theApp: App = null; private targetLibrary: LibraryRef =...
the_stack
import { isFunction, isObject, keysOf, hasOwn, convertMapToObject, isArguments, handleError, checkError, } from "./utilities"; import canonicalStringify from "./stringify"; import { fromJSONValueHelper } from "./utils/fromJSONValueHelper"; import { adjustTypesFromJSONValue } from "./utils/adjustTypesFro...
the_stack
module TDev.AST.Json { export class NodeVisitor { /// visitor methods based on nodeType to override in specialized visitors public visit_exprHolder(holder: JExprHolder): any { return this.visit_node(holder); } public visit_stringLiteral(lit: JStringLiteral): any { return this.visit_expr(li...
the_stack
import * as assert from "assert"; import { MIRResolvedTypeKey } from "../../compiler/mir_ops"; type VerifierOptions = { ISize: number, //bits used for Int/Nat StringOpt: "ASCII" | "UNICODE", EnableCollection_SmallHavoc: boolean, EnableCollection_LargeHavoc: boolean, EnableCollection_SmallOps: bool...
the_stack
import * as React from 'react'; import { Button, Dropdown, TextField, IconButton, Panel, PanelType, PrimaryButton, DefaultButton, CommandBar, MessageBar, MessageBarType, Spinner, SpinnerSize, DialogFooter, Pivot, PivotItem, CommandBarButton, IContextualMenuItem } from 'office-ui-fabr...
the_stack
import { EventEmitter } from 'events'; import { obx, makeObservable } from '@alilc/lowcode-editor-core'; import { NodeSchema } from '@alilc/lowcode-types'; import { setNativeSelection, cursor } from '@alilc/lowcode-utils'; import { DropLocation } from './location'; import { Node, DocumentModel } from '../document'; imp...
the_stack
module android.widget { import Canvas = android.graphics.Canvas; import Rect = android.graphics.Rect; import Bundle = android.os.Bundle; import Log = android.util.Log; import FocusFinder = android.view.FocusFinder; import KeyEvent = android.view.KeyEvent; import MotionEvent = android.view.Mo...
the_stack
import { store } from "@graphprotocol/graph-ts"; // Import event types from the registrar contract ABIs import { BondingManager, WithdrawStake, Bond, Unbond, Rebond, WithdrawFees, Reward, TranscoderSlashed, TranscoderUpdate, TranscoderActivated, TranscoderDeactivated, EarningsClaimed, Paramet...
the_stack
import {getDesiredMultiscaleMeshChunks, getMultiscaleChunksToDraw, MultiscaleMeshManifest} from 'neuroglancer/mesh/multiscale'; import {getFrustrumPlanes, mat4, vec3} from 'neuroglancer/util/geom'; interface MultiscaleChunkResult { lod: number; row: number; renderScale: number; empty: number; } function getDe...
the_stack
import uuid = require('uuid/v1'); import {JSDOM, DOMWindow} from '@forbeslindesay/jsdom'; import Browser from './Browser'; import Tab from './Tab'; import WebdriverCookie from './WebdriverCookie'; import WebdriverElementReference from './WebdriverElementReference'; import WebdriverSelectorType from './WebdriverSelector...
the_stack
import inspect from '../jsutils/inspect.js'; import devAssert from '../jsutils/devAssert.js'; import { syntaxError } from '../error/syntaxError.js'; import { Kind } from './kinds.js'; import { Source } from './source.js'; import { DirectiveLocation } from './directiveLocation.js'; import { TokenKind } from './tokenKind...
the_stack
import { checkExpr, checkPredicate, checkVar, disambiguateSubNode, } from "compiler/Substance"; import consola, { LogLevel } from "consola"; import { constrDict, objDict } from "contrib/Constraints"; // Dicts (runtime data) import { compDict } from "contrib/Functions"; import { constOf, numOf, varOf } from "eng...
the_stack