text stringlengths 3.08k 15.5k |
|---|
<reponame>NHSDigital/electronic-prescription-service-api<gh_stars>1-10
import * as common from "./common"
import * as practitionerRole from "./practitioner-role"
import * as patient from "./patient"
import * as medication from "./medication"
import * as extension from "./extension"
import {LosslessNumber} from "lossles... |
const fUtil = require("../misc/file");
const stuff = require("./info");
const http = require("http");
function toAttrString(table) {
return typeof table == "object"
? Object.keys(table)
.filter((key) => table[key] !== null)
.map((key) => `${encodeURIComponent(key)}=${encodeURIComponent(table[key])}`)
.j... |
import {
AbstractRule,
RuleContext,
AbstractFormatter,
FileSummary,
RuleConstructor,
FormatterConstructor,
isTypescriptFile,
Replacement,
} from '@fimbul/ymir';
import * as TSLint from 'tslint';
import * as ts from 'typescript';
import getCaller = require('get-caller-file');
import * as ... |
<filename>src/core/structures/PDFPageLeaf.ts
import PDFArray from 'src/core/objects/PDFArray';
import PDFDict, { DictMap } from 'src/core/objects/PDFDict';
import PDFName from 'src/core/objects/PDFName';
import PDFNumber from 'src/core/objects/PDFNumber';
import PDFObject from 'src/core/objects/PDFObject';
import PDFRe... |
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import type {Chunk, ChunkCallback} from './FormatterWorker.js';
import {createTokenizer} from './FormatterWorker.js';
export const CSSParserStates = {
... |
<reponame>nullptr-z/uiw<gh_stars>100-1000
export * from '@uiw/react-affix';
export * from '@uiw/react-alert';
export * from '@uiw/react-auto-link';
export * from '@uiw/react-avatar';
export * from '@uiw/react-back-top';
export * from '@uiw/react-badge';
export * from '@uiw/react-breadcrumb';
export * from '@uiw/react-b... |
<filename>src/api/Viewbox.ts
import { Point, Dataseries } from '../types';
import { flatten } from './utility';
export type Range = [number, number];
export type ViewboxDuck = Viewbox | [number, number, number, number];
export type ViewboxFactory = (
input: ViewboxDuck | number,
yMin?: number,
width?: number,
... |
import React from "react";
import {
ParsedConfirmedTransaction,
ParsedInstruction,
PartiallyDecodedInstruction,
PublicKey,
} from "@solana/web3.js";
import { useAccountHistory } from "providers/accounts";
import { useTokenRegistry } from "providers/mints/token-registry";
import { create } from "superstruct";
im... |
<gh_stars>10-100
import { BINARY } from "./generated-wasm";
import Histogram, {
NO_TAG,
BitBucketSize,
toSummary,
HistogramSummary
} from "../Histogram";
// @ts-ignore
import * as base64 from "base64-js";
// @ts-ignore
import * as pako from "pako";
// @ts-ignore
import * as loader from "@assemblyscript/loader";... |
import { IonRippleEffect } from "@ionic/react";
import { Scroll } from "framer";
import { AnimatePresence, motion } from "framer-motion";
import React, { useCallback, useEffect, useState } from "react";
import { MoreVertical, Trash2, X } from "react-feather";
import { createUseStyles } from "react-jss";
import { useHis... |
import React from "react"
import { useNavigate, useParams } from "react-router"
import styled, { css } from "styled-components"
import Picture from "../../assets/profile.jpg"
import { useAppDispatch, useAppSelector } from "../../redux/hooks"
import { selectRooms, updateRoomMessage } from "../../redux/room/roomSlice"
im... |
import React, { Component, Fragment } from 'react';
import { observer } from 'mobx-react';
import { intlShape } from 'react-intl';
import moment from 'moment';
import SVGInline from 'react-svg-inline';
// @ts-ignore ts-migrate(2307) FIXME: Cannot find module './CountdownWidget.scss' or its... Remove this comment to see... |
/**
* @license
* Copyright 2017 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 a... |
import * as path from 'path'
import {
languages,
workspace,
ExtensionContext,
commands,
window as Window,
TextDocument,
NotebookDocument,
NotebookCellKind,
Uri,
CompletionList,
} from 'vscode'
import {
LanguageClient,
LanguageClientOptions,
ServerOptions,
TransportKind,
} from 'vscode-langua... |
<reponame>tv2/media-synchronizer
import { ConsumerEvent, EventConsumer } from '../utilities/events'
import { statSync, unlink, existsSync, mkdirSync } from 'fs'
import { convertPath } from '../utilities/filesystem'
import { dirname } from 'path'
import { logger as baseLogger } from '../utilities/logger'
import { volume... |
<filename>src/app/layout/tasksapproval/tasksapproval.component.ts<gh_stars>0
import { Router } from '@angular/router';
import { ServerService } from './../dashboard/Server.Service';
import { Component, OnInit, ViewChild, Inject } from '@angular/core';
import { routerTransition } from '../../router.animations';
import {... |
import { Expression, ExpressionF, TableType, TableExpression, TableSubtype, Grouped } from "./query_types";
import { SQLType } from "./columns";
import { TypeParser, AllTypes } from "./types";
export const TypeMapping: {[key in SQLType]: string} = {
smallint: "SMALLINT",
integer: "INT",
bigint: "BIGINT",
... |
<gh_stars>0
import { Parser } from 'htmlparser2'
import fs from 'fs'
import { deepListDirSync } from 'deep-list-dir'
import path from 'path'
import c from 'picocolors'
import { merge, transform, isObject } from 'lodash'
import normallize from 'normalize-path'
import AppConfig from '../src/app.config'
export const defa... |
import test from "ava";
import * as path from 'path';
import * as TypeScript from 'typescript';
import { parseTypescriptConfig, tryReadTypeScriptConfigJson } from "./TypescriptConfigParser";
const root = process.cwd();
const fixtures = path.join(root, 'fixtures');
const validFolder = path.join(fixtures, 'TypeScriptCon... |
import type { ExtractPropTypes, PropType } from 'vue';
import { computed, onMounted, ref, toRef, defineComponent } from 'vue';
import Tooltip from '../tooltip';
import abstractTooltipProps from '../tooltip/abstractTooltipProps';
import PropTypes from '../_util/vue-types';
import { initDefaultProps } from '../_util/prop... |
import * as d3 from "d3";
import { Colors } from "@blueprintjs/core";
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types --- FIXME: disabled temporarily on migrate to TS.
const Lasso = () => {
const dispatch = d3.dispatch("start", "end", "cancel");
// eslint-disable-next-line @typescrip... |
<reponame>thomaskbird/spending-tracker-frontend<filename>webpack.config.ts<gh_stars>1-10
import HtmlWebpackPlugin from "html-webpack-plugin";
import * as path from "path";
import CopyWebpackPlugin from "copy-webpack-plugin";
import autoprefixer from "autoprefixer";
import ForkTsCheckerWebpackPlugin from "fork-ts-checke... |
<reponame>vijayraavi/vscode-azurefunctions<gh_stars>0
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------... |
<reponame>lamhieu-vk/nuz<filename>packages/nuz-cli/src/commands/dev/workspaces.ts
import { LINKED_CHANGE_EVENT, LINKED_DEFINE_EVENT } from '@nuz/shared'
import { internalUrlsCreators, moduleIdHelpers } from '@nuz/utils'
import fs from 'fs-extra'
import glob from 'glob'
import path from 'path'
import clearConsole from '... |
import { Server, Router, Database } from 'kakapo';
import * as exenv from 'exenv';
import uuid from 'uuid/v4';
import { MediaFile } from '@atlaskit/media-client';
import { createApiRouter, createMediaPlaygroundRouter } from './routers';
import { createDatabase, MediaDatabaseSchema } from './database';
import { Remote... |
import React, { FC } from 'react';
import styled from 'styled-components';
import { Form, Button, Input, Card, Switch, Spin } from 'antd';
import { useTranslation } from 'react-i18next';
import { useHistory, useParams } from 'react-router-dom';
import { useRecoilState } from 'recoil';
import GridRow from 'components/_b... |
import { useTranslation } from 'next-i18next';
import Link from 'next/link';
function ContractMetamask() {
const { t } = useTranslation('common');
async function addMetamask() {
const tokenAddress = '<KEY>';
const tokenSymbol = 'CWOLF';
const tokenDecimals = 18;
const tokenImage = 'https://www.cryp... |
<gh_stars>0
import { ElementRef, Injectable, Renderer2, RendererFactory2, ViewChild, Inject, Directive } from '@angular/core'
import { Platform } from '@ionic/angular'
import { Observable } from 'rxjs'
import workerJS from '../../../assets/workers/entropyCalculatorWorker'
import { Entropy, IEntropyGenerator } from '..... |
<filename>packages/xstate-wallet/src/channel-wallet.ts
import ReactDOM from 'react-dom';
import React from 'react';
import {interpret, Interpreter, State} from 'xstate';
import {Guid} from 'guid-typescript';
import {
StateChannelsNotification,
StateChannelsResponse,
StateChannelsErrorResponse
} from '@statechanne... |
import * as React from "react";
import NumberFormat from "react-number-format";
import { Select, SelectField, TextField } from "..";
export const NON_FIELD_ERROR = "nonFieldError";
export interface FormError {
message: string;
field?: string;
}
interface FormProps<Values> {
id?: string;
children: React.Reac... |
import queryString from "querystring-number";
export interface IPaths {
path: string;
params?: { [key: string]: any };
hash: string;
}
export interface IListen {
path: string;
params?: { [key: string]: any };
}
export interface IDetail {
isPopBlock: boolean;
division: string;
rootElement: HTMLElement... |
import { ipcRenderer } from 'electron';
import _ from 'lodash';
import { channels } from './channels';
const channelsToMakeForOpengroupV2 = [
'getAllV2OpenGroupRooms',
'getV2OpenGroupRoom',
'getV2OpenGroupRoomByRoomId',
'saveV2OpenGroupRoom',
'removeV2OpenGroupRoom',
'getAllOpenGroupV2Conversations',
];
co... |
import * as L from 'leaflet';
import _ from 'lodash';
import { inject, observer } from 'mobx-react';
import React from 'react';
import { Circle, Marker as LeafletMarker } from 'react-leaflet';
import NodeSize from '~/enums/nodeSize';
import NodeType from '~/enums/nodeType';
import TransitType from '~/enums/transitType'... |
<reponame>garlictech/gtrack
import { ChangeDetectionStrategy, Component } from '@angular/core';
import {
HikeData,
PublicationState,
} from '@bit/garlictech.universal.gtrack.graphql-api';
import { HikeService } from '@bit/garlictech.angular.gtrack.hike-details';
import { CreateHikeInput } from '@bit/garlictech.univ... |
import * as React from "react";
import {
Grid,
Stack,
Button,
Typography,
Menu,
MenuItem,
Avatar,
Divider,
Box,
Tooltip,
IconButton
} from "@mui/material";
import MenuIcon from "@mui/icons-material/Menu";
// import { PersonAdd, Settings, Logout } from "@mui/icons-material"; // 图标名字而已
import { styl... |
/**
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
* Licensed under the LGPL or a commercial license.
* For LGPL see License.txt in the project root for license information.
* For commercial licenses see https://www.tiny.cloud/
*/
/**
* This class lets you parse/serialize colors and convert rgb/hsb... |
<reponame>LarsDenBakker/puppeteer<gh_stars>0
/**
* Copyright 2017 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/license... |
<reponame>Leichtwind/square-nodejs-sdk
import {
array,
boolean,
lazy,
object,
optional,
Schema,
string,
} from '../schema';
import { Device, deviceSchema } from './device';
import { V1Money, v1MoneySchema } from './v1Money';
import {
V1PaymentItemization,
v1PaymentItemizationSchema,
} from './v1Paymen... |
<filename>src/containers/CookieConsentBanner/styled.ts
import styled from 'styled-components';
import { runCSSGeneratorFunction } from '../../core';
import { Overlay as SharedOverlay } from '../shared/styled';
import { StyledCookieConsentBannerProps } from './types';
const StyledOverlay = styled(SharedOverlay)`
he... |
// Type definitions for non-npm package cloudinary-uploadwidget-browser 2.3
// Project: https://cloudinary.com/documentation/upload_widget_reference
// Definitions by: <NAME> <https://github.com/mrleebo>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare var cloudinary: CloudinaryBase;
interfa... |
<filename>src/ext/cycle-annotation-provider.ts
import * as vscode from "vscode";
import * as debugFile from "../lib/debug-file";
import * as debugUtils from '../lib/debug-utils';
import * as disassembly from '../lib/disassembly';
import * as path from 'path';
import _minBy from 'lodash/fp/minBy';
import _debounce from ... |
/* eslint-disable @typescript-eslint/no-explicit-any */
import { css } from '@emotion/css'
import { DataSourceSettings } from '@grafana/data'
import { Button, Icon, LegacyForms, stylesFactory } from '@grafana/ui'
import { uniqueId } from 'lodash'
import React, { PureComponent } from 'react'
const { SecretFormField, For... |
<filename>KubectlGetServiceIp/index.ts<gh_stars>1-10
import * as tl from 'azure-pipelines-task-lib';
import * as msRestNodeAuth from '@azure/ms-rest-nodeauth';
import * as resourceManagement from '@azure/arm-resources';
import * as graph from '@azure/graph';
import * as kubectlUtility from 'utility-common/kubectlutilit... |
<reponame>FelixTellmann/use-styled-system
import autoprefixer from "autoprefixer";
import postcss from "postcss-js";
import { Border, Color, Flex, Grid, Margin, Other, Padding, Position, Size, Typography } from "./css";
export type ConfigProps = {
Padding?: boolean;
Margin?: boolean;
Size?: boolean;
Space?: bo... |
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... |
<filename>src/integration-test/data/test-data.ts
import { PartyType } from 'integration-test/data/party-type'
import { InterestType } from 'integration-test/data/interest-type'
import * as uuid from 'uuid'
import * as moment from 'moment'
import I = CodeceptJS.I
export const DEFAULT_PASSWORD = process.env.SMOKE_TEST_U... |
<reponame>IHealth-AnnualProject/API
import 'dotenv/config';
import {Test} from "@nestjs/testing";
import {TypeOrmModule} from "@nestjs/typeorm";
import {AuthModule} from "../../../src/auth/auth.module";
import {INestApplication, ValidationPipe} from "@nestjs/common";
jest.setTimeout(170000);
import * as request from 's... |
<gh_stars>1-10
// Type definitions for phonon 1.4
// Project: https://github.com/quark-dev/Phonon-Framework
// Definitions by: <NAME> <https://github.com/kserin>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="awesomplete" />
declare namespace Phonon {
/*** Main object ***... |
import { Graph } from "./graph";
import { array, has, uniqueId } from "./helpers";
import type { DaGraph, EdgeLabel, GraphLabel, GraphNode, Rect, Vector } from "./types";
/*
* Adds a dummy node to the graph and return v.
*/
export function addDummyNode(g: DaGraph, type: string, attrs: Partial<GraphNode>, name: string... |
<filename>examples/typescript/monitoring-alarm.ts
/**
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.o... |
<gh_stars>0
import * as vscode from 'vscode';
import * as path from 'path';
import * as fs from 'fs';
interface IKendoTag {
[title: string]: {
prefix: string;
body: string;
description: string;
}
}
export default class KendoCompletionItemProvider implements vscode.CompletionItemProvider {
private _ke... |
<filename>src/vaults/vaults.utils.ts
import { VaultHarvestData, VaultPerformanceEvent, VaultVersion } from '.';
import { keyBy, VaultState } from '..';
import { TimeRangeOptions } from '../common';
import { VaultV15 } from '../contracts';
import {
HarvestEvent,
HarvestEventFilter,
Strategy,
TreeDistributionEven... |
import {CCEntity, EntityAttributes, ScaleSettings} from '../cc-entity';
import {Helper} from '../../helper';
import {Point3} from '../../../../models/cross-code-map';
interface CharacterSettings {
jsonINSTANCE?: string;
gender?: string;
img?: string;
x?: number;
y?: number;
offlineX?: number;
offlineY?: number;... |
import React, { useContext, useEffect, useMemo } from "react"
import useKakaoEvent from "../hooks/useKakaoEvent"
import InfoWindow from "./InfoWindow"
import { KakaoMapMarkerClustererContext } from "./MarkerClusterer"
interface MarkerProps {
map: kakao.maps.Map | kakao.maps.Roadview
position: kakao.maps.LatLng | k... |
import { isDefined, Undefinable } from "src/utils/types";
function canTransferArrayBuffer() {
if (!isDefined(TaskProcessor._canTransferArrayBuffer)) {
var worker = new Worker(getWorkerUrl("Workers/transferTypedArrayTest.js"));
worker.postMessage = (worker as any).webkitPostMessage || worker.postMes... |
<gh_stars>10-100
import { TextDecoder, TextEncoder } from 'util';
import * as vscode from 'vscode';
import { SQLNotebookConnections } from './connections';
import { connectToDatabase, deleteConnectionConfiguration } from './commands';
import { Pool, QueryResult, ResultTable, Row } from './driver';
import { activateForm... |
/**
* @fileoverview Follow naming conventions for Mongoose models and schemas.
* For a collection X, we use the following naming conventions:
*
* XFields = typeof schema;
* XDoc = XFields & mongoose.Document;
* XModel = model<XDoc>(schema, options);
*/
import {
AST_NODE_TYPES,
TSESTree,
ESLintUtils,
} fro... |
import yaml from 'yaml'
import { isNumber, isInteger, isBoolean, isString, isObject, isArray, omitBy, isUndefined } from 'lodash-es'
import { parse } from 'comment-json'
import { PresentationProps, PlatForm } from '../components/Presentation'
export const getUrl = (platform: PlatForm, path: string): string => {
let ... |
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... |
import { Report, TestStatus, DroneEnv, PluginConfig } from '../src/types'
import * as Octokit from '@octokit/rest'
import chance from 'chance'
class Random extends chance.Chance {
public report(opt?: Partial<Report>): Report {
return Object.assign(
{
duration: this.floating({ min: 0, max: 10000 }),... |
<reponame>eloisetwaine/cypress<filename>packages/server/lib/gui/auth.ts<gh_stars>0
const _ = require('lodash')
const debug = require('debug')('cypress:server:auth')
const express = require('express')
const os = require('os')
const pkg = require('@packages/root')
const Promise = require('bluebird')
const url = require('... |
/*!
* Buttplug JS Source Code File - Visit https://buttplug.io for more info about
* the project. Licensed under the BSD 3-Clause license. See LICENSE file in the
* project root for full license information.
*
* @copyright Copyright (c) Nonpolynomial Labs LLC. All rights reserved.
*/
import * as Messages from ".... |
/*
* Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* or in the ... |
import algoliasearch, {
Index as AlgoliaIndex,
Task as AlgoliaTask,
} from 'algoliasearch'
import * as e from 'fp-ts/lib/Either'
import * as t from 'io-ts'
import { PathReporter } from 'io-ts/lib/PathReporter'
import probot, { Octokit } from 'probot'
import { Photon, Starter, BatchPayload } from '@generated/photon... |
<filename>projects/storefrontapp-e2e-cypress/cypress/sample-data/order-cancellations-returns.ts
export const ORDER_CODE = '00000001';
export const RETURN_REQUEST_CODE = '00000000';
export const RMA = '00000000';
export const REQUEST_CREATE_TIME = 'November 18, 2020';
export const REQUEST_STATUS_PENDING = 'Approval Pend... |
<gh_stars>1-10
import Axios, { AxiosRequestConfig } from "axios";
import { titleCase } from "change-case";
import { endOfDay, startOfDay } from "date-fns";
export enum STATUS_TYPES {
UNKNOWN = 0,
SHIPPING = 1,
EN_ROUTE = 2,
OUT_FOR_DELIVERY = 3,
DELIVERED = 4,
DELAYED = 5,
}
export interface ITrackitReque... |
<filename>packages/qgrid-ngx/src/lib/dnd/drop.directive.ts
import { Directive, ElementRef, Input, NgZone, OnInit, Optional } from '@angular/core';
import { Command, DragService, elementFromPoint, EventListener, EventManager, GRID_PREFIX, no, parents } from '@qgrid/core';
import { GridPlugin } from '../plugin/grid-plugi... |
import fs from 'fs';
import makeDir from 'make-dir';
import pathLib from 'path';
import readline from 'readline';
import rimraf from 'rimraf';
import trash from 'trash';
import { promisify } from 'util';
import { input, prompt } from '.';
import { execCmd } from './cli';
import { isWindows } from './platform';
import {... |
// -*- mode: typescript; indent-tabs-mode: nil; js-basic-offset: 4 -*-
//
// This file is part of Almond
//
// Copyright 2020 The Board of Trustees of the Leland Stanford Junior University
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the Li... |
import { TypedDocumentNode } from '@urql/core';
import { GraphQLError, DocumentNode, FragmentDefinitionNode } from 'graphql';
import { IntrospectionData } from './ast';
// Helper types
export type NullArray<T> = Array<null | T | NullArray<T>>;
export interface Fragments {
[fragmentName: string]: void | FragmentDefi... |
import { ChallengeRegistry } from "@connext/contracts";
import {
ILoggerService,
NetworkContext,
ChallengeEvents,
IChainListener,
ChallengeEvent,
ChallengeEventData,
ChallengeStatus,
Address,
} from "@connext/types";
import { toBN } from "@connext/utils";
import { BigNumber, Contract, Event, providers, ... |
<filename>packages/mds-policy/api.ts
/*
Copyright 2019 City of Los Angeles.
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
U... |
import {combineLatest, Observable, ReplaySubject, Subject, BehaviorSubject, Subscription, of, zip, forkJoin} from 'rxjs';
import {first, map, mergeMap} from 'rxjs/operators';
import {Component, ChangeDetectionStrategy, forwardRef, SimpleChange, Input, OnChanges, OnDestroy, OnInit} from '@angular/core';
import {NG_VALUE... |
<gh_stars>1-10
import { Action } from '@ngrx/store';
import {
Address,
DeliveryModeList,
PaymentDetails,
Order
} from '../../../occ/occ-models/index';
export const ADD_DELIVERY_ADDRESS = '[Checkout] Add Delivery Address';
export const ADD_DELIVERY_ADDRESS_FAIL = '[Checkout] Add Delivery Address Fail';
export c... |
import { ImageTextureProxy } from "../../vox/engine/texture/ImageTextureProxy";
import { RendererInstance } from "../../vox/engine/RendererInstance";
import { IDataMesh } from "../../vox/engine/mesh//IDataMesh";
import { Engine } from "../../vox/engine/Engine";
import { AppBase } from "../../vox/app/AppBase";
import { ... |
import * as querystring from "querystring";
import * as uuid from "uuid";
import {URL} from "url";
import {ProxyEvent} from "../ProxyEvent";
const randomableCharacters = "abcdefghijklmnopqrstuvwxyz0123456789";
function randomString(length: number): string {
let text = "";
for (let i = 0; i < length; i++) {
... |
import {refine, Grammar, TokenRange} from '../Parsec';
import * as K from '../Kit';
import * as AST from '../AST';
import {
RegexParseState,
RegexError,
RegexParser,
BaseGrammar,
asNode,
Lexeme,
RawLexeme,
check,
RegexParseResult,
groupAssertionTypeMap
} from './Base';
const P = refine<string, Rege... |
import React, {
createContext,
useCallback,
useReducer,
useMemo,
useContext,
memo,
useEffect,
} from 'react'
import { render } from 'react-dom'
import produce, { Immutable } from 'immer'
import { Box, RichText } from 'goods-core'
import { Button, ButtonProps } from '../button'
import { Modal } from './mod... |
import Wrapper from 'src/Wrapper'
import Paper from '@mui/material/Paper'
import Tabs from '@mui/material/Tabs'
import Tab from '@mui/material/Tab'
import Alert from '@mui/material/Alert'
import Box from '@mui/material/Box'
import Typography from '@mui/material/Typography'
import Chip from '@mui/material/Chip'
import G... |
<reponame>opus1269/common-custom-elements
/**
* @module els/common/setting_elements
*/
/** */
/*
* Copyright (c) 2015-2019, <NAME> All rights reserved.
* Licensed under the BSD-3-Clause
* https://opensource.org/licenses/BSD-3-Clause
* https://github.com/opus1269/screensaver/blob/master/LICENSE.md
*/
impor... |
import { StateInstance } from "./state"
import { PlexusPlugin } from "./plugin"
import { PlexusRuntime, RuntimeInstance, _runtime } from "./runtime"
import { PlexusStorageInstance, storage } from "./storage"
import { CollectionInstance } from "./collection/collection"
import { genUID, isEqual } from "./helpers"
import ... |
// These types are based on https://github.com/jupyter/nbformat/blob/b6b5a18e5a40d37f1cc0f71f65108288bdec9bb7/nbformat/v4/nbformat.v4.schema.json.
// This file was originally generated using json-schema-to-typescript 7.0.0 and
// then manually polished.
/* eslint-disable @typescript-eslint/member-ordering */
/** Jupyt... |
import { Label, View } from 'native-base';
import React, { useState, useEffect } from 'react';
import {
PickerItemProps,
StyleSheet,
PickerProps,
TouchableOpacity,
Text,
Image,
ImageSourcePropType,
} from 'react-native';
import ModalDropdown from 'react-native-modal-dropdown';
import { colors } from '@th... |
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import React from 'react';
import {Channel} from 'mattermost-redux/types/channels';
import {ClientConfig} from 'mattermost-redux/types/config';
import {Team} from 'mattermost-redux/types/teams';
import {The... |
<reponame>microsoft/openpaisdk<filename>src/api/v2/models/job.ts
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
/**
* OpenPAI Job Info.
*/
export interface IJobInfo {
name: string;
username: string;
state: 'WAITING' | 'RUNNING' | 'SUCCEEDED' | 'STOPPED' | 'FAILED' | 'UNKNOWN';... |
<filename>src/command.ts
import { Argv, CommandModule, Arguments as BaseArguments } from 'yargs'
import { Argument, ArgumentOptions } from './argument'
import { Option, OptionOptions } from './option'
import { InferArgType } from './baseArg'
import { prompter } from './prompter'
export type Arguments<T = {}> = T &
B... |
/* --------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* ----------------------------------------------------------------... |
import libsignal, {SignalKeyPair, SignalPreKey, SignalSignedPreKey} from "libsignal";
import {arrayBufferToString} from "./utils";
import {SignalProtocolStore} from "./SignalProtocolStoreWrapper";
type CipherTextType = number// should probably be an enum or 1 | 2 | 3
type WhatsDappSignalCipherText = {
type: CipherT... |
<reponame>stek29/verdaccio
/**
* @prettier
*/
// @flow
export const DEFAULT_PORT = '4873';
export const DEFAULT_PROTOCOL = 'http';
export const DEFAULT_DOMAIN = 'localhost';
export const TIME_EXPIRATION_24H = '24h';
export const TIME_EXPIRATION_7D = '7d';
export const DIST_TAGS = 'dist-tags';
export const LATEST = ... |
import { Mcap0Writer, Mcap0Types } from "@mcap/core";
import fs from "fs/promises";
import { camelCase } from "lodash";
import { TestFeatures, TestVariant } from "variants/types";
import { WriteTestRunner } from "./TestRunner";
type JsonValue<T> = T extends number | bigint | string
? string
: T extends Uint8Array... |
import { StyleSheet, css } from 'aphrodite';
import classnames from 'classnames';
import * as React from 'react';
import constants from '../../configs/constants';
import { SDKVersion, Device, Platform } from '../../types';
import * as PlatformOptions from '../../utils/PlatformOptions';
import type { EditorModal } from... |
import System from '@smartface/native/device/system';
import ListView from '@smartface/native/ui/listview';
import ListViewItem from '@smartface/native/ui/listviewitem';
import { LviTypes, LviClasses, IProcessed } from 'lib/listViewItemTypes';
import { setBordersForSwipeItem, setBordersForListViewItem } from 'lib/borde... |
import * as PropTypes from "prop-types";
import * as React from "react";
import { AppContext, IPerson, IPersonInfo } from "../../Types";
import { PermissionsUtil } from "../../util/permissions";
import Denied from "../Shared/Denied";
import SearchTags from "../Tags/SearchTags";
import CreatePerson from "./CreatePerson"... |
import * as path from 'path';
import * as fs from 'mz/fs';
import { exec } from 'mz/child_process';
import { getLogger } from 'log4js';
import { File } from 'stryker-api/core';
import { glob } from '../utils/fileUtils';
import StrictReporter from '../reporters/StrictReporter';
import { SourceFile } from 'stryker-api/re... |
<reponame>stungkit/wertik-js
import { get } from "lodash"
import crud from "../crud"
import { databaseDefaultOptions } from "../../framework/defaults/options"
import { RelationParams, useModuleProps } from "../types/modules"
import {
generateDataTypeFromDescribeTableColumnType,
getCreateSchema,
getGraphQLTypeName... |
import http, { Server } from 'http';
import path from 'path';
import compression from 'compression';
import cookieParser from 'cookie-parser';
import express, { Request } from 'express';
import helmet from 'helmet';
import webLogger from 'morgan';
import favicon from 'serve-favicon';
import serveStatic from 'serve-stat... |
import classnames from "classnames";
import * as React from "react";
import { connect, useDispatch } from "react-redux";
import { ReactComponent as HomeSplashSVG } from "./assets/homeSplash.svg";
import { ReactComponent as SummarySplashSVG } from "./assets/summarySplash.svg";
import {
EXTENSION_COMMANDS,
ROUTES,
... |
<gh_stars>0
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import {IntlShape} from 'react-intl'
import {IBlock, MutableBlock} from './blocks/block'
import {IPropertyTemplate, MutableBoard} from './blocks/board'
import {MutableBoardView} from './blocks/b... |
<gh_stars>0
import path from "path";
import fs from "fs/promises";
import { ipcMain, dialog } from "electron";
import electronLog from "electron-log";
import { CancelablePromise, cancelable } from "cancelable-promise";
import PowerShell from "../windows/PowerShell";
import type { ScannedModel } from "src/models/Scanned... |
import type { GetServerSideProps, GetServerSidePropsContext, InferGetServerSidePropsType, NextPage } from 'next';
import { BaseSyntheticEvent, useState } from 'react';
import NavBar from '../components/navbar';
import CandlestickChart from '../components/candlestickChart';
import styles from '../styles/backtest.modul... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.