text
stringlengths
3.08k
15.5k
import * as as from "../analysis_server_types"; import { Logger } from "../interfaces"; export abstract class OutlineVisitor { constructor(private logger: Logger) { } public visit(outline: as.Outline) { this.visitNode(outline); } private visitChildren(outline: as.Outline) { if (outline.children) { for (co...
import { constants, promises as fsPromises } from 'fs'; import { homedir, platform } from 'os'; import { join, dirname } from 'path'; import { load, dump } from 'js-yaml'; import simpleGit from 'simple-git'; import { BaseTarget } from './base'; import { BaseArtifactProvider } from '../artifact_providers/base'; import {...
<gh_stars>1-10 import * as Mixins from './mixins' import { omit } from './tools' import { EventMap, EventsDefinition, EventSource, HandlersByEvent } from './eventsource' import * as _eventsApi from './eventsource' const { mixins, define, extendable } = Mixins, // Force extranction to the local variabled. {...
import React from 'react'; import cn from 'clsx'; import { motion, Transition } from 'framer-motion'; import { usePrevious } from '../utils'; import styles from './Calendar.module.scss'; import { CalendarProps } from './Calendar.types'; const getWeekDaysLocaled = (locale: string) => Array.from({ length: 7 }).map((...
import * as React from 'react' import {useEffect, useState} from 'react' import Metadata from '../components/common/Metadata' import {Cluster, ClusterFormValues, Process, ProductArea, ProductTeam} from '../constants' import {useHistory, useParams} from 'react-router-dom' import {getAllTeamsForCluster, getProductArea} f...
export type Snowflake = string; export enum ApplicationCommandOptionType { SUB_COMMAND = 1, SUB_COMMAND_GROUP = 2, STRING = 3, INTEGER = 4, BOOLEAN = 5, USER = 6, CHANNEL = 7, ROLE = 8, MENTIONABLE = 9, NUMBER = 10, } export type ApplicationCommandOptionChoice = { name: string; value: string |...
import BigNumber from 'bignumber.js'; import * as borsh from 'borsh'; import { JsonPRCResponseError } from '../../../basic/request/exceptions'; import { JsonRPCRequest } from '../../../basic/request/json-rpc'; import { CoinInfo } from '../../../types/chain'; import { AddressInfo, ClientInfo, FeePricePerUnit, T...
import { easing, parameterizedEasing } from '~/easing' const pi = Math.PI const halfPi = pi / 2 const doublePi = pi * 2 const pow = Math.pow const sqrt = Math.sqrt const asin = Math.asin const cos = Math.cos const sin = Math.sin const max = Math.max const b1 = 4 / 11 const b2 = 6 / 11 const b3 = 8 / 11 const b4 = 3 / ...
<filename>shared/desktop/renderer/preload.desktop.tsx import path from 'path' import * as Electron from 'electron' // @ts-ignore strict import fse from 'fs-extra' import type {Engine, WaitingKey} from '../../engine' import type {RPCError} from '../../util/errors' import type {MessageTypes as FsMessageTypes} from '../.....
<filename>frontend/src/app/projects/components/project-workspace/project-workspace.component.ts<gh_stars>1-10 import {Component, OnDestroy, OnInit, TemplateRef, Type, ViewChild} from '@angular/core'; import {ActivatedRoute, Router} from '@angular/router'; import {NgbModal, NgbModalRef} from '@ng-bootstrap/ng-bootstrap'...
<reponame>mahvaezi/compass-numapp-backend /* * Copyright (c) 2021, IBM Deutschland GmbH */ /* eslint-disable @typescript-eslint/explicit-module-boundary-types */ import { timingSafeEqual } from 'crypto'; import { NextFunction, Request, Response } from 'express'; import { Controller, Post } from '@overnightjs/core'...
import { fas } from '@fortawesome/free-solid-svg-icons'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { Button, Dialog, DialogContent, Grid, IconButton, Table, TableBody, TableCell, TableContainer, TableHead, TableRow, Typography } from '@mater...
import { trace } from '../../shared/trace'; import 'reflect-metadata' type TypedArray = | Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array; export const types = { KEY: 1, STRING: 2, DATE: 3, NUMBER: 4, UNSIGNED_I...
<reponame>satyaim/speechtotext import { AudioSourceErrorEvent, AudioSourceEvent, AudioSourceInitializingEvent, AudioSourceOffEvent, AudioSourceReadyEvent, AudioStreamNodeAttachedEvent, AudioStreamNodeAttachingEvent, AudioStreamNodeDetachedEvent, AudioStreamNodeErrorEvent, ...
/** * Copyright (c) 2018 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author <NAME> <<EMAIL>> */ import { State } from 'mol-state'; import { PluginStateObject as SO } from './state/objects'; import { Camera } from 'mol-canvas3d/camera'; import { PluginBehavior } from './behavior'; im...
import { S3Event } from 'aws-lambda' import { S3, DynamoDB } from 'aws-sdk' const s3 = new S3({ apiVersion: '2006-03-01' }) const documentClient = new DynamoDB.DocumentClient() type S3Params = { name: string; key: string; size: number; format?: string; numberOfChannels?: number; } export const extractBuck...
/** * 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
import * as React from 'react'; import { useState, useMemo, useEffect } from 'react'; import { TextField } from '@fluentui/react/lib/TextField'; import { SpinButton } from '@fluentui/react/lib/SpinButton'; import { Dropdown } from '@fluentui/react/lib/Dropdown'; import { mergeStyleSets } from '@fluentui/react/lib/Styli...
import React, { useEffect, useState } from "react"; import { View, Text, StyleSheet, TextInput, Image, TouchableOpacity, KeyboardAvoidingView, Platform, TouchableWithoutFeedback, Keyboard, ActivityIndicator, } from "react-native"; import * as VideoThumbnails from "expo-video-thumbnails"; import { ...
import { PrismicDocument } from '@prismicio/types'; import { Exhibition } from '@weco/common/model/exhibitions'; import { Event } from '@weco/common/model/events'; import { Organization, wellcomeCollectionAddress, wellcomeCollectionGallery, } from '@weco/common/model/organization'; import { getImageUrlAtSize } fr...
import {LiveComponent} from "../LiveComponent"; import {Languages} from "../../Languages" import * as React from 'react'; import {Alert, Linking, Platform, ScrollView, Text, TouchableHighlight, View} from "react-native"; import {ListEditableItems} from '../components/ListEditableItems' import {background, colors, sty...
import {registerRoute, route} from '@orion-js/http' import {GraphQLOptions} from 'apollo-server-core' import {StartGraphQLOptions} from './types/startGraphQL' // Ensures string values are safe to be used within a <script> tag. // TODO: I don't think that's the right escape function function safeSerialize(data) { ret...
<filename>src/Plugin.ts<gh_stars>0 import { Settings, defaultSettings, isSettings, pomodoroImages } from './Settings'; import { durationToMMSS, padTime } from './helper/Time'; import { PomodoroTimer } from './models/TimerModels'; import { Streamdeck } from '@rweich/streamdeck-ts'; import { convertToSeconds } from './h...
import type { BinaryLike } from 'node:crypto'; import { createHash, randomBytes } from 'node:crypto'; import { isCI } from 'ci-info'; import debug from 'debug'; // @ts-ignore import gitUp from 'git-up'; import { getAnonymousMeta } from './anonymous-meta.js'; import { Config } from './config.js'; import * as KEY from ...
import React, { FC, ReactNode, useRef, useState, useEffect } from 'react'; import { FlatList, GestureResponderEvent, ScrollView, StyleProp, View, ViewProps, ViewStyle, Dimensions, TextStyle, I18nManager } from 'react-native'; import Animated from 'react-nativ...
<reponame>browndragon/dev import * as Materials from '../src/materials3d'; import { AKey, DownKey, LeftKey, RightKey, UpKey } from '../src/input/keyboard/keys'; import { BackgroundColor, Parent, Scenes, Size, WebGL } from '../src/config'; import { Game, Scene } from '../src/'; import { AddChildren3D } from '../src/di...
/** * Copyright (c) Microsoft 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 agr...
import fs from 'fs'; import { CompiledContract, Contract, deployContract, getKeyPair, getStarkKey, hashMessage, sign, utils, waitForTx, } from '../src'; import { addHexPrefix } from '../src/utils/encode'; import { toBN } from '../src/utils/number'; const { json: { parse }, starknet: { getSelecto...
<filename>examples/angular/src/app/components/content/content.component.ts import { Component, Input, OnDestroy, OnInit } from "@angular/core"; import { providers, utils } from "near-api-js"; import { AccountView, CodeResult } from "near-api-js/lib/providers/provider"; import NearWalletSelector, { AccountInfo, Subs...
import fetch from "node-fetch"; import { stringify } from "querystring"; import { ApiError } from "../error"; import Reddit from "../reddit"; import { jsonVariable } from "../utils/html"; import { unrefTimeout } from "../utils/time"; const webUrl = "https://www.reddit.com"; const apiUrl = "https://www.reddit.com"; con...
import {Delete, Get, Patch, Post} from "./fetch-api"; // because wallabag api doesn't return this, it is hardcoded const refresnExpirePeriod = 1209600; export interface IFilter { page: number | undefined; perPage: number | undefined; sort: string | undefined; order: string | undefined; since: numb...
import { CommanderStatic } from "commander"; import { log } from "console"; import * as fs from "fs"; import * as path from "path"; import { sleep } from "../../../test/test-utils"; import { EventManagementModels, MindSphereSdk } from "../../api/sdk"; import { retry } from "../../api/utils"; import { adjustColor, ...
import React, { useState, useRef, useEffect, useContext } from "react"; import { SocketContext, DeviceContext, UserInfoContext } from "../contexts"; import { useHistory } from "react-router-dom"; import { DeviceSelector } from "../components/DeviceSelector"; import { Div, Notification, Icon, Text } from "atomize"; impo...
<gh_stars>0 import { Room } from '../../types/Room' import { last } from 'lodash' import { Name } from '../../types/Name' import { PlayerScore } from '../../types/PlayerScore' import { Card, Grills, HandOver } from '../../types/Cards' import { first, flatMap } from 'lodash' import { Game } from '../../types/Game' impor...
import { routerTransition } from '../../router.animations'; import { Component, OnInit, ViewChild, AfterViewInit, OnDestroy } from '@angular/core'; import { FormGroup, FormBuilder, Validators, FormControl } from '@angular/forms'; import { Router } from '@angular/router'; import { MatDialogRef } from '@angular/material'...
<reponame>sushrut111/kibana /* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import { MakeSchemaFrom } from 'src/plugins/usage...
import {XMLconfigData} from "./data/tokenData"; import {logger} from "./libs/utils"; import {DEBUGLEVEL} from "./config"; import {Authenticator} from "./Authenticator"; import {KeyPair} from "./libs/KeyPair"; declare global { interface Window { attachEvent: any; detachEvent: any; } } export in...
<filename>src/FormControl.ts import { combineLatest, Observable, Subject } from "rxjs"; import { Observables, observe } from "rxjs-observe"; import { tap } from "rxjs/internal/operators/tap"; import { takeUntil } from "rxjs/internal/operators/takeUntil"; import { filter } from "rxjs/internal/operators/filter"; import {...
import * as Redis from 'ioredis'; import * as logger from 'heroku-logger'; import * as ua from 'universal-analytics'; import { DeleteRequest, deployRequest, poolConfig } from './types'; import utilities = require('./utilities'); import { shellSanitize } from './shellSanitize'; import { CDS } from './CDS'; const cdsE...
<reponame>whatl3y/fndr<gh_stars>1-10 import assert from 'assert' import inquirer from 'inquirer' import { v1 as uuidv1 } from 'uuid' import JupiterClient, { generatePassphrase } from 'jupiter-node-sdk' export default JupiterConnector() export function JupiterConnector(): IFndrConnector { return { name: 'jupiter...
import { IConfigResolved, ICaseClassDef, IResolveRefsResult, IConfig } from './interfaces'; import get from 'lodash/get'; import map from 'lodash/map'; import * as allTextCases from 'change-case'; import $RefParser from '@apidevtools/json-schema-ref-parser/lib/index'; import { Config } from './config'; import { form...
import { CHAT_MESSAGE, CREATE_EXPORT_ITEM, CUSTOM_MESSAGE, FEEDBACK_MESSAGE, INFO_MESSAGE, EXPORT_ITEM_MESSAGES, LOADER } from '@serge/config' import flatten from 'flat' import { ExportItemsUiActionTypes, ExportItem, Wargame, Message, MessageInfoType, ExportItemData } from '@serge/custom-types' interface ChannelTitles...
<filename>packages/dandi/core/internal/src/dandi-application-init.ts<gh_stars>1-10 import { Disposable } from '@dandi/common' import { Inject, Optional } from '@dandi/core/decorators' import { DandiApplicationError } from '@dandi/core/errors' import { getInstance } from '@dandi/core/internal/util' import { DandiAppli...
<reponame>khoadaxne15/LastProject<gh_stars>0 import { SagaIterator } from "redux-saga"; import { all, call, put, select } from "redux-saga/effects"; import { AnyAction } from "typescript-fsa"; import { ADMIN_PRODUCTS } from "../../constants"; import { displayActionMessage } from "../../helpers"; import { history } fro...
<gh_stars>100-1000 /* * mydraft.cc * * @license * Copyright (c) <NAME>. All rights reserved. */ import * as svg from '@svgdotjs/svg.js'; import { Color } from './color'; import { sizeInPx } from './react'; import { Rect2 } from './rect2'; import { Vec2 } from './vec2'; export interface MatrixTransform { rect?...
import OutcomeMessageType from '../constants/outcome-message-type'; import ServerVersion from '../constants/server-version'; /** * Call this function to request market data. The market data * will be returned by the tickPrice and tickSize events. * * requestId: TickerId - The ticker id. Must be a unique value. W...
<reponame>threepointone/built-devtools import * as TextUtils from '../../../../models/text_utils/text_utils.js'; import * as UI from '../../legacy.js'; import { TextEditorAutocompleteController } from './TextEditorAutocompleteController.js'; export interface Token { startColumn: number; endColumn: number; t...
import pathMatch from 'path-match'; import ws from 'ws'; import { stringify, parse } from '../common/utils'; import { WSChannel, ChannelMessage } from '../common/ws-channel'; import { WebSocketHandler } from './ws'; const route = pathMatch(); export interface IPathHander { dispose: (connection: any, connectionId: ...
import { GetServerSideProps } from "next" import React, { useEffect, useState } from "react" import { Component as RichText } from "../../blocks/RichText" import { Type as ArticleType } from '../../collections/Article' import Head from "../../components/Head" import Cover from "../../components/layout/Cover" import Fea...
import * as stream from 'stream' import { DriverConstructor, DriverStatics } from './driverModel' import S3Driver from './drivers/S3Driver' import AzDriver from './drivers/AzDriver' import GcDriver from './drivers/GcDriver' import DiskDriver from './drivers/diskDriver' import { promisify } from 'util' import * as win...
<filename>src/app/map/menu/layer-tree/layer-tree.component.ts import { Component, OnInit, Input } from '@angular/core'; import { legendParam } from '../../legend/extended/extended-ol-layer-legend-url/extended-ol-layer-legend-url.component'; import Plotly from 'plotly.js-dist'; import * as esri from 'esri-leaflet'; impo...
import { Observable } from 'rxjs' import { ajax, AjaxResponse } from 'rxjs/ajax' import { catchError, map, tap } from 'rxjs/operators' import { Location } from '../../../shared/src/api/protocol/plainTypes' import { normalizeAjaxError } from '../../../shared/src/util/errors' import { AbsoluteRepo, FileSpec, makeRepoURI,...
import * as React from 'react' import { reaction } from 'mobx' import { observer } from 'mobx-react' import { autobind } from 'core-decorators' import StoreManager from '../../store/StoreManager' import { ChartTooltipData, UnitEnum } from '../../model/Metric' const ChartJS = require('chart.js') interface ChartProps {...
import * as React from 'react' import Page from '../components/Page' import IndexLayout from '../layouts' import styled from '@emotion/styled' import background from '../assets/background.jpg' import logo from '../assets/logo.inverted.png' import Header from '../components/Header' import Container from '../components/...
<filename>src/extension/background.ts // An annoying unhandled promise rejection happens in the webext-dynamic-content-scripts code window.addEventListener('unhandledrejection', function (event) { console.warn( 'Unhandled rejection (promise: ', event.promise, ', reason: ', event.reason, ').' ); ...
<gh_stars>1-10 import { Component, OnInit} from '@angular/core'; import { Test, TestPrototypeModel, Options } from '../../models/test.model'; import { ActivatedRoute, Router } from '@angular/router'; import { DataService } from '../../shared/data.service'; import { AuthService } from '../../auth/auth.service'; import {...
import { log } from '@graphprotocol/graph-ts' import { NFT, Wearable as WearableEntity } from '../../entities/schema' import { Wearable, atari_launch, binance_us_collection, china_flying, community_contest, cybermike_cybersoldier_set, cz_mercenary_mtz, dappcraft_moonminer, dc_meta, dc_niftyblocksmi...
import * as express from "express"; // tslint:disable-next-line:no-duplicate-imports import { Request, Response } from 'express'; import * as net from 'net'; import * as AWS from 'aws-sdk'; import { configuration } from './configuration'; import * as url from 'url'; import { RestServer } from "./interfaces/rest-server"...
import { ListItemIcon, ListItemText, MenuItem, MenuList, Paper, Popover, } from "@material-ui/core"; import * as React from "react"; import NineDotIcon from "@material-ui/icons/Apps"; import LockIcon from "@material-ui/icons/Lock"; // @ts-ignore import { Tooltip } from "react-tippy"; import { ISlotViewMod...
import React, { FC, MouseEventHandler, ReactNode, useContext, useRef, } from 'react' import { ThemeContext } from 'styled-components' import { baseHyperLinkStyles } from '@monorail/helpers/baseStyles' import { convertHSLAMapToCss } from '@monorail/helpers/color' import { flexFlow } from '@monorail/helpers/fl...
<reponame>WillemHoman/esp<filename>src/examples/order/aggregate.ts import { Big } from 'big.js' import { EventBase, EventClassBuilder, createAggregate } from '../../esp' import { replaceAtIndex } from '../../utilities' import { Currency, Order, Payment, SaleItem, TaxItem, currencyNames, isItem, isSaleItem } from './Or...
<gh_stars>0 import { ModifierVirtualKey, VirtualKeyTexts, systemActionToLabelTextMap, systemActionAssignSelectionSource, encodeSingleModifierVirtualKey, VirtualKey, } from '~/shared'; import { texts } from '~/ui/common'; import { editorModel } from '~/ui/editor-page/models/EditorModel'; import { virtualKe...
<reponame>center-key/browser-fetch-json // fetch-json ~ MIT License import fetch from 'node-fetch'; /* eslint-disable @typescript-eslint/no-explicit-any */ export type Json = string | number | boolean | null | undefined | JsonObject | Json[]; export type JsonObject = { [key: string]: Json }; export type JsonData = J...
export default { language: 'en', controls: [ 'undo', 'redo', 'separator', 'font-size', 'line-height', 'letter-spacing', 'separator', 'text-color', 'bold', 'italic', 'underline', 'strike-through', 'separator', 'superscript', 'subscript', 'remove-styles'...
<gh_stars>1-10 import Konva from 'konva'; import { metrics } from './metrics'; import { RectParams, Size } from './types'; type ViewData = { layer: Konva.Layer | null; stageSize: Size; contentRect: RectParams; }; export type ScrollbarData = { type: 'horizontal' | 'vertical'; scrollbar: Konva.Rect | null; }...
import { GetValues_ForSchema } from 'js-vextensions'; import { AddAJVExtraCheck, AddSchema, GetSchemaJSON } from 'vwebapp-framework'; import { UUID_regex, UUID, UUID_regex_partial } from 'Utils/General/KeyGenerator'; import { MapNodeRevision } from './@MapNodeRevision'; import { MapNodeType } from './@MapNodeType'; //...
<filename>src/ts/dataTypes/Note.ts import { UserSettings } from './UserSettings'; import { INote } from '../interfaces/INote'; import { IProtection } from '../interfaces/IProtection'; import { Confirm } from '../Confirm'; import { ContextMenu } from '../ContextMenu'; import { Editor } from '../Editor'; import { Left ...
<reponame>ir210/chipmunk import { TabsService, IComponentDesc } from 'chipmunk-client-complex'; import { Subscription } from 'rxjs'; import * as Toolkit from 'chipmunk.client.toolkit'; import { IService } from '../interfaces/interface.service'; import PluginsService, { IPluginData } from './service.plugins'; import Con...
// WebSocketRT: Real-time websocket library // Copyright (c) <NAME> <<EMAIL>> // See LICENSE in the project root for license information. import { TransportCapabilities } from './TransportCapabilities'; import { BinaryConverter } from '@leosingleton/commonlibs'; /** * Frames sent over the WebSocket are either data f...
<gh_stars>0 import { copyDencoState, DencoState } from "./denco"; import { Event, LevelupEvent } from "./event"; import { refreshSkillState, refreshSkillStateOne } from "./skill"; import DencoManager from "./dencoManager" import { Context, getCurrentTime } from "./context"; import { refreshEventQueue, SkillEventReserva...
<reponame>n-grounds/freesudoku<filename>app/game/game-page.ts import { RadSideDrawer } from "nativescript-ui-sidedrawer"; import * as app from "tns-core-modules/application"; import { EventData } from "tns-core-modules/data/observable"; import { NavigatedData, Page, ViewBase } from "tns-core-modules/ui/page"; import { ...
import { BaseEntityRecord, BaseEntityRecordFieldConfig, BaseEntityRecordType } from '@dps/mycms-commons/dist/search-commons/model/records/base-entity-record'; import { DbIdValidationRule, FilenameValidationRule, GenericValidatorDatatypes, GeoLocValidationRule, GpsTrackValidationRule, ...
<filename>src/main.ts // 1. Construct grid that spirals out from the center of the canvas. // 2. Allow for `cells` to displayed within the canvas. // 3. Alter the visual appearance of `cells` if they meet certain criteria (prime, mersenne prime) let application: Application; class Cell { is_prime: boolean; ...
<gh_stars>1-10 import nock from 'nock'; import { Logger } from 'winston'; import { fixture } from '../helpers'; import logger from '../../src/util/logger'; import { store } from '../../src/util/secrets'; import { SlackMessage, Slack } from '../../src/lib/slack'; import { Jira } from '../../src/lib/jira'; i...
<reponame>Toughee/vega-lite /* * Constants and utilities for encoding channels (Visual variables) * such as 'x', 'y', 'color'. */ import {RangeType} from './compile/scale/type'; import {Encoding} from './encoding'; import {Facet} from './facet'; import {Mark} from './mark'; import {SCALE_TYPES, ScaleType} from './s...
<filename>types/prettier/doc.d.ts<gh_stars>0 import { Doc } from './'; // https://github.com/prettier/prettier/blob/main/src/document/index.js export namespace builders { type DocCommand = | Align | BreakParent | Concat | Cursor | Fill | Group | IfBreak ...
import * as O from "fp-ts/lib/Option"; import { pipe } from "fp-ts/lib/pipeable"; import moment from "moment"; import React, { useCallback, useEffect, useMemo, useRef, useState, } from "react"; import { Dimensions, ScrollView } from "react-native"; import Carousel, { CarouselStatic } from "react-native-snap-c...
<gh_stars>0 import { combineLatest, merge, Observable, of, OperatorFunction, Subject } from 'rxjs'; import { catchError, delay, distinctUntilChanged, map, mergeScan, shareReplay, startWith } from 'rxjs/operators'; import { isDefined } from 'src/app/shared/helpers/null-undefined-predicates'; import { repeatLatestWhen } ...
<reponame>sapthasurendran/fabric-chaos-testing /* * SPDX-License-Identifier: Apache-2.0 */ import 'source-map-support/register'; import {ScenarioRunner} from './scenariorunner' const INTERVAL_SCENARIO = '_interval'; type ChaosMode = 'random' | 'cycle' | 'single'; type RunConstraintType = 'seconds' | 'count' | 'no...
/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ import { BitSize, ByteSize, isInt8, isInt16, isInt32, isUint8, isUint16, isUint32, isXint8, isXint16, isXint32, MaxValue, MinValue, Signedness, } from "../src"...
<reponame>Siteimprove/alfa<gh_stars>10-100 import { Keyword, Percentage, Token } from "@siteimprove/alfa-css"; import { Parser } from "@siteimprove/alfa-parser"; import { Result, Err } from "@siteimprove/alfa-result"; import { Slice } from "@siteimprove/alfa-slice"; import { Property } from "../property"; import { Li...
<gh_stars>1-10 /* * Copyright (c) 2016-2022 <NAME> <<EMAIL>> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the * rights to use, cop...
import { Constants } from "@alice-core/Constants"; import { DatabaseManager } from "@alice-database/DatabaseManager"; import { PlayerInfoCollectionManager } from "@alice-database/managers/aliceDb/PlayerInfoCollectionManager"; import { Challenge } from "@alice-database/utils/aliceDb/Challenge"; import { PlayerInfo } fro...
<reponame>wiisportsresort/1754 import * as ch from 'chalk'; import * as crypto from 'crypto'; import * as express from 'express'; import * as fse from 'fs-extra'; import * as inquirer from 'inquirer'; import * as jwt from 'jsonwebtoken'; import * as path from 'path'; import { promisify } from 'util'; import axios from ...
import { B2_maxFloat, B2_epsilon } from '../Common/b2Settings' import { B2Vec2, B2Transform } from '../Common/b2Math' import { B2Manifold, B2ManifoldType } from './b2Collision' import { B2CircleShape } from './Shapes/b2CircleShape' import { B2PolygonShape } from './Shapes/b2PolygonShape' const B2CollideCircles_s_pA: B...
// @ts-ignore import $ from 'jquery'; // @ts-ignore import prestashop from 'prestashop'; prestashop.cart = prestashop.cart || {}; prestashop.cart.active_inputs = null; const spinnerSelector = 'input[name="product-quantity-spin"]'; let hasError = false; let isUpdateOperation = false; let errorMsg = ''; class CheckUp...
import { Button } from "@chakra-ui/button"; import React, { useEffect, useState } from "react"; import { Sidebar } from '../components/Sidebar' import { Flex, Text, IconButton, useColorModeValue, Heading, Input, Textarea, Table, TableCaption, Thead, Tr, Th, Td, Tbody, Tfoot, Checkbox } from '@chakra-ui/react' import { ...
import React from 'react'; import { EmitterSubscription, ScrollView, StyleSheet, TextInput, View, } from 'react-native'; import { Text } from 'react-native-elements'; import MnemonicWord from '../../../components/mnemonic-word.component'; import NalliModal, { EModalSize } from '../../../components/modal.component...
/* * Copyright 2018 EIS Ltd and/or one of 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 ...
<filename>src/lapack/slamc5.ts import {Pointer} from "../pointer"; import {slamc3} from "./slamc3"; const c_b32 = new Pointer(0.); export const slamc5 = (beta: Pointer<number>, p: Pointer<number>, emin: Pointer<number>, ieee: Pointer<boolean>, emax: Pointer<number>, rmax: Pointer<number>) => { ...
import { Component, OnInit, ChangeDetectorRef, Output, EventEmitter } from '@angular/core'; import { ProfileService } from 'src/app/services/profile.service'; import { Router } from '@angular/router'; import { FormBuilder, FormGroup } from '@angular/forms'; import { Storage } from '@ionic/storage'; import { getAllRoute...
import React from 'react'; import { View, TouchableOpacity, Platform } from 'react-native'; import stylesProvider from './styles'; import { withTheme, IThemeProps } from '../../../../core/theme/with-theme'; import { IAccountState, IWalletState } from '../../../../redux/wallets/state'; import { Icon } from '../../../../...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Dolittle. All rights reserved. * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------...
import { ConcreteRequest, GraphQLTaggedNode, RequestDescriptor as RelayRequestDescriptor, NormalizationSelector, OperationDescriptor, Snapshot as RelaySnapshot, SelectorStoreUpdater, SingularReaderSelector, GraphQLResponseWithData, GraphQLResponseWithoutData, CacheConfig, } from "relay-runtime"; i...
<filename>src/rxState.ts import { applyPatches, createDraft, Draft, finishDraft, Patch, PatchListener, } from "immer" import {BehaviorSubject, Observable, Subject} from "rxjs" import {filter} from "rxjs/operators" import {Action} from "./action" import {Middleware} from "./middleware" import {select} from "...
<filename>demoSrc/workerCall.ts import { getCanvasFromID } from './demoUtil'; import type { messageData } from './workerTypes'; import perlinWorker from './perlinNoiseWorker?worker'; import valueWorker from './valueNoiseWorker?worker'; const createWorker = ( canvasElement: HTMLCanvasElement, constructorMessage: mess...
<reponame>stanwmusic/scribbletune import { Channel } from './channel'; import { convertChordsToNotes, randomInt, shuffle, expandStr } from './utils'; // import { window } from './window'; // if (!(window as any).Tone) { // (window as any).Tone = Tone; // } // const tone = (window as any).Tone; // const tone = Tone |...
import React from 'react'; import ReactDOM from 'react-dom'; import { ProviderFactory, AnnotationUpdateEmitter, } from '@atlaskit/editor-common'; import { getEmojiResource } from '@atlaskit/util-data-test/get-emoji-resource'; import { getMockTaskDecisionResource } from '@atlaskit/util-data-test/task-decision-story-...
// The marker pluin was heavily inspired by https://chartjs-plugin-crosshair.netlify.app // This project apears stale, so the feature with the vertical line, which was the only // part of the plugin which actually was needed, was implemented here instead. import { valueOrDefault } from 'chart.js/helpers'; var default...
<filename>src/parser.ts import { Operations, MathOperators, OperationType, fromToken, Block, NumberBlock, VariableBlock, FunctionBlock } from "./utils" const alphabets = /[A-Za-z]/ export class ParserError extends Error { constructor(err: string, column?: number, unexpected?: string) { const msg = `${ ...