text
stringlengths
2.5k
6.39M
kind
stringclasses
3 values
import * as Platform from '../platform/platform.js'; import * as Root from '../root/root.js'; export class ParsedURL { isValid: boolean; url: string; scheme: string; user: string; host: string; port: string; path: string; queryParams: string; fragment: string; folderPathComponents: string; lastPa...
the_stack
import { oneLineTrim } from 'common-tags'; import { DOMParser } from 'prosemirror-model'; import WysiwygEditor from '@/wysiwyg/wwEditor'; import EventEmitter from '@/event/eventEmitter'; import CommandManager from '@/commands/commandManager'; import { WwToDOMAdaptor } from '@/wysiwyg/adaptor/wwToDOMAdaptor'; import {...
the_stack
import {log, assert} from '@luma.gl/api'; import GL from '@luma.gl/constants'; import {assertWebGL2Context} from '@luma.gl/webgl'; import {withParameters} from '@luma.gl/webgl'; import {flipRows, scalePixels} from '../webgl-utils/typed-array-utils'; import {getTypedArrayFromGLType, getGLTypeFromTypedArray} from '../web...
the_stack
export const enum Trs80Model { UNKNOWN_MODEL = "UNKNOWN_MODEL", MODEL_I = "MODEL_I", MODEL_III = "MODEL_III", MODEL_4 = "MODEL_4", MODEL_4P = "MODEL_4P", } export const encodeTrs80Model: { [key: string]: number } = { UNKNOWN_MODEL: 0, MODEL_I: 1, MODEL_III: 2, MODEL_4: 3, MODEL_4P: 4, }; export co...
the_stack
declare module 'vscode' { /** * Configuration for a debug session. */ export interface DebugConfiguration { /** * The type of the debug session. */ type: string; /** * The name of the debug session. */ name: string; /** * The request type of the debug session. ...
the_stack
import { ProgressBar } from '../../progressbar'; import { ProgressAnimation } from '../utils/progress-animation'; import { PathOption, getElement, Size, measureText } from '@syncfusion/ej2-svg-base'; import { ITextRenderEventArgs } from '../model/progress-interface'; import { stringToNumber, getPathArc } from '../utils...
the_stack
// The MIT License (MIT) // // vs-deploy (https://github.com/mkloubert/vs-deploy) // Copyright (c) Marcel Joachim Kloubert <marcel.kloubert@gmx.net> // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to // ...
the_stack
import React, { useState } from "react"; import { queryKeys, usePaxMonStatusQuery } from "../../api/paxmon"; import { Station, TripServiceInfo } from "../../api/protocol/motis"; import { LoadLevel, MeasureType, MeasureWrapper, } from "../../api/protocol/motis/paxforecast"; import TripPicker from "../TripPicker"...
the_stack
import { ethers, upgrades, waffle } from "hardhat"; import { Signer, BigNumber, constants, Wallet } from "ethers"; import chai from "chai"; import { MockProvider, solidity } from "ethereum-waffle"; import "@openzeppelin/test-helpers"; import { MockERC20, MockERC20__factory, PancakeFactory, PancakeFactory__facto...
the_stack
import react = require('react'); import style = require('ts-style'); import agile_keychain = require('../lib/agile_keychain'); import auth = require('./auth'); import assign = require('../lib/base/assign'); import button = require('./controls/button'); import colors = require('./controls/colors'); import { div } from ...
the_stack
* Copyright 2015 Dev Shop Limited * * Licensed under the Apache License, Version 2.0 (the 'License'); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
the_stack
import { events } from "../event"; import { NetworkIdentifier } from "./networkidentifier"; import { MinecraftPacketIds } from "./packetids"; import { ModalFormRequestPacket, SetTitlePacket } from "./packets"; const formMaps = new Map<number, SentForm>(); // rua.kr: I could not find the internal form id counter, It s...
the_stack
import * as L from 'leaflet'; declare module 'leaflet' { namespace Routing { class Control extends Itinerary { constructor(options?: RoutingControlOptions); getWaypoints(): Waypoint[]; setWaypoints(waypoints: Waypoint[] | LatLng[]): this; spliceWaypoints(ind...
the_stack
import { useState } from "react"; import { makeAutoObservable, observable, runInAction } from "mobx"; import dateAdd from "date-fns/add"; import { Rtm as RTMAPI, RTMessageType } from "../api-middleware/Rtm"; import { SmartPlayer, SmartPlayerEventType } from "../api-middleware/SmartPlayer"; import { globalStore } from "...
the_stack
import Point from '../point/Point'; import Rectangle from '../rectangle/Rectangle'; /** * An Ellipse object. * * This is a geometry object, containing numerical values and related methods to inspect and modify them. * It is not a Game Object, in that you cannot add it to the display list, and it has no texture. ...
the_stack
import React from 'react'; import { mount } from './util/wrapper'; import KeyCode from 'rc-util/lib/KeyCode'; import InputNumber from '../src'; describe('InputNumber.Props', () => { it('max', () => { const onChange = jest.fn(); const wrapper = mount(<InputNumber max={10} onChange={onChange} />); for (let...
the_stack
// layui方法和属性 function B_method() { window.lay().find; window.layer.v; window.layui.v; layui['layui.all']; layui.v; $.ajax; // layui.modules['all']; // layui.modules['notExists']; // layui.define layui.define(['layer', 'form'], exports => { const layer = layui.layer; ...
the_stack
import * as JSONCparser from 'jsonc-parser' import * as path from 'path' import * as fs from 'fs' import 'isomorphic-fetch' import TelemetryReporter from 'vscode-extension-telemetry' import { TextEditor } from 'vscode' import * as NodeCache from 'node-cache' import * as utils from './utils' import ARMExpressionParser ...
the_stack
import CodeGenerator from "apollo-codegen-core/lib/utilities/CodeGenerator"; import { join as _join, wrap as _wrap } from "apollo-codegen-core/lib/utilities/printing"; export interface Class { className: string; modifiers: string[]; superClass?: string; adoptedProtocols?: string[]; } export interface Str...
the_stack
var Sortable; // avoid TS compilation errors but still get working JS code namespace SSS_Settings { // NOTE: When adding new references, keep the same order used in the settings page, roughly divided by section. const page = { engines: undefined, inputs: undefined, toggleDarkMode: undefined, addEngineButto...
the_stack
import { Buffer } from "buffer/" import BN from "bn.js" import BinTools from "../../utils/bintools" import { AVMConstants } from "./constants" import { Output, StandardAmountOutput, StandardTransferableOutput, BaseNFTOutput } from "../../common/output" import { Serialization, SerializedEncoding } from "../../ut...
the_stack
import { expect } from '../setup' /* Imports: External */ import hre from 'hardhat' import { Contract, Signer } from 'ethers' import { getContractFactory } from '@eth-optimism/contracts' import { smockit } from '@eth-optimism/smock' import { toPlainObject } from 'lodash' /* Imports: Internal */ import { getMerkleTr...
the_stack
import React, { useState, useEffect, useCallback, useMemo, useRef, isValidElement } from 'react'; import classnames from 'classnames'; import { ChevronLeftIcon, ChevronRightIcon } from 'tdesign-icons-react'; import useConfig from '../_util/useConfig'; import noop from '../_util/noop'; import { TdSwiperProps, SwiperChan...
the_stack
import { View, Template, KeyedTemplate } from '../core/view'; import { ScopeError, SourceError, Source } from '../../utils/debug'; import * as xml from '../../xml'; import { isString, isObject } from '../../utils/types'; import { getComponentModule } from './component-builder'; import type { ComponentModule } from './c...
the_stack
module VORLON { export class InteractiveConsoleClient extends ClientPlugin { _cache = []; _pendingEntries: ConsoleEntry[] = []; private _maxBatchSize = 50; private _maxBatchTimeout = 200; private _pendingEntriesTimeout: any; private _objPrototype = Object.getPrototy...
the_stack
import { View16, Edit16 } from '@carbon/icons-react'; import fileEdit from '@iconify-icons/mdi/file-edit'; import { Icon } from '@iconify/react'; import dayjs from 'dayjs'; import { CommandBar, ICommandBarItemProps, IContextualMenuItem, Pivot, PivotItem, Stack, TooltipHost, } from 'office-ui-fabric-react'...
the_stack
"use strict"; import { Dispatcher } from "./Dispatcher"; import { UseCase } from "./UseCase"; import { DispatcherPayloadMeta, DispatcherPayloadMetaImpl } from "./DispatcherPayloadMeta"; import { UseCaseInstanceMap } from "./UseCaseInstanceMap"; // payloads import { CompletedPayload } from "./payload/CompletedPayload"; ...
the_stack
import { MIRAssembly, MIRConceptTypeDecl, MIRConstructableEntityTypeDecl, MIRConstructableInternalEntityTypeDecl, MIRDataBufferInternalEntityTypeDecl, MIRDataStringInternalEntityTypeDecl, MIREnumEntityTypeDecl, MIREphemeralListType, MIRFieldDecl, MIRObjectEntityTypeDecl, MIRPrimitiveInternalEntityTypeDecl, MIRPrimitive...
the_stack
export abstract class TemporalField { /** Checks if this field is supported by the temporal object. */ abstract isSupportedBy(temporal: TemporalAccessor): boolean; /** Checks if this field represents a component of a date. */ abstract isDateBased(): boolean; /** Checks if this field represents a com...
the_stack
import React, { useCallback, useMemo, useRef, useState, useEffect, } from 'react'; import { useTranslation } from 'react-i18next'; import { UncontrolledButtonDropdown, DropdownToggle, DropdownMenu, DropdownItem, Modal, ModalHeader, ModalBody, ModalFooter, } from 'reactstrap'; import { ISelectableAll, ISelectableA...
the_stack
import './ng_dev_mode'; import { QueryList } from '../linker'; import { Sanitizer } from '../sanitization/security'; import { StyleSanitizeFn } from '../sanitization/style_sanitizer'; import { LContainer } from './interfaces/container'; import { ComponentDefInternal, ComponentQuery, ComponentTemplate, DirectiveDefInter...
the_stack
import { FocusMonitor } from '@angular/cdk/a11y'; import { ESCAPE } from '@angular/cdk/keycodes'; import { OverlayContainer } from '@angular/cdk/overlay'; import { Component, ElementRef, NgModule, ViewChild } from '@angular/core'; import { async, ComponentFixture, fakeAsync, flush, flushMicrotasks, TestBed, tick } from...
the_stack
import { RangeNavigator } from '../../../src/range-navigator/index'; import { AreaSeries } from '../../../src/chart/index'; import { createElement, remove } from '@syncfusion/ej2-base'; import { DataManager, Query } from '@syncfusion/ej2-data'; import '../../../node_modules/es6-promise/dist/es6-promise'; import {profi...
the_stack
import { describe, it, expect, run } from 'https://deno.land/x/tincan@0.2.2/mod.ts' import { App } from '../../app.ts' import { BindToSuperDeno, InitAppAndTest } from '../util.ts' import { renderFile as eta } from 'https://deno.land/x/eta@v1.12.3/mod.ts' import { EtaConfig } from 'https://deno.land/x/eta@v1.12.3/config...
the_stack
declare const BrowserAPI: BrowserAPI; interface Window { MutationObserver: typeof MutationObserver; WebkitMutationObserver: typeof MutationObserver; Image: any; } function getMeta(name: string) { const e = document.querySelector(`link[rel="${name}"]`); return e ? e.getAttribute('href') : null; } (() => { ...
the_stack
import { registerCommand, DefaultCommands, CommandConditions, openUrlInTarget } from "./registry/command"; import { IMapViewer, ActiveMapTool, RefreshMode, ReduxDispatch, getInitialView, getRuntimeMap, getCurrentView, ITargetedCommand, IConfigurationReducerState, ...
the_stack
import { $BuiltinFunction, $Function, $OrdinaryCreateFromConstructor, } from '../types/function.js'; import { Realm, ExecutionContext, } from '../realm.js'; import { $AnyNonEmpty, $AnyNonEmptyNonError, CompletionType, } from '../types/_shared.js'; import { $Undefined, } from '../types/undefined.js'; i...
the_stack
import assert from "assert"; import { LOTUS_AUTH_TOKEN } from "../tools/testnet/credentials/credentials"; import { LotusClient } from '../../src/providers/LotusClient'; import { HttpJsonRpcConnector } from '../../src/connectors/HttpJsonRpcConnector'; import { WsJsonRpcConnector } from '../../src/connectors/WsJsonRpcCon...
the_stack
import { Listbox, ListboxButton, ListboxLabel, ListboxOption, ListboxOptions, } from "."; import { suppressConsoleLogs } from "$lib/test-utils/suppress-console-logs"; import { act, render } from "@testing-library/svelte"; import { assertActiveElement, assertActiveListboxOption, assertListbox, assertLi...
the_stack
import Nibbles from './Nibbles'; import NodeBase from './NodeBase'; import { BranchNode, BranchKeys } from './BranchNode'; import ExtensionNode from './ExtensionNode'; import LeafNode from './LeafNode'; import ProofData from './ProofData'; import assert = require('assert'); import ethUtil = require('ethereumjs-util');...
the_stack
import { mapSchema } from "../MappedSchema"; import { graphql, GraphQLString } from "graphql"; import { OperationType } from "../operation-types"; import { types } from "../universal"; describe("Adhoc operations", () => { test("custom operation without args", async () => { // @snippet:start AdhocOperation_...
the_stack
const stubbedRPCServiceConstructor = jest.fn() const stubbedWalletsServiceConstructor = jest.fn() const stubbedGetLiveCell = jest.fn() const stubbedGetTransaction = jest.fn() const stubbedGetBlockByNumber = jest.fn() const stubbedGetHeaderByNumber = jest.fn() const stubbedGetHeader = jest.fn() const stubbedSendTransact...
the_stack
'use strict'; import commander = require('commander'); import fs = require('fs'); import path = require('path'); import log = require('./log'); import my_request = require('./my_request'); import cfg = require('./config'); import series from './series'; /* correspondances between resolution and value CR excpect */ con...
the_stack
declare class TKBERTLVRecord extends TKTLVRecord { static alloc(): TKBERTLVRecord; // inherited from NSObject static dataForTag(tag: number): NSData; static new(): TKBERTLVRecord; // inherited from NSObject static recordFromData(data: NSData): TKBERTLVRecord; // inherited from TKTLVRecord constructor(o: { tag...
the_stack
import mongoose from 'mongoose'; import _ from 'lodash'; import Logger from 'bunyan'; import { Observable, Subject } from 'rxjs'; import { injectable } from 'inversify'; import { ExistenceEvent, ExistenceEventType } from './existence'; import { from } from 'rxjs/observable/from'; import { concat, exhaustMap, filter, ma...
the_stack
import { render } from 'lit-html'; import EventManager from '../utils/event-manager'; import BXPagination from '../../src/components/pagination/pagination'; import BXPageSizesSelect from '../../src/components/pagination/page-sizes-select'; import BXPagesSelect from '../../src/components/pagination/pages-select'; import...
the_stack
process.worker = true; // tslint:disable:no-import-side-effect import './dotenv'; import { ipcRenderer, remote } from 'electron'; import { InMemoryCache, NormalizedCacheObject } from 'apollo-cache-inmemory'; import ApolloClient from 'apollo-client'; import { join } from 'path'; import { PubSub } from 'graphql-subscript...
the_stack
import * as msRest from "@azure/ms-rest-js"; import * as Models from "../models"; import * as Mappers from "../models/servicePrincipalsMappers"; import * as Parameters from "../models/parameters"; import { GraphRbacManagementClientContext } from "../graphRbacManagementClientContext"; /** Class representing a ServicePr...
the_stack
import { Constants } from './Constants'; import { LocaleOptions, Locales } from './Locale'; import { Weekday } from './Weekday'; export type Unit = 'millis' | 'second' | 'minute' | 'hour' | 'day' | 'week' | 'month' | 'quarter' | 'year'; export type UnitRecord<T> = Record<Unit, T>; export typ...
the_stack
import { Component, OnDestroy, ChangeDetectorRef, ViewContainerRef, AfterViewInit, ViewChild, Input, AfterContentInit, HostListener, ViewEncapsulation, } from '@angular/core'; import { Subscription, Subject } from 'rxjs'; import { Session } from '../../../../controller/session/se...
the_stack
import { Table } from "apache-arrow"; import ndarray, { NdArray } from "ndarray"; import prefixSum from "ndarray-prefix-sum"; import { Dimension, View1D, View2D, Views } from "../api"; import { Interval } from "../basic"; import { BitSet, union } from "../bitset"; import { CUM_ARR_TYPE, HIST_TYPE } from "../consts"; im...
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
import type { DataStore, DataStoreAdapter, SortParams, Schema, BaseConfig } from '@tanker/datastore-base'; import { errors as dbErrors, transform } from '@tanker/datastore-base'; import type { Class } from '@tanker/types'; import type { IDexie, ITable, ICollection, IWhereClause } from './types'; export type Config = ...
the_stack
import * as pulumi from "@pulumi/pulumi"; import { input as inputs, output as outputs } from "../types"; import * as utilities from "../utilities"; /** * Definition of custom Cloud Build WorkerPools for running jobs with custom configuration and custom networking. * * > This resource is not currently public, and re...
the_stack
import { fakeAsync, inject, TestBed, tick } from '@angular/core/testing'; import { ClientService } from './client.service'; import * as sinon from 'sinon'; import * as chai from 'chai'; import { AdminService } from './admin.service'; import { AlertService } from '../basic-modals/alert.service'; import { AclFile, ...
the_stack
import { tsUtils } from '@neo-one/ts-utils'; import ts from 'typescript'; import { Types } from '../../constants'; import { ScriptBuilder } from '../../sb'; import { VisitOptions } from '../../types'; import { Helper } from '../Helper'; export interface EqualsEqualsHelperOptions { readonly left: ts.Node; readonly ...
the_stack
import nj from '../core'; import * as tools from '../utils/tools'; import * as tranElem from '../transforms/transformElement'; const { preAsts } = nj; const SPLIT_FLAG = '_njParam'; const TEXT_CONTENT = ['style', 'script', 'textarea', 'xmp', nj.textTag]; const { OMITTED_CLOSE_TAGS } = tranElem; //Compile string templa...
the_stack
* @module UiItemsProvider */ import { BeEvent, Logger, MarkRequired } from "@itwin/core-bentley"; import { BackstageItem } from "./backstage/BackstageItem"; import { CommonStatusBarItem } from "./statusbar/StatusBarItem"; import { CommonToolbarItem, ToolbarOrientation, ToolbarUsage } from "./toolbars/ToolbarItem"; im...
the_stack
'use strict'; import * as os from 'os'; import * as chai from 'chai'; import * as fs from 'fs-extra'; import * as sinon from 'sinon'; import * as yaml from 'js-yaml'; import * as sinonChai from 'sinon-chai'; import * as _ from 'lodash'; import { TknImpl } from '../../src/tkn'; import { getPipelineRunFrom, createTrigge...
the_stack
import {MDCRipple} from '../../mdc-ripple/index'; import {supportsCssVariables} from '../../mdc-ripple/util'; import {emitEvent} from '../../../testing/dom/events'; import {createMockFoundation} from '../../../testing/helpers/foundation'; import {setUpMdcTestEnvironment} from '../../../testing/helpers/setup'; import {s...
the_stack
import Tile from '../source/tile'; import {mat4, vec2} from 'gl-matrix'; import {OverscaledTileID} from '../source/tile_id'; import {RGBAImage} from '../util/image'; import {warnOnce} from '../util/util'; import {PosArray, TriangleIndexArray} from '../data/array_types.g'; import posAttributes from '../data/pos_attribut...
the_stack
import * as path from 'path'; import * as fse from 'fs-extra'; import chalk = require('chalk'); import portfinder = require('portfinder'); import * as TypeScript from 'typescript'; import webpack = require('webpack'); import { CleanWebpackPlugin } from 'clean-webpack-plugin'; import { WebpackPluginServe } from 'webpac...
the_stack
require("chromedriver"); import { resolve } from "path"; import { Builder, Locator, until, WebDriver, WebElement, WebElementPromise } from "selenium-webdriver"; import Chrome, { Options, ServiceBuilder } from "selenium-webdriver/chrome"; import { EXTENSION_LIST_SELECTOR, METAMASK_EXTENSION_URL_SELECTOR...
the_stack
// tslint:disable:max-func-body-length cyclomatic-complexity promise-function-async align max-line-length max-line-length no-undefined-keyword // tslint:disable:no-non-null-assertion object-literal-key-quotes import * as assert from "assert"; import { Uri } from "vscode"; import { Completion, DeploymentTemplateDoc, st...
the_stack
import "../styles/captureMenu.scss"; import { Observable } from "../../shared/utils/observable"; import { MVX } from "../mvx/mvx"; import { CaptureMenuComponent, ICaptureMenuComponentState } from "./captureMenuComponent"; import { CanvasListItemComponent } from "./canvasListItemComponent"; import { CaptureMenuActionsC...
the_stack
import React, { useEffect, useState, useRef } from 'react'; import { Animated, Text, StyleSheet, StatusBar, View, FlatList, SafeAreaView, } from 'react-native'; import { layout, FlatSection, ScrollEvent, story, } from '../types/interfaces'; import PhotosChunk from './PhotosChunk'; import ThumbScroll from...
the_stack
import { readFileSync } from "fs"; import { mapFromObject } from "./core"; import { CharacterCodes } from "./tokens"; /** * Indicates the token to use for line terminators during emit. * {@docCategory Compiler} */ export enum NewLineKind { /** * Lines should be terminated with a line-feed (Unix-s...
the_stack
import { assertEquals, TestHelpers } from "../deps.ts"; import { Request, Resource, Response, Server } from "../../mod.ts"; //////////////////////////////////////////////////////////////////////////////// // FILE MARKER - APP SETUP ///////////////////////////////////////////////////// /////////////////////////////////...
the_stack
declare namespace Composer { /** * List of authors that contributed to the package. This is typically the main maintainers, not the full list. */ type Authors = { /** * Full name of the author. */ name: string /** * Email address of the author. */ email?: string /** ...
the_stack
import { Range } from 'vscode-languageserver'; import { computeKey, Condition, DevSkimProblem, DevskimRuleSeverity, Map, AutoFix, Rule, DevSkimAutoFixEdit, IDevSkimSettings, } from "./devskimObjects"; import { DevSkimSuppression, DevSkimSuppressionFinding } from "./utility_classes/suppressions"; import { P...
the_stack
import { EventEmitter } from 'events'; import { isAddress, toChecksumAddress } from 'web3-utils'; import { addHexPrefix, bufferToHex } from 'ethereumjs-util'; import Safe from '@rabby-wallet/gnosis-sdk'; import { SafeTransaction, SafeTransactionDataPartial, } from '@gnosis.pm/safe-core-sdk-types'; import { isTxHa...
the_stack
import type { ContextInterface } from '@textile/context' import { privateKeyBytesToString, publicKeyBytesToString, } from '@textile/crypto' import { GrpcConnection } from '@textile/grpc-connection' import * as pb from '@textile/hub-grpc/api/hubd/pb/hubd_pb' import { APIService } from '@textile/hub-grpc/api/hubd/pb/...
the_stack
import * as React from 'react'; import { interval, Subscription } from 'rxjs'; import { cloneDeep } from 'lodash'; // Services import { Injector } from '@angular/core'; import { Location } from '@angular/common'; import { ImportsService } from '../../resources/imports/imports.service'; import { AuthService } from '../...
the_stack
import SlidingWindow from "swstats"; import { Logger } from "tslog"; import { getArbitrageOpportunitiesByState, setArbitrageOpportunityState, isArbitrageOpportunityApproachingTradingStart, extractTradingPairs, TradingPairs, swapCurrency, PairBases, sell, buy, convertBaseToBusd, }...
the_stack
declare module 'typescript-project-services/lib/compilerManager' { import ts = require('typescript'); import fs = require('typescript-project-services/lib/fileSystem'); import promise = require('typescript-project-services/lib/promise'); export type TypeScriptInfo = { path: string; typeScript: typeof ts; l...
the_stack
declare enum TableColumnProperties { Index = 0, IsKey = 1, IsUnique = 2, Name = 3, DataType = 4, DefaultValue = 5, Comment = 6, AutoIncrement = 7, Tags = 8, IsReadOnly = 9, AllowNull = 10 } declare enum TableProperties { TableName = 0, Tags = 1, Comment = 2 } decl...
the_stack
import { get_state, set_state, delete_state, get_ptr_len, alloc, read_byte, write_byte, get_ptr_collection_len, add_to_collection, create_collection, log_buffer, log_level, get_ptr_from_collection } from "./env"; export class Void { constructor () {} static ...
the_stack
import { ChildProcess, spawn } from 'child_process'; import { EventEmitter } from 'events'; import { GenericShell, ILogOutput } from './GenericShell'; import { DebugProtocol } from 'vscode-debugprotocol'; import * as path from 'path'; import * as os from 'os'; import * as fs from 'fs'; //inspired from https://github.c...
the_stack
import {TwingErrorRuntime} from "./error/runtime"; import {TwingSource} from "./source"; import {TwingError} from "./error"; import {TwingEnvironment} from "./environment"; import {TwingOutputBuffer} from './output-buffer'; import {iteratorToMap} from "./helpers/iterator-to-map"; import {merge} from "./helpers/merge"; ...
the_stack
import ts, { ClassDeclaration, isClassDeclaration, isFunctionTypeNode, isJsxOpeningElement, isJsxSelfClosingElement, isJsxText, isPropertySignature, Node, SourceFile, FunctionDeclaration, isVariableStatement, isJsxAttribute, isJsxAttributes, VariableStatement, isReturnStatement, isIdenti...
the_stack
import { Injectable } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { Config } from '../../../environments/environment'; import { Util } from './util'; import { LogUtil } from './../log/index'; import { ShopVO, ShopUrlVO, ShopAliasVO, ShopSeoVO, ShopSupportedCurrenciesVO, ShopLanguages...
the_stack
import mongoose from 'mongoose'; import { getInstance } from '../setup-crowi'; describe('UserGroupService', () => { let crowi; let User; let UserGroup; let UserGroupRelation; const groupId1 = new mongoose.Types.ObjectId(); const groupId2 = new mongoose.Types.ObjectId(); const groupId3 = new mongoose.Ty...
the_stack
import sinon from 'sinon'; import utils from './data-generator.utils'; import * as servicesModel from '../src/db/services.schema'; import { expect } from 'chai'; describe('Services Schema', async () => { beforeEach(async () => { await servicesModel.Services.sync({ force: true }); }); afterEach(asyn...
the_stack
import RectangleUtil from "./../../starling/utils/RectangleUtil"; import Matrix from "openfl/geom/Matrix"; import Matrix3D from "openfl/geom/Matrix3D"; import MatrixUtil from "./../../starling/utils/MatrixUtil"; import Pool from "./../../starling/utils/Pool"; import MathUtil from "./../../starling/utils/MathUtil"; impo...
the_stack
import { multiplyMatrices } from './multiply-matrices'; type color = [number, number, number]; // Sample code for color conversions // Conversion can also be done using ICC profiles and a Color Management System // For clarity, a library is used for matrix multiplication (multiply-matrices.js) // standard white poin...
the_stack
import React, { Component } from 'react'; import { Tree, List, Modal, Tabs, Radio, Input, message, Row, Col, Card, Avatar } from 'antd'; import { Entity } from 'aframe'; import Icon from 'polestar-icons'; import { AntTreeNodeSelectedEvent } from 'antd/lib/tree'; import difference from 'lodash/difference'; import { AntT...
the_stack
import {Component} from './component'; import { isAttributeInstance, isPrimaryIdentifierAttributeInstance, isSecondaryIdentifierAttributeInstance, isStringValueTypeInstance, isNumberValueTypeInstance, isMethodInstance } from './properties'; import { attribute, primaryIdentifier, secondaryIdentifier, ...
the_stack
import {AnalysisDataModel, Run} from "../models/run" import {Status} from "../models/status" import NETWORK from "../network" import {IsUserLogged, User} from "../models/user" import {RunsList} from '../models/run_list' import {AnalysisPreference} from "../models/preferences" import {SessionsList} from '../models/sessi...
the_stack
import { getPropertyValue, isTextTechnique } from "@here/harp-datasource-protocol"; import { TileKey } from "@here/harp-geoutils/lib/tiling/TileKey"; import { DataSource, TextElement, Tile } from "@here/harp-mapview"; import { debugContext } from "@here/harp-mapview/lib/DebugContext"; import { TileGeometryCreator } fro...
the_stack
import React from "react" import { existsSync, readdir, writeFile, mkdirp, readFile } from "fs-extra" import path from "path" import { queryMysql } from "../db/db" import { getBlockContent } from "../db/wpdb" import { EXPLORER_FILE_SUFFIX, ExplorerProgram, } from "../explorer/ExplorerProgram" import { Router } ...
the_stack
import chai from 'chai'; import chaiAsPromised from 'chai-as-promised'; import Tester from '../../Tester'; import { Block, Commitment, Blockchain, HardCreate, getMerkleRoot, getMerkleProof, encodeTransactions, transactionsToArray, SoftCreate, Account } from '../../../app'; import { randomHexBuffer, ProofBlockchain, ran...
the_stack
import { Component, EventEmitter, Input, OnDestroy, Output, TemplateRef, ViewChild, ViewEncapsulation, ElementRef, ChangeDetectionStrategy, HostBinding, NgZone } from '@angular/core'; import { AnimationEvent } from '@angular/animations'; import { coerceBooleanProperty } from '@angular/cdk/coer...
the_stack
import { uniq } from "lodash-es"; const BASESEQ = "BCEJKMRSUhik"; const _BASE64_ST = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; const _BASE64_RST = [].reduce.call(_BASE64_ST, (r: { [x: string]: number }, v: string, i: number) => ((r[v] = i), r), {}) as { [x: string]: number }; function ibase6...
the_stack
import React from 'react' import { Dispatch } from 'redux' import { connect } from 'react-redux' import { View, Text, Keyboard, ViewStyle, TextStyle, ImageStyle, SectionList, SectionListRenderItemInfo, SectionListData, ActivityIndicator, TouchableOpacity, SafeAreaView } from 'react-native' impor...
the_stack
import * as assert from "@esfx/internal-assert"; import { Equaler } from "@esfx/equatable"; import { HashSet } from "@esfx/collections-hashset"; import { HashMap } from "@esfx/collections-hashmap"; import { HierarchyIterable } from '@esfx/iter-hierarchy'; import { identity, isDefined } from '@esfx/fn'; import { t...
the_stack
import React from 'react' import Wide from '../../src/components/Wide' import styled from 'styled-components' import { take } from 'lodash' enum ChatState { WaitingToSend, Sending, WaitingForResponse } interface State { chatScriptIndex: number chatState: ChatState } export class Chat extends React.Componen...
the_stack
import rule, { defaultOrder, MessageIds, Options, } from '../../src/rules/member-ordering'; import { RuleTester } from '../RuleTester'; import { TSESLint } from '@typescript-eslint/experimental-utils'; const ruleTester = new RuleTester({ parser: '@typescript-eslint/parser', }); const sortedWithoutGroupingDefau...
the_stack
import { API, AudioStreamingCodecType, AudioStreamingSamplerate, CameraController, CameraControllerOptions, CameraStreamingDelegate, HAP, Logging, PrepareStreamCallback, PrepareStreamRequest, PrepareStreamResponse, SnapshotRequest, SnapshotRequestCallback, SRTPCry...
the_stack
import { message } from 'antd'; import _ from 'lodash'; import { parsePage, parsePageInServer } from '@foxpage/foxpage-js-sdk'; import { Page, RelationInfo, RenderAppInfo } from '@foxpage/foxpage-types'; import { searchVariable } from '@/apis/group/application/variable'; import { REACT_COMPONENT_TYPE, WRAPPER_COMPONE...
the_stack
module android.graphics { import Pools = android.util.Pools; import Log = android.util.Log; import Rect = android.graphics.Rect; import Color = android.graphics.Color; import NetImage = androidui.image.NetImage; /** * The Canvas class holds the "draw" calls. To draw something, you need ...
the_stack