text stringlengths 3.3k 33k |
|---|
<reponame>microsoft/powerquery-parser
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { NodeIdMap, NodeIdMapIterator, NodeIdMapUtils, XorNodeUtils } from "..";
import { MapUtils, TypeScriptUtils } from "../../../common";
import { Ast } from "../../../language";
import { ParseContext }... |
import * as React from 'react'
import * as Kb from '../../common-adapters'
import * as Styles from '../../styles'
type Props = {
canDelete: boolean
canEdit: boolean
channelName?: string
chatDisabled: boolean
devicename: string
expanded: boolean
lastEditTime: string
lastEditUser: string
lastEditUserFo... |
<gh_stars>0
/**
* Created by laco on 14/12/26.
*/
import toWideSign from 'jaco/fn/toWideSign';
import {tokenize} from "kuromojin";
import type {KuromojiToken} from "kuromojin";
import {PCFGError} from "./pcfg_error";
import Rule = require("./rule");
import PcfgNode = require("./pcfg_node")
import RuleTree = require... |
<gh_stars>0
/* istanbul ignore file */
/* eslint-disable */
import SerialPort from 'serialport';
import {EventEmitter} from 'events';
import {Debug} from '../debug';
import SerialPortUtils from "../../serialPortUtils";
import SocketPortUtils from "../../socketPortUtils";
import net from "net";
import {Queue, Wait} fro... |
/// <reference lib="dom" />
import * as fs from "fs";
import { Device } from "@siteimprove/alfa-device";
import { Document } from "@siteimprove/alfa-dom";
import {
Cookie,
Header,
Headers,
Request,
Response,
} from "@siteimprove/alfa-http";
import { Iterable } from "@siteimprove/alfa-iterable";
import { Map... |
<filename>libs/wizard/src/lib/shared/store/wizard.state.service.ts
import { Injectable } from '@angular/core';
import { Wizard } from '../../wizard.models';
import { BehaviorSubject, combineLatest } from 'rxjs';
import { take, map, filter, debounceTime, tap } from 'rxjs/operators';
import { Router } from '@angular/rout... |
<reponame>roland-reed/nanachi-cli<filename>src/commands/build/Build.ts
import LogService from '@services/Log';
import customizedReactFileNames from '@shared/customizedReactFileNames';
import targetExtensions from '@shared/targetExtensions';
import axios from 'axios';
import chalk from 'chalk';
import chokidar from 'cho... |
import { isFunction, each, upperFirst, mix, groupToMap, isObject, flatten } from '@antv/util';
import Selection, { SelectionState } from './selection';
import * as Adjust from '../../adjust';
import { toTimeStamp } from '../../util/index';
import { GeomType, GeometryProps } from './interface';
import AttrController fro... |
<reponame>dschaller/clutch
import type { clutch as IClutch } from "@clutch-sh/api";
import type { ClutchError } from "@clutch-sh/core";
import _ from "lodash";
import {
deriveSwitchStatus,
exclusiveProjectDependencies,
PROJECT_TYPE_URL,
removeMissingProjects,
updateGroupstate,
} from "./helpers";
import type... |
<gh_stars>1-10
import { Time } from "@clarity-types/core";
import { BooleanFlag, Constant, Dimension, Metadata, MetadataCallback, Metric, Session, User, Setting } from "@clarity-types/data";
import * as core from "@src/core";
import config from "@src/core/config";
import hash from "@src/core/hash";
import * as dimensio... |
import { Component, OnInit, TemplateRef, ViewChild } from '@angular/core';
import { MatDialog } from '@angular/material/dialog';
import { ActivatedRoute, Router } from '@angular/router';
import { marker as _ } from '@biesbjerg/ngx-translate-extract-marker';
import { PblColumnDefinition } from '@pebula/ngrid';
import {... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { BigNumber, createBigNumber } from 'utils/create-big-number';
import { BUY, MAX_BULK_ORDER_COUNT, PUBLICTRADE, ZERO } from 'modules/common/constants';
import { LiquidityOrder, CreateLiquidityOrders } from 'modules/types';
import { ThunkDispatch } from 'redux-thunk';
import { Action } from 'redux';
import { App... |
import React, { useEffect, useRef, useState } from "react"
import './reactive-editor.view.scss'
import { Controlled as CodeMirror } from 'react-codemirror2'
import 'codemirror/lib/codemirror.css'
import 'codemirror/mode/markdown/markdown'
import Popup from "../../utils/popup"
import RDConvertor from "./converter"
i... |
import {
Error as ErrorMsg,
GroupAgg,
HandleData, Histogram,
Message, ModifyStream,
QuantileBin, Sample, SampleN,
Select,
TableOp
} from "../data/messages";
import {DataType, DoubleType, LongType, NumericTypes, StructField, StructType, UnsafeLongType} from "../data/data_type";
import {DataRe... |
<reponame>JyothiMeda/commerce-sdk
/*
* Copyright (c) 2019, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
import fs from "fs-extra";
import path from "path";
import... |
import * as ADD from './ADD';
import * as ALTER from './ALTER';
import * as CREATE from './CREATE';
import * as CREATERULE from './CREATERULE';
import * as DECRBY from './DECRBY';
import * as DEL from './DEL';
import * as DELETERULE from './DELETERULE';
import * as GET from './GET';
import * as INCRBY from './INCRBY';
... |
<filename>lib/api-common.ts
import * as types from "./api-types";
function pushCommonFlags(flags: string[], options: types.CommonOptions, isTTY: boolean, logLevelDefault: types.LogLevel): void {
if (options.target) flags.push(`--target=${options.target}`);
if (options.minify) flags.push('--minify');
if (options... |
<filename>shacled-turtle/src/schema/builder/PathDecomposer.ts
import * as AC from "@bruju/automata-composer";
import TermSet from "@rdfjs/term-set";
import * as RDF from "@rdfjs/types";
import { stringToTerm, termToString } from "rdf-string";
import { ns } from "../../namespaces";
// TODO: decide what to do when the a... |
import * as sourceMapSupport from "source-map-support";
import * as Sentry from "@sentry/node";
import * as Tracing from "@sentry/tracing";
import * as path from "path";
import * as fs from "fs";
import * as express from "express";
import { ErrorRequestHandler, Express, NextFunction, Request, Response } from "express";... |
import * as xjs from 'extrajs-dom'
import {Color} from 'extrajs-color'
import {ConfSite as ConfSiteSchema, Hyperlink, Queue} from '../interfaces'
import xSiteTitle from '../tpl/sitetitle.tpl'
import xDirectory from '../tpl/directory.tpl'
import Conference from './Conference.class'
import ConfPage from './ConfPage.cl... |
<filename>src/compile/axis/parse.ts
import {AxisEncode as VgAxisEncode, AxisOrient} from 'vega';
import {Axis, AXIS_PARTS, isAxisProperty, isConditionalAxisValue} from '../../axis';
import {PositionScaleChannel, POSITION_SCALE_CHANNELS} from '../../channel';
import {getFieldOrDatumDef, PositionDatumDef, PositionFieldDe... |
<reponame>ninegua/agent-js<gh_stars>1-10
import { Buffer } from 'buffer/';
import { AnonymousIdentity, Identity } from '../../auth';
import * as cbor from '../../cbor';
import { Principal } from '@dfinity/principal';
import { requestIdOf } from '../../request_id';
import { BinaryBlob, blobFromHex, blobFromUint8Array, J... |
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, OnDestroy } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { TranslateService } from '@ngx-translate/core';
import { SpecificStructuredField } from 'app/core/core-services/model-request-builder.service';
import { Ope... |
/*---------------------------------------------------------
* Copyright (C) Microsoft Corporation. All rights reserved.
*--------------------------------------------------------*/
import os = require('os');
import fs = require('fs');
import net = require('net');
import path = require('path');
import utils = require(... |
<gh_stars>10-100
import test, { Test } from "tape-promise/tape";
import { create } from "ipfs-http-client";
import express from "express";
import bodyParser from "body-parser";
import http from "http";
import type { AddressInfo } from "net";
import { v4 as uuidv4 } from "uuid";
import { IListenOptions, Servers } fro... |
<filename>packages/compiler/src/render3/view/styling.ts
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {ConstantPool} from '../../constant_pool';
import {Ini... |
import { config } from "dotenv";
import * as puppeteer from "puppeteer";
import * as inquirer from "inquirer";
import * as clipboardy from "clipboardy";
config();
void main();
const [_node, _script, arg] = process.argv;
const taxForm = arg === "--form-940" ? "940" : "941";
async function main() {
try {
const b... |
import i18next from 'i18next';
import React, { Component } from 'react';
import { Route, Switch } from 'react-router';
import { DBYear } from '../../../../src/lib/types/database/kara';
import {DBBlacklist} from '../../../../src/types/database/blacklist';
import { PublicPlayerState } from '../../../../src/types/state';... |
<reponame>jsdw/angu.js<filename>src/parser.ts
import { Parser, LibParseError } from './libparser'
import { Expression } from './expression'
import { InternalContext } from './context'
import { ParseError } from './errors'
const TOKEN_START_REGEX = /[a-zA-Z]/
const TOKEN_BODY_REGEX = /[a-zA-Z0-9_]/
const WHITESPACE_REG... |
import * as React from 'react';
import { PureComponent } from 'react';
import * as classNames from 'classnames';
import * as styles from './styles';
import { customCategory } from '../../constants';
import { AvailableCategories, EmojiDescription, EmojiId, EmojiUpload, OnEmojiEvent } from '../../types';
import { conta... |
<filename>packages/mobile/src/web3/saga.ts
import { deriveCEK } from '@celo/utils/src/commentEncryption'
import { getAccountAddressFromPrivateKey } from '@celo/walletkit'
import { generateMnemonic, mnemonicToSeedHex } from 'react-native-bip39'
import * as RNFS from 'react-native-fs'
import { REHYDRATE } from 'redux-per... |
<reponame>goseungduk/visualDS-prototype
import { DSObserver, getExpose } from "@/visual-ds/structure/base";
import { Stack } from "@/visual-ds/structure/stack";
import * as d3 from "d3";
import { D3Renderer, GSelection, Selection } from "./general";
import { makeProps } from "./utils/prop";
import { translate } from ".... |
import IEntity from "./IEntity";
export default class Monster implements IEntity {
id?: number;
filename: string;
name: string;
pic: string;
picBase64: string;
sources: string;
size: string;
type: string;
subtype: string;
alignment: string;
ac: number;
hp: number;
speed: string;
cr: number;... |
import path from 'path';
import fs from 'fs';
import { IIniObject } from 'js-ini/lib/interfaces/ini-object';
import { download } from './request.js';
import { load as loadMetafile, saveMetaFile } from './generate.js';
import {
directoryExists,
gameTitleByAssetFile,
generateAuditPrompt,
thirdPartyDownloa... |
<gh_stars>0
import childProcess from 'child_process';
import * as electron from 'electron';
import fs from 'fs';
import fsx from 'fs-extra';
import mkdirp from 'mkdirp';
import path from 'path';
import { isDevelopment, isWindows, PLUGIN_PATH } from '../common/constants';
import { getTempDir } from '../common/electron-... |
/*
* Copyright 2019 Red Hat, Inc. and/or its affiliates.
*
* 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 a... |
import React from 'react';
import {
ParallaxProps,
BgImageProp,
BgImageSrcSetProp,
BgImageSizesProp,
Parallax as ParallaxClass,
SplitChildrenResultType,
StyleObjectType,
} from '../../@types';
import {
getRelativePosition,
getSplitChildren,
getHasDynamicBlur,
getBlurValue,
... |
import {
action,
RcModuleV2,
state,
watch,
} from '@ringcentral-integration/core';
import { ApiError } from '@ringcentral/sdk';
import { pathOr } from 'ramda';
import { promisedThrottle } from '../../lib/debounce-throttle';
import { Module } from '../../lib/di';
import validateIsOffline from '../../lib/validate... |
<gh_stars>1-10
/*
Copyright 2018 Google LLC
Use of this source code is governed by an MIT-style
license that can be found in the LICENSE file or at
https://opensource.org/licenses/MIT.
*/
import '../_version.js';
type IDBObjectStoreMethods = 'get' | 'count' | 'getKey' | 'getAll' |
'getAllKeys' | 'add' |... |
import { Schema } from '@nrwl/tao/src/shared/params';
import * as path from 'path';
import type {
WorkspaceJsonConfiguration,
NxJsonConfiguration,
} from '@nrwl/devkit';
import {
ItemsWithEnum,
ItemTooltips,
LongFormXPrompt,
Option,
OptionItemLabelValue,
XPrompt,
CliOption,
OptionPropertyDescriptio... |
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/*
* Copyright (C) 2011 Google Inc. All rights reserved.
* Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
* Copyright (C) 2007 <NAME>... |
<filename>src/utils/element.utils.ts
import {
MODEL_CHAIN_PREFIX,
MODEL_KEY,
PSK_CARDINAL_PREFIX,
SKIP_BINDING_FOR_COMPONENTS,
SKIP_BINDING_FOR_PROPERTIES,
VIEW_MODEL_KEY,
} from '../constants';
import {removeChangeHandler, setElementChainChangeHandler, setElementExpressionChangeHandler} from "./model.util... |
<reponame>jontam/flow-builder
import {
IContext,
IResource,
IResourceValue,
IResourceValue as IResourceDefinitionVariantOverModes,
SupportedContentType,
SupportedMode,
} from '@floip/flow-runner'
import {ValidationException} from '@floip/flow-runner/src/domain/exceptions/ValidationException'
import {cloneDe... |
<reponame>josketres/rf-facil-js
import { JuristicPerson, juristicPersonTenDigitsCode } from '../src/juristic-person-tdc-code'
describe('juristic-person ten-digits-code (tdc-code) calculator', () => {
// rule 1
it('should_take_first_letters_from_the_first_three_words_from_legal_name', () => {
expect(fromName('S... |
<reponame>aliyun/alibabacloud-console-chart<gh_stars>10-100
import {
propertyAssign,
getDataIndexColor,
propertyMap,
dataAdapter,
axisX,
axisY,
rectAutoTickCount,
g2Tooltip,
g2Guide,
g2Label,
g2Legend,
g2Style,
g2Factory,
getConsoleConfig,
Utils,
Constants,
g2Size,
} from '@alicloud/co... |
<filename>src/basic-languages/apex/apex.ts
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------... |
import {
ThemedIcon,
ThemedScrollView,
ThemedSectionTitle,
ThemedText,
ThemedTouchableOpacity,
ThemedView
} from '@components/themed'
import { Switch } from '@components/index'
import { WalletAlert } from '@components/WalletAlert'
import { usePrivacyLockContext } from '@contexts/LocalAuthContext'
import { u... |
<reponame>kanurisuresh1/pragati-utrack
import { Component, OnInit, ViewChild} from '@angular/core';
import { MatTableDataSource } from '@angular/material/table';
import { MatSort } from '@angular/material/sort';
import { UtrackService } from '../../../@theme/components/Services/Utrack.service';
import { HeaderInteracto... |
// Loaded from https://dev.jspm.io/npm:jszip@3.5.0/lib/utf8.dew.js
import { dew as _utilsDewDew } from "./utils.dew.js";
import { dew as _supportDewDew } from "./support.dew.js";
import { dew as _nodejsUtilsDewDew } from "./nodejsUtils.dew.js";
import { dew as _GenericWorkerDewDew } from "./stream/GenericWorker.dew.j... |
import {
AccordionPanel,
AccordionPanelProps,
Box,
Image,
List,
Pagination,
Tab,
Tabs,
Text,
} from "grommet"
import * as Icons from "grommet-icons"
import React, { Dispatch, memo, useEffect, useRef, useState } from "react"
import { useDispatch } from "react-redux"
import SetNodeColorButton from "../.... |
/* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* 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 a... |
import {Platform} from "./platform";
import {UserGame} from "./userGame";
import {Contact} from "./contact";
import {orderByCount, formatDate} from "../functions";
export class UserGameFilter extends UserGame {
stats;
platforms: Platform[] = [];
purchasePlaces: string[] = [];
salePlaces: string[] = [... |
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... |
import {
MaidCoin,
NursePart,
CloneNurses,
WETH,
MaidCafe,
TheMaster,
TestLPToken,
TestSushiToken,
TestMasterChef,
MasterCoin
} from "../typechain";
import { ethers } from "hardhat";
import { expect, assert } from "chai";
import { BigNumber, BigNumberish, BytesLike, Contract } f... |
/* eslint "@typescript-eslint/type-annotation-spacing": [2, { "before": true, "after": true }] */
import { flip, ident } from "../../../../Data/Function"
import { fmapF } from "../../../../Data/Functor"
import { flength, fnull, foldr, fromArray, head, List, map, NonEmptyList, notNull } from "../../../../Data/List"
impo... |
/** @jsx jsx **/
import { jsx, css } from "@emotion/core";
import * as React from "react";
import { useState } from "react";
import { BloomApi } from "../utils/bloomApi";
import { Div } from "./l10nComponents";
import theme, { kBloomYellow } from "../bloomMaterialUITheme";
import { ThemeProvider } from "@material-ui/s... |
/*!
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import { CrossOriginAPI } from "./CrossOrigin";
import { DeloserAPI } from "./Deloser";
import { FocusableAPI } from "./Focusable";
import { FocusedElementState } from "./State/FocusedElement";
import { GroupperAPI ... |
import { SpellPF2e } from '@item/spell';
import { OneToTen, ZeroToTen } from '@module/data';
import { groupBy } from '@module/utils';
import { ItemPF2e } from '../base';
import { SlotKey, SpellcastingEntryData } from './data';
export interface SpellcastingSlotLevel {
label: string;
level: ZeroToTen;
uses?:... |
import React, { useState } from "react";
import { Icon } from "@blueprintjs/core";
import { IconNames } from "@blueprintjs/icons";
import {
Container,
CircularProgress,
Typography,
makeStyles,
} from "@material-ui/core";
import { FetchBaseQueryError } from "@reduxjs/toolkit/dist/query";
import differenceBy fro... |
/* eslint-disable no-console */
import path from 'path'
import net from 'net'
import os from 'os'
import { exec } from 'child_process'
import fs from 'fs-extra'
import openBrowser from 'open'
import yargs, { Argv } from 'yargs'
import prompts from 'prompts'
import { blue, bold, cyan, dim, gray, green, underline, yellow... |
import { Badge, Box, BoxProps, Button, Card, CircularProgress, ClickAwayListener, Popper } from "@material-ui/core";
import { makeStyles } from "@material-ui/core/styles";
import { HelpInfo, KeyValueDisplay, Text } from "app/components";
import { ReactComponent as NewLinkIcon } from "app/components/new_link.svg";
impor... |
import * as React from 'react';
import { FormattedMessage, InjectedIntlProps, injectIntl } from 'react-intl';
import { connect, Dispatch } from 'react-redux';
import { RouteComponentProps } from 'react-router';
import NavAlertStripe from 'nav-frontend-alertstriper';
import { BekreftCheckboksPanel } from 'nav-frontend-s... |
<reponame>isabella232/ui5-migration<filename>test/util/whitespace/DiffStringOptimizeStrategyTest.ts
import {DiffStringOptimizeStrategy} from "../../../src/util/whitespace/DiffStringOptimizeStrategy";
import {CustomReporter} from "../testUtils";
const assert = require("assert");
const fs = require("fs");
const rootDir ... |
import { assert } from "console";
import { DefaultMap } from "./helpers";
import { bestOf, mapReduce, maxOf } from "./mapreduce";
import { Component } from "./uml/component";
import { Content, Definition } from "./uml/definition";
import { Line } from "./uml/line";
function _toKey(s: [string, string]): string {
ret... |
import { igBackgroundMap } from "../impact/background-map";
import { wmTileSelect } from "./tile-select";
import { ig } from "../impact/impact";
import { wm } from "./weltmeister";
import { toInt } from "../impact/util";
import { igImage } from "../impact/image";
export class wmEditMap extends igBackgroundMap {
name... |
<reponame>metaflow/breadboard_wiring
/**
* Copyright 2021 Google LLC
*
* 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 re... |
/*
* Copyright (c) 2017 MolQL contributors, licensed under MIT, See LICENSE file for more info.
*
* @author <NAME> <<EMAIL>>
*/
import { sortAsc, UniqueArrayBuilder } from '../../utils/collections'
import { Model } from '../../structure/data'
import Mask from '../../utils/mask'
type AtomSet = number | ArrayAtomSe... |
<filename>src/lambda/vue/samInvokeBackend.ts
/*!
* Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
import * as fs from 'fs-extra'
import * as path from 'path'
import * as vscode from 'vscode'
import * as nls from 'vscode-nls'
import { LaunchConfigurat... |
import React, { useState, useEffect, useRef, forwardRef } from 'react';
import {
useUncontrolled,
useMergedRef,
useDidUpdate,
useScrollIntoView,
useUuid,
} from '@mantine/hooks';
import {
DefaultProps,
MantineSize,
MantineShadow,
extractMargins,
getDefaultZIndex,
} from '@mantine/styles';
import { S... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import * as React from "react";
import { BUTTON_NEUTRAL, BUTTON_PRESSED } from "./cpx/Cpx_svg_style";
import Cpx, { updateSwitch, updatePinTouch } from "./cpx/Cpx";
import Button from "./Button";
import Dropdown from "./Dropdown";
import { CONS... |
import { WSClient, WSClientState } from '../wsclient';
import { JSONMarshaller } from '../../marshaller';
import { Logger, LogLevel } from '../../logger';
import { ClientSocketTransport, IncomingData, OutgoingData } from '../transport';
import { AuthMethod, Authorization } from '../auth';
import {
WebSocketRequest... |
<filename>polygerrit-ui/app/elements/diff/gr-patch-range-select/gr-patch-range-select.ts
/**
* @license
* Copyright (C) 2015 The Android Open Source Project
*
* 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 cop... |
/* 查看升级 */
import * as https from 'https';
import type { RequestOptions } from 'https';
import type { ClientRequest, IncomingMessage } from 'http';
import * as path from 'path';
import semver from 'semver';
import { requireJson } from '@sweet-milktea/utils';
import type Chalk from 'chalk';
import { getChalk } from './u... |
import { fmap } from "../../../../Data/Functor";
import { empty, List, map } from "../../../../Data/List";
import { fromMaybe, Nothing } from "../../../../Data/Maybe";
import { first, fst, Pair, snd } from "../../../../Data/Tuple";
import { IdPrefixes } from "../../../Constants/IdPrefixes";
import { Race } from "../../... |
<filename>src/autorest/app.ts
// load modules from static linker filesystem.
if (process.argv.indexOf("--no-static-loader") === -1 && process.env["no-static-loader"] === undefined) {
require('./static-loader.js').load(`${__dirname}/static_modules.fs`)
}
/*-------------------------------------------------------------... |
import React, {
useEffect,
useState,
useCallback,
useRef,
memo,
FC,
useLayoutEffect,
useMemo,
} from "react";
import { findDOMNode } from "react-dom";
import VirtualScrollerCacheService from "./VirtualScrollerCacheService";
export type VirtualScrollerTargetView = Element | Window;
interface IVirtualSc... |
import { latinToGla } from 'utils/latinToGla';
import { latinToIpa } from 'utils/latinToIpa';
import { normalize } from 'utils/normalize';
import { getCyrillic } from 'utils/getCyrillic';
import { getLatin } from 'utils/getLatin';
import { levenshteinDistance } from 'utils/levenshteinDistance';
import { srGajevic... |
import { fileURLToPath } from './deps.ts';
import { orderedBinary, setNativeFunctions } from './external.js';
orderedBinary.enableNullTermination();
// probably use Deno.build.os
let version = import.meta.url.match(/@([^/]+)\//)?.[1];
//console.log({version});
let libPath = import.meta.url.startsWith('file:') && fileUR... |
/* eslint-disable @typescript-eslint/no-unused-vars */
import jpeg from "jpeg-js";
import path from "path";
import * as pure from "pureimage";
import { LoggerInterface } from "./Logger";
import { KacheInterface } from "./Kache";
import { BaseballStandingsData, Conferences, Divisions, TeamData } from "./BaseballStanding... |
import { BookingElement, defaultBookingElement } from '../BookingScreenComponents/BookingList'
import { CategoryElement, defaultCategoryElement } from '../CategoryScreenComponents/CategoryList'
import moment from 'moment'
import { checkReadExternalStorage, checkWriteExternalStorage, defaultDownloadDir, defaultExportDir... |
import { Event } from './base';
import { Bitmap } from './bitmap';
import { Container } from './container';
/**
* 合成模式
* @see https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation
*/
declare type BlendMode = 'inherit' | 'source-over' | 'source-in' | 'source-out' | 'source... |
/** Background script entry point. */
/* tslint:disable:import-spacing */
import * as proxy_background from "@src/lib/browser_proxy_background"
import * as controller from "@src/lib/controller"
import * as perf from "@src/perf"
import { listenForCounters } from "@src/perf"
import * as messaging from "@src/lib/messag... |
import "./global.css";
import { Grid } from "./Grid";
import { Asteroid } from "./Asteroid";
import { Ship } from "./Ship";
import { Projectile } from "./Projectile";
import { Mass } from "./Mass";
import { isColliding } from "./util";
import { Indicator } from "./Indicator";
import { NumberIndicator } from "./NumberI... |
export class BreathPacer {
private readonly canvas: HTMLCanvasElement;
private readonly ctx: CanvasRenderingContext2D;
private points!: BreathPacerPoint[];
private cfg: BreathPacerConfig;
private running: boolean = false;
private t: number = 0;
private lastInstant: number | null = null;
... |
<gh_stars>0
"use strict";
import * as fs from 'fs-extra';
import { EOL } from 'os';
import * as path from 'path';
import { Stream } from 'stream';
import { Uri } from 'vscode';
import { ArrayUtility } from '../common/arrayUtility';
import { Headers } from '../models/base';
import { RestClientSettings } from '... |
import "planck-js";
import {Credits} from "./Credits";
import {Level} from "./Level";
import {LevelData} from "./LevelData";
import {Screen} from "./Screen";
import {Sfx, Sound} from "./Sfx";
import {Step} from "./Step";
enum State {
WELCOME,
LEVELS,
PLAY,
}
type LevelSelector = () => void;
export interface Me... |
import { THEME_V2, THEME_V3 } from "@artsy/palette-tokens"
import _ from "lodash"
import React, { useContext } from "react"
import { ThemeContext, ThemeProvider } from "styled-components/native"
/**
* All of the config for the Artsy theming system, based on the
* design system from our design team:
* https://www.no... |
// -----------------------------------
// author: Monofuel
// website: badmars.net
// Licensed under included modified BSD license
import * as WebSocket from 'ws';
import * as _ from 'lodash';
import * as http from 'http';
import logger, { DetailedError, WrappedError } from '../logger';
import { saniti... |
import * as React from 'react';
import * as classNames from 'classnames';
import { Formik, Form, FormikValues } from 'formik';
import { Modal } from 'react-bootstrap';
import { TaskMonitor } from 'core';
import { IModalComponentProps, Tooltip } from 'core/presentation';
import { NgReact } from 'core/reactShims';
impor... |
<reponame>jordankanter/polynote
import {a, button, div, h2, iconButton, span, tag, TagElement} from "../tags";
import {
CopyNotebook,
CreateNotebook, DeleteNotebook,
LoadNotebook, RenameNotebook,
RequestNotebooksList,
ServerMessageDispatcher, SetSelectedNotebook
} from "../../messaging/dispatcher";
... |
import {Event, Events} from 'event'
import {Analyser} from '../Analyser'
import {filter} from '../filter'
import {dependency} from '../Injectable'
import {Data} from './Data'
import {SpeedAdjustments} from './SpeedAdjustments'
const MIN_RECAST_TIME = 1500
type AffectsWhichTime =
| 'cast'
| 'recast'
| 'both'
expor... |
<gh_stars>0
import { addressRegex } from '../const/addressRegex';
import { Address } from '../lib/Anchor';
const AtoZ = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
/** letter A-Z */
export type Letter = string;
export type _Unknown = {
top: number;
left: number;
bottom: number;
right: number;
tl: string | Address;
br: ... |
import { HttpClient } from "@angular/common/http";
import { Component, Injectable, OnDestroy, OnInit, ViewChild } from "@angular/core";
import { DataSourceService, IFilters, INovaFilters } from "@nova-ui/bits";
import {
DashboardComponent,
DATA_SOURCE,
IDashboard,
IDrilldownComponentsConfiguration,
... |
/* eslint-disable security/detect-object-injection */
import { FlcssProperties, StyleSheet, Animation } from './types';
// polyfill construct stylesheets
require('construct-style-sheets-polyfill');
const universalStyleSheet = new CSSStyleSheet();
window.addEventListener('DOMContentLoaded', /* istanbul ignore next *... |
import "reflect-metadata";
if (Reflect["_metadataorg"] === undefined) {
Reflect["_metadataorg"] = Reflect["metadata"];
if (Reflect["_metadataorg"] === undefined)
Reflect["_metadataorg"] = null;
}
//@ts-ignore
Reflect["metadata"] = function (o, property, ...args): Function {
return function (ta... |
/**
* Pages that the user can view.
*/
export enum PageName {
ArticlePage = "Article",
ArtistPage = "Artist",
ArtistAuctionResults = "Artist Auction Results",
ArtworkPage = "Artwork page",
AuctionRegistrationPage = "Auction Registration page",
AuctionConfirmBidPage = "Auction Confirm Bid page",
CollectP... |
<filename>src/publisher/types.ts
import {
FiberType,
Message,
TransferCallTrace,
TransferFiberChanges,
} from "common-types";
export * from "common-types";
export type DistributiveOmit<T, K extends keyof T> = T extends any
? Omit<T, K>
: never;
export type ReactInternals = {
reconcilerVersion?: string;
... |
<filename>src/plugins/genshin/module/wish.ts<gh_stars>0
import { scheduleJob } from "node-schedule";
import { updateWish } from "../utils/update";
import { randomInt } from "../utils/random";
import { Redis } from "../../../bot";
interface WishResult {
type: string;
name: string;
rank: number;
times?: number;
}
i... |
import {
assert,
Fn,
ICopy,
IEmpty,
Pair
} from "@thi.ng/api";
import { equivArrayLike } from "@thi.ng/equiv";
import { IRegionQuery, ISpatialMap } from "@thi.ng/geom-api";
import { pointInCenteredBox, testCenteredBoxSphere } from "@thi.ng/geom-isec";
import { Heap } from "@thi.ng/heaps";
import { E... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.