text stringlengths 9.82k 47.8k |
|---|
<reponame>WJ0417/intern-for-design
/**
Copyright 2020 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
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or... |
<filename>src/backend/SD/codeGen.ts
import { sdToTd, interactionType, structureType, loopType } from './util';
import beautify from 'js-beautify';
// import fs = require( "fs" )
// OPT: add TD-directory registration
// OPT: add ajv to check action input
// OPT: replace dataInput with dataInput23 if not set is given
//... |
<reponame>starrohan999/opstrace<filename>test/test-remote/looker/src/metrics/dummyseries.ts
/**
* Copyright 2020 Opstrace, Inc.
*
* 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
*
* ... |
import { DiscordClientWrapper } from '../../DiscordClientWrapper';
import * as Discord from 'discord.js';
import { CommonService as cs } from '../../services/common.service';
import {
SqlServerService as sqlServerService,
SqlServerRegisteryService as sqlServerRegisteryService,
} from '../../services/sql-service... |
<filename>src/handler/utilities/markup.ts
/**
* An enumeration of all the valid Discord timestamp styles.
*/
export enum TimestampStyles {
BOTH_LONG = 'F',
BOTH_SHORT = 'f',
DATE_LONG = 'D',
DATE_SHORT = 'd',
RELATIVE = 'R',
TIME_LONG = 'T',
TIME_SHORT = 't',
}
/**
* Utility to cut messages by bytes a... |
<reponame>Azure/rest-api-specs-scripts<filename>src/utils.ts
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License in the project root for license information.
import * as tsUtils from "./ts-utils";
import * as stringMap from "@ts-common/string-map";
import * as fs... |
/* eslint-disable no-alert */
/* eslint-disable react/no-unescaped-entities */
import React from 'react';
import { Client as Styletron } from 'styletron-engine-atomic';
import { Provider as StyletronProvider } from 'styletron-react';
import { BaseProvider } from 'baseui';
import { Block } from 'baseui/block';
// import... |
<gh_stars>0
import * as yargs from 'yargs';
import * as TypeDoc from 'typedoc';
import * as fse from 'fs-extra';
import path from 'path';
import kebabCase from 'lodash/kebabCase';
import fromPairs from 'lodash/fromPairs';
import { parse as parseDoctrine, Annotation } from 'doctrine';
import { defaultHandlers, parse as ... |
<filename>source/src/controls/orbit.ts
import { gl } from '../core/gl'
import {
EventDispatcher,
Matrix4,
MOUSE,
Object3D,
Quaternion,
Spherical,
TOUCH,
Vector2,
Vector3,
PerspectiveCamera,
OrthographicCamera
} from 'three'
import { PASSIVE } from '../core/constants'
// This set of controls performs o... |
import deindent from '../../utils/deindent';
import { stringify, escapeHTML } from '../../utils/stringify';
import flattenReference from '../../utils/flattenReference';
import isVoidElementName from '../../utils/isVoidElementName';
import validCalleeObjects from '../../utils/validCalleeObjects';
import reservedNames fr... |
/**
* @license
* Copyright 2016 Google Inc.
* 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... |
import fs from 'fs-extra';
import {
restartHidden,
getPhysicalCoreCount,
copyFile,
getAffinityForCoreRanges,
readYamlFile,
} from './utils';
//@ts-ignore
process.on('uncaughtException', async (err, origin) => {
if (err.message.includes('Could not locate the bindings file')) {
await restartHidden();
... |
<reponame>typicode/vscode
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*-------------------------------------... |
import { generateHexAlphaVariants } from './colors'
const space = {
0.5: '0.125rem',
1: '0.25rem',
1.5: '0.375rem',
2: '0.5rem',
2.5: '0.625rem',
3: '0.75rem',
3.5: '0.875rem',
4: '1rem',
5: '1.25rem',
6: '1.5rem',
7: '1.75rem',
8: '2rem',
9: '2.25rem',
10: '2.5rem',
11: '2.75rem',
12: ... |
<reponame>ShmooDude/Ovale
import AceGUI, { AceGUIWidgetCheckBox, AceGUIWidgetDropDown } from "@wowts/ace_gui-3.0";
import Masque, { MasqueSkinGroup } from "@wowts/masque";
import { OvaleBestAction, Element } from "./BestAction";
import { OvaleCompile } from "./Compile";
import { OvaleDebug } from "./Debug";
import { Ov... |
<reponame>DanielElam/rapier3d-node
/* tslint:disable */
/* eslint-disable */
export const memory: WebAssembly.Memory;
export function version(a: number): void;
export function __wbg_rawccdsolver_free(a: number): void;
export function rawccdsolver_new(): number;
export function __wbg_rawintegrationparameters_free(a: num... |
declare namespace CompletersNS {
/**
* only those >= .Default can be used in content
*/
const enum MatchType {
plain = 0,
Default = plain,
emptyResult = 1, // require query is not empty
/** only matches one single engine */
singleMatch = 2,
/**
* must >= singleMatch
*/
s... |
<filename>lib/src/model.ts
import { Instance, cast, types, addDisposer, SnapshotIn } from 'mobx-state-tree'
import { hierarchy, cluster, HierarchyNode } from 'd3-hierarchy'
import { ascending, max } from 'd3-array'
import { FileLocation, ElementId } from '@jbrowse/core/util/types/mst'
import { FileLocation as FileLocat... |
<gh_stars>0
// Copyright 2014 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 required by applicable law or a... |
import KB2, {type OpenDialogOptions, type SaveDialogOptions} from '../../util/electron.desktop'
import MainWindow, {showDockIcon, closeWindows, getMainWindow} from './main-window.desktop'
import * as Electron from 'electron'
import devTools from './dev-tools.desktop'
import installer from './installer.desktop'
import m... |
/*
* Copyright 2021 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 ... |
import { BaseCanvas, BaseCanvasOptions } from '../lib/baseCanvas';
import { roundRect } from '../lib/canvasUtils';
import { asks, bids } from './memoryOrderbook';
import { capitalizeFirstLetter } from '../lib/utils';
import BigNumber from 'bignumber.js';
const sortData = (unsortedData, dataOrder = 'asc') => {
unsort... |
import { Config } from "../config"
import { raiseAt, unexpected } from "../error"
import { getFilePath } from "../file"
import { Flags } from "../flags"
import { Module } from "../module"
import * as Node from "../parser/node"
import { createScope, FunctionTypeDeclaration } from "../scope"
import * as Type from "../typ... |
<reponame>robertgrzonka/OriannaBot
import * as DBL from "dblapi.js";
import * as eris from "eris"
import { Commit, getLastCommit } from "git-last-commit";
import * as ipc from "../cluster/master-ipc";
import config from "../config";
import { BlacklistedChannel, Role, Server, User } from "../database";
import elastic fr... |
<filename>ovobot.ts<gh_stars>0
/**
* 使用此文件来定义自定义函数和图形块。
* 想了解更详细的信息,请前往 https://makecode.microbit.org/blocks/custom
*/
enum MoveDir {
//% block="forward"
Forward,
//% block="backward"
Backward
}
enum RobotMoveType {
RobotMoveStop = 0,
RobotMove = 1,
RobotMoveCalibrate = 2
}
enum LineSe... |
<reponame>LuKC1024/vscode-language-bugs
import { ParameterStructures, Position } from 'vscode-languageserver';
import * as bugsPeg from './bugsPeg';
import { Doc, makePrinter } from './prettyPrinter';
import { Seq } from './Seq';
const PP = makePrinter(' ')
interface ParseError {
position: Position;
message: str... |
import { UInt64 } from '../int64'
import { Pos } from '../pos'
import { Mem, t_u32, intTypes } from '../types'
import { ID, Fun, Block, Value, BranchPrediction, Location } from './ssa'
import { RegInfo, Op, ops } from './op'
import { Register, Reg, RegSet, fmtRegSet, emptyRegSet } from './reg'
import { Config } from '.... |
import { observable, configure, action } from "mobx";
// https://github.com/ng-packagr/ng-packagr/issues/805#issuecomment-384932636
import * as localforage from "localforage";
import { StoredMessage } from "./rpc-schema";
import contract from "./contract";
import { v4 as uuid } from "uuid";
import * as t from "./typech... |
import { version } from "../package.json";
import { ImageMap } from "./class.image-map";
import { BgLayer } from "./p5.bg-layer";
import { Area, AreaCircle, AreaRect, AreaPoly, AreaEmpty } from "./class.area";
import { Coord } from "./class.coord";
import { Selection } from "./class.selection";
import { openWindow } fr... |
/*
* Copyright (C) 2017-2019 HERE Europe B.V.
* Licensed under Apache 2.0, see full license in LICENSE
* SPDX-License-Identifier: Apache-2.0
*/
import { MathUtils, Projection, ProjectionType, TileKey, TilingScheme } from "@here/harp-geoutils";
import { LRUCache } from "@here/harp-lrucache";
import * as THREE from "... |
<gh_stars>1-10
import Long from "long";
import {
Address,
BcpAccount,
BcpNonce,
BcpSwapQuery,
BcpTransactionResponse,
Nonce,
SendTx,
SwapClaimTx,
SwapIdBytes,
SwapOfferTx,
SwapState,
TokenTicker,
TransactionKind,
} from "@iov/bcp-types";
import { Sha256 } from "@iov/crypto";
import { Encoding... |
import { guid, isIntersect } from '../../utils';
import { classPrefix } from '../../constant';
import { Direction, Ranks } from './Menu';
import $ from '../../utils/DOMQuery';
const classTableDiv = `${classPrefix}-element_table_div`;
const classTableBreak = `${classPrefix}-element_table_break`;
interface Indexs {
r... |
///////////////////////////////////////////////////////////////////////////////
/** @preserve
///// SAPC APCA - Advanced Perceptual Contrast Algorithm
///// Beta 0.0.98G-4g W3 • contrast function only
///// DIST: W3 Revision date: Nov 29, 2021
///// Function to parse color values and determine... |
<reponame>antvis/GWebGPUEngine<filename>packages/compiler/src/backends/CodeGeneratorWGSL.ts
import {
AST_NODE_TYPES,
AST_TOKEN_TYPES,
STORAGE_CLASS,
} from '../ast/glsl-ast-node-types';
import {
ArrayExpression,
AssignmentExpression,
BaseNode,
BinaryExpression,
BlockStatement,
CallExpression,
Condit... |
<filename>source/Parser.ts<gh_stars>10-100
// Parser.ts
// 语法分析:将代码解析成AST,但不加分析
enum NodeType {
LAMBDA = "LAMBDA",
APPLICATION = "APPLICATION",
QUOTE = "QUOTE",
QUASIQUOTE = "QUASIQUOTE",
STRING = "STRING",
SYMBOL = "SYMBOL",
NUMBER = "NUMBER",
BOOLEAN = "BOOLEAN"
}
class AST {
pu... |
<reponame>renovate-bot/rushstack
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
// See LICENSE in the project root for license information.
import * as os from 'os';
import * as path from 'path';
import * as semver from 'semver';
import crypto from 'crypto';
import ... |
/* global CONST, ui */
import ActorSheetPF2eCreature from './creature';
import { calculateBulk, itemsFromActorData, stacks, formatBulk, indexBulkItemsById } from '../../item/bulk';
import { calculateEncumbrance } from '../../item/encumbrance';
import { getContainerMap } from '../../item/container';
import { Proficiency... |
<filename>node_modules/mapillary-js/src/component/tag/TagComponent.ts
/// <reference path="../../../typings/index.d.ts" />
import * as THREE from "three";
import {Observable} from "rxjs/Observable";
import {Subscription} from "rxjs/Subscription";
import {Subject} from "rxjs/Subject";
import "rxjs/add/observable/comb... |
<filename>src/app/pages/test/test.component.ts
import { Component, OnInit, ViewChild, ChangeDetectorRef } from "@angular/core";
import { Router, ActivatedRoute } from '@angular/router';
import { FormBuilder, FormGroup, FormControl, Validators } from '@angular/forms';
import {Observable} from 'rxjs';
import {map, start... |
import { Component, Input, OnDestroy, OnInit } from '@angular/core';
import { MatDialog } from '@angular/material/dialog';
import { MatSnackBar } from '@angular/material/snack-bar';
import { BehaviorSubject, Observable, Subject, Subscription } from 'rxjs';
import { debounceTime, mergeMap } from 'rxjs/operators';
import... |
<reponame>micuat/glisp
/* eslint-ignore @typescript-eslint/no-use-before-define */
import {vec2, mat2d} from 'gl-matrix'
import Bezier from 'bezier-js'
import svgpath from 'svgpath'
import paper from 'paper'
import {PaperOffset, OffsetOptions} from 'paperjs-offset'
import {
MalVal,
keywordFor as K,
symbolFor as S,
... |
import { DataType, ElfBinary, Pointer } from "./elfBinary";
import { FILE_TYPES } from "./fileTypes";
import type { Struct } from "./fileTypes";
import { BinaryWriter } from "./misc";
import { Relocation } from "./types";
import { demangle, mangleIdentifier } from "./nameMangling";
import { enumerate } from "./util";
... |
import {
trimergeObject,
routeMergers,
RouteWildCard,
combineMergers,
trimergeArrayCreator,
CannotMerge,
Path,
MergeFn,
trimergeEquality,
RoutePath,
trimergeMapCreator,
} from 'trimerge';
import { encode as encode32768, decode as decode32768 } from 'base32768';
import clone from 'rfdc/default';
im... |
<reponame>yitek/YA
export declare function implicit(strong?: boolean | any, members?: any, value?: any): (target: any, propName?: string) => void;
export declare function abstract(): (proto: any, name: any) => void;
export declare function defineSingleonProperty(target: any, name: string | {
[name: string]: (sel... |
//
// LimitedNodeList.ts
//
// Created by <NAME> on 7 Jun 2021.
// Copyright 2021 Vircadia contributors.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
import HMACAuth from "./HMACAuth";
import { LocalID } from ".... |
<filename>src/app/layout/reports/activity/list.component.ts<gh_stars>0
import {
Component,
OnInit,
ViewChild,
HostListener,
OnDestroy,
} from '@angular/core';
import {
MatTableDataSource,
MatSort,
PageEvent,
MatPaginator,
} from '@angular/material';
import { Router } from '@angular/router';
import { M... |
import { Events } from '../events';
import Cea608Parser, { CaptionScreen } from '../utils/cea-608-parser';
import OutputFilter from '../utils/output-filter';
import { parseWebVTT } from '../utils/webvtt-parser';
import {
sendAddTrackEvent,
clearCurrentCues,
addCueToTrack,
removeCuesInRange,
} from '../utils/tex... |
<gh_stars>0
import 'vendor/flot/jquery.flot';
import 'vendor/flot/jquery.flot.selection';
import 'vendor/flot/jquery.flot.time';
import 'vendor/flot/jquery.flot.stack';
import 'vendor/flot/jquery.flot.stackpercent';
import 'vendor/flot/jquery.flot.fillbelow';
import 'vendor/flot/jquery.flot.crosshair';
import 'vendor/f... |
import pWaterfall from 'p-waterfall';
import { defaultObj, mapKeys, identity, flatten } from '@keystone-next/utils-legacy';
import { Implementation } from '@keystone-next/fields';
import { BaseKeystoneList, Rel } from '@keystone-next/types';
// Note: These type definitions are preliminary while we're working towards
/... |
import React, {
ClassAttributes,
CSSProperties,
FunctionComponent,
HTMLAttributes,
JSXElementConstructor,
Key,
MouseEvent,
PropsWithoutRef,
ReactElement,
ReactNode,
RefAttributes,
useCallback,
useContext,
useEffect,
useLayoutEffect,
useMemo,
useRef,
useState,
} from 'react';
import c... |
<filename>src/buffer_manager.ts<gh_stars>0
import { debounce } from "lodash";
import { Buffer, NeovimClient, Window } from "neovim";
import { ATTACH } from "neovim/lib/api/Buffer";
import {
commands,
Disposable,
EndOfLine,
Selection,
TextDocument,
TextEditor,
TextEditorOptionsChangeEvent,
... |
<reponame>alphaid-bot/alphaid-bot
import { messageToExtra } from "@utils/failToDetail";
import { IHashMap } from "../../../types/Types";
import { IModule } from "@sb-types/ModuleLoader/Interfaces";
import { Plugin } from "../../plugin";
import { Message, Guild, TextChannel, User, GuildMember } from "discord.js";
i... |
<filename>src/v0test/stateUtils.ts
import algosdk, { Algodv2 } from "algosdk"
import {
orderedAssets,
marketCounterToAssetName,
assetIdToAssetName,
managerAddress,
assetDictionary,
SECONDS_PER_YEAR,
PARAMETER_SCALE_FACTOR,
SCALE_FACTOR,
REWARDS_SCALE_FACTOR
} from "./config"
import { Base64Encoder } f... |
import { ExclamationCircleOutlined } from '@ant-design/icons';
import { Button, Dropdown, Menu, Modal, Space, Switch } from 'antd';
import { FilterDropdownProps } from 'antd/lib/table/interface';
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
import { useParams } from 'react-router-do... |
import { AdresseType, Krav, Tilbakemelding, TilbakemeldingMelding, TilbakemeldingRolle, TilbakemeldingType, Varslingsadresse } from '../../constants'
import {
createNewTilbakemelding,
CreateTilbakemeldingRequest,
tilbakemeldingEditMelding,
tilbakemeldingNewMelding,
TilbakemeldingNewMeldingRequest,
tilbakeme... |
import * as React from 'react';
import {
Animated,
StyleSheet,
Platform,
View,
I18nManager,
Easing,
Dimensions,
StyleProp,
ViewStyle,
LayoutChangeEvent,
} from 'react-native';
import {
SceneView,
StackActions,
NavigationActions,
NavigationProvider,
} from '@react-navigation/core';
import { w... |
import _ from 'lodash';
import Enum from 'easy-enums';
import { assert, assMatch } from "./assert";
import printer from './printer';
import PromiseValue from 'promise-value';
// Should we switch back to .js over .ts??
export const randomPick = function <T>(array: T[]): T {
if (!array) {
return null;
}
if (!array... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
<gh_stars>0
import { AnimationReferenceMetadata } from '@angular/animations';
import { isPlatformBrowser } from '@angular/common';
import { Inject, Injectable, PLATFORM_ID } from '@angular/core';
import mergeWith from 'lodash.mergewith';
import { ResizeObserver as Polyfill } from '@juggle/resize-observer';
import { Obs... |
import { loadEnvConfig, processEnv } from '@next/env';
import {
execCommand,
getScriptName,
GlobOptions,
scanParentDirs,
spawnAsync,
} from '@vercel/build-utils';
import { nodeFileTrace } from '@vercel/nft';
import Sema from 'async-sema';
import chalk from 'chalk';
import { SpawnOptions } from 'child_process'... |
<reponame>mzegar/node-rapids<filename>modules/cuda/src/buffer.ts
// Copyright (c) 2020-2021, NVIDIA CORPORATION.
//
// 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.apach... |
<reponame>rafern/canvas-ui
import { measureTextDims } from '../helpers/measureTextDims';
import { multiFlagField } from '../decorators/FlagFields';
import { FillStyle } from '../theme/FillStyle';
const WIDTH_OVERRIDING_CHARS = new Set(['\n', '\t']);
/**
* A text render group. Contains all neccessary information to p... |
<filename>packages/office-ui-fabric-react/src/utilities/positioning.ts
import { DirectionalHint } from '../common/DirectionalHint';
import {
getScrollbarWidth,
getRTL,
Rectangle as FullRectangle,
IRectangle
} from '../Utilities';
export enum RectangleEdge {
top = 1,
bottom = -1,
left = 2,
right = -2
}
... |
import * as akala from '@akala/core';
import * as fs from 'fs/promises';
import * as p from 'path';
import * as utils from 'util';
import { Media } from '../../../metadata';
import * as redis from 'ioredis';
import Configuration from '@akala/config';
import { Container } from '@akala/commands'
const debug = akala.log(... |
<gh_stars>0
/*
* This list was compiled from the UI Events KeyboardEvent key Values (W3C Candidate Recommendation, 01 June 2017),
* available at https://www.w3.org/TR/uievents-key/. It was compiled by <NAME>, and originally published
* at https://www.aarongreenlee.com/blog/list-of-non-printable-keys-for-keyboard-ev... |
export class RGBA {
format: "RGBA";
constructor(public r: number, public g: number, public b: number, public a: number = 1) { }
public clone(){
return new RGBA(this.r, this.g, this.b, this.a);
}
static fromInt(c: number) : RGBA {
var r, g, b, a = 0xff;
if(c >> 24 == 0) { //... |
<filename>src/Util.ts
import {
workspace,
extensions,
window,
ViewColumn,
Uri,
commands,
TextDocument,
WorkspaceFolder,
} from "vscode";
import {
CODE_TIME_EXT_ID,
MUSIC_TIME_EXT_ID,
launch_url,
MUSIC_TIME_PLUGIN_ID,
MUSIC_TIME_TYPE,
SOFTWARE_TOP_40_PLAYLIST_ID,
SPOTIFY_LIKED_SONGS_PLAYLIS... |
<filename>ui/projects/businessgate/src/app/card-stack/card-stack.component.ts<gh_stars>0
import { AfterViewInit, Component, ElementRef, EventEmitter, Input, OnChanges, OnInit, Output, ViewChild } from '@angular/core';
import { ScriptRunnerImpl } from 'hatool';
import * as mapboxgl from 'mapbox-gl';
import { FeatureCol... |
<gh_stars>0
// [Smoosic](https://github.com/AaronDavidNewman/Smoosic)
// Copyright (c) <NAME> 2021.
import { SmoMusic } from '../../smo/data/music';
import { SvgBox } from '../../smo/data/common';
import { SmoMeasure } from '../../smo/data/measure';
import { SmoScore } from '../../smo/data/score';
import { SmoTempoText... |
import { BigNumber, providers, utils, Wallet } from "ethers";
import Sinon, { createStubInstance, reset, restore, SinonStub, SinonStubbedInstance, stub } from "sinon";
import { getRandomBytes32, Logger, mkAddress, txReceiptMock } from "@connext/nxtp-utils";
import { expect } from "@connext/nxtp-utils";
import { ChainC... |
import React from 'react';
// import ResizeAware from 'react-resize-aware';
import Graph, { GraphData, Options } from 'react-graph-vis';
import axios from 'axios';
import PVGridSelfDiscovery from './PVGridSelfDiscovery';
import { Button, Portal, Segment } from 'semantic-ui-react';
import PVReportButton from './PVReport... |
import {
addIcon,
MarkdownPostProcessorContext,
MarkdownPreviewView,
MarkdownRenderChild,
MarkdownRenderer,
MarkdownView,
Notice,
Plugin,
TFile
} from "obsidian";
/* import { prettyPrint as html } from "html"; */
import { Admonition, ObsidianAdmonitionPlugin, ISettingsData } from ".... |
<reponame>aws-solutions/dynamic-object-and-rule-extensions-for-anfw
/*
Copyright Amazon.com, Inc. or its affiliates. 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
... |
/** @jsx jsx */
import { Fragment, ReactElement, createContext, useContext, useState } from 'react';
import { ReactEditor, RenderElementProps, useEditor, useFocused, useSelected } from 'slate-react';
import { Editor, Element, Transforms, Text, Range, NodeEntry, Path, Node } from 'slate';
import { Stack, jsx, useTheme... |
<gh_stars>1-10
const crypto = require('crypto');
const request = require('request');
const querystring = require('querystring'); // replace URLSearchParams
import { Observable, ReplaySubject } from 'rxjs';
import { TMarketType, TMarketSide, TMarketBookOrder, } from '../../market/interfaces';
import { TExchangeName, I... |
// Copyright 2017-2020 @polkadot/app-staking authors & contributors
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { SubmittableExtrinsic } from '@polkadot/api/types';
import { DeriveBalancesAll, DeriveStakingAccount, DeriveStakin... |
interface modules {
/** 重构B站原生脚本video.min.js */
readonly "EmbedPlayer.js": string;
readonly "bgray-btn.css": string;
}
interface Window {
player: {
/**
* 实时修改播放器弹幕
* **本函数直接写入托管的`bilibiliPlayer.js`,使用前请检查是否可用**
* @param danmaku 弹幕列表
* @param append 添加弹幕还是替换,默认... |
"use strict";
import _ = require("lodash");
import arangojs from "arangojs";
import { UriOptions, UrlOptions } from "request";
import DockerRunner from "./DockerRunner";
import { FailoverError } from "./Errors";
import Instance from "./Instance";
import LocalRunner from "./LocalRunner";
import Runner from "./Runner";
i... |
/*
* Copyright 2017-19 IBM Corporation
*
* 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 ... |
<gh_stars>1-10
// Type definitions for AWS Lambda 8.10
// Project: http://docs.aws.amazon.com/lambda
// Definitions by: <NAME> <https://github.com/darbio/aws-lambda-typescript>
// <NAME> <https://github.com/skarum>
// <NAME> <https://github.com/StefH/DefinitelyTyped>
// <... |
import * as vscode from 'vscode';
import * as fs from 'fs';
import * as path from 'path';
import Utils from './utils';
import * as nls from 'vscode-nls';
import { languageClient, totvsStatusBarItem } from './extension';
import { inputConnectionParameters } from './inputConnectionParameters';
import { SelectServer } fro... |
<filename>src/ide/gen-icons.ts
"use strict";
// This file is only used for generating resources before build time.
// It generates `icons.ts`
//
// call this by `npm run gen-icons`
// You might need to call `npm run prettier`, because the generated
// file is unformatted.
import { SVGDrawingContext, createSvg } from "... |
import Conditions from '../../../../../resources/conditions';
import NetRegexes from '../../../../../resources/netregexes';
import Outputs from '../../../../../resources/outputs';
import { Responses } from '../../../../../resources/responses';
import ZoneId from '../../../../../resources/zone_id';
import { Raidbos... |
/**
* @memberOf Qualifiers
* @description This namespace contains all the colors used in the SDK
* @namespace Color
* @example
* // Reference only, do NOT use within your code for tree-shaking reasons
* // SDK functions that require color accept a string (like 'red') or a hex value, like 'ffffff'
* import {Color... |
<reponame>dodonov/remodel<gh_stars>0
/**
* Copyright (c) 2016-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import * as Code from './code';
import * as Either from './either';
import * as Error from './error... |
<reponame>OpenSRP/web
/* eslint-disable @typescript-eslint/no-unnecessary-condition */
import { Dictionary } from '@onaio/utils';
import { parseISO } from 'date-fns';
import { findKey, pick } from 'lodash';
import moment from 'moment';
import { FormEvent } from 'react';
import { planActivities } from './activitiesLooku... |
import { Component, ElementRef, EventEmitter, Input, NgZone, OnDestroy, OnInit, Output, ViewChild } from '@angular/core';
import { ChatMessage } from '@udonarium/chat-message';
import { ImageFile } from '@udonarium/core/file-storage/image-file';
import { ObjectStore } from '@udonarium/core/synchronize-object/object-sto... |
<reponame>y-akinobu/puppy
import * as Matter from 'matter-js';
import { myRender } from './render';
import { initVars, setShapeProperty, Shape, PuppyConstructor } from './shape';
import { getInputValue, getDiffStartLineNumber } from '../modules/operations';
import { chooseColorScheme } from './color';
// const Bodies ... |
<gh_stars>1-10
// Python Tutor: https://github.com/pgbovine/OnlinePythonTutor/
// Copyright (C) <NAME> (<EMAIL>)
// LICENSE: https://github.com/pgbovine/OnlinePythonTutor/blob/master/LICENSE.txt
// TODOs:
// qtip doesn't work with Webpack, so experimentalPopUpSyntaxErrorSurvey DOESN'T WORK
// deactivate it for now
var... |
import {
LocalDateTime,
LocalDate,
LocalTime,
Duration,
RelativeDuration,
ConfigMemory,
} from "edgedb";
import type {$bool, $number} from "@generated/modules/std";
import {
$expr_PolyShapeElement,
$scopify,
Cardinality,
cardinalityUtil,
Expression,
ExpressionKind,
LinkDesc,
makeType,
Obje... |
<filename>simulation-app/src/app/app.component.ts
import {
NgZone,
OnInit,
OnDestroy,
HostListener,
AfterViewInit,
} from '@angular/core';
import {
Component,
ComponentFactoryResolver,
ComponentRef,
ElementRef,
ViewChild,
ViewContainerRef,
} from '@angular/core';
import { Subscription } from 'rxjs... |
import * as React from 'react';
import { CSSProperties } from 'react';
import * as fp from 'lodash/fp';
import { InputSwitch } from 'primereact/inputswitch';
import {
AttrName,
CdrVersion,
CdrVersionTiersResponse,
Criteria,
CriteriaSubType,
CriteriaType,
Domain,
Operator,
} from 'generated/fetch';
imp... |
<reponame>aa875982361/mini-wxml-render
/**
* 处理wxml 的表达式分为两个阶段
* 编译阶段
* 1. 将含有表达的字符串统一用function替代
* 运行阶段
* 1. 将function执行,得到字符串
*/
import * as path from "path"
import * as fs from "fs"
import file from "./utils/file"
import {addDataStrInExpression, getDataKeyList, addUnExpectList, removeUnexpectList} from "./ut... |
// Copyright (c) 2021 Intel Corporation
//
// 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 ... |
import { AfterViewInit, Component, ElementRef, ViewChild } from '@angular/core';
import {
ABERRATION, AVG_SUN_MOON_RADIUS, MOON, QUICK_SUN, REFRACTION_AT_HORIZON, SkyObserver, SolarSystem, SUN, TOPOCENTRIC
} from '@tubular/astronomy';
import { abs, ceil, cos_deg, floor, max, min, mod, mod2, Point, round, sin_deg, Sph... |
<reponame>TIBCOSoftware/TCSTK-Cloud-CLI
import { DEBUG, ERROR, INFO, log, logCancel, WARNING } from '../common/logging'
import { callTCA, postMessageToCloud, postToCloud, readableSize } from '../common/cloud-communications'
import { Analysis } from '../models/discover/analysis'
import { createTable, createTableFromObje... |
<gh_stars>1-10
/********************************************************************************
* Copyright (C) 2019-2021 Red Hat, Inc. and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.o... |
/* tslint:disable */
import omit from 'lodash/omit';
import isEqual from 'lodash/isEqual'
import React, { useContext, useEffect, useState } from "react"
import { useLocation } from 'react-router-dom'
import {
Heading, Box, FieldCheckbox, List, Chip, Space,
ListItem, Paragraph, InputText, Form, Select, SpaceVertica... |
"use strict";
var Node = require('./node');
var unescapeString = require('./common').unescapeString;
var CODE_INDENT = 4;
var C_NEWLINE = 10;
var C_GREATERTHAN = 62;
var C_SPACE = 32;
var C_OPEN_BRACKET = 91;
var InlineParser = require('./inlines');
var BLOCKTAGNAME = '(?:article|header|aside|hgroup|iframe|blockqu... |
export type stringOrFunction = string | ((input: string) => string);
export const ledetekster: { [key: string]: stringOrFunction } = {
'footer-arbeids-og-veldferdsetaten': 'Arbeids- og velferdsetaten',
'footer-arbeids-og-veldferdsetaten-en': 'Arbeids- og velferdsetaten',
'footer-arbeids-og-veldferdsetaten-... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.