text
stringlengths
3.08k
15.5k
import { Tracks, Repeat, VideoId, TrackId, OrderId } from '../types' import * as Machine from './types' import * as selectors from './selectors' const shuffleOrder = ( order: Machine.TrackOrderUnselected['trackOrder'], startingIndex = 0 ): Machine.TrackOrderUnselected => { const newOrder = ([] as Machine.TrackOr...
import React, { useState } from 'react'; import { useGlobal } from 'reactn'; import classNames from 'classnames'; import { Redirect } from 'react-router-dom'; import { connect } from 'react-redux'; import { IState, Project, IProjectstatusStrings } from '../model'; import localStrings from '../selector/localize'; import...
<reponame>erikras/RollingVersions import {fold} from 'fp-ts/lib/Either'; import * as t from './io-ts'; import groupBy from '../ts-utils/groupBy'; export {t}; function getErrorPath(c: t.Context): string { const rest = c.slice((c[0].type as any)._tag === 'UnionType' ? 2 : 1); if (!rest.length) return c[0].key; re...
<gh_stars>0 // Copyright (C) 2022 <NAME> // Licensed under the MIT License import { LayerProps, COORDINATE_SYSTEM } from '@deck.gl/core'; import { SolidPolygonLayer } from '@deck.gl/layers'; import { SimpleMeshLayer } from '@deck.gl/mesh-layers'; import GL from '@luma.gl/constants'; import { Geometry } from '@luma.gl/...
<reponame>RollinSafary/mvc import { EventEmitter } from "eventemitter3"; import Mediator from "../patterns/mediator/Mediator"; export default class View { public static getInstance(key: string): View { if (!key) { return null; } if (!this.instanceMap[key]) { this.in...
import * as EpisodesStoreFactory from "stores/episodes"; import * as ProgramsStoreFactory from "stores/programs"; import * as SeriesStoreFactory from "stores/series"; import * as SettingsStoreFactory from "stores/settings"; import * as SyncsStoreFactory from "stores/syncs"; import type { IDBPDatabase, IDBPTransaction...
import "./polyfill/promise"; import {getStyle, setStyles} from "./dom/css"; import {merge} from "./extend"; // global map of active element animations const elementAnimations = new WeakMap<HTMLElement, AnimationDirector>(); export type AnimationOptions = { easing?: string|((progress: number) => number), stopP...
import { Redemption, TroveLiquidated, TroveUpdated, } from "../../generated/TroveManager/TroveManager"; import { createBorrow, createDeposit, createLiquidate, createRepay, createWithdraw, } from "../entities/event"; import { getOrCreateTrove } from "../entities/trove"; import { getCurrentETHPrice } from...
<filename>src/MarkdownParser.ts // 軽く書けるならと書いてみたけどあとで消すかも // 特にpre周りの処理がひどい・・ export const enum BlockType { Empty, Content, Heading, List, PrevHeading, Pre, } // TODO: このStateはBlockに統一できるので後で統合する interface State { type: BlockType; body: string[]; title: string; indent: number; level?: number; } export clas...
'use strict'; import { argv } from 'yargs'; import * as path from 'path'; import * as fs from 'fs-extra'; import chalk from 'chalk'; var S = require('string'); var AsciiTable = require('ascii-table'); import { assert } from 'chai'; import { log } from './lib/log'; export { log } from './lib/log'; import { IValidate, V...
import { workspace, window, commands, extensions, Uri, EventEmitter, ExtensionContext, TextDocumentContentProvider, ViewColumn, TextDocument } from "vscode"; import { LanguageClient, LanguageClientOptions, SettingMonitor, ServerOptions, TransportKind, NodeModule, ForkOptions, RequestType } from "vscode-languageclient"...
import { defaultSettings, gameSettings, getAuthInfo, serverSettings, updateSettings } from '../../values'; import { isSingleplayer, socketSend } from '../../lib/gameplay/connect'; import { SettingsGUI } from '../parts/settingsHelper'; import * as GUI from '@babylonjs/gui/'; import { rebindControls } from '../../lib/pla...
import type { CSSProperties, VNodeTypes, PropType } from 'vue'; import { computed, ref, defineComponent } from 'vue'; import VcSlider from '../vc-slider/src/Slider'; import VcRange from '../vc-slider/src/Range'; import VcHandle from '../vc-slider/src/Handle'; import type { VueNode } from '../_util/type'; import { withI...
// prettier-ignore import { AIRBORN_ISR_TYPE_ID, AIR_REFUELING_SQUADRON_ID, ARMY_INFANTRY_COMPANY_TYPE_ID, ARTILLERY_BATTERY_TYPE_ID, ATTACK_HELICOPTER_TYPE_ID, BLUE_TEAM_ID, BOMBER_TYPE_ID, C_130_TYPE_ID, DESTROYER_TYPE_ID, RADAR_TYPE_ID, RED_TEAM_ID, SAM_SITE_TYPE_ID, SOF_TEAM_TYPE_ID, STEALTH_BOMBER_TYPE_ID, STEALTH...
// Type definitions for redux-little-router 15.0.0 // Project: https://github.com/FormidableLabs/redux-little-router // Definitions by: priecint <https://github.com/priecint> // parkerziegler <https://github.com/parkerziegler> // TypeScript version: 2.4 import * as React from "react"; import { Reducer,...
<reponame>TristanTheLamb/vscode-gitlens<gh_stars>1-10 'use strict'; import { Uri } from 'vscode'; import { memoize, Strings } from '../../system'; import { GitUri } from '../gitUri'; import { GitReference } from '../models'; import { GitCommit, GitCommitType } from './commit'; import { GitFile, GitFileStatus } from './...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *-------------------------------------------------------------------------...
<filename>src/messages.ts 'use strict'; import { ConfigurationTarget, MessageItem, window } from 'vscode'; import { configuration, KeyMap } from './configuration'; import { Container } from './container'; import { GitCommit } from './git/gitService'; import { Logger } from './logger'; export enum SuppressedMessages { ...
import { RouterAction } from "connected-react-router"; import * as Moniker from "moniker-native"; import * as React from "react"; import AceEditor from "react-ace"; import { IChartState, IChartVersion, IRBACRole } from "../../shared/types"; import { ErrorSelector } from "../ErrorAlert"; import LoadingWrapper from "../...
<reponame>Cyrus-d/date-io import defaultDayjs from "dayjs"; import customParseFormat from "dayjs/plugin/customParseFormat"; import advancedFormat from "dayjs/plugin/advancedFormat"; import { IUtils } from "@date-io/core/IUtils"; defaultDayjs.extend(customParseFormat); defaultDayjs.extend(advancedFormat); interface Op...
<reponame>lagunalabsio/XREngine import { NullableId, Paginated, Params, ServiceMethods } from '@feathersjs/feathers' import appRootPath from 'app-root-path' import fs from 'fs' import path from 'path' import { SceneData, SceneJson, SceneMetadata } from '@xrengine/common/src/interfaces/SceneInterface' import { isDev } ...
<gh_stars>0 import { flags } from "@salesforce/command"; import { Messages } from "@salesforce/core"; import CreateDeltaPackageImpl from "@dxatscale/sfpowerscripts.core/lib/sfdxwrappers/CreateDeltaPackageImpl"; import PackageMetadata from "@dxatscale/sfpowerscripts.core/lib/PackageMetadata"; import ArtifactGenerator fr...
<filename>packages/next/src/schematics/application/lib/create-application-files.helpers.ts export function createAppJsx(name: string) { return ` <h2>Resources &amp; Tools</h2> <p> Thank you for using and showing some ♥ for Nx. </p> <div className="flex github-star-container"> <a href="http...
<filename>packages/api/src/app/stream-info/stream-info-app.ts import express, { Router } from 'express' import 'express-async-errors' // it monkeypatches, i guess import morgan from 'morgan' import { createStore } from '../store' import { healthCheck } from '../../middleware' import logger from '../../logger' import...
<reponame>chancyk/umbrella import type { Implementation2O, MultiFn2O } from "@thi.ng/defmulti"; import { DEFAULT, defmulti } from "@thi.ng/defmulti"; import { illegalArgs } from "@thi.ng/errors"; import type { Color, ColorConversion, ColorMode, IColor, ReadonlyColor, } from "./api"; import { hcyaRgb...
<gh_stars>10-100 /** Functions to interact with the arxiv page ex. getting the arXiv ID of the page. */ import { Author, Paper } from './api/document' export const RE_IDENTIFIER = new RegExp( '(?:' + // begin OR group '(?:arXiv:)(?:(\\d{4}\\.\\d{4,5})(?:v\\d{1,3})?)...
import { some } from "lodash"; import { NodeSelection, TextSelection } from "prosemirror-state"; import { CellSelection } from "prosemirror-tables"; import { EditorView } from "prosemirror-view"; import * as React from "react"; import createAndInsertLink from "@shared/editor/commands/createAndInsertLink"; import { Comm...
import card from './Character_Bennett_Card.jpg' import thumb from './Character_Bennett_Thumb.png' import c1 from './Constellation_Grand_Expectation.png' import c2 from './Constellation_Impasse_Conqueror.png' import c3 from './Constellation_Unstoppable_Fervor.png' import c4 from './Constellation_Unexpected_Odyssey.png' ...
/* tslint:disable */ /* eslint-disable */ import { ConcreteRequest } from "relay-runtime"; export type FollowArtistInput = { artistID: string; clientMutationId?: string | null; unfollow?: boolean | null; }; export type FollowArtistPopoverRowMutationVariables = { input: FollowArtistInput; excludeArt...
/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ import { EventEmitter } from "events"; import { assert } from "@fluidframework/common-utils"; import { IFluidObject, IFluidLoadable, IFluidRouter, IRequest, IResponse, IFluidHandle, } from "@...
<gh_stars>1-10 import { Achievement, GameTypes, GameType, Player, PlayerGameInfo, PlayerInfo, HidePlayerGameInfo, OLD_GAME_TYPES } from "hive-api"; import { UpdateService } from "./UpdateService"; import { database } from "firebase-admin"; import { Updater } from "lergins-bot-framework"; import { google } from 'google...
<gh_stars>1-10 import { EventEmitter } from 'node:events'; import { Client, ColorResolvable, EmojiIdentifierResolvable, GuildMember, Message, MessageEmbed, MessageEmbedOptions, MessageMentionOptions, MessageReaction, NewsChannel, PermissionResolvable, Snowflake, Text...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import get from 'lodash/get'; import { DialogInfo, DialogSchemaFile, ITrigger, SDKKinds, SkillManifestFile, LuFile, QnAFile } from '@bfc/shared'; import { JSONSchema7 } from '@bfc/extension-client'; import { Activities, Activity, activityHandl...
<gh_stars>1-10 import { HttpClient } from '@angular/common/http'; import { Injectable } from '@angular/core'; import * as _ from 'lodash'; import { availableCoins, CoinOpts } from './coin'; import { Token, TokenOpts, TokensListAPIUrl } from './token'; import { PersistenceProvider } from '../../providers/persistence/pe...
<filename>src/tasks/patreon.ts import { TextChannel } from 'discord.js'; import { ArrayActions, KlasaUser, Task } from 'klasa'; import fetch from 'node-fetch'; import { O } from 'ts-toolbelt'; import { patreonConfig } from '../config'; import { BadgesEnum, BitField, Channel, PatronTierID, PerkTier, Time } from '../lib...
import { newSpecPage } from '@stencil/core/testing'; import { Components } from '../../components.d'; import { CustomHTMLElement } from '../../utils/types'; import { DATA_STREAMS } from '../charts/common/tests/chart/constants'; import { DEFAULT_CHART_CONFIG } from '../charts/sc-webgl-base-chart/chartDefaults'; import ...
import React from 'react'; import { flatten } from 'lodash'; import { Flex, Box } from '@rebass/emotion'; import { DataList, DataListContent, DataListItem, DataListItemRow } from '@patternfly/react-core'; import { DataListAction } from '@patternfly/react-core'; import PlanActions from './PlanActions'; import { Table,...
import React from 'react'; import { Text, Button, Platform, ScrollView, StyleSheet, View, Picker, } from 'react-native'; import { Speech } from 'expo'; import Touchable from 'react-native-platform-touchable'; import HeadingText from '../components/HeadingText'; import { Colors } from '../constants'; impor...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
<filename>src/extensions/dependency-resolver/dependency-resolver.extension.ts import { SemVer } from 'semver'; import R from 'ramda'; import fs from 'fs-extra'; import { SlotRegistry, Slot } from '@teambit/harmony'; import { DependenciesPolicy, DependencyResolverVariantConfig, DependencyResolverWorkspaceConfig, ...
<gh_stars>0 import * as fs from "fs"; import * as path from "path"; import tl = require("vsts-task-lib/task"); import { log } from "util"; function DumpField(field) { var line = `- **Argument:** ${field.name}\r\n`; line += ` - **Description:** ${field.helpMarkDown}\r\n`; line += ` - **Type:** ${fiel...
import * as React from 'react'; import toArray from 'rc-util/lib/Children/toArray'; import warning from 'rc-util/lib/warning'; import { DataNode, FlattenNode, NodeElement, DataEntity, Key, EventDataNode } from '../interface'; import { getPosition, isTreeNode } from '../util'; import { TreeNodeProps } from '../TreeNode'...
import {languageFromLocale, regionFromLocale} from '@shopify/i18n'; import {memoize, autobind} from '@shopify/javascript-utilities/decorators'; import { I18nDetails, PrimitiveReplacementDictionary, ComplexReplacementDictionary, TranslationDictionary, LanguageDirection, } from './types'; import { dateStyle, ...
import Koa from "koa" import chromium from "chrome-aws-lambda" import Router from "koa-router" import axios from "axios" import querystring from "querystring" import timezones from "timezones.json" import url from "url" import request from "request" import { PassThrough } from "stream" const port = process.env.PORT ||...
import { Injectable } from "@angular/core"; import { isNil } from "lodash-es"; import * as moment from 'moment'; import { Logger } from "src/app/logger"; import { DID } from "../model/did.model"; import { DIDDocument } from "../model/diddocument.model"; import { DIDService } from "./did.service"; import { DIDSyncServic...
import { ChildProcess, ChildProcessWithoutNullStreams, spawn as spawnChildProcess } from 'child_process'; import { createInterface as readlines } from 'readline'; import { fromAsyncIterable, pause, resume, write } from './utils'; import { extractMessage, FFmpegError } from './errors'; import { getFFmpegPath } from ...
<filename>test/commands/GanacheCommands.test.ts<gh_stars>100-1000 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. import * as assert from 'assert'; import { ChildProcess } from 'child_process'; import * as sinon from 'sinon'; import { commands, OutputChannel, QuickPickIt...
import { IProject } from '../../config/types'; import { AnyAction } from 'redux'; import { CREATE_PROJECT_SUCCESS, CREATE_PROJECT_ERROR, TGetState, IGetFirebase, VIEW_PROJECT_SUCCESS, VIEW_PROJECT_ERROR, NOT_VIEW_PROJECT_SUCCESS, NOT_VIEW_PROJECT_ERROR, DELETE_PROJECT_SUCCESS, DE...
/* eslint-disable no-console */ /* eslint-disable @typescript-eslint/consistent-type-definitions */ import { Actions, ProvidedDeps, ReturnTypes, WorkflowState } from './types' import { Logs } from './util/errors' import { ActionStatus, WorkflowStatus, NodeStatus, getActionStatusFromWorkflowStatus, isWorkflowS...
import { Octokit } from '@octokit/rest'; import { Variant } from 'js-slang/dist/types'; import { MissionRepoData } from '../../../commons/githubAssessments/GitHubMissionTypes'; import { Grading, GradingOverview } from '../../../features/grading/GradingTypes'; import { Device, DeviceSession } from '../../../features/re...
<gh_stars>1-10 import { DateTime } from 'luxon' import { configuration } from './configuration' const { startDates } = configuration // 1 : Thur 7-12 // 2 : Fri 9-1 // 3 : Fri 2-6.30 // 4 : Fri 8-12 // 5 : Sat 9-4.30 // 6 : Sat 7-12 // 7 : Sun 10-4.30 const getRegularSlotTimes = (year: number) => { const start = ...
import * as React from 'react'; import { max, extent } from 'd3-array'; import { localPoint } from '@visx/event'; import { curveMonotoneX } from '@visx/curve'; import { Box, theme } from '@chakra-ui/react'; import { LinearGradient } from '@visx/gradient'; import { GridRows, GridColumns } from '@visx/grid'; import { sca...
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format */ import stream from 'stream'; import { DeviceLogEntry, _SandyDevicePluginInstance, _SandyPluginDefinition, De...
<filename>src/internal/nativeModule.web.ts /** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format */ import { NetInfoNativeModule, DEVICE_CONNECTIVITY_EVENT, NetInfoNat...
/* eslint-disable @typescript-eslint/unified-signatures */ import Collection, { CollectionConstructor } from '@discordjs/collection'; import { GuildSettings } from '@lib/types/settings/GuildSettings'; import { RawModerationSettings } from '@lib/types/settings/raw/RawModerationSettings'; import { Time } from '@utils/con...
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import clsx from 'clsx'; import Translate from '@docusaurus/Translate'; import Link from '@docusaurus/L...
import { validateLinks } from '@joplin/renderer'; const stringPadding = require('string-padding'); const urlUtils = require('./urlUtils'); const MarkdownIt = require('markdown-it'); // Taken from codemirror/addon/edit/continuelist.js const listRegex = /^(\s*)([*+-] \[[x ]\]\s|[*+-]\s|(\d+)([.)]\s))(\s*)/; const emptyL...
<gh_stars>0 import { Component, Input, OnInit } from '@angular/core'; import { CalendarMonths, MonthCalendarDay, YearCalendarDay, } from './ngx-calendar-helper.config'; @Component({ selector: 'ngx-calendar-helper', templateUrl: './ngx-calendar-helper.component.html', styleUrls: ['./ngx-calendar-helper.comp...
<gh_stars>0 import { expect } from "@glimmer/util"; import { Option, Maybe, Dict, JitRuntimeResolver, Helper as GlimmerHelper, ModifierManager, Invocation, Helper, Template } from "@glimmer/interfaces"; import { Owner } from "@glimmer/di"; import { ComponentDefinition, ComponentManager, Componen...
<reponame>blurymind/tilemap import type { AbstractRenderer } from '@pixi/core'; import { BaseTexture } from '@pixi/core'; import { Bounds } from '@pixi/display'; import { Buffer as Buffer_2 } from '@pixi/core'; import type { CanvasRenderer } from '@pixi/canvas-renderer'; import * as constants from '@pixi/constants...
<gh_stars>0 /** * @license * Copyright 2020 Dynatrace 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 applicab...
import * as vscode from 'vscode' import * as languageserver from './languageserver'; import * as fetch from 'node-fetch'; import * as path from 'path'; import * as fs from 'fs'; const fetchData = async (url: string, handler: (data: string) => void, resolve?: () => void) => { try { fetch.default(url) ...
<reponame>potenstop/chook<filename>src/data/rest/RestConnection.ts import * as http from "http"; import {OutgoingHttpHeaders, RequestOptions} from "http"; import {RequestMethod} from "../../enums/RequestMethod"; import {JSHelperUtil} from "../../util/JSHelperUtil"; import {HttpRequestError} from "../../error/HttpReques...
import React, {useState, useRef, useEffect} from 'react'; import { Button, Card, H6, ControlGroup, HTMLSelect, InputGroup, Spinner, Checkbox, RadioGroup, Radio, } from '@blueprintjs/core'; import { ContentPaneProps } from '../../models/ContentPaneProps'; import { ApiHelper, ApiResponse } from '../../util/ApiHelper'...
// Routing // // Fava intercepts all clicks on links and will in most cases asynchronously // load the content of the page and replace the <article> contents with them. import { Writable } from "svelte/store"; import { select, delegate, fetch, handleText } from "./helpers"; import e from "./events"; import { notify } ...
/** * Copyright (c) 2021, Diabeloop * HCP team card tests * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, t...
import API, { graphqlOperation } from '@aws-amplify/api'; import { GraphQLResult } from '@aws-amplify/api/lib/types'; import '@aws-amplify/pubsub'; import React, { useEffect, useReducer } from 'react'; import { Header, Icon, Image, Message, Segment, Statistic, Table, } from 'semantic-ui-react'; import * a...
import {hex2Rgb} from "../hex-rgb"; import {RGBType, RgbaObject} from '../types' type InputRGAArray = [ w:number | null, ...rest:number[] ] type InputHSLArray = [w:null|number|string, h:string, s:string, l:string, ...rest: number[]] export const defaultNumberParam = (v: number | null|undefined, d: number...
import { isRef } from "./ref" import { isString, isArrayLike, isBoolean, isObject, isFunction, isElement, isNumber, keys, forEach, } from "./util" import { isUnitlessNumber } from "./css-props" import type { HTML } from "../index" export const SVGNamespace = "http://www.w3.org/2000/svg" const XLinkNa...
import React, { forwardRef, memo, useEffect, useImperativeHandle, useMemo, useRef, useState, } from 'react' import {Button, Drawer, Form, Row, Col, Grid} from 'antd' import VBasicFormItem, {IFormItemProps} from '../vBasicForm/components/FromItem' import {FormContext} from '../vBasicForm/index' const {useB...
/* * @文件描述: * @公司: thundersdata * @作者: 阮旭松 * @Date: 2020-04-27 14:53:56 * @LastEditors: 阮旭松 * @LastEditTime: 2021-02-04 15:51:38 */ import { Pie, PieOptions, Statistic } from '@antv/g2plot'; // import G2DonutLayer, { DonutViewConfig } from '@antv/g2plot/lib/plots/Pie/layer'; import { PlotCreateProps, chartColorA...
/// <reference types="node" /> /// <reference types="express" /> import { EventEmitter } from 'events'; import * as Express from 'express'; import * as utils from './utils'; import { CoreConfig } from './config/coreConfigs'; import { UserConfigOptions } from './interfaces/userConfigOptions'; import { AgentData } from '...
<reponame>maggieghamry/kibana /* * 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 (th...
import { AsyncTask, Priority, RequestIdleCallbackDeadline, RequestIdleCallbackOptions, Task, Timer } from "@clarity-types/core"; import { Setting, TaskFunction, TaskResolve, Tasks } from "@clarity-types/core"; import { Code, Metric, Severity } from "@clarity-types/data"; import * as metadata from "@src/data/metadata"; ...
import { extname } from "path"; import { readFileSync } from "fs"; import URI from "vscode-uri"; import { TypeSystemDefinitionNode, isTypeSystemDefinitionNode, TypeSystemExtensionNode, isTypeSystemExtensionNode, DefinitionNode, GraphQLSchema } from "graphql"; import { TextDocument, NotificationHandler...
<gh_stars>1-10 import * as React from "react"; import { findDOMNode } from "react-dom"; export interface ITriggerProps<T> { onClick: () => void; ref: (v: T) => void; } export interface IReactToPrintProps { /** Trigger action used to open browser print */ trigger: <T>() => React.ReactElement<ITriggerPr...
/* * 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 { mapValues, last, first } from 'lodash'; import moment from 'moment'; ...
<filename>web/ui/src/app/lineage/graph/graph-builder.ts /* * Copyright 2017 ABSA Group Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LI...
/** * Code for using Google's Perspective API for filters. * @author mia-pi-git */ import {ProcessManager, Net, Repl} from '../../lib'; import {Config} from '../config-loader'; import {toID} from '../../sim/dex-data'; // 20m. this is mostly here so we can use Monitor.slow() const PM_TIMEOUT = 20 * 60 * 1000; export...
import { Item } from "@rxweb/dom"; import { MultiLingualData } from "@rxweb/localization"; import { TemplateConfig } from "../.."; import { TableTemplateConfig } from "../../interface/config/table-template-config"; import { GridColumnConfig } from "../../interface/config/grid-column-config"; import { EVENTS } from ".....
/*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *-------------------------------------------------------------------------...
<filename>src/mech.ts import { Int64LE } from "int64-buffer"; import * as pkcs11 from "pkcs11js"; import * as fs from "fs"; import * as core from "./core"; import { IParams } from "./keys/params"; import { MechanismEnum } from "./mech_enum"; import type { KeyGenMechanism } from "./objects"; export * from "./mech_enum"...
import { Behavior} from '../../base/delegreater'; import { prefix as PREFIX } from '../../config'; import {Listener} from "../../base/decorator-functions"; const PAGER_SELECTOR = `.${PREFIX}-pager`; export class PagerBehavior extends Behavior { constructor() { super(); } init(root: ParentNode) {...
/** * Copyright 2018 Google Inc. 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 appli...
import * as THREE from 'three'; import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls'; import { VRButton } from 'three/examples/jsm/webxr/VRButton'; import { XRControllerModelFactory } from 'three/examples/jsm/webxr/XRControllerModelFactory'; import { XRHandModelFactory } from 'three/examples/jsm/w...
import fs from 'fs'; import path from 'path'; import type { Core, CoreEventMap, EventListener, Preset, Summary, TestDescriptor, TestResult, } from '@acot/types'; import Emittery from 'emittery'; import _ from 'lodash'; import type { LaunchOptions, Viewport } from 'puppeteer-core'; import { BrowserPool } f...
import * as _ from 'lodash'; import * as angular from 'angular'; import 'angular-mocks'; import {ResolweApi} from '../api/index'; import {MockBase, MockApi} from '../api/mock'; import {ngEqualMatcher} from './matchers'; import {SharedStoreFactory, SharedStoreProvider} from '../core/shared_store/index'; import {GenErro...
// Type definitions for ethereum-protocol 1.0 // Project: https://www.npmjs.com/package/ethereum-protocol // Definitions by: <NAME> <https://github.com/LogvinovLeon> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.4 import BigNumber from 'bignumber.js'; export type JSONRPCE...
import { IAssessmentRecord } from "assessments/types"; import { IApplicationRecord } from "../../applications/ApplicationTypes"; import { Fields } from "./fields"; // import { IJudgeAverages } from "applications/state/applicationsReducer"; import { IJudgeRecord, judgeType } from "../../judges/JudgeTypes"; import { Judg...
<filename>packages/order-utils/src/transformer_utils.ts import { Order } from '@0x/types'; import { AbiEncoder, BigNumber } from '@0x/utils'; import * as ethjs from 'ethereumjs-util'; import { constants } from './constants'; const { NULL_ADDRESS } = constants; const ORDER_ABI_COMPONENTS = [ { name: 'makerAddress...
<filename>src/classes/config.ts<gh_stars>10-100 import {GitHub} from '@actions/github/lib/utils'; // eslint-disable-next-line import/named import {GetResponseTypeFromEndpointMethod} from '@octokit/types'; import yaml from 'js-yaml'; import {get} from 'lodash-es'; import {groupConsoleLog, info} from '../logger'; import...
<filename>src/filter.ts<gh_stars>0 import { abi } from 'thor-devkit'; import * as utils from 'web3-utils'; import * as ethers from 'ethers'; import moment from 'moment'; import { flatMap, toArray } from 'rxjs/operators'; import { from } from 'rxjs'; /** * Creates a thor-devkit event signature * @param topic event si...
/* Copyright 2018-2020 National Geographic Society Use of this software does not constitute endorsement by National Geographic Society (NGS). The NGS name and NGS logo may not be used for any purpose without written permission from NGS. Licensed under the Apache License, Version 2.0 (the "License"); you may...
import React, { useContext, useEffect, useState } from "react"; import Home from "@templates/Home"; import { useRouter } from "next/router"; import { SocketContext } from "@context/socket"; import useTokenHandler from "@hooks/useTokenHandler"; import { UserContext } from "@context/user"; import useUserHandler, { emitUs...
/** * @license * Copyright 2020 JBoss 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 o...
<gh_stars>1-10 import express = require('express'); import * as api from './api'; import * as fsPath from 'path'; import * as nunjucks from 'nunjucks'; import * as passport from 'passport'; import {Strategy} from 'passport-google-oauth20'; import {URL} from 'url'; import {ensureLoggedIn} from 'connect-ensure-login'; ...
import { TemplateResult } from "lit"; import { Runtime } from "starboard-notebook/dist/src/types"; import { LitHtml } from "starboard-notebook/dist/src/runtime/esm/exports/libraries"; import { NBGraderMetadata } from "./types"; import { getGraderPluginMode } from "../plugin/state"; declare const runtime: Runtime; decl...
import { Client, constant, Plugin, Store, Transport } from "@doras/core"; import { BatchEvent, ClientContext, DataItem, PluginRegisterFunc, ReportArgs } from "@doras/types"; import { computeStackTrace, createSummary, exceptionFromCustomCatchPrimitive, exceptionFromStacktrace, isError, isPrimitive,...
import {CommitOptions, mapActions, mapState, Module, Store} from 'vuex' import { capitalize, clone, IObject, sleep } from 'ts-utils2' import Entity from './Entity' import { IApiRouteConfig } from './IApiRouteConfig' const methods: string[] = ['fetch', 'create', 'post', 'remove', 'patch', 'put']; function transform (i...
import React from 'react'; import useDarkMode from 'use-dark-mode'; import { Box, Text, darkThemeClass } from '@modulz/design-system'; import { ArrowLeftIcon } from '@radix-ui/react-icons'; export const Hero = () => { const darkMode = useDarkMode(undefined, { classNameDark: darkThemeClass, classNameLight: 't...