text
stringlengths
2.5k
6.39M
kind
stringclasses
3 values
// ----------------------------------------------------------------------------------- // Arc Generator // ----------------------------------------------------------------------------------- export interface DefaultArcObject { innerRadius: number; outerRadius: number; startAngle: number; endAngle: numb...
the_stack
import { connect } from '@wagmi/core' import { MockConnector } from '@wagmi/core/connectors/mock' import { act, actConnect, actDisconnect, getSigners, renderHook, setupClient, } from '../../../test' import { UseConnectArgs, UseConnectConfig, useConnect } from './useConnect' import { useDisconnect } from '....
the_stack
import React from "react"; import ReactModal from "react-modal"; import { Switch, Route } from "react-router"; import { ErrorModal, ErrorModalData } from "./components/ErrorModal"; import cstyles from "./components/Common.module.css"; import routes from "./constants/routes.json"; import Dashboard from "./components/Das...
the_stack
import { SiteBodyCreate } from '../model/siteBodyCreate'; import { SiteBodyUpdate } from '../model/siteBodyUpdate'; import { SiteContainerEntry } from '../model/siteContainerEntry'; import { SiteContainerPaging } from '../model/siteContainerPaging'; import { SiteEntry } from '../model/siteEntry'; import { SiteMemberEnt...
the_stack
import { MapEnv, StyleSetEvaluator, Value, ValueMap } from "@here/harp-datasource-protocol/index-decoder"; import { TileKey } from "@here/harp-geoutils"; import { assert, ILogger, LoggerManager } from "@here/harp-utils"; import * as Long from "long"; import { ShapeUtils, Vector2, Vector3 } from "three";...
the_stack
export * from "./MessageStreamInfo"; export interface EventTypeOptions { S3Task: 0; } export interface EventTypeOptionsFlipped { 0: "S3Task"; } type EventTypeValue = EventTypeOptions[keyof EventTypeOptions]; export type EventTypeMap = EventTypeValue; /** * The type of event, which determines how to interpret ...
the_stack
import { describe, expect, it } from '@jest/globals'; import { ImportPostman } from './postman'; import { HttpsSchemaGetpostmanComJsonCollectionV210, Request1 } from './postman-2.1.types'; describe('postman', () => { const postmanSchema = ({ requests = [], version = 'v2.0.0', }: { requests?: Request1[...
the_stack
import {promisify} from 'util'; import {Response} from 'express'; import { Authorized, BadRequestError, Body, ContentType, Controller, CurrentUser, Delete, ForbiddenError, Get, NotFoundError, Param, Post, Res, UseBefore } from 'routing-controllers'; import passportJwtMiddleware from '../secu...
the_stack
* Facility for drawing a scale bar to indicate pixel size in physical length * units. * * The physical length with which the scale bar is labeled will be of the form: * * significand * 10^exponent * * Any exponent may be used, but the significand in the range [1, 10] will be * equal to one of a * discrete se...
the_stack
import * as Kilt from '@kiltprotocol/sdk-js' import { IDidDetails, KeyRelationship } from '@kiltprotocol/sdk-js' import type { SubmittableExtrinsic, IRequestForAttestation, MessageBody, IDidKeyDetails, } from '@kiltprotocol/sdk-js' import { mnemonicGenerate } from '@polkadot/util-crypto' const NODE_URL = 'ws:/...
the_stack
import { colors, doc, type DocNode, type DocNodeInterface, type DocNodeNamespace, httpErrors, type LoadResponse, } from "./deps.ts"; import { assert } from "./util.ts"; /** An object which represents an "index" of a library/package. */ export interface IndexStructure { /** An object that describes the ...
the_stack
// clang-format off import {flush} from 'chrome://resources/polymer/v3_0/polymer/polymer_bundled.min.js'; import {AppProtocolEntry, HandlerEntry, ProtocolEntry, ProtocolHandlersElement, SiteSettingsPrefsBrowserProxyImpl} from 'chrome://settings/lazy_load.js'; import {assertEquals, assertFalse, assertTrue} from 'chrome:...
the_stack
import React, { Component } from "react"; import { withStyles, CircularProgress, Typography, Paper, Button, Chip, Avatar, Slide, StyledComponentProps } from "@material-ui/core"; import { styles } from "./PageLayout.styles"; import Post from "../components/Post"; import { Status } fro...
the_stack
import { AccessLevelList } from "../shared/access-level"; import { PolicyStatement, Operator } from "../shared"; /** * Statement provider for service [secretsmanager](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssecretsmanager.html). * * @param sid [SID](https://docs.aws.amazon.com/IAM...
the_stack
'use strict'; import * as React from 'react'; import * as ReactTestRenderer from 'react-test-renderer'; import { createOperationDescriptor, PayloadData, PayloadError } from 'relay-runtime'; import { createMockEnvironment } from 'relay-test-utils-internal'; const { generateAndCompile } = require('./TestCompiler'); im...
the_stack
import { Component, OnInit, OnDestroy, Input } from '@angular/core'; import { CloudGemMetricApi } from './api-handler.class'; import { Http } from '@angular/http'; import { AwsService } from "app/aws/aws.service"; import { Observable } from 'rxjs/Observable'; import { MetricGraph } from 'app/view/game/module/shared/cla...
the_stack
import { ReferencePointer } from './parser'; import { Util, ExtractionResult } from './util'; import { ObjectUtil } from './object-util' import { Stream } from './stream'; export interface XRef { id: number pointer: number generation: number free: boolean update: boolean compressed?: boolean } ...
the_stack
import { assert } from "chai"; import { Value, load } from "../../src/dom"; import { Decimal } from "../../src/IonDecimal"; import JSBI from "jsbi"; /** * This file contains 'equals()' tests for each Ion data type: * - Demonstrates equivalence of dom.Value with strict and non-strict(relaxed) modes. * - Also shows e...
the_stack
import { MIRAssembly, MIRConceptType, MIRFieldDecl, MIRInvokeDecl, MIRInvokePrimitiveDecl, MIRObjectEntityTypeDecl, MIRPrimitiveInternalEntityTypeDecl } from "../../../compiler/mir_assembly"; import { MIRFieldKey, MIRInvokeKey, MIRResolvedTypeKey, MIRVirtualMethodKey } from "../../../compiler/mir_ops"; import { ICPPAss...
the_stack
import React, { ReactElement } from "react"; import { act, fireEvent, render, waitFor } from "@testing-library/react"; import { Dir, UserInteractionModeListener } from "@react-md/utils"; import { Slider, SliderProps } from "../Slider"; import { SliderStepOptions, SliderValue } from "../types"; import { useSlider } fro...
the_stack
import { tokenizer } from "codsen-tokenizer"; import { collapse } from "string-collapse-white-space"; import { rApply } from "ranges-apply"; import { detectLang } from "detect-templating-language"; import { defaultOpts, Opts, ApplicableOpts, Res } from "./util"; import { version as v } from "../package.json"; const ver...
the_stack
import { Component, ViewChild } from '@angular/core'; import { NavController, NavParams, ModalController, PopoverController, Events } from 'ionic-angular'; //Components import { OpenLoggerLoggerComponent } from '../../../components/logger/openlogger/openlogger-logger.component'; import { GenPopover } from '../../../co...
the_stack
type ColumnType = Date|number|string; enum ColumnTypeName { DATE, NUMBER, STRING, } interface Column { name: string; type: ColumnTypeName; } /** * Mode definition for which items, out of all items that are capable * of showing details, actually show those details. */ enum InlineDetailsDisplayMode { NO...
the_stack
import { defineConfig } from '@agile-ts/utils'; import { logCodeManager } from '../logCodeManager'; import { Collection, CollectionKey, DefaultItem, ItemKey } from './collection'; import { Group, GroupKey } from './group'; import { CreatePersistentConfigInterface, getSharedStorageManager, Persistent, Persistent...
the_stack
import Docker = require("dockerode"); import execa from "execa"; import * as fs from "fs"; import ld from "lodash"; import os from "os"; import * as sb from "stream-buffers"; import * as util from "util"; export async function dockerExec(container: Docker.Container, command: string[]): Promise<string> { const exec...
the_stack
declare var expect: Chai.ExpectStatic; function addFetchSuite () { describe('fetch', () => { it('should be defined', () => { expect(fetch).to.be.a('function') }) it('should facilitate the making of requests', () => { return fetch('http://localhost:8000/succeed') .then(function (res: ...
the_stack
import { HashSet, ObservableHashSet } from "../hash-set"; describe("ObservableHashSet<T>", () => { it("should not throw on creation", () => { expect(() => new ObservableHashSet<{ a: number }>([], item => item.a.toString())).not.toThrowError(); }); it("should be initializable", () => { const res = new Ob...
the_stack
import { GraphQLInterfaceType, GraphQLObjectType } from './graphql'; import { isObject, isString, isFunction } from './utils/is'; import { resolveMaybeThunk, inspect, mapEachKey } from './utils/misc'; import { ObjectTypeComposer } from './ObjectTypeComposer'; import type { GraphQLFieldConfig, GraphQLFieldConfigMap,...
the_stack
import { Link } from '@tamagui/feather-icons' import NextLink from 'next/link' import NextRouter from 'next/router' import rangeParser from 'parse-numeric-range' import React from 'react' import { ScrollView } from 'react-native' import { Button, Group, H1, H2, H3, H4, H5, Image, ImageProps, Paragra...
the_stack
export namespace EventAnalyticsModels { /** * * @export * @class RequiredError * @extends {Error} */ export class RequiredError extends Error { name: "RequiredError" = "RequiredError"; constructor(public field: string, msg?: string) { super(msg); } ...
the_stack
import { assert } from 'chai'; import { cache } from '../../src'; // @ts-ignore import CacheMap from '@feathers-plus/cache'; let cacheMap: any; let hookBeforeSingle: any; let hookBeforeMulti: any; let hookAfterSingle: any; let hookAfterSingleNormalize: any; let hookAfterMulti: any; let hookAfterPaginated: any; let hoo...
the_stack
import React, { useContext, useMemo, useRef, useState } from 'react'; import { DATA_SOURCE_ENUM, DATA_SOURCE_TEXT, DATA_SOURCE_VERSION, defaultColsText, DEFAULT_MAPPING_TEXT, FLINK_VERSIONS, formItemLayout, hbaseColsText, hbaseColsText112, HELP_DOC_URL, KAFKA_DATA_LIST, KAFKA_DATA_TYPE, } from '@/constant';...
the_stack
//@ts-check ///<reference path="devkit.d.ts" /> declare namespace DevKit { namespace Formmsdyn_projecttask_Information { interface Header extends DevKit.Controls.IHeader { /** Select the project name. */ msdyn_project: DevKit.Controls.Lookup; /** Owner Id */ OwnerId: DevKit.Controls.Lookup; /** Statu...
the_stack
import { AUTH_ACTION as AA, CONNECTION_ACTION as CA, EVENT_ACTION as EA, PARSER_ACTION as XA, PRESENCE_ACTION as UA, RECORD_ACTION as RA, RPC_ACTION as PA, TOPIC as T, } from '../../../../constants' export const MESSAGE_SEPERATOR = String.fromCharCode(30) // ASCII Record Seperator 1E export const MESSA...
the_stack
import '../../../test/common-test-setup-karma'; import './gr-group-members'; import {GrGroupMembers, ItemType} from './gr-group-members'; import { addListenerForTest, mockPromise, queryAll, queryAndAssert, stubBaseUrl, stubRestApi, } from '../../../test/test-utils'; import { AccountId, AccountInfo, Em...
the_stack
import * as chai from 'chai' import * as chaiAsPromised from 'chai-as-promised' import 'mocha' import { LocalStorage } from '../../src' import { MatrixClient } from '../../src/matrix-client/MatrixClient' import * as sinon from 'sinon' import { MatrixRoomStatus } from '../../src/matrix-client/models/MatrixRoom' import {...
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/policyStatesMappers"; import * as Parameters from "../models/parameters"; import { PolicyInsightsClientContext } from "../policyInsightsClientCont...
the_stack
// Last module patch version validated against: 1.0.6 import { DSVParsedArray, DSVRowString } from 'd3-dsv'; export interface Request { /** * Aborts this request, if it is currently in-flight, and returns this request instance. * See XMLHttpRequest’s abort. */ abort(): this; /** * Equ...
the_stack
* @module Tiles */ import { assert, BeEvent } from "@itwin/core-bentley"; import { MapLayerAccessClient, MapLayerAccessToken, MapLayerAccessTokenParams, MapLayerTokenEndpoint } from "@itwin/core-frontend"; import { ArcGisOAuth2Token, ArcGisTokenClientType } from "./ArcGisTokenGenerator"; import { ArcGisOAuth2Endpoint...
the_stack
import type { Dictionary } from '@mikro-orm/core'; import { BigIntType, EnumType, Utils } from '@mikro-orm/core'; import type { AbstractSqlConnection, Column, Index, DatabaseTable, TableDifference } from '@mikro-orm/knex'; import { SchemaHelper } from '@mikro-orm/knex'; import type { Knex } from 'knex'; export class P...
the_stack
import * as actions from "@nteract/actions"; import { monocellNotebook } from "@nteract/commutable"; import { executeRequest, createMessage } from "@nteract/messaging"; import * as stateModule from "@nteract/types"; import Immutable from "immutable"; import { StateObservable } from "redux-observable"; import { empty, ...
the_stack
import { VectorChainReader } from "@connext/vector-contracts"; import { ChannelSigner, createTestChannelUpdate, expect, getRandomChannelSigner, createTestChannelState, mkSig, createTestFullHashlockTransferState, createTestUpdateParams, mkAddress, createTestChannelStateWithSigners, getTransferId, ...
the_stack
import { Injectable } from '@angular/core'; import { CoreSites, CoreSitesCommonWSOptions, CoreSitesReadingStrategy } from '@services/sites'; import { CoreWSExternalWarning, CoreWSExternalFile, CoreWSFile } from '@services/ws'; import { CoreTimeUtils } from '@services/utils/time'; import { CoreUtils } from '@services/u...
the_stack
global["$locale_strings"] = global["$locale_strings"] || {}; var locale_strings = global["$locale_strings"]; locale_strings[0] = "Successful implementation"; locale_strings[1] = "Compilation fails"; locale_strings[3] = "Time: {0} second"; locale_strings[4] = "Script execution failed"; locale_strings[5] = "Compile faile...
the_stack
import * as assert from "assert"; import * as fs from "fs/promises"; import * as G from "glob"; import * as path from "path"; const verbose = process.argv.includes("--verbose"); const moduleCommentRe = new RegExp(String.raw`\/\*\*\n` // start of doc comment + String.raw`(...
the_stack
import { RowSpanAttributeValue, PageOptions, Row, ListItem, RowKey, RowSpan, CellRenderData, RowSpanMap, ViewRow, Data, SortState, RawRowOptions, } from '@t/store/data'; import { Column, ColumnInfo, ErrorInfo } from '@t/store/column'; import { Filter } from '@t/store/filterLayerState'; import { ...
the_stack
import { expect } from "chai"; import { ClipVector, Point3d, Transform } from "@itwin/core-geometry"; import { ClipVolume } from "../../../render/webgl/ClipVolume"; import { ClipStack } from "../../../render/webgl/ClipStack"; import { RenderSystem } from "../../../render/RenderSystem"; import { IModelApp } from "../../...
the_stack
import { ITableState, ModelAssessmentContext, defaultModelAssessmentContext } from "@responsible-ai/core-ui"; import { localization } from "@responsible-ai/localization"; import { Checkbox, ConstrainMode, DetailsList, DetailsListLayoutMode, DetailsRow, DetailsRowFields, getTheme, MarqueeSelection,...
the_stack
import { FormControl, FormGroup, FormsModule, ReactiveFormsModule, Validators, } from '@angular/forms'; import { IonRadioGroup } from '@ionic/angular'; import { createHostFactory, SpectatorHost } from '@ngneat/spectator'; import { Observable, of } from 'rxjs'; import { DesignTokenHelper } from '@kirbydesign/...
the_stack
namespace ts { export interface DocumentHighlights { fileName: string; highlightSpans: HighlightSpan[]; } /* @internal */ export namespace DocumentHighlights { export function getDocumentHighlights(program: Program, cancellationToken: CancellationToken, sourceFile: Sourc...
the_stack
import {EntitySubscriberInterface} from "./EntitySubscriberInterface"; import {ObjectLiteral} from "../common/ObjectLiteral"; import {QueryRunner} from "../query-runner/QueryRunner"; import {EntityMetadata} from "../metadata/EntityMetadata"; import {BroadcasterResult} from "./BroadcasterResult"; import {ColumnMetadata}...
the_stack
import {getClassInfoById} from "./Serializable_exJsonFsm"; type StateNode = { index: number, state?: State, transitions: Map<TransitionPredict, number>, reachCount?: number, selfReachCount?: number, endable?: boolean } type TransitionPredict = string | boolean | ((condition: any, curStateNode?...
the_stack
'use strict'; import * as lessScanner from './lessScanner'; import { TokenType } from './cssScanner'; import * as cssParser from './cssParser'; import * as nodes from './cssNodes'; import { ParseError } from './cssErrors'; /// <summary> /// A parser for LESS /// http://lesscss.org/ /// </summary> export class LESSPar...
the_stack
import request from "supertest"; import { Server } from "http"; import express from "express"; import nock from "nock"; import sinon from "sinon"; import _ from "lodash"; import { expect } from "chai"; import { Record } from "magda-typescript-common/src/generated/registry/api"; import { arbFlatMap, lcAlphaNumS...
the_stack
import { setTimeout } from "timers/promises"; import { InputGate, InputGatedEventTarget, OutputGate, runWithInputGateClosed, waitForOpenInputGate, waitForOpenOutputGate, waitUntilOnOutputGate, } from "@miniflare/shared"; import { noop, triggerPromise } from "@miniflare/shared-test"; import test from "ava"...
the_stack
import * as _collections from './_collections'; import * as _tools from './_tools'; import { JsApi } from '../lib/jsapi'; const regPathInstructions = /([MmLlHhVvCcSsQqTtAaZz])\s*/; const regPathData = /[-+]?(?:\d*\.\d+|\d+\.?)([eE][-+]?\d+)?/g; const regNumericValues = /[-+]?(\d*\.\d+|\d+\.?)(?:[eE][-+]?\d+)?/; const...
the_stack
import useGqlHandler from "./useGqlHandler"; import { fileLifecyclePlugin, lifecycleEventTracker } from "./mocks/lifecyclePlugin"; const WEBINY_VERSION = process.env.WEBINY_VERSION; const TAG = "webiny"; enum FileLifecycle { BEFORE_CREATE = "file:beforeCreate", AFTER_CREATE = "file:afterCreate", BEFORE_U...
the_stack
import { createStitches } from '@stitches/react'; import { gray, mauve, slate, sage, olive, sand, tomato, red, crimson, pink, plum, purple, violet, indigo, blue, sky, mint, cyan, teal, green, grass, lime, yellow, amber, orange, brown, bronze, gold, grayA, mauv...
the_stack
namespace ts { describe("extractFunctions", () => { testExtractFunction("extractFunction1", `namespace A { let x = 1; function foo() { } namespace B { function a() { let a = 1; [#| let y = 5; let z = x; ...
the_stack
enum DayOfWeek { Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday } Fayde.CoreLibrary.addEnum(DayOfWeek, "DayOfWeek"); enum DateTimeKind { Unspecified = 0, Local = 1, Utc = 2 } Fayde.CoreLibrary.addEnum(DateTimeKind, "DateTimeKind"); class DateTi...
the_stack
import { DateTime, DateTimeFormatOptions, Duration, DurationObjectUnits, Settings } from 'luxon'; import { Dic } from './Globals'; import type { ModifiableEntity, Entity, Lite, MListElement, ModelState, MixinEntity } from './Signum.Entities'; //ONLY TYPES or Cyclic problems in Webpack! import { ajaxGet } from './Ser...
the_stack
'use strict'; import { assert, expect } from 'chai'; import { ChildProcess } from 'child_process'; import { EOL } from 'os'; import * as path from 'path'; import { Observable } from 'rxjs/Observable'; import { Subscriber } from 'rxjs/Subscriber'; import * as sinon from 'sinon'; import { Writable } from 'stream'; impor...
the_stack
import { $Object, } from '../types/object.js'; import { Realm, ExecutionContext, } from '../realm.js'; import { $Function, $BuiltinFunction, } from '../types/function.js'; import { $PropertyKey, $AnyNonEmpty, $AnyNonEmptyNonError, $AnyObject, CompletionType, } from '../types/_shared.js'; import { ...
the_stack
import { ViewChild, Renderer2, EventEmitter, Output, Component, OnInit, Input, Inject, Injectable } from '@angular/core'; import { NgModel } from '@angular/forms'; import { ConfigService } from './config.service'; import { VmdirService } from './vmdir.service'; import { VmdirUtils } from './vmdir.utils'; import { Vmdir...
the_stack
import { CLASS_DRAG_ACTIVE, CLASS_DRAG_HOVER, CLASS_DRAGGED, DragHandler } from "./drag-manager" import { EVENT_DRAG_MOVE, EVENT_DRAG_START, EVENT_DRAG_STOP } from './constants' import {BrowserJsPlumbInstance, DragGroupSpec} from "./browser-jsplumb-instance" import { jsPlumbDOMElement} from '....
the_stack
import { expect } from 'chai'; import { describe, it } from 'mocha'; import { inspect } from '../../jsutils/inspect'; import { identityFunc } from '../../jsutils/identityFunc'; import { parseValue } from '../../language/parser'; import type { GraphQLType, GraphQLNullableType } from '../definition'; import { GraphQ...
the_stack
declare module 'fs' { import * as stream from 'node:stream'; import { Abortable, EventEmitter } from 'node:events'; import { URL } from 'node:url'; import * as promises from 'node:fs/promises'; export { promises }; /** * Valid types for path values in "fs". */ export type PathLike ...
the_stack
import { CARD_KEY, CARD_SELECTOR, CURSOR, CURSOR_SELECTOR, DATA_ELEMENT, DATA_ID, READY_CARD_KEY, ROOT_SELECTOR, } from '../constants'; import Range from '../range'; import { EditorInterface, NodeInterface, RangeInterface, PluginEntry, } from '../types'; import { BlockInterface, BlockModelInterface } from '...
the_stack
import React from 'react'; import { compassIcon } from '../../icons/compassIcon'; import { questionsGlobeIcon } from '../../icons/questionsGlobeIcon'; import { conceptsIcon } from '../../icons/conceptsIcon'; import { communityGlobeIcon } from '../../icons/communityGlobeIcon'; import { BookIcon } from '../../icons/book...
the_stack
import { AstNode, AstReflection, Reference } from '../../syntax-tree'; import { isAstNode } from '../../utils/ast-util'; export interface AbstractElement extends AstNode { readonly $container: ParserRule | Alternatives | Group | UnorderedGroup | Assignment | CrossReference | TerminalRule | TerminalAlternatives | T...
the_stack
import { _SharePointQueryable, ISharePointQueryable } from "../sharepointqueryable.js"; import { extractWebUrl } from "../utils/extractweburl.js"; import { headers, body } from "@pnp/odata"; import { spPost } from "../operations.js"; import { hOP } from "@pnp/common"; import { tag } from "../telemetry.js"; export clas...
the_stack
import { Notifier } from 'coc-helper'; import { Uri, window, workspace } from 'coc.nvim'; import fs from 'fs'; import { homedir } from 'os'; import pathLib from 'path'; import { argOptions } from '../../../arg/argOptions'; import { getRevealAuto, getRevealWhenOpen } from '../../../config'; import { diagnosticHighlights...
the_stack
import { createElement, remove } from '@syncfusion/ej2-base'; import { CircularGauge, ILoadedEventArgs } from '../../../src/index'; import { IPrintEventArgs } from '../../../src/circular-gauge/model/interface'; import { PdfPageOrientation } from '@syncfusion/ej2-pdf-export'; import { beforePrint } from '../../../src/ci...
the_stack
import type { IMethod, IType, KeyedCollection, IApiModel } from './sdkModels' import { EnumType, ArrayType } from './sdkModels' interface ITypeDelta { lhs: string rhs: string } enum DiffCompare { RightMissing = -1, Equal = 0, LeftMissing = 1, } export interface DiffCount { changed: number added: number...
the_stack
import path, { resolve } from "path"; import fs from "fs-extra"; import chalk from "chalk"; import { BuilderContext, createBuilder } from "@angular-devkit/architect"; import { JsonObject } from "@angular-devkit/core"; import { DevServerBuildOutput, runWebpack, runWebpackDevServer } from "@angular-devkit/build-webpack";...
the_stack
import * as vscode from 'vscode'; import { PipelineExplorer, pipelineExplorer } from './pipeline/pipelineExplorer'; import { Pipeline } from './tekton/pipeline'; import { PipelineRun } from './tekton/pipelinerun'; import { Task } from './tekton/task'; import { TaskRun } from './tekton/taskrun'; import { Platform } from...
the_stack
import React, { useCallback, useEffect, useState } from 'react' import { View, Text, Platform, TouchableOpacity, ScrollView, Alert, StyleSheet, StatusBar, } from 'react-native' import RNFS from 'react-native-fs' import { useTranslation } from 'react-i18next' import { SafeAreaView } from 'react-native-safe-area-...
the_stack
import { EventRef, TFolder, Plugin, TFile, ButtonComponent, getAllTags, debounce, TAbstractFile, normalizePath, MarkdownView, } from "obsidian"; import { Queue } from "./queue"; import { LogTo } from "./logger"; import { ReviewFileModal, ReviewNoteModal, ReviewBlockModal, } from "./views/modal...
the_stack
import { IDatePickerStrings } from "office-ui-fabric-react"; export const DayPickerStrings: IDatePickerStrings = { months: [ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", ], shortMonths: [...
the_stack
import { BasicCredentialHandler } from "azure-devops-node-api/handlers/basiccreds"; import { DiskCache } from "../lib/diskcache"; import { getCredentialStore } from "../lib/credstore"; import { repeatStr } from "../lib/common"; import { TfsConnection } from "../lib/connection"; import { WebApi, getBasicHandler } from "...
the_stack
import { InputBlock as _InputBlock } from '@slack/types' import { JSXSlackError } from '../../error' import { JSXSlack, cleanMeta, createComponent, createElementInternal, BuiltInComponent, } from '../../jsx' import { DistributedProps, coerceToInteger } from '../../utils' import { plainText, inputDispatchA...
the_stack
import React from "react"; import { safe } from "../utils"; import { HostApi } from "../webview-api"; import { LocateRepoButton } from "./LocateRepoButton"; import { ApplyMarkerRequestType, CompareMarkerRequestType, EditorSelectRangeRequestType, EditorHighlightRangeRequestType } from "../ipc/webview.protocol"; impo...
the_stack
declare class TKAlert extends NSObject implements UIGestureRecognizerDelegate { static alloc(): TKAlert; // inherited from NSObject static new(): TKAlert; // inherited from NSObject readonly actions: NSArray<TKAlertAction>; actionsLayout: TKAlertActionsLayout; readonly alertView: TKAlertView; allowParallaxE...
the_stack
import { cparser } from "codsen-parser"; import { Ranges } from "ranges-push"; import { rApply } from "ranges-apply"; import { traverse } from "ast-monkey-traverse-with-lookahead"; import { version as v } from "../package.json"; const version: string = v; const htmlCommentRegex = /<!--([\s\S]*?)-->/g; const ranges = n...
the_stack
import path from 'path'; import fs from 'fs-extra'; // package program import packageJson from './package.json'; // plugins import shlp from 'sei-helper'; import m3u8 from 'm3u8-parsed'; import streamdl from 'hls-download'; // custom modules import * as fontsData from './modules/module.fontsData'; import ...
the_stack
import { isNumberString, isValidInteger, isIPV6, isIPV4, isIP, isPort, isStringEndsWith, isProtocolString, isRangedSemVer, isEncryptedPassphrase, isHexString, isCsv, isString, isBoolean, isSInt32, isBytes, isUInt32, isSInt64, isUInt64, } from '../src/validation'; describe('validation', () => { desc...
the_stack
import React from 'react' import { CountryData } from '../types' export interface IntlTelInputProps { /** * Container CSS class name. * @default 'intl-tel-input' */ containerClassName?: string /** * Text input CSS class name. * @default '' */ inputClassName?: string /** * It's used as `...
the_stack
import fetch from "node-fetch"; export class CurseForge { /** * Get a curse addon. * @param addonId The id of the addon. */ async getAddon(addonId: number): Promise<CurseAddon> { return CurseAddon.create(this, addonId); } /** * Get an array of curse addons. * @param ad...
the_stack
import { setupContentBuilder } from './RicosContentBuilder'; import { ImageData, PluginContainerData_Width_Type, PluginContainerData_Alignment, RichContent, Node_Type, ParagraphData, TextStyle_TextAlignment, Decoration_Type, AppEmbedData, AppEmbedData_AppType, PollData, } from 'ricos-schema'; impo...
the_stack
import './setup'; import {DOM} from 'aurelia-pal'; import {Container} from 'aurelia-dependency-injection'; import {configure as configureBindingLanguage} from 'aurelia-templating-binding'; import { ViewCompiler, ViewResources, HtmlBehaviorResource, BehaviorInstruction, ViewSlot } from 'aurelia-templating'; im...
the_stack
import type { NextFunction } from 'connect'; import type http from 'http'; import type { AstroConfig, ManifestData, RouteCache, RouteData } from '../../@types/astro'; import type { LogOptions } from '../logger'; import type { HmrContext, ModuleNode } from '../vite'; import path from 'path'; import { fileURLToPath } fr...
the_stack
import { Injectable } from '@angular/core'; // import { AngularFireAuth } from '@angular/fire/auth'; // firebase import * as firebase from 'firebase/app'; import 'firebase/auth'; import { BehaviorSubject } from 'rxjs/BehaviorSubject'; import { ReplaySubject } from 'rxjs/ReplaySubject'; import { environment } from '....
the_stack
declare namespace GoogleAppsScript { namespace Mirror { namespace Collection { namespace Timeline { interface AttachmentsCollection { // Retrieves an attachment on a timeline item by item ID and attachment ID. get(itemId: string, attachmentId: string): Mirror.Schema.Attachment; ...
the_stack
import { createBrowserHistory } from 'history'; import invert from 'lodash/invert'; import get from 'lodash/get'; import { renderRoutes } from 'react-router-config'; import { Router } from 'react-router'; import { HashRouter } from 'react-router-dom'; import { render, hydrate } from 'react-dom'; import { Hook, Asyn...
the_stack
import * as assert from 'assert'; import { IFileService, FileChangeType, IFileChange, IFileSystemProviderWithFileReadWriteCapability, IStat, FileType, FileSystemProviderCapabilities } from 'vs/platform/files/common/files'; import { FileService } from 'vs/platform/files/common/fileService'; import { NullLogService } fro...
the_stack
import * as fs from "fs"; import * as fsExtra from "fs-extra"; import * as https from "https"; import * as path from "path"; import * as R from "ramda"; import * as vscode from "vscode"; import { BASE_RESOURCES_CONFIG, BASE_STATES_CONFIG, CLI_HOSTED_SKILL_TYPE, DEFAULT_PROFILE, GIT_MESSAGES, SKILL, SKILL_...
the_stack
const letters = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_$'.split('') const digits = '1234567890'.split('') const keywords = [ // javascript 'break', 'case', 'catch', 'class', 'const', 'continue', 'debugger', 'default', 'delete', 'do', 'else', 'export', 'extends', 'finally', 'for', 'functio...
the_stack
import { StatementTypes } from "../../chef/javascript/components/statements/statement"; import { Expression, Operation, VariableReference } from "../../chef/javascript/components/value/expression"; import { ArgumentList } from "../../chef/javascript/components/constructs/function"; import { Value, Type, ValueTypes } fr...
the_stack
module Apiman { export var ConsumerApiRedirectController = _module.controller("Apiman.ConsumerApiRedirectController", ['$q', '$scope', 'OrgSvcs', 'PageLifecycle', '$routeParams', ($q, $scope, OrgSvcs, PageLifecycle, $routeParams) => { var orgId = $routeParams.org; ...
the_stack
import { TestBed, inject, fakeAsync } from '@angular/core/testing'; import * as sinon from 'sinon'; import * as chai from 'chai'; let should = chai.should(); let assert = chai.assert; import { EditorFile } from './editor-file'; import { FileService } from './file.service'; import { ModelFile, BusinessNetworkDefiniti...
the_stack