text
stringlengths
2.5k
6.39M
kind
stringclasses
3 values
* Client-side (UI) code for the LIT tool. */ // tslint:disable:no-new-decorators import '@material/mwc-icon'; import {html} from 'lit'; import {customElement, property} from 'lit/decorators'; import {classMap} from 'lit/directives/class-map'; import {styleMap} from 'lit/directives/style-map'; import {observable} from...
the_stack
import { Locale } from '../Locale'; // tslint:disable: no-magic-numbers const MAP: string[] = [ 'th', 'st', 'nd', 'rd', 'th', 'th', 'th', 'th', 'th', 'th' ]; const lc: Locale = { weekStartsOn: 0, firstWeekContainsDate: 4, am: 'am', pm: 'pm', formatLT: 'h:mm A', formatLTS: 'h:mm:ss A', formatL: 'M...
the_stack
import { CognitoJwtInvalidClientIdError, CognitoJwtInvalidGroupError, CognitoJwtInvalidTokenUseError, JwtInvalidClaimError, ParameterValidationError, } from "./error.js"; import { JwtRsaVerifierBase, JwtRsaVerifierProperties } from "./jwt-rsa.js"; import { JwksCache, Jwks, Jwk } from "./jwk.js"; import { Jw...
the_stack
import { jsx, css } from "@emotion/core"; import * as React from "react"; import { animated, useSpring, SpringConfig } from "react-spring"; import { useFocusElement } from "./Hooks/use-focus-trap"; import { Portal } from "./Portal"; import PropTypes from "prop-types"; import { RemoveScroll } from "react-remove-scroll";...
the_stack
import { RuntimeError } from './util'; import { Element } from './element'; import { Flow } from './flow'; import { RenderContext } from './rendercontext'; import { StaveNote } from './stavenote'; import { FontInfo } from './types/common'; export interface StaveLineNotes { first_note: StaveNote; first_indices: num...
the_stack
import * as assert from "assert"; import * as model from "../../../preview/controller"; const floatCheckEpsilon = 1e-12; const testRecursionDepth = 7; const defaultNormalZoom = 2; function assertEqual(actual: number, expected: number): void { assert.equal(actual, expected); } function assertAlmostEqual(actual: n...
the_stack
import type { Url } from 'url' import debugModule from 'debug' import minimatch from 'minimatch' import Forge from 'node-forge' import fs from 'fs-extra' import { clientCertificateStore } from './agent' const { pki, asn1, pkcs12, util } = Forge const debug = debugModule('cypress:network:client-certificates') export c...
the_stack
import padEnd from "pad-end"; // For example: if two exponents are more than 17 apart, // consider adding them together pointless, just return the larger one const MAX_SIGNIFICANT_DIGITS = 17; // Highest value you can safely put here is Number.MAX_SAFE_INTEGER-MAX_SIGNIFICANT_DIGITS const EXP_LIMIT = 9e15; // The la...
the_stack
import styles from "./catalog.module.scss"; import React from "react"; import { disposeOnUnmount, observer } from "mobx-react"; import { ItemListLayout } from "../item-object-list"; import type { IComputedValue } from "mobx"; import { action, computed, makeObservable, observable, reaction, runInAction, when } from "mo...
the_stack
import * as vscode from 'vscode'; import * as fs from 'fs'; import { ext } from './extensionVariables'; import * as path from 'path'; import { JenkinsConnection } from './jenkinsConnection'; /** * Static class holding API query properties for jobs, builds, and nodes. */ export class QueryProperties { public stat...
the_stack
module android.widget { import Resources = android.content.res.Resources; import Canvas = android.graphics.Canvas; import Matrix = android.graphics.Matrix; import RectF = android.graphics.RectF; import Drawable = android.graphics.drawable.Drawable; import TextUtils = android.text.TextUtils; import Log = android.util.Lo...
the_stack
import isEqual from 'lodash-es/isEqual'; import FilterFilled from '@ant-design/icons-vue/FilterFilled'; import Button from '../../../button'; import Menu from '../../../menu'; import Checkbox from '../../../checkbox'; import Radio from '../../../radio'; import Dropdown from '../../../dropdown'; import Empty from '../.....
the_stack
import * as express from 'express'; export type GenerateMessageMethod = () => string; export interface ErrorConstructor { new (...params: any[]): Error; } /** * Modifies an error's stack to include the current stack and logs it to * stderr. Useful for logging errors received by a callback. * * @param err ...
the_stack
// ReadLaterUI is a Mojo WebUI controller and therefore needs mojo defined to // finish running its tests. import 'chrome://resources/mojo/mojo/public/js/mojo_bindings_lite.js'; import 'chrome://read-later.top-chrome/side_panel/bookmarks_list.js'; import {BookmarkFolderElement, FOLDER_OPEN_CHANGED_EVENT} from 'chrome...
the_stack
import { expect } from 'chai'; import { backtest } from '../../lib/backtest'; import { DataFrame, IDataFrame } from 'data-forge'; import { IBar } from '../../lib/bar'; import { IStrategy, EnterPositionFn, IEntryRuleArgs, ExitPositionFn, IExitRuleArgs, TradeDirection } from '../../lib/strategy'; import * as moment from ...
the_stack
import {assert} from 'chai'; import {activeElement, activeElementAccessibleName, activeElementTextContent, getBrowserAndPages, tabBackward, tabForward, waitForFunction} from '../../shared/helper.js'; import {describe, it} from '../../shared/mocha-extensions.js'; import {focusConsolePrompt, getConsoleMessages, getStruc...
the_stack
import * as React from 'react'; import styles from './TeamsCreator.module.scss'; import { ITeamsCreatorProps } from './ITeamsCreatorProps'; import { TextField, ITextField } from 'office-ui-fabric-react/lib/TextField'; import { Checkbox } from 'office-ui-fabric-react/lib/Checkbox'; import { Dropdown, IDropdownOption } f...
the_stack
import './cluster.js'; import './shared_style.js'; import 'chrome://resources/cr_elements/cr_button/cr_button.m.js'; import 'chrome://resources/cr_elements/cr_dialog/cr_dialog.m.js'; import 'chrome://resources/cr_elements/cr_lazy_render/cr_lazy_render.m.js'; import 'chrome://resources/cr_elements/cr_toast/cr_toast.js';...
the_stack
import {describe, beforeEach, it} from 'mocha'; // eslint-disable-next-line node/no-extraneous-import import {Octokit} from '@octokit/rest'; import assert from 'assert'; // eslint-disable-next-line @typescript-eslint/no-var-requires const LoggingOctokitPlugin = require('../src/logging/logging-octokit-plugin.js'); inte...
the_stack
import {OnDestroy, OnInit} from "@angular/core"; import {StateService} from "@uirouter/angular"; import * as angular from "angular"; import {empty} from "rxjs/observable/empty"; import {of} from "rxjs/observable/of"; import {timer} from "rxjs/observable/timer"; import {catchError} from "rxjs/operators/catchError"; impo...
the_stack
import { html, render } from 'lit-html'; import ifNonNull from '../../src/globals/directives/if-non-null'; import '../../src/components/file-uploader/file-uploader'; import '../../src/components/file-uploader/drop-container'; import { FILE_UPLOADER_ITEM_STATE } from '../../src/components/file-uploader/file-uploader-ite...
the_stack
import http from './http'; import req from './request'; import { TASK_TYPE_ENUM } from '@/constant'; export default { // 获取类型数据源 getTypeOriginData(params: any) { return http.post(req.GET_TYPE_ORIGIN_DATA, params); }, listTablesBySchema(params: any) { return http.post(req.LIST_TABLE_BY_SCHEMA, params); }, // ...
the_stack
import * as bitcoinjs from 'bitcoinjs-lib' import * as crypto from 'crypto' import { decodeToken, TokenSigner, TokenVerifier } from 'jsontokens' import { ecPairToHexString, ecPairToAddress } from 'blockstack' import { ValidationError, AuthTokenTimestampValidationError } from './errors' import { logger } from './utils' ...
the_stack
import { DirectiveHook, App, DirectiveBinding, ObjectDirective } from 'vue'; export interface ScrollBarElement extends HTMLElement { $scroll?: CustomScrollBar onmousewheel?: EventListener, mouseenterEvent?: EventListener, mouseleaveEvent?: EventListener } export interface ScrollBarOptions { direction: 'x' | ...
the_stack
export const replayScenarios = [ { incomingActivities: [ { // type: 'conversationUpdate', id: '1', }, { id: 'bot2a', replyToId: 'act-2', }, { id: 'bot2b', replyToId: 'act-2', }, { id: 'act-2', }, { ...
the_stack
import * as React from "react"; import { Tabs, Tab, InputGroup, Classes, TabId } from "@blueprintjs/core"; import { Nullable, Undefinable, IStringDictionary } from "../../../shared/types"; import { Editor } from "../editor"; import { AbstractAssets, IAbstractAssets, IAssetComponentItem } from "../assets/abstrac...
the_stack
import { EyeeyeCatcherCardComponent } from './components/eyeeye-catcher-card/eyeeye-catcher-card.component'; import { LoggerInstance } from './../chat21-core/providers/logger/loggerInstance'; import { TiledeskAuthService } from './../chat21-core/providers/tiledesk/tiledesk-auth.service'; import { AppStorageService } fr...
the_stack
'use strict'; import * as angular from 'angular'; import { ChoicefieldType } from './choicefieldTypeEnum'; describe('choicefieldDirective <uif-choicefield />', () => { beforeEach(() => { angular.mock.module('officeuifabric.components.choicefield'); }); it('should render correct html', inject(($compile: Fu...
the_stack
import { conststring, constsymbol, numstr } from "@esfx/type-model"; import * as structType from "./structType"; import * as primitives from "./primitives"; /** * Represents a primitive struct type. */ export interface StructPrimitiveType<K extends string = string, T extends number | bigint = number | bigint>...
the_stack
import { clearSelection } from 'mobiledoc-kit/utils/selection-utils' import { forEach, contains } from 'mobiledoc-kit/utils/array-utils' import KEY_CODES from 'mobiledoc-kit/utils/keycodes' import { DIRECTION, MODIFIERS } from 'mobiledoc-kit/utils/key' import { isTextNode } from 'mobiledoc-kit/utils/dom-utils' import {...
the_stack
import { IonicNativePlugin } from '@ionic-native/core'; /** * @name HMSNearby * @description * The Cordova Nearby Plugin enables communication between Huawei Nearby Kit SDK and Cordova platform. This plugin exposes all functionality provided by Huawei Nearby Kit SDK. * * @usage * ```typescript * import { HMSNear...
the_stack
export enum TYPES { "BYTE" = "BYTE", "UNSIGNED_BYTE" = "UNSIGNED_BYTE", "SHORT" = "SHORT", "UNSIGNED_SHORT" = "UNSIGNED_SHORT", "FLOAT" = "FLOAT", } export interface AttributeInfo { attribute: Attribute; size: Attribute["size"]; type: Attribute["type"]; normalized: Attribute["normal...
the_stack
import path = require('path'); import fs = require('graceful-fs'); import mkdirp = require('mkdirp'); import lockfile = require('proper-lockfile'); import { JspmError, JspmUserError, bold } from '../utils/common'; export type OrderingValue = string | [string, OrderingArray]; export interface OrderingArray extends Arra...
the_stack
import React, { CSSProperties, useState } from 'react'; import JSONPretty from 'react-json-pretty'; import { Dropdown, getTheme, IColumn, Icon, IconButton, IDropdownOption, Pivot, PivotItem, ScrollablePane, ScrollbarVisibility, Stack, Text } from '@fluentui/react'; import { useQuery, useQueryClient } from 'react-query'...
the_stack
import * as vscode from 'vscode'; import { PXML, PXMLMember, notifications, getFileListFromPXML, zipFiles, getVSCodeSetting, getFilteredFileList, dxService, } from '../services'; import * as path from 'path'; import klaw = require('klaw'); import { getAuraNameFromFileName, outputToString, getAnyTTMetada...
the_stack
import * as React from 'react'; import styles from '../../webparts/siteDesigns/components/SiteDesigns.module.scss'; import { IAddSiteScriptToSiteDesignProps } from './IAddSiteScriptToSiteDesignProps'; import { escape } from '@microsoft/sp-lodash-subset'; import spservice from '../../services/spservices'; import { panel...
the_stack
import * as assert from "power-assert"; import fs = require("fs"); import path = require("path"); import childProcess = require("child_process"); import stream = require("stream"); import mkdirp = require("mkdirp"); import lib = require("../lib/"); function collectFileName(dirName: string): string[] { let fileNa...
the_stack
import {Group, Intersection, Material as ThreeMaterial, Mesh, MeshStandardMaterial, Object3D, Raycaster} from 'three'; import {CorrelatedSceneGraph, GLTFElementToThreeObjectMap, ThreeObjectSet} from '../../three-components/gltf-instance/correlated-scene-graph.js'; import {GLTF, GLTFElement, Material as GLTFMaterial} f...
the_stack
import { BigNumber } from "bignumber.js"; import memoize from "lodash/memoize"; import last from "lodash/last"; import find from "lodash/find"; import type { AccountLikeArray, AccountLike, Account, BalanceHistory, AccountPortfolio, CurrencyPortfolio, PortfolioRange, BalanceHistoryWithCountervalue, Por...
the_stack
import 'chrome://resources/cr_elements/cr_button/cr_button.m.js'; import 'chrome://resources/cr_elements/cr_dialog/cr_dialog.m.js'; import 'chrome://resources/cr_elements/cr_input/cr_input.m.js'; import 'chrome://resources/cr_elements/shared_style_css.m.js'; import 'chrome://resources/cr_elements/shared_vars_css.m.js';...
the_stack
import * as dbcontributions from '../../db/contributions'; import * as dbgroups from '../../db/groups'; import * as dbprojects from '../../db/projects'; import * as dbusers from '../../db/users'; export async function listGroups(req) { const groupList = await dbgroups.listGroups(); for (const group of groupList) {...
the_stack
"use strict"; // uuid: ff759cf5-29fb-4cb9-a460-8b70e6bec95a // ------------------------------------------------------------------------ // Copyright (c) 2018 Alexandre Bento Freire. All rights reserved. // Licensed under the MIT License+uuid License. See License.txt for details // -------------------------------------...
the_stack
import { Map as ImmutableMap } from 'immutable'; import { Selector } from 'reselect'; import { useEffect, useCallback, useMemo, useRef } from 'react'; import { useDispatch, useMappedState } from 'redux-react-hook'; import { Action } from '~redux/index'; import { DataObject, KeyedDataObject, RemoveFirstFromTuple,...
the_stack
export namespace iTunes { // Default Application export interface Application {} // Class /** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run json-schema-to-typescript to regenerate this file. */ ...
the_stack
import * as angular from 'angular'; import {moduleName} from "./module-name"; import PivotTableUtil from "./PivotTableUtil"; import * as _ from "underscore"; import * as moment from "moment"; import './module-require'; import 'pivottable-c3-renderers'; import '../../../bower_components/c3/c3.css'; import OpsManagerRest...
the_stack
import angular from 'angular' import moment from 'moment' export default function ($scope, $timeout, $log, ganttUtils, GanttObjectModel, DemoService, ganttMouseOffset, ganttDebounce) { 'ngInject' let objectModel let dataToRemove // Event handler let logScrollEvent = function (left, date, direction) { ...
the_stack
import { Component, ContentChild, EventEmitter, forwardRef, Injector, Input, OnDestroy, OnInit, Output, Renderer2, TemplateRef, } from '@angular/core'; import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms'; import { Subscription, Observable, of } from 'rxjs'; import { catchErr...
the_stack
import { fabric } from "fabric"; import { Button, Tooltip, Modal, InputNumber, Upload, Input } from 'antd'; import { nanoid } from 'nanoid'; import { history } from 'umi'; import { ArrowLeftOutlined, FontSizeOutlined, PictureOutlined, LineOutlined, BorderOutlined, ArrowUpOutlined } from '@ant-design/icons...
the_stack
import { VNode } from 'vue'; import * as Vue from 'vue-tsx-support'; import Component from 'vue-class-component'; import { Prop, Provide, Watch } from 'vue-property-decorator'; import classNames from 'classnames'; import _Hls from 'hls.js'; import Audio, { ReadyState, events } from '@moefe/vue-audio'; import Store from...
the_stack
import Adapt, { FinalDomElement, handle, PrimitiveComponent, Sequence, useMethod } from "@adpt/core"; import { mochaTmpdir, writePackage } from "@adpt/testutils"; import execa from "execa"; import fs from "fs-extra"; import { uniq } from "lodash"; import path from "path"; import should from "should"; import { createAct...
the_stack
import * as dom5 from 'dom5'; import * as fuzzaldrin from 'fuzzaldrin'; import {Document, Element, isPositionInsideRange, ParsedHtmlDocument, SourcePosition} from 'polymer-analyzer'; import {CssCustomPropertyAssignment, CssCustomPropertyUse} from 'polymer-analyzer/lib/css/css-custom-property-scanner'; import {ClientCap...
the_stack
import { Stack } from "@aws-cdk/core"; import { IotToSqs, IotToSqsProps } from "../lib"; import '@aws-cdk/assert/jest'; import * as sqs from '@aws-cdk/aws-sqs'; import * as kms from '@aws-cdk/aws-kms'; // -------------------------------------------------------------- // Pattern deployment with default props // -------...
the_stack
import ClusterSchema, { IColumnDef } from '@/models/cassandra/ClusterSchema'; import QueryTokenizer from './CassQueryTokenizer'; const uppercaseRegex = new RegExp(/[A-Z]+/); const quotedRegex = new RegExp(/^"(.*)"$/); interface ISuggestion { name: string; value: string; score: number; meta: any; icon: strin...
the_stack
import { ifElse } from "../App/Utilities/ifElse" import { pipe } from "../App/Utilities/pipe" import { ident } from "./Function" import { fmap, fmapF } from "./Functor" import { Internals } from "./Internals" import { cons, consF, List } from "./List" import { fromJust, isJust, Just, Maybe, Nothing } from "./Maybe" imp...
the_stack
import type { OffsetRange, Token, VDocumentFragment, VElement, VExpressionContainer, VStyleElement, VText, } from "../ast" import { ParseError } from "../ast" import { getLang, getOwnerDocument } from "../common/ast-utils" import { debug } from "../common/debug" import { insertError } from "...
the_stack
import React, { useCallback, useState } from "react"; import { Icon } from "@webiny/ui/Icon"; import { cloneDeep } from "lodash"; import { Center, Vertical, Horizontal } from "../../DropZone"; import Draggable from "../../Draggable"; import EditFieldDialog from "./EditFieldDialog"; import Field from "./Field"; import {...
the_stack
import Taro, { Component, Config } from "@tarojs/taro"; import { View, Image, Text, ScrollView, Button, Picker } from "@tarojs/components"; import "./index.less"; import { AtTabs, AtTabsPane, AtIcon } from 'taro-ui' import { connect } from '@tarojs/redux'; import { createOrders, userInfo, addressToLngAndLat, di...
the_stack
import { tsst, the } from 'tsst-tycho'; import { Obj, List } from '../src/util'; import { KeyedSafe, Keyed, ObjectHasKey, HasKey, ObjectHasKeySafe, ObjectProp, Omit, Overwrite, IntersectValueOf, IntersectionObjectKeys, IntersectionObjects, ObjectValsToUnion, ObjectHasStringIndex, Simplify, Swap, Jsonified, DeepPartial,...
the_stack
import 'react-toastify/dist/ReactToastify.css' import { CardContent } from '@material-ui/core' import { Map } from 'immutable' import { ToastContainer, toast } from 'react-toastify' import { connect } from 'react-redux' import { css } from 'glamor' import { fade } from '@material-ui/core/styles/colorManipulator' impor...
the_stack
import * as chai from 'chai' import * as chaiAsPromised from 'chai-as-promised' import 'mocha' import { SerializerV3 as Serializer } from '../../src' import { InvalidHexString, InvalidSchemaType, InvalidString } from '../../src/errors' import { IACMessageDefinitionObjectV3 as IACMessageDefinitionObject } from '../../s...
the_stack
import { CSSObject, UseThemeFunction } from '@theme-ui/css' import { Platform } from 'react-native' import { defaultBreakpoints } from './breakpoints' import { SUPPORT_FRESNEL_SSR } from '../utils/deprecated-ssr' import { DripsyFinalTheme } from '../declarations' import type { SxProp } from './types' import { get } fr...
the_stack
import { AssetConfigurationMap } from "@akashic/game-configuration"; import { AssetManager, AssetManagerLoadHandler, AudioAssetConfigurationBase, GameConfiguration, Asset, ScriptAsset, AudioAsset, ImageAsset, ImageAssetConfigurationBase } from ".."; import { customMatchers, Game, Surface } from "./helpers"; e...
the_stack
import * as React from "react" import { connect, ConnectedProps } from "react-redux" import { get } from "lodash" import { Link, RouteComponentProps } from "react-router-dom" import { Card, Spinner, Classes, Button, Icon, Tabs, Tab, Tooltip, Callout, Intent, } from "@blueprintjs/core" import Request...
the_stack
import * as querystring from 'querystring'; import * as assert from 'assert'; import * as path from 'path'; import { BrowserWindow, dialog, nativeImage, app, net } from 'electron'; import type { Menu } from 'electron'; import windowState = require('electron-window-state'); import { TweetAutoLinkBreaker, UNLINK_ALL_CONF...
the_stack
const { ccclass, property } = cc._decorator; import { CacheArray, Resetable } from "./CacheArray"; import { CatmullRomSpline, Knot, Marker, SplineParameterization } from "./CatmullRomSpline" import { SplineTrailRendererAssembler } from "./SplineTrailAssembler"; export class ResetableVec2 extends cc.Vec2 implements Res...
the_stack
import * as React from 'react' import { useDispatch } from 'react-redux' import cx from 'classnames' import { Icon, InputField, OutlineButton, Tooltip, useConditionalConfirm, useHoverTooltip, TOOLTIP_TOP, TOOLTIP_TOP_END, } from '@opentrons/components' import { i18n } from '../../../localization' import...
the_stack
import { appendStmt, ArgExpr, removeStmt, replaceStmt, stmtExists, } from "analysis/SubstanceAnalysis"; import { prettyStmt, prettySubNode } from "compiler/Substance"; import { dummyIdentifier } from "engine/EngineUtils"; import { ApplyPredicate, Bind, SubExpr, SubProg, SubStmt, } from "types/substa...
the_stack
import { MonitoringDB } from "@src/constants"; import { Dashboard, UnitEnum } from "@src/models"; export const RemoteReplicationDashboard: Dashboard = { rows: [ { panels: [ { chart: { title: "Replica Lag", config: { type: "line" }, targets: [ ...
the_stack
import { BaseTableProps, collectNodes, features, isLeafNode, makeRecursiveMapper, TablePipeline, } from 'ali-react-table'; import cx from 'classnames'; import React from 'react'; import styled from 'styled-components'; import { omit } from '../../utils'; import { Pagination, PaginationProps } from '../pagin...
the_stack
import { java } from 'j4ts/j4ts'; import { Token } from './Token'; import { SimpleCharStream } from './SimpleCharStream'; import { SyntaxCheckerTokenManager } from './SyntaxCheckerTokenManager'; import { ParseException } from './ParseException'; import { SyntaxCheckerConstants } from './SyntaxCheckerConstants'; /** *...
the_stack
import * as triplesec from 'triplesec'; import * as elliptic from 'elliptic'; import * as webCryptoPolyfill from '@peculiar/webcrypto'; import { encryptECIES, decryptECIES, getHexFromBN, signECDSA, verifyECDSA, encryptMnemonic, decryptMnemonic, } from '../src'; import { bytesToHex, ERROR_CODES, getGlobalS...
the_stack
import * as lcs from "./lcs"; import type { Delta } from "./types"; type Input = unknown; export type ObjectHashFunction = (object: object, index?: number) => string; type Context = { left: Input; leftType?: string; leftIsArray?: boolean; right: Input; rightType?: string; rightIsArray?: boolean; result...
the_stack
import { readFixtureJSON } from './helpers' import { DEVICE_MODELS, StreamDeck } from '../' import { DeviceModelId, OpenStreamDeckOptions } from '../models' import { DummyHID } from './hid' import { EncodeJPEGHelper } from '../models/base' function openStreamDeck(path: string, deviceModel: DeviceModelId, userOptions?:...
the_stack
import { AddItemsEventData, AddItemsResultSummary, UserStorage, ShareKeyType, Notification, NotificationType, NotificationSubscribeEventData, InvitationStatus, SpaceUser } from '@spacehq/sdk'; import { tryParsePublicKey } from '@spacehq/utils'; import { expect, use } from 'chai'; import * as chaiAsPromi...
the_stack
/// <reference path="../bws/packer/API.ts" /> /** * <p> A set of programs that calculate the best fit for boxes on a pallet migrated from language C. </p> * * <ul> * <li> Original Boxologic: https://github.com/exad/boxologic </li> * </ul> * * @author Bill Knechtel, <br> * Migrated and Refactored by Jeong...
the_stack
export default { // 菜单 'Home': '主页', 'Nodes': '节点', 'Node Detail': '节点详情', 'Spiders': '爬虫', 'Spider Detail': '爬虫详情', 'Task': '任务', 'Tasks': '任务', 'Task Detail': '任务详情', 'Schedules': '定时任务', 'Deploys': '部署', 'Sites': '网站', 'Setting': '设置', 'Project': '项目', 'Spider Market': '爬虫市场', // 标签 ...
the_stack
import * as d3 from "d3"; import { assert } from "chai"; import * as Plottable from "../../src"; import * as TestMethods from "../testMethods"; describe("Interactions", () => { describe("Click Interaction", () => { const DIV_WIDTH = 400; const DIV_HEIGHT = 400; let clickedPoint: Plottable.Point; ...
the_stack
import * as coreClient from "@azure/core-client"; /** Represents the SKU name and Azure pricing tier for Analysis Services resource. */ export interface ResourceSku { /** Name of the SKU level. */ name: string; /** The name of the Azure pricing tier to which the SKU applies. */ tier?: SkuTier; /** The number...
the_stack
import { match, not, Pattern, select, when, __ } from '../src'; import { Equal, Expect } from '../src/types/helpers'; import { Option, some, none, BigUnion, State, Event } from './utils'; describe('large exhaustive', () => { // prettier-ignore type LargeObject = { a1: number; b1: number; c1: number; d1: number...
the_stack
import Base from '~/src/command/base' import MBlog from '~/src/model/mblog' import MblogUser from '~/src/model/mblog_user' import fs from 'fs' import path from 'path' // import path from 'path' // import jsPDF from '~/src/library/pdf/jspdf.node.js' // import { BrowserWindow } from 'electron' // import CommonUtil from '...
the_stack
import { observable } from 'mobx' import { observer } from 'mobx-react' import * as React from 'react' import * as ReactDOM from 'react-dom' import * as xmldom from 'xmldom' import * as xpath from 'xpath' import { Paper } from '../api/document' import '../App.css' import { pageElementModal } from '../arxiv_page' import...
the_stack
import { HttpResponse, HttpEvent } from '@angular/common/http'; import { Observable } from 'rxjs';import { HttpOptions } from '../../types'; import * as models from '../../models'; export interface ReposAPIClientInterface { /** * Arguments object for method `deleteReposOwnerRepo`. */ deleteReposOwnerRepoPara...
the_stack
* @typedef PinataMetadataFilter * @property {string} [name] * @property {Record<string, {value: string, op: string}>} keyvalues */ /** * @typedef {{id: string, desiredReplicationCount: number}} PinataPinPolicyItem */ /** * @typedef PinataPinByHashOptions * @property {string[]} [hostNodes] * @property {{regions:...
the_stack
export namespace GamelistDB { interface GameEntryRomName { u06: string; } interface GameEntryMemoryPositions { /** * example: { dataStartOffset: 0x1C61, dataEndOffset: 0x1C80, checksumOffset: 0x1C81, checksum: '16bit', name: 'HI_SCORE' }, */ checksum: object[]; /** * example: { off...
the_stack
import { artifacts } from "@connext/contracts"; import { Address, AssetId, ContractAddresses, HexString, ILoggerService, IStoreService, multiAssetMultiPartyCoinTransferEncoding, MultiAssetMultiPartyCoinTransferInterpreterParams, NetworkContext, OutcomeType, PureActionApps, SingleAssetTwoPartyCoi...
the_stack
import React, { ForwardRefRenderFunction, useEffect, useRef, useState } from 'react' import clsx from 'clsx' import { capitalizeFirstLetter, humanFriendlyDuration, pluralize } from 'lib/utils' import { PropertyKeyInfo } from 'lib/components/PropertyKeyInfo' import { Button, ButtonProps, Popover } from 'antd' import { A...
the_stack
import { GraphQLResolveInfo, GraphQLScalarType, GraphQLScalarTypeConfig } from 'graphql'; export type Maybe<T> = T | null; export type RequireFields<T, K extends keyof T> = { [X in Exclude<keyof T, K>]?: T[X] } & { [P in K]-?: NonNullable<T[P]> }; /** All built-in and custom scalars, mapped to their actual values */ ex...
the_stack
import { createElement } from "@syncfusion/ej2-base"; import { ProgressButton } from "../src/progress-button/progress-button"; import { profile , inMB, getMemoryProfile } from './common.spec'; describe('Progress Button', () => { beforeAll(() => { const isDef: any = (o: any) => o !== undefined && o !== null...
the_stack
import { Signer } from "@ethersproject/abstract-signer"; import { ContractTransaction, ContractFactory, Overrides } from "@ethersproject/contracts"; import { Wallet } from "@ethersproject/wallet"; import { Decimal } from "@liquity/lib-base"; import { _LiquityContractAddresses, _LiquityContracts, _LiquityDeploym...
the_stack
import { extractPartitionKey, PartitionKeyDefinition } from "@azure/cosmos"; import * as ko from "knockout"; import Q from "q"; import * as Constants from "../../Common/Constants"; import { getErrorMessage, getErrorStack } from "../../Common/ErrorHandlingUtils"; import * as Logger from "../../Common/Logger"; import { ...
the_stack
import { testTokenization } from '../test/testRunner'; testTokenization('css', [ // Skip whitespace [ { line: ' body', tokens: [ { startIndex: 0, type: '' }, { startIndex: 6, type: 'tag.css' } ] } ], // CSS rule // body { // margin: 0; // padding: 3em 6em; // font-family: tahom...
the_stack
namespace ts { function editFlat(position: number, deletedLength: number, newText: string, source: string) { return source.substring(0, position) + newText + source.substring(position + deletedLength, source.length); } function lineColToPosition(lineIndex: server.LineIndex, line: number, col: ...
the_stack
const AGENT_LIST = [ { // empty agent "name": "empty agent", "ua": "", "os": { "name": "unknown", "version": "-1", }, "browser": { "name": "unknown", "version": "-1", }, "isMobile": false, }, { ...
the_stack
import { strict as assert } from "assert"; import * as path from "path"; import * as vs from "vscode"; import { DebuggerType, VmService } from "../../../shared/enums"; import { fsPath } from "../../../shared/utils/fs"; import { DartDebugClient } from "../../dart_debug_client"; import { createDebugClient, ensureVariable...
the_stack
import { SpriteFrame } from "../../cocos/2d/assets/sprite-frame"; import { ImageAsset } from "../../cocos/core"; import { AssetManager, assetManager, loader, resources } from "../../cocos/core/asset-manager"; import { js } from "../../cocos/core/utils/js"; import { TestSprite } from "./common-class"; describe('asset-m...
the_stack
import { ServiceClientOptions, RequestOptions, ServiceCallback, HttpOperationResponse } from 'ms-rest'; import * as models from '../models'; /** * @class * Features * __NOTE__: An instance of this class is automatically created for an * instance of the FeatureClient. */ export interface Features { /** ...
the_stack
import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types"; /** * <p>The number of active statements exceeds the limit.</p> */ export interface ActiveStatementsExceededException extends __SmithyException, $MetadataBearer { name: "ActiveStatementsExceededException"; $...
the_stack
import { LayoutBase } from '../layout-base'; import { View, CSSType } from '../../core/view'; import { CssProperty, ShorthandProperty, makeParser, makeValidator, unsetValue } from '../../core/properties'; import { Style } from '../../styling/style'; export type Basis = 'auto' | number; export const ORDER_DEFAULT = 1;...
the_stack
import classnames from 'classnames' import React, { FormEventHandler, RefObject } from 'react' import { Button } from '@sourcegraph/wildcard' import { ErrorAlert } from '../../../../../../../../components/alerts' import { LoaderButton } from '../../../../../../../../components/LoaderButton' import { FormGroup } from ...
the_stack
import chalk from 'chalk'; import * as a from '../src/parser/ast'; import { tokenize } from '../src/lexer/'; import { parse } from '../src/parser/'; import { desugarBefore } from '../src/desugarer/'; import { Compose } from '../src/util'; import { checkExprType, checkBlockType, assertType, typeCheck, } from '.....
the_stack