text
stringlengths
3.08k
15.5k
import { ArgumentNode, DirectiveNode, FieldDefinitionNode, GraphQLError, Kind, NamedTypeNode, parse, TypeNode, valueFromASTUntyped, visit, } from 'graphql'; import invariant from 'invariant'; import { ExtendedDefinitionNode, ExtendedDocumentNode } from './types'; interface CreateConnectionOptions {...
<gh_stars>1-10 import { arrayMethods } from "@/typeScript/arrayMethods"; import breadcrums from "./breadcrums" const module = { namespaced: true, modules: { breadcrums // breadcrums: require("./breadcrums") }, state: { honorsAndAwards: require("./honorsAndAwards"), lisencesAndCerti...
<filename>normalizr/normalizr-tests.ts /// <reference path="normalizr.d.ts" /> import { normalize, Schema, arrayOf, unionOf, valuesOf } from 'normalizr'; // First, define a schema for our entities: const article1 = new Schema('articles'); const user1 = new Schema('users'); // Then we define nesting rules: article1...
<filename>vuu-ui/packages/utils/src/column-utils.ts import { functor, overrideColName } from './filter-utils'; import {Row} from "./row-utils"; const SORT_ASC = 'asc'; export type SortCriteriaItem = string | [string, 'asc']; // TODO where is 'desc'? export interface ColumnMap { [columnName: string]: number; } exp...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. 'use strict'; /* Comparing performance metrics is not easy (the metrics can and always get skewed). One approach is to run the tests multile times and gather multiple sample data. For Extension activation times, we load bo...
<reponame>mohsen1/types-publisher import { Options } from "../lib/common"; import { parseMajorVersionFromDirectoryName } from "../lib/definition-parser"; import { AllPackages, PackageBase, TypingsData } from "../lib/packages"; import { sourceBranch, typesDirectoryName } from "../lib/settings"; import { consoleLogge...
<filename>packages/next/build/webpack/plugins/next-esm-plugin.ts /** * MIT License * * Copyright (c) 2018 <NAME> * * 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, ...
<reponame>stevenwaterman/LpMealPlanner import glp from "GLPK"; import {Day, Recipe, Meal} from "./data"; export function loadProblem(lp: glp.Problem): void { loadStruct(lp); loadAux(lp); loadConstraints(lp); } type BaseVariable = { idx: number, name: string, min?: number, max?: number, } ...
import Taro from "@tarojs/taro"; const { useRef, useCallback, useState, useEffect } = Taro /** api **/; import { View } from "@tarojs/components"; import { ITouchEvent } from "@tarojs/components/types/common"; import { noop } from "../utils" import { useTouch } from "../common/mixins/touch"; import "./index.less"; con...
import semver from "semver"; import { Release, DependencyType, PackageJSON, VersionType } from "@changesets/types"; import { Package } from "@manypkg/get-packages"; import { InternalRelease, PreInfo } from "./types"; import { incrementVersion } from "./increment"; /* WARNING: Important note for understandi...
import { BigNumber as BigNumberJs } from 'bignumber.js'; import { BigNumber, constants } from 'ethers'; import { GasRecommendationType, ProtocolAction } from './types'; export const valueToWei = (value: string, decimals: number): string => { return new BigNumberJs(value).shiftedBy(decimals).toFixed(0); }; export co...
import { ApolloClient } from "@apollo/client"; import { Annotation, Candle, DataSource, LabelAnnotation } from "../.."; import { CandleDetails, candleQuery, candlesQuery, candlesQueryVariables, candleSubscriptionQuery, Interval, marketDetail, marketDetailQuery, marketDetailVariables, order, order...
<gh_stars>0 import { Component, OnInit } from "@angular/core"; import { BandScale, Chart, ChartAssist, ChartPalette, CHART_PALETTE_CS_S, IAccessors, IChartAssistSeries, IChartSeries, ILineAccessors, ISimpleThresholdZone, IXYScales, LineAccessors, LinearScale, LineRenderer, MappedValueProvider, StatusAccessors, ...
/** * Resource Manager API * API for the Resource Manager service. Use this API to install, configure, and manage resources via the "infrastructure-as-code" model. For more information, see [Overview of Resource Manager](/iaas/Content/ResourceManager/Concepts/resourcemanager.htm). * OpenAPI spec version: 20180917 ...
import { Injectable, Inject } from '@nestjs/common' import { uuid } from 'uuidv4' import * as kennitala from 'kennitala' import flatten from 'lodash/flatten' import type { User } from '@island.is/auth-nest-tools' import { MMSApi, Grade, GradeTypeResult, GradeResult, } from '@island.is/clients/mms' import { N...
import * as fs from 'fs'; import deepEqual from 'deep-equal'; import { Route, ResolvedOptions } from './types'; import { debug, isDynamicRoute } from './utils'; import { stringifyRoutes } from './stringify'; import { tryParseCustomBlock, parseSFC } from './parseSfc'; function prepareRoutes(routes: Route[], options: Re...
<reponame>brean/CuteGuys import { Observable } from "babylonjs"; import * as GUI from "babylonjs-gui"; class IconCheckBox { private _icon: GUI.Image; private _offIcon: GUI.Image; private basePathUi = 'ui'; private _checked: boolean = true; public onValueChangedObservable: Observable<boolean> constructor(i...
import { getModelType, IType, PureModel, PureCollection } from '@datx/core'; import { mapItems } from '@datx/utils'; import { Response } from '../Response'; import { IResponseSnapshot } from '../interfaces/IResponseSnapshot'; import { CachingStrategy } from '../enums/CachingStrategy'; import { IFetchOptions } from '.....
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { interpolateName } from 'loader-utils'; import * as path from 'path'; import * as postcss from 'postcss'; imp...
import { shade, lighten } from 'polished'; import styled from 'styled-components'; export const Container = styled.div` position: absolute; padding-top:20px; top: 0; left: 0; height: 100%; width: 100%; background:#01325F; display: flex; flex-direction: column; justify-content: center; align-items...
import { MaybeRes } from './util' import { ezPromise, maybe } from './util' import Config from './Config' import * as express from 'express' import * as session from 'express-session' import * as cookie from 'cookie-parser' import log from './util/log' import { Container } from './Container' import { ApiService } from ...
<gh_stars>0 import { KeyMap, KeyMapCtrl, KeyMapShift, SpecialKeyMap } from "./key_codes.ts"; // https://en.wikipedia.org/wiki/ANSI_escape_code // https://github.com/nodejs/node/blob/v13.13.0/lib/internal/readline/utils.js const kUTF16SurrogateThreshold = 0x10000; // 2 ** 16 const kEscape = "\x1b"; export interface K...
<filename>src/Event.ts import { Observable } from 'rxjs/Observable' import { fromPromise } from 'rxjs/observable/fromPromise' import { CurrencyNetwork } from './CurrencyNetwork' import { processExtraData } from './extraData' import { TLProvider } from './providers/TLProvider' import { User } from './User' import util...
<filename>src/apis/anilist/interfaces/Media.ts import { Character, CharacterConnection, CharacterRole } from './Character'; import { AiringSchedule, AiringScheduleConnection } from './AiringSchedule'; import { Staff, StaffConnection, StaffRoleType } from './Staff'; import { RecommendationConnection } from './Recommenda...
import { MessengerEvent, AbstractMessenger, } from './AbstractMessenger'; import { EventEmitter } from "electron"; /** * Calling a method can result in failures. When this is the case we provide an `IMessengerError`. */ interface IMessengerError { message: string; stack: string[]; } /** * The information n...
<filename>packages/core-browser/src/menu/next/menubar-service.ts import { Injectable, Autowired } from '@opensumi/di'; import { Event, Emitter } from '@opensumi/ide-core-common/lib/event'; import { IDisposable, Disposable } from '@opensumi/ide-core-common/lib/disposable'; import { AbstractMenuService, IMenu, SubmenuIt...
import React, { useCallback } from "react"; import { connect } from "react-redux"; import File from "../File"; import { State, Editors, EditorState } from "../../state"; import { editorAdd, editorDiscardAll, editorUpdate, editorRemove, editorSetDescription, setErrorMessage } from "../../action"; import { Fo...
import { BaseRestResource } from './BaseRestResource'; import { BaseDataMapper } from './data-mapper/index'; import { isObject } from './helpers'; import { ResourceResponse } from './interfaces/BaseResource'; export interface RepositorySettings { pageKey: string; perPageKey: string; sortKey: string; searchKey...
<gh_stars>100-1000 import { msg, OscType } from "@supercollider/server"; import { Dryad, DryadPlayer, Command } from "dryadic"; import _ from "lodash"; import Group from "./Group"; import { OSCEvent } from "./middleware/OSCSched"; import { Event, eventListIterator, loopedEventListIterator } from "./utils/iterators"; ...
<filename>client/src/app/views/+admin/exercise/update/exercise-update.component.ts import { Component, OnInit, OnDestroy } from '@angular/core'; import { FormGroup, FormBuilder, Validators } from '@angular/forms'; import { Apollo } from 'apollo-angular'; import { MatSnackBar } from '@angular/material'; import { Router,...
import { AddProjectTaskRequest } from '@core/models/project-task'; import { TaskViewModel } from '@core/models/view-models/project-task-dto'; import { createAction, props } from '@ngrx/store'; import { HttpErrorResponse } from '@angular/common/http'; import { AddCommentRequest } from '@core/models/requests/add-comment-...
import app, { Component } from '../../src/apprun'; import { StateMachine, find_transition } from './state-machine'; type Events = 'NUM' | 'OP' | 'DOT' | 'CE' | 'EQ' | '+/-'; type States = 'START' | 'FIRST_ARG' | 'FIRST_ARG_FLOAT' | 'OP' | 'SECOND_ARG' | 'SECOND_ARG_FLOAT' | 'EQ'; const state = { _state: 'START' as...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. 'use strict'; import { inject, injectable } from 'inversify'; import * as uuid from 'uuid/v4'; import { Disposable, Event, EventEmitter } from 'vscode'; import * as vsls from 'vsls/vscode'; import { ILiveShareApi } from '.....
/* eslint-disable jsx-a11y/label-has-associated-control */ import React, { useEffect, useState } from "react"; import styled, { keyframes } from "styled-components"; import { useTranslation } from "react-i18next"; import { useSelector } from "react-redux"; import BN from "bn.js"; import { PageContentWrapper } from ".....
<filename>src/state/reducerFactory/transactionsReducerFactory/transactionsReducerFactory.ts import Transaction from 'models/Transaction'; import { TransactionConfig } from 'models/Transaction/TransactionConfig'; import YYYYMMDD from 'utils/dateUtils/YYYYMMDD'; import getRandomString from 'utils/getRandomString'; impor...
<reponame>felixwolter/idai-field import { DragDropModule } from '@angular/cdk/drag-drop'; import { ScrollingModule } from '@angular/cdk/scrolling'; import { NgModule } from '@angular/core'; import { FormsModule } from '@angular/forms'; import { BrowserModule } from '@angular/platform-browser'; import { NgbModule } from...
<gh_stars>0 import {isString} from "./util.js"; import {validate, ValidationError, Validator} from "./validation"; interface SQLFunc { (strings: string[] | string, ...exprs: any[]): SQL; (noescape: string): SQL; merge: (query: SQL, ...fragments: SQL[]) => SQL; } declare global { let sql: SQLFunc; } /...
import * as React from 'react'; import { StageConfigField } from 'core/pipeline'; import { CheckboxInput, TextInput } from 'core/presentation'; import { MapEditor } from 'core/forms'; import { IArtifact, IExpectedArtifact, IPipeline } from 'core/domain'; import { StageArtifactSelectorDelegate } from 'core/artifact'; i...
<reponame>shinima/trips-editor import { DOMSource, h, VNode } from '@cycle/dom' import isolate from '@cycle/isolate' import { Set } from 'immutable' import { identical } from 'ramda' import xs, { MemoryStream, Stream } from 'xstream' import Inspector from './components/Inspector' import Menubar from './components/Menub...
import styled from 'styled-components'; const backgroundColor = '#0f0b0f'; const fontColor = '#f1f1f1'; const headerColor = "#d57264"; // #b4838d const containerColor = "#242323"; const menuColor = "#504441"; //"#6c6774"; const colorEditorLink = "#fffbfe"; const btnColor = "#a8bfd7"; const btnColorHover...
import React from 'react'; import PropTypes from 'prop-types'; import warning from 'warning'; import cn from 'classnames'; import { Logotype } from '../Logotype'; import { ThemeContext } from '../../lib/theming/ThemeContext'; import { Theme } from '../../lib/theming/Theme'; import { TopBarButtonItem } from './TopBarB...
import Ajv from "ajv" import { join } from "path" import { RawConfig } from "../../../../../app/Schema/Config/Config" import { handleE } from "../../../../Control/Exception" import { Just, Maybe, maybeToUndefined, Nothing } from "../../../../Data/Maybe" import { Record, toObject } from "../../../../Data/Record" import ...
/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import {assert, hasTagName, isHTMLElement} from './util'; /** Whether there is a <td> cell in the same row as `cell`. */ export function hasDataInRow( table: HTMLTableElement, cell: HTMLTableCellElement) { const grid = gridF...
import { ParserInjection, PluginInjection } from './Injection' import File from './File' import * as path from 'path' import * as fs from 'fs-extra' import config from '../../config' import * as utils from '../../utils' import Compilation from './Compilation' import messager from '../../utils/messager' import c...
import { createDomain, sample, UnitValue, combine } from 'effector-logger/macro' import contracts from '@defihelper/networks/contracts.json' import { ethers } from 'ethers' import Balance from '@defihelper/networks/abi/Balance.json' import { BlockchainEnum, WalletFragmentFragment } from '~/api/_generated-types' import...
<filename>server/services/history.ts const cache = require('memory-cache'); import { DBObjectId } from '../types/DBObjectId'; import ValidationError from '../errors/validation'; import DatabaseRepository from '../models/DatabaseRepository'; import { Game } from '../types/Game'; import { GameHistory, GameHistoryCarrier ...
/* * Copyright 2020 balena.io * * 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 in ...
import { fromPairs, uniq } from 'lodash'; import { useMemo } from 'react'; import { EdgeDatumLayout, NodeDatum, NodesMarker } from './types'; import { Config } from './layout'; type NodesMap = Record<string, NodeDatum>; type EdgesMap = Record<string, EdgeDatumLayout[]>; /** * Limits the number of nodes by going from...
<filename>source/modules/DirectoryShadowAbstractService/SubordinateChanges.ta.ts /* eslint-disable */ import { ASN1ConstructionError as _ConstructionError, ASN1Element as _Element, ASN1TagClass as _TagClass, } from "asn1-ts"; import * as $ from "asn1-ts/dist/node/functional"; import { Incrementa...
import React from "react"; import { useCallback, useEffect, useMemo } from "react"; import { TableCellProps, Index } from "react-virtualized"; import { Table, Column } from "react-virtualized/dist/es/Table"; import { AutoSizer } from "react-virtualized/dist/es/AutoSizer"; import dayjs from "dayjs"; import clsx from "cl...
<reponame>adhithanhchb/azure-bake-ado import * as tl from "azure-pipelines-task-lib/task"; import ContainerConnection from "docker-common/containerconnection"; import AuthenticationTokenProvider from "docker-common/registryauthenticationprovider/authenticationtokenprovider" import ACRAuthenticationTokenProvider from "...
<reponame>ianalderman/cumulus-sc<filename>src/catalogHelpers.ts<gh_stars>0 import { Octokit } from "@octokit/rest"; import { paths, components } from '@octokit/openapi-types' import {Buffer} from 'buffer'; type GetRepoContentResponseDataFile = components["schemas"]["content-file"] type GetRepoContentResponseDataDir =...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *-------------------------------------------------------------------------...
// This plugin will open a window to prompt the user generate styles for a 20i styled components theme // import { getColorsAndType } from "./src/getColorAndType" // import { getTypographyCSS } from "./src/getTypography" // import { Color, ColorMap } from "./types" interface Color { main: { [opacity: number]: strin...
<gh_stars>0 import Store from '../store/store'; import View from '../view/view'; import { Board, Box, Piece, EmptyPiece, StoreState, PLAYER_WHITE, PLAYER_BLACK } from '../types'; import { PieceGameLogic } from '../model/piecegamelogic'; /** * Note that the Controller is the only module which shall know about any and ...
<reponame>rkbodenner/flagship<gh_stars>1-10 import { BattleParticipant } from './battleParticipant'; import { BattleType } from './battleType'; import { BattleState } from './battleState'; import { BattleReward } from './battleReward'; import { CampaignEvent, SerializedCampaignEvent, CampaignEventType } from './campaig...
class Node { birth_time: number depth: number children: Map<string, Node> slink: Node constructor( birth_time: number, depth: number, children: Map<string, Node> | undefined = undefined, slink: Node | undefined = undefined, ) { this.birth_time = birth_time this.depth = depth this...
import {ShaderMaterial} from 'three/src/materials/ShaderMaterial'; import {Object3D} from 'three/src/core/Object3D'; import {Mesh} from 'three/src/objects/Mesh'; import {Material} from 'three/src/materials/Material'; import {PolyScene} from '../../engine/scene/PolyScene'; import {IUniform} from 'three/src/renderers/sha...
/* eslint-disable @typescript-eslint/no-use-before-define */ import { IGuardianInfo, IGuardiansService, IOrbsRewardsService, IRewardsDistributionEvent, IStakingService, } from 'orbs-pos-data'; import { useEffect } from 'react'; import { useBoolean, useStateful } from 'react-hanger'; import { useApi } from '.....
<filename>scripts/lib/MadnetFactory.ts<gh_stars>0 //separate deploy of template from deploy of deterministic address //import { string } from "hardhat/internal/core/params/argumentTypes"; //assume you have to divide the transaction //estimate gas, observe gas limit, //return all addresses //return the logs import {...
#!/usr/bin/env node 'use strict'; import * as _ from 'lodash'; import PrefDeckTrick from './prefDeckTrick'; import PrefDeckPile, {PrefDeckSorting} from './prefDeckPile'; import PrefDeckCard, {PrefDeckSuit, PrefDeckValue} from './prefDeckCard'; import {TPrefDeckTalon, TPrefDeckDeal} from "./prefDeck.types"; export {Pr...
import path from 'path'; import { pathResult, pathResultFragment } from '../file/pathResult'; import { FileType } from '../file/FileType'; // export type FileNode = // | { // type: FileType.DIR; // children: FileNode[]; // } // | { // type: Omit<FileType, FileType.DIR>; // ...
const ns = "[Nexus]"; export const CLAMP_MIN_MAX = ns + ` clamp: max cannot be less than min`; export const ALERT_WARN_CANCEL_PROPS = ns + ` <Alert> cancelButtonText and onCancel should be set together.`; export const ALERT_WARN_CANCEL_ESCAPE_KEY = ns + ` <Alert> canEscapeKeyCancel enabled without onCancel or onClo...
<reponame>Plotist/fundamental-ngx<gh_stars>0 import { Component, NgModule, ViewChild } from '@angular/core'; import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { NavigationStart, Router, RouterEvent, RouterModule } from '@angular/router'; import { NoopAnimationsModule } from '@angul...
/** * @license * Copyright 2016 Palantir Technologies, 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...
export const cosmosNetworks = { cosmos: { prefix: 'cosmos1', }, osmosis: { prefix: 'osmo1', }, stargaze: { prefix: 'stars1', }, desmos: { prefix: 'desmos1', }, juno: { prefix: 'juno1', }, regen: { prefix: 'regen1', }, secret: { prefix: 'secret1', }, persistence:...
<reponame>cYuza/sendou-ink import { gql, UserInputError } from "apollo-server-express"; import Weapon from "../models/Weapon"; import XRankPlacement from "../models/XRankPlacement"; const RECORDS_PER_PAGE = 25; const paginatedResolvers = { pageCount: (root: any) => Math.ceil(root.total / RECORDS_PER_PAGE), record...
/* eslint-disable @typescript-eslint/no-explicit-any */ import { assertNotBrowser } from '../assertNotBrowser'; import { ProcedureType } from '../router'; import { MiddlewareFunction, middlewareMarker } from './middlewares'; import { TRPCError } from '../TRPCError'; import { getErrorFromUnknown } from './errors'; impor...
/* * Copyright 2020 Spotify AB * * 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 { Box, Divider, Grid, Typography } from "@material-ui/core" import { grey } from "@material-ui/core/colors" import { CurrentGameContext } from "contexts/CurrentGame" import { CurrentPlayerContext, PlayerRole } from "contexts/CurrentPlayer" import { useStartReviewMutation } from "generated/graphql" import { useTi...
import { spawn, call, select, put } from 'redux-saga/effects' import { ID } from 'common/models/Identifiers' import Kind from 'common/models/Kind' import Status from 'common/models/Status' import { Track, TrackMetadata, UserTrackMetadata } from 'common/models/Track' import { CommonState } from 'common/store' import { ...
import React, {MouseEvent, useEffect, useState} from "react"; import axios from 'axios' import {useParams} from 'react-router-dom'; import {Col, Collapse, Form, Row, Tabs, Typography} from "antd"; import {CommentDetails, HistoryDetails, TicketDetails, UserDetails} from "../../shared/Interfaces"; import {TicketDescripti...
<filename>src/geo/mercator_coordinate.ts import LngLat, {earthRadius} from '../geo/lng_lat'; import type {LngLatLike} from '../geo/lng_lat'; /* * The average circumference of the world in meters. */ const earthCircumfrence = 2 * Math.PI * earthRadius; // meters /* * The circumference at a line of latitude in meter...
<reponame>mrmikardo/svelte-datagrid /* eslint-disable */ /* tslint:disable */ // @ts-nocheck import { Components, JSX } from '@revolist/revogrid'; interface RevogrScrollVirtualProps { /** */ dimension?: Components.RevogrScrollVirtual["dimension"] /** */ viewportStore?: Components.RevogrScrollVirtual["...
<reponame>dio/tools<filename>internal/formatter/builders/js/utils.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. */ import { AnyJSBindingPattern, AnyNode, JSBreakStatement, ...
import { dateToUint32, readFileName, writeFileName, uint32ToDate } from './utils'; import { STORAGE_TYPES, ACCESS_TYPES } from './constants'; import type { byte, word } from 'js/types'; import { ProDOSVolume } from '.'; import { VDH } from './vdh'; import { Directory } from './directory'; const ENTRY_OFFSETS = { S...
<reponame>Harshagracy/sp-dev-fx-webparts // Generated by https://quicktype.io export interface IGetListDataAsStreamResult { wpq: string; Templates: ITemplates; ListData: IListDa...
<gh_stars>0 import * as fs from "fs"; import * as path from "path"; import { Uri, workspace, WorkspaceFolder } from "vscode"; import { PropertyBag } from "./types/PropertyBag"; import { BackEndAppInfo } from "./backend/BackEndAppInfo"; import { NinjaALRange } from "./types/NinjaALRange"; import { stringify, parse } fro...
/*--------------------------------------------------------- * Copyright (C) Microsoft Corporation. All rights reserved. *--------------------------------------------------------*/ import { EventEmitter } from 'events'; import WebSocket from "ws"; import { localize } from '../localize'; // tslint:disable: no-unsafe-...
import { StockMovementType } from '@vendure/common/lib/generated-types'; import { IFieldResolver, IResolvers } from 'apollo-server-express'; import { GraphQLSchema } from 'graphql'; import { GraphQLDateTime, GraphQLJSON } from 'graphql-scalars'; import { GraphQLUpload } from 'graphql-upload'; import { REQUEST_CONTEXT_...
<filename>storageServer.ts import levelup = require("levelup"); // import Kefir = require("kefir"); import xs from 'xstream'; import { ebisu, EbisuObject } from "./ebisu"; import { elapsedHours } from "./utils"; export interface FactUpdate { user: string; docId: string; factId: string; crea...
/* * Copyright (c) 2008-2021, Hazelcast, 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 ...
<reponame>cadowtin/tablesmith-like import GroupCallModifierTerm from './expressions/terms/groupcallmodifierterm'; import InnerDiceTerm from './expressions/terms/innerdiceterm'; import IntTerm from './expressions/terms/intterm'; import TSExpression from './expressions/tsexpression'; import TSExpressions from './expressi...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); const vscode_1 = require("vscode"); const vscode = require("vscode"); const copyPaste = require("copy-paste"); const getTitle = require("get-title"); const request = require("request"); const hyperquest = require("hyperquest"); const iconv = r...
/* ----------------------------------------------------------------------------- | Copyright (c) QuantStack. | Copyright (c) Jupyter Development Team. | Distributed under the terms of the Modified BSD License. |----------------------------------------------------------------------------*/ import DuplicatePackageChecke...
/* eslint-disable require-jsdoc */ import MQEmitter, { Message, MQEmitter as IMQEmitter } from 'mqemitter'; import AMQPLib from 'amqplib/callback_api'; import { EventEmitter } from 'events'; import hyperid from 'hyperid'; export enum ApplicationType { LISTENER = 'listener', PUBLISHER = 'publisher', BOTH = 'both...
import LoadingOutlined from '@ant-design/icons-vue/LoadingOutlined'; import PaperClipOutlined from '@ant-design/icons-vue/PaperClipOutlined'; import PictureTwoTone from '@ant-design/icons-vue/PictureTwoTone'; import FileTwoTone from '@ant-design/icons-vue/FileTwoTone'; import type { UploadListType, InternalUploadFile, ...
import TextureKeys from '../../consts/TextureKeys' import DepthKeys from '../../consts/DepthKeys' import { FauneAnimsKeys } from '../../consts/AnimsKeys' import { FlyingKnifeAnimsKeys } from '../../consts/AnimsKeys' import EventKeys from '../../consts/EventKeys' import playerMovement from './playerMovement' import Ches...
import TextField, { TextFieldProps as OriginalTextFieldProps } from '@material-ui/core/TextField' import { makeStyles } from '@material-ui/core/styles' import classnames from 'classnames' import hljs from 'highlight.js' import React, { useCallback, useContext, useEffect, useMemo, useRef, useState } from 'react' import ...
<reponame>neotracker/neotracker import { Labels } from '@neo-one/utils'; import { createChild, serverLogger } from '@neotracker/logger'; import { finalize } from '@neotracker/shared-utils'; import Knex from 'knex'; import Objection, { transaction as dbTransaction } from 'objection'; import { interval, Observable } from...
<filename>src/app/shared/form/builder/ds-dynamic-form-ui/models/list/dynamic-list.component.ts<gh_stars>0 import { ChangeDetectorRef, Component, EventEmitter, Input, OnDestroy, OnInit, Output } from '@angular/core'; import { FormGroup } from '@angular/forms'; import { Subscription } from 'rxjs'; import { filter } from...
class Distances { public static euclid(a: number[], b: number[]): number { let dist = 0.0; for (var i = 0; i < a.length; i++) { dist += (a[i] - b[i]) * (a[i] - b[i]); } if (isNaN(dist)) throw "Distance is NaN"; return dist; } } export class GenLlo...
import toml from "@iarna/toml"; import { Config } from "@kosko/config"; import env from "@kosko/env"; import { generate, print, PrintFormat, Result } from "@kosko/generate"; import fs from "fs"; import makeDir from "make-dir"; import { join } from "path"; import pkgDir from "pkg-dir"; import { Signale } from "signale";...
import { GlobalState, UmiComponentProps } from '@/common/type'; import { Button, Card, Img, Modal } from '@/components/Library'; import { FormComponentProps, WrappedFormUtils } from '@/components/Library/type'; import { connect } from '@/utils/decorators'; import classNames from 'classnames'; import domtoimage from 'do...
<filename>applications/desktop/src/notebook/epics/github-publish.ts import { shell } from "electron"; import { selectors, actions } from "@nteract/core"; import { of, empty } from "rxjs"; import { ajax } from "rxjs/ajax"; import { mergeMap, catchError } from "rxjs/operators"; import { ofType } from "redux-observable"; ...
<filename>src/mantine-demos/src/index.ts // Demos components export { Demo, CodeDemo, Configurator } from './components/Demo/Demo'; // Inline demos export { AuthenticationForm } from './shared/AuthenticationForm/AuthenticationForm'; export { AccordionDemo } from './demos/core/Accordion/Accordion.demo.label'; export { ...
<reponame>jbransom/hackium import assert from 'assert'; import { ChildProcess } from 'child_process'; import Protocol from 'devtools-protocol'; import findRoot from 'find-root'; import path from 'path'; import { decorateBrowser, ExtensionBridge, NullExtensionBridge } from 'puppeteer-extensionbridge'; import { Browser }...
import engine from 'store/src/store-engine'; import lclStorage from 'store/storages/localStorage'; import cookieStorage from 'store/storages/cookieStorage'; import { c32addressDecode } from 'c32check'; import { fetchTxList } from '@common/api/transactions'; import Router from 'next/router'; import dayjs from 'dayjs'; i...
<reponame>zedd3v/secret-agent import { EventEmitter } from 'events'; import * as http2 from 'http2'; import { ChildProcess, spawn } from 'child_process'; import * as Path from 'path'; import ISaSession from '~shared/interfaces/ISaSession'; import IReplayMeta from '~shared/interfaces/IReplayMeta'; import ReplayResources...
/* eslint-disable @typescript-eslint/no-unused-vars */ /* eslint-disable @typescript-eslint/no-empty-function */ /* eslint-disable @typescript-eslint/explicit-function-return-type */ /** byte - Coding format */ type byteFormat = 'utf-8'; /** * @param url WebSocket地址 * @param pingTimeout 心跳发送间隔 * @param pongTimeou...